Community Support Forums — WordPress® ( Users Helping Users ) — 2011-08-29T15:17:43-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=14740 2011-08-29T15:17:43-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14740&p=33255#p33255 <![CDATA[Re: S2 Member URL Parameters Error]]>

This at the beginning of your post would probably do the same and be easier to add:

Code:
<? php if (!current_user_can('access_s2member_ccap_ld'))
   header('Location:' . S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL); ?> 


But you can do the same with the ccaps field in the s2Member metabox in the top-right of the edit page.

Or in the 2nd segment of the Custom Capabilities video, Jason explains a hack to apply the ccaps restriction. http://www.s2member.com/custom-capabilities-video/

Statistics: Posted by Cristián Lávaque — August 29th, 2011, 3:17 pm


]]>
2011-08-28T14:03:16-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14740&p=33201#p33201 <![CDATA[Re: S2 Member URL Parameters Error]]>
I fixed the problem by manually putting this on all my pages. It wasn't fun, but it got rid of the error.

Code:
if (current_user_can("access_s2member_ccap_ld")):

PAGE CODE

else:
    
$member_options S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL;

   
header("Location: $member_options"); 
endif;
 


There is definitely some kind of error when I use the custom capabilities on the page edit screen that interacts with url variables. If you want me to help you guys figure it out I would be more than happy to provide you with more information.

Thanks!
Jon

Statistics: Posted by fantasydebate — August 28th, 2011, 2:03 pm


]]>
2011-08-28T05:12:09-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14740&p=33188#p33188 <![CDATA[Re: S2 Member URL Parameters Error]]>
You seem to have a custom script in the page, thus the variables in the querystring, correct? I can't see the /ld-profiles page because it's redirecting me to /upgade-to-fantasy-debate-premium, which I assume is the Membership Options Page, but I don't see MOP vars saying what the level required is, so I'm confused. Could you explain more what you're doing so i can understand it to help you better? Screenshots with be great too.

Thanks!

Statistics: Posted by Cristián Lávaque — August 28th, 2011, 5:12 am


]]>
2011-08-28T02:39:25-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14740&p=33181#p33181 <![CDATA[S2 Member URL Parameters Error]]>
echo "<a href='http://www.fantasydebate.com/ld-profiles/?n=$name' >$name_v1</a>"

s2 member says takes me to my "buy now" page because it says I don't have the custom capabilities. If i go to the link http://www.fantasydebate.com/ld-profiles. S2 member has no problem. Also for reference, if the link is

echo "<a href='http://www.fantasydebate.com/ld-profiles/?id=$number' >$name_v1</a>"

s2 member has no problem

Can anyone help me?

Thanks!

Jon

Statistics: Posted by fantasydebate — August 28th, 2011, 2:39 am


]]>