Welcome Page and BuddyPress Edit My Profile

Hello. I have S2Member Pro with Buddypress. The Login Welcome Page is set to a page (Getting Started). Redirection is working just fine.

After the user hits the Getting Started page, clicking the Edit My Profile option under the BuddyPress bar does nothing. However, clicking on Profile > Edit does work.

My goal is to create a Getting Started page and one of the options is a button (Edit My Profile), that links directly to BuddyPress > Edit My Profile.

Thank you,
Ryan

I’m not clear what you’re asking here. Why can’t you just create a button with a hyperlink to the relevant URL?

That’s exactly what I’m trying to do. Whether I go to the Edit My Profile link (BuddyPress) or create a button to directly go to the Edit My Profile, it keeps rdirecting to whatever page is specified under Login Welcome Page (S2 Member).

I created a button with /members/%%current_user_login%%/. Clicking on the button goes to whatever is specified under Login Welcome Page.

Here is a short video showing what happens.

That URL is redirecting exactly where you’re asking it to!

This is the correct hyperlink for what you want:

/members/%%current_user_nicename%%/profile/

It’s explained clearly in General Options -> Login Welcome Page -> Replacement Codes

If it was doing what I wanted, I wouldn’t have posted a support request.

All of my issues are still present, even after your recommended changes.

Also, your comments have been borderline rude on the few support topics I’ve opened. I attempt a ton of support on my own before bothering you guys.

Thanks,
Ryan

There’s your problem. You are acting as though you are opening support tickets and are somehow entitled. You are wrong on both counts. This is a community forum, and those answering here are almost always just fellow users of the software.

Glad to hear it.

As to the Special Redirection URL, you don’t place that directly into your browser. It needs to be decoded first, which is designed to happen if you place it in the Special Redirection URL box for the Login Welcome Page.

Killing this post. There is a major disconnect and I need to see what options are available for a better community experience on here.

You don’t insult people within a community. I’ve actually never heard of people doing that without being banned. Crazy.

@accuritpresence In the short video you posted (thank you for that), I noticed the invalid request was the result of clicking on a button leading to a URL that contains %%current_user_nicename%%. Did you hard-code that yourself? How is that link being generated?

Note that %%current_user_nicename%% is accepted by s2Member when configuring a Special Redirection URL. However, it doesn’t work when linking to other pages manually. In short, that’s a replacement code, which s2Member replaces with the current user’s ‘nicename’ in WordPress. This is replaced automatically by s2Member whenever a user logs in and is being redirected to the Special Redirection URL.

Outside of the Special Redirection URL config option in s2Member, if you want to inject that value on your own, you can do so in PHP code, as follows:

<?php
$user = wp_get_current_user();
echo '<a href="/members/'.urlencode($user->user_nicename).'/profile/">click here</a>';
?>