Community Support Forums — WordPress® ( Users Helping Users ) — 2011-04-17T14:48:32-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=6089 2011-04-17T14:48:32-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6089&p=12815#p12815 <![CDATA[Re: Different Membership Option pages?]]>

Statistics: Posted by Cristián Lávaque — April 17th, 2011, 2:48 pm


]]>
2011-04-17T13:18:45-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6089&p=12807#p12807 <![CDATA[Re: Different Membership Option pages?]]> Statistics: Posted by cassel — April 17th, 2011, 1:18 pm


]]>
2011-04-17T13:02:07-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6089&p=12806#p12806 <![CDATA[Re: Different Membership Option pages?]]>

About the constant, you don't need to worry about it.

Regarding changing the message shown to the person depending on what he tried to view, you'd use the MOP Variables I mentioned earlier. You'll see that they're passed (the variables) in the URL when the person is redirected to the Membership Options Page (MOP).

With these variables now available in the MOP page, you can create conditionals to decide what message you show. Since this is advanced for you, it may be best that you get help. There are freelance developers familiar with WordPress that should be able to set this up the way you want it in little time. viewforum.php?f=37 :)

Statistics: Posted by Cristián Lávaque — April 17th, 2011, 1:02 pm


]]>
2011-04-17T06:28:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6089&p=12796#p12796 <![CDATA[Re: Different Membership Option pages?]]>

- when you state that S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL is a constant, does that mean it would be written exactly the same whether it is for my site or my neighbour's site? Is it something that is typed the same no matter what? If not, and if it changes from site to site, but to stay constant once it is set, how is it set initially? (told you i need VERY basic!)

- now trying to read (and hopefully understand) the WP Admin -> s2Member -> API / Scripting -> Membership Options Page / Variables it SEEMS to me that it will give only a one sentence message to the user whether they are supposed to be logged in, or have a specific level, or custom packaged purchased, but i was thinking of more of a different page for each scenario (like if the viewer should be registered, have also a list of the benefits of registration). Maybe i am making things too complicated though, but in all the examples, i didn't see how to redirect to a specific page (that i can hide otherwise) and if it refers to a constant like the previous question, how to set it?

Statistics: Posted by cassel — April 17th, 2011, 6:28 am


]]>
2011-04-16T18:54:44-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6089&p=12790#p12790 <![CDATA[Re: Different Membership Option pages?]]>

Statistics: Posted by Cristián Lávaque — April 16th, 2011, 6:54 pm


]]>
2011-04-16T18:51:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6089&p=12789#p12789 <![CDATA[Re: Different Membership Option pages?]]> I"ll be back when i have more questions! (i probably WILL)

Statistics: Posted by cassel — April 16th, 2011, 6:51 pm


]]>
2011-04-16T18:44:18-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6089&p=12788#p12788 <![CDATA[Re: Different Membership Option pages?]]>

I fixed your code so it's inside code tags. You can read how it's done here viewtopic.php?f=36&t=2780.

S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL is what's called a constant in PHP. Unlike variables, which have their value vary, constants have their value constant after being defined. In this case it's the page you choose for the Membership Options Page at WP Admin -> s2Member -> General Options -> Membership Options Page.

Yes, you can show different things depending on why they were sent to that page. For that you'd use the variables available for it and you can read about them here WP Admin -> s2Member -> API / Scripting -> Membership Options Page / Variables.

Statistics: Posted by Cristián Lávaque — April 16th, 2011, 6:44 pm


]]>
2011-04-16T18:30:49-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6089&p=12787#p12787 <![CDATA[Different Membership Option pages?]]>
I am looking at the Custom Capability Packages. The video was quite helpful, although when the coding is mentioned, that is a stretch for my brain (not familiar with coding in php at all). In the video, it gave this kind of coding (sorry, i dont know how to put it in a box):

Code:
         if(has_tag("music") && !current_user_can ("access_s2member_ccap_music"))
             {
                    
header ("location: ".S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL);
                    exit ();
             } 


From there, i have 2 questions:
1- is the "S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL" a standard variable or something based on the actual site structure?

2- if i have a custom package that requires a free registration, but a different package requiring a different "payment", how can i direct the viewer to a different "membership option" page? Maybe one could say "oops, you need to be a registered member to access this content; registration is free. Please click here to register", but another one could say "To view the tutorials, you can purchase a membership at the price of..." and have a paypal button there, for example. How would i do that? (please, consider me VERY newbie)

Statistics: Posted by cassel — April 16th, 2011, 6:30 pm


]]>