OS Property support center

about URLs Restriction and osproperty

  • ramon zaragoza
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 6 months ago #51665 by ramon zaragoza
about URLs Restriction and osproperty was created by ramon zaragoza
Hi tuan
even if you buy membership pro nearly a year ago It is now when I try to start up, and I need some of your help.

I've created a category and a plan within this category with an access level joomla, which is the level of access of the osproperty agent

the idea is that the agent pay each month to get unlimited properties in osproperty and when the month ends, when you want to add a new property or manage the properties that are already uploaded, appears the option again to renew the membership a month more If the agent you want to follow up unlimited properties the following month.

I have activated the plugin OS Membership URL Restriction and I've put 2 url, within the plan for the restrinción, one that is which adds new properties and another that manages the properties you have uploaded, In my tests, when Agent has not yet bought for the first time the suscripicon, there is no problem, if you try to add a new property or manage, the category of the signing, the purchase appears and already can add new properties or manage them you already have,

When the subscription expires, is where comes my problem If it has not renewed the subscription, and this has already expired, when you try to add a new property or manage having from your agent menu, I understand that you should appear again subscription so you can buy it again, however what happens is that when from his agent menu tries to add a property or manage which has disconnect from your user, have to login again and then when the category subscription to be able to buy it it to loga appears. Another thing that does not work is that part of the plan I put the url so it redirects directly to the plan, but does not work, because instead of redirect you to the plan, it redirects to the category of the plan

How can I fix this?, I hope I explained well.
Thaks

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #51688 by Mr. Dam
Replied by Mr. Dam on topic about URLs Restriction and osproperty
Hi Ramon,
So what's the link that you want to redirect agent when their subscription is expired? Because currently, both cases Non-subscription or expired-subscription, the system still redirect agent to layout "index.php?option=com_osmembership"
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • ramon zaragoza
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 6 months ago #51693 by ramon zaragoza
Replied by ramon zaragoza on topic about URLs Restriction and osproperty
Hi Dam
I want to redirect it to the plan subscription page, if possible

Then, that is used for the field Subscription complete url (optional) within a plan in membership pro?. According to I have read in the documentation of membership pro is to redirect to the page that I want, can I redirect to a membership plan?

It is normal that the agent from its menu, when you try to access a restricted url, for example, to add a new property, or to manage properties you have uploaded, disconnect from your joomla session and will have to open session again to make it appear you the page category of subscription plan?

Thanks.

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #51719 by Mr. Dam
Replied by Mr. Dam on topic about URLs Restriction and osproperty
OK ramon, you can open file: components > com_osproperty > classes > listing.php
find
$redirect_link = JURI::root()."index.php?option=com_osmembership&Itemid=".JRequest::getInt('Itemid',0);
and replace by the url you want, for example:
$redirect_link = " abc.com/membershipplans ";
Good luck
Dam

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamNguyen Phu Quan