Community Support Forums — WordPress® ( Users Helping Users ) — 2012-01-18T11:29:34-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=16210 2012-01-18T11:29:34-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16210&p=60889#p60889 <![CDATA[Re: Member Level Re-direct & Link Visibility]]>

Statistics: Posted by jlamarferren — January 18th, 2012, 11:29 am


]]>
2012-01-11T11:50:53-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16210&p=60201#p60201 <![CDATA[Re: Member Level Re-direct & Link Visibility]]>

Statistics: Posted by Raam Dev — January 11th, 2012, 11:50 am


]]>
2012-01-09T23:58:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16210&p=60108#p60108 <![CDATA[Re: Member Level Re-direct & Link Visibility]]> Statistics: Posted by bradjbarton — January 9th, 2012, 11:58 pm


]]>
2012-01-09T23:29:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16210&p=60102#p60102 <![CDATA[Re: Member Level Re-direct & Link Visibility]]> Statistics: Posted by Raam Dev — January 9th, 2012, 11:29 pm


]]>
2012-01-09T23:24:21-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16210&p=60099#p60099 <![CDATA[Re: Member Level Re-direct & Link Visibility]]>
Am I beating a dead horse?

Statistics: Posted by bradjbarton — January 9th, 2012, 11:24 pm


]]>
2012-01-09T00:36:49-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16210&p=60005#p60005 <![CDATA[Re: Member Level Re-direct & Link Visibility]]> PHP Execution installed):

Code:
<?php if(is_user_logged_in()) { ?>
<script type="text/javascript">
<!--
window.location = "http://www.sitesteering.com/login-welcome-page-<?php echo S2MEMBER_CURRENT_USER_ACCESS_LEVEL?>";
//-->
</script>
<?php } else { ?>
You must be logged in for this redirect to work... 
<?php ?>


(Keep in mind this redirect won't happen for anyone who has JavaScript disabled in their browser.)

Statistics: Posted by Raam Dev — January 9th, 2012, 12:36 am


]]>
2012-01-08T00:01:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16210&p=59978#p59978 <![CDATA[Re: Member Level Re-direct & Link Visibility]]>
Image

I need to type the URL and link text into 2 separate fields. I cannot copy and paste the entire line of PHP into the URL field because it does not save it accurately. As I mentioned earlier, there may be a way for a separate page to parse this correctly based upon logged in user level and redirect to the correct page. If that is true, I could simply use The URL for the redirector page in the URL field of the menu.

I am a little surprised that this was not a common issue, long since resolved, and included in a thread somewhere. Perhaps I just didn't know how to explain it accurately.

Statistics: Posted by bradjbarton — January 8th, 2012, 12:01 am


]]>
2012-01-07T21:11:07-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16210&p=59974#p59974 <![CDATA[Re: Member Level Re-direct & Link Visibility]]>
<a href="http://www.sitesteering.com/login-welcome-page-<?php echo S2MEMBER_CURRENT_USER_ACCESS_LEVEL; ?>">Link text goes here</a>

Please tell me how it goes.

Statistics: Posted by Eduan — January 7th, 2012, 9:11 pm


]]>
2012-01-07T21:01:11-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16210&p=59973#p59973 <![CDATA[Re: Member Level Re-direct & Link Visibility]]>
When I paste the URL portion into the URL box of the menu button, only this is saved:

http://www.sitesteering.com/login-welco ... ESS_LEVEL;?

It is missing brackets and spaces, etc., and it does not work. I just need whatever the URL would be that will redirect to the correct page based on logged in user level.

Statistics: Posted by bradjbarton — January 7th, 2012, 9:01 pm


]]>
2012-01-07T19:41:52-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16210&p=59968#p59968 <![CDATA[Re: Member Level Re-direct & Link Visibility]]> S2MEMBER_CURRENT_USER_ACCESS_LEVEL (see WP Admin -> s2Member -> API/Scripting -> s2Member PHP/API Constants):

Code:
<a href="http://www.sitesteering.com/login-welcome-page-<?php echo S2MEMBER_CURRENT_USER_ACCESS_LEVEL;?>">Link text goes here</a>


Assuming the currently logged in user's level is 4, that code will generate a link that goes to http://www.sitesteering.com/login-welcome-page-4.

Is that what you're looking for?

Statistics: Posted by Raam Dev — January 7th, 2012, 7:41 pm


]]>
2012-01-07T11:28:12-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16210&p=59930#p59930 <![CDATA[Re: Member Level Re-direct & Link Visibility]]>
I am down to trying to figure out how to direct an HTML link in a menu button to this variable:

http://www.sitesteering.com/login-welcome-page-%%current_user_level%%

for the reasons mentioned in my January 5 post. I don't care how it is done, as long as I can do it. For example, even if I needed another page for the sole purpose of redirection I could use the link to that redirection page in the menu buttons. This solution may be similar to your solution to the redirection issue to the member options page, but in this case I simply need to parse out their logged in level and deliver them to the correct login welcome page.

Statistics: Posted by bradjbarton — January 7th, 2012, 11:28 am


]]>
2012-01-05T18:37:03-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16210&p=59807#p59807 <![CDATA[Re: Member Level Re-direct & Link Visibility]]>
I can answer your original question about redirecting users away from the Membership Options page and to a specific page designed to "sell" them a specific item.

When a user tries to access a post/page protected by s2Member, the user is redirected to the Membership Options page. When they're redirected, there are a bunch of variables included in the redirect (you can see these in the URL after the redirect).

These extra variables say which page the user was attempting to access. So, if we use some PHP, we can check these variables and redirect them again (away from the Membership Options Page) to another page specifically designed for the post/page they were trying to access.

This thread explains how I achieved this: viewtopic.php?f=4&t=14947#p53487

Does that help?

Statistics: Posted by Raam Dev — January 5th, 2012, 6:37 pm


]]>
2012-01-05T11:51:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16210&p=59782#p59782 <![CDATA[Re: Member Level Re-direct & Link Visibility]]>
There are also main menu items that are common to all 6 levels. This means that I need to use a header menu for the common sections, and the side bar menu for the logged in level specific content pages that are child to the login welcome page itself. When I create a child page to the login welcome page the theme automatically populates the side bar menu with the pages. Because each level has it's own login welcome page, and header menu selections can take the user away from the main login welcome page section, the user needs a way to get back to it - either by link or menu button. Otherwise, the user is left with using the back button to find the login welcome page.

So, how can this be accomplished? Can I make the menu link to the login welcome page go to a special page where the php code would decipher the user's correct level and then redirect to the correct login welcome page? If so, what is the php code I would need for that re-direction login welcome page? Any other ideas how this can be achieved?

Statistics: Posted by bradjbarton — January 5th, 2012, 11:51 am


]]>
2012-01-03T05:50:17-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16210&p=59507#p59507 <![CDATA[Re: Member Level Re-direct & Link Visibility]]> WP Admin -> s2Member -> General Options -> Login Welcome -> Special Redirection

If you use that URL like that in your browser it will give you a 404 because it doesn't exist. /login-welcome-page-1 and /login-welcome-page-0 will exist if you created them, though, so you need to use those.

Statistics: Posted by Cristián Lávaque — January 3rd, 2012, 5:50 am


]]>
2012-01-01T13:58:40-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16210&p=59383#p59383 <![CDATA[Re: Member Level Re-direct & Link Visibility]]>
I created the login welcome page using the Special Redirection URL, specifying a separate login welcome page for each level, as described in the first video. The Special Redirection URL is:

http://www.sitesteering.com/login-welcome-page-%%current_user_level%%

exactly as described in the video. This logic works beautifully and achieves the basic purpose. However, I am using a membership area header menu/nav bar because I need navigation to other sections of the members area. Each section includes grouped pages on different topics or functionality, etc.

The menu button that says Member Home Page has the URL:

http://www.sitesteering.com/login-welcome-page-%%current_user_level%%

but it is not a qualified URL and returns a 400 Bad Request error page. I have tried several variations, but all end up with the 400 error, 404 error, or redirect to the site home page.

What is the correct syntax for the qualified URL to the login welcome page when you are using the Special Redirection URL as shown here?

Statistics: Posted by bradjbarton — January 1st, 2012, 1:58 pm


]]>
2011-12-06T12:29:44-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16210&p=54674#p54674 <![CDATA[Re: Member Level Re-direct & Link Visibility]]>
If I understood correctly then you can check this video which talks about that:
http://www.s2member.com/paypal-modifica ... ons-video/

And you can check under WP Admin -> s2Member -> API / Scripting -> Simple/Shortcode Conditionals and Advanced/PHP Conditionals. You can check this video for more info:
http://www.s2member.com/advanced-conditionals-video/

Hope this helps. :)

Statistics: Posted by Eduan — December 6th, 2011, 12:29 pm


]]>
2011-12-06T12:17:08-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16210&p=54670#p54670 <![CDATA[Member Level Re-direct & Link Visibility]]>
I am setting up my membership area using the Optimize Press theme. The theme gives me good control over a number of things, but between s2Member and OP I cannot figure out how to re-direct a higher level link to a separate page (or OTO) where I can basically pitch something to the effect that tells the user that a higher level is required, with a bit of a pitch to upgrade. I am reasonably sure that this should be possible with s2Member, but I have been searching the forum over the last few days and cannot find anything about it.

Alternatively/additionally, is it possible to only display buttons or links in the members area that are only available to those that are at the defined level or above?

Statistics: Posted by bradjbarton — December 6th, 2011, 12:17 pm


]]>