marremp2
Total posts: 6
21 Oct 2015 16:27

I tried to restrict access to some JReviews pages but I can't manage to do it.

Here is the URL :

index.php?option=com_jreviews&Itemid=1285&url=new-listing_c274&plan_id=9

Here is my setup : JReviews com_jreviews Universal URL restriction. Url parameter url = new-listing_c274. AND Url parameter plan_id = 9 .

Thanks for your help !

Last Modified: 26 Oct 2015


pepperstreet VIP
Total posts: 3,837
21 Oct 2015 18:53

Hello marremp2,

marremp2 index.php?option=com_jreviews&Itemid=1285&url=new-listing_c274&plan_id=9

If your example URL is correct, it should look like this:

mj_em_uni_url_restriction_rule

Are you sure you are testing with a regular user account?
Headsup: Default settings in Emerald Restricter Plugin skip restrictions for SuperUser Group and Special ACL.


Sergey
Total posts: 13,748
22 Oct 2015 04:37

PLease check that you have eneabled Emerald system plugin. Also note that as superadmin you can acess anything. Emerald restrictions does not work for you so test under simple user.

Please report if it is still not working.


marremp2
Total posts: 6
22 Oct 2015 15:15

Thanks for your answers.

I checked the plugin, it is activated. Actually the restriction works in other cases.

I re-tried the page with a simple user, the restriction is still not working.

Here is my settings :

2015-10-22_1714


Sergey
Total posts: 13,748
23 Oct 2015 13:06

My suspection is new-listing_c274. This looks strange. what c247 is hard to tell.

Try this. open template of the page at index.php?option=com_jreviews&Itemid=1285&url=new-listing_c274&plan_id=9 and place there PHP code

echo JFactory::getApplication()->input->get('url');

And see what it returns.

Or give me access to your site, install jeXtplorer so I coud work with files and I'll try to check it out.


marremp2
Total posts: 6
23 Oct 2015 14:38

Hello Sergey,

Thanks for your answer;

I tried your php code, it gives this : new-listing_c274

I tried something else : I put the first condition on ItemId = 1285 and it worked. This element "url" does not seem to work for these pages.

Thanks for your help !


Sergey
Total posts: 13,748
26 Oct 2015 08:57

Unfortunately you should not restrict page with Itemid. this is unnesesery parameter and will display content even with different number. Try 1286 and most probably you will see the content. You have to restrict by other URI parameters.

If you give me access to your site I might look and find how to set it right.

Powered by Cobalt