Community Support Forums — WordPress® ( Users Helping Users ) — 2011-03-15T14:58:11-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=2631 2011-03-15T14:58:11-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2631&p=7874#p7874 <![CDATA[Re: redirect logged in users]]> Thanks for the follow-up. You're very welcome!
gvdsleen wrote:
Hi Jason,

GREAT! thanks for the update, is working like a charm now!


In the current version of s2Member Pro ( at this time: v1.5.2 ), those %%current_user_xxxx%% Replacement Codes are not supported by that field in the widget panel. I'm having this updated for you in the release of s2Member Pro v1.5.3+.
This was implemented in the release of s2Member Pro v1.5.3+.

Statistics: Posted by Jason Caldwell — March 15th, 2011, 2:58 pm


]]>
2011-03-15T08:06:47-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2631&p=7852#p7852 <![CDATA[Re: redirect logged in users]]>
GREAT! thanks for the update, is working like a charm now!

Statistics: Posted by gvdsleen — March 15th, 2011, 8:06 am


]]>
2011-03-10T16:33:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2631&p=7696#p7696 <![CDATA[Re: redirect logged in users]]>
Vinnyo wrote:
This is exactly the same problem I am having.

Which file did you edit and input the code you mentioned


Thanks
Vince

As I created myself the login form, I knew where to search :-)

Statistics: Posted by camillemm — March 10th, 2011, 4:33 pm


]]>
2011-03-10T16:23:25-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2631&p=7695#p7695 <![CDATA[Re: redirect logged in users]]>
You can try deactivating the other plugins one by one until you see this change in your login form, then you'll know which one is doing it.

Or you can view the HTML source code of your login page and find the hidden redirection field. Copy it and search your WordPress source files, and its plugins', to see if you find which one is adding it.

Statistics: Posted by Cristián Lávaque — March 10th, 2011, 4:23 pm


]]>
2011-03-10T16:09:11-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2631&p=7692#p7692 <![CDATA[Re: redirect logged in users]]>
Which file did you edit and input the code you mentioned


Thanks
Vince

Statistics: Posted by Vinnyo — March 10th, 2011, 4:09 pm


]]>
2011-03-10T04:49:20-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2631&p=7636#p7636 <![CDATA[Re: redirect logged in users]]> Thanks for the excellent question.
gvdsleen wrote:
Issue was in using the sidebar login widget. Have upgraded to pro and am now using the S2member widget.

However, I would like to change the link to the profile page from a pop-up to the Buddypress profile page.

Changing the edit profile link in the widget does not seem to work. Changed it to the URL:

http://www.mysite.com/members/%%current_user_login%%/profile.

Suggestions?

Couple of things on this topic.
1. If you are using the s2Clean theme, please remember that s2Clean comes with two variations of your Sidebar and Footbar. So perhaps you are editing the one for public view ( i.e. the default Sidebar ), and actually testing while logged-in ( i.e. you might be seeing the other variation ). In other words, you have to edit both Sidebar/Widget variations if you're doing it this way with the s2Clean theme.

2. In the current version of s2Member Pro ( at this time: v1.5.2 ), those %%current_user_xxxx%% Replacement Codes are not supported by that field in the widget panel. I'm having this updated for you in the release of s2Member Pro v1.5.3+.

Statistics: Posted by Jason Caldwell — March 10th, 2011, 4:49 am


]]>
2011-03-10T04:39:07-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2631&p=7635#p7635 <![CDATA[Re: redirect logged in users]]>
I selected for redirection http://www.mysite.com/%%current_user_login%%
I put a login code like this

Code:
<<?php if (!(current_user_can('level_0'))){ ?>
<h2>Login</h2>
<form action="<?php echo get_option('home'); ?>/wp-login.php" method="post">
<input type="text" name="log" id="log" value="<?php echo wp_specialchars(stripslashes($user_login), 1) ?>" size="20" />
<input type="password" name="pwd" id="pwd" size="20" />
<input type="submit" name="submit" value="Send" class="button" />
    <p>
       <label for="rememberme"><input name="rememberme" id="rememberme" type="checkbox" checked="checked" value="forever" /> Remember me</label>
       <input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>" />
    </p>
</form>
<a href="<?php echo get_option('home'); ?>/wp-login.php?action=lostpassword">Recover password</a>
<?php } else { ?>
<h2>Logout</h2>
<a href="<?php echo wp_logout_url(urlencode($_SERVER['REQUEST_URI'])); ?>">logout</a><br />
<a href="http://XXX/wp-admin/">admin</a>
<?php }?>


It worked nice until WP 3.04. So I looked on this forum and searched for login codes but nothing worked nice. So I used redirection plugins (Peter's Login redirection) but with WP 3.05 even these plugins stopped to work in conjunction with S2member.
At last, I changed the hidden redirection with

Code:
<input type="hidden" name="redirect_to" value="<?php global $current_user;
      get_currentuserinfo();
     echo $current_user->user_login;

?>" />

and I managed to redirect people to their page. The last thing I did is to delete this hidden redirection and it seems to work with S2member feature.

Statistics: Posted by camillemm — March 10th, 2011, 4:39 am


]]>
2011-03-10T03:38:16-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2631&p=7634#p7634 <![CDATA[Re: redirect logged in users]]>
Where was that hidden redirect? Just curious.

Statistics: Posted by Cristián Lávaque — March 10th, 2011, 3:38 am


]]>
2011-03-10T02:46:10-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2631&p=7633#p7633 <![CDATA[Re: redirect logged in users]]>

Statistics: Posted by camillemm — March 10th, 2011, 2:46 am


]]>
2011-03-09T18:18:28-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2631&p=7603#p7603 <![CDATA[Re: redirect logged in users]]>
camillemm wrote:
No, just a simple redirection after login on a regular blog. I found a solution but not very "clean".

Did s2Member's post-login redirection not work for you?

WP Admin -> s2Member -> General Options -> Login Welcome Page

Statistics: Posted by Cristián Lávaque — March 9th, 2011, 6:18 pm


]]>
2011-03-09T16:36:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2631&p=7601#p7601 <![CDATA[Re: redirect logged in users]]> Statistics: Posted by camillemm — March 9th, 2011, 4:36 pm


]]>
2011-03-09T14:09:51-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2631&p=7597#p7597 <![CDATA[Re: redirect logged in users]]> Statistics: Posted by gvdsleen — March 9th, 2011, 2:09 pm


]]>
2011-03-09T11:29:40-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2631&p=7591#p7591 <![CDATA[Re: redirect logged in users]]> Statistics: Posted by camillemm — March 9th, 2011, 11:29 am


]]>
2011-03-09T11:21:44-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2631&p=7589#p7589 <![CDATA[Re: redirect logged in users]]>
gvdsleen wrote:
Issue was in using the sidebar login widget. Have upgraded to pro and am now using the S2member widget.

That's good to know in case someone else has the same problem. Thanks!

Statistics: Posted by Cristián Lávaque — March 9th, 2011, 11:21 am


]]>
2011-03-09T10:16:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2631&p=7585#p7585 <![CDATA[Re: redirect logged in users]]> Statistics: Posted by mctwisty — March 9th, 2011, 10:16 am


]]>
2011-03-09T04:46:46-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2631&p=7571#p7571 <![CDATA[Re: redirect logged in users]]>
However, I would like to change the link to the profile page from a pop-up to the Buddypress profile page.

Changing the edit profile link in the widget does not seem to work. Changed it to the URL:

http://www.mysite.com/members/%%current_user_login%%/profile.

Suggestions?

Statistics: Posted by gvdsleen — March 9th, 2011, 4:46 am


]]>
2011-03-09T00:26:28-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2631&p=7564#p7564 <![CDATA[Re: redirect logged in users]]> /page-%%current_user_level%% or a full URL starting with http://?

It should be the latter. :)

Statistics: Posted by Cristián Lávaque — March 9th, 2011, 12:26 am


]]>
2011-03-08T15:24:06-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2631&p=7527#p7527 <![CDATA[redirect logged in users]]>
Have done everything I can think off, including disabling all plugins and roll-back to previous version. Am i missing something? Tips to solve this?

Statistics: Posted by gvdsleen — March 8th, 2011, 3:24 pm


]]>