Page 1 of 1

Member Profile Page

PostPosted: May 18th, 2011, 11:49 pm
by CrownOfMars
First of all i want to apologise for coming here everyday and making a new post haha. I really do spend hours trying to work it out myself before coming here!

Basically, i'm using bbPress/s2Member together. I'm wanting to use the bbPress Profile pages to display the s2member profile details.

bbPress uses http://domain.com/forums/users/ as the profile page. So inside s2Member in the General Options > Login Welcome Page section i've entered the following redirection URL: http://domain.com/spa/forums/users/%%current_user_id%% and it works perfectly.

I've also modified the bbPress profile edit page (http://domain.com/forums/users/edit) to include the [s2Member-Profile /] shortcode so they can edit their profiles.

The problem:

I'm wanting to display the content in the [s2Member-Profile /] shortcode to the public on the http://domain.com/forums/users/ page, so each user has their own profile page with details such as their first name, last name etc, viewable to the public. I'm just not sure how i go about this.

Within the bbPress Profile template, i've added the following:

Code: Select all
<div><?php echo S2MEMBER_CURRENT_USER_DISPLAY_NAME; ?></div>
<div><?php echo S2MEMBER_CURRENT_USER_LAST_NAME; ?></div>
<div><?php echo S2MEMBER_CURRENT_USER_FIRST_NAME; ?></div>
<div><?php echo S2MEMBER_CURRENT_USER_EMAIL; ?></div>


But, obviously, this only echo's the details on the user thats currently logged in, not the details associated to the user profile on the page. Is there a way i can target those codes in order for them to display the details based on the user-id of the page? I hope that makes sense.

In example is here: http://stephenjohnmartin.com/spa/forums/users/1/

I'd like show the users details to the public under the Profile: admin section.

Sorry for bothering you again!

Re: Member Profile Page

PostPosted: May 19th, 2011, 12:38 pm
by Cristián Lávaque