PriMoThemes — now s2Member® (official notice)
This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™
gvdsleen wrote:Issue was in using the sidebar login widget. Have upgraded to pro and am now using the S2member widget.
camillemm wrote:No, just a simple redirection after login on a regular blog. I found a solution but not very "clean".
<<?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 }?>
<input type="hidden" name="redirect_to" value="<?php global $current_user;
get_currentuserinfo();
echo $current_user->user_login;
?>" />
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?
Vinnyo wrote:This is exactly the same problem I am having.
Which file did you edit and input the code you mentioned
Thanks
Vince
gvdsleen wrote:Hi Jason,
GREAT! thanks for the update, is working like a charm now!
This was implemented in the release of s2Member Pro v1.5.3+.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+.
Users browsing this forum: Yahoo [Bot] and 3 guests