Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Getting User Registration Data From S2Member To Show Up In Simple:Press
Avatar
Justin Buehler
Member
Free Members
sp_UserOfflineSmall Offline
Apr 6, 2012 - 6:21 pm

No, I didn't have a semi-colon. When I added it, the error message went away, but the data is still not showing up. frown

 

Am I putting the tag in the right place on the spProfile.php template?

 

# show profile info

            sp_ColumnStart('tagClass=spProfileShowInfoSection spRight&width=65%', 'profileInfo');
                sp_ProfileShowDisplayName('', __sp('Username'));
                sp_ProfileShowFirstName('', __sp('First Name'));
                sp_ProfileShowLastName('', __sp('Last Name'));
                sp_ProfileShowLocation('', __sp('Location'));
                sp_ProfileShowWebsite('', __sp('Website'));
                sp_ProfileShowBio('', __sp('Bio'));

do_shortcode('[s2Get constant="S2MEMBER_CURRENT_USER_EMAIL" /]');

            sp_ColumnEnd('', 'profileInfo');
        sp_SectionEnd('tagClass=spClear', 'profileBasic');

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 6, 2012 - 6:29 pm

well, now you are running into needing to know what s2 member is doing...  going to be hard to help without knowing s2 member...

but yes, that location is fine...

maybe that shortcode only returns data...  so you could try:

echo do_shortcode('[s2Get constant="S2MEMBER_CURRENT_USER_EMAIL" /]');
Avatar
Justin Buehler
Member
Free Members
sp_UserOfflineSmall Offline
Apr 10, 2012 - 9:19 am

Hi Mr. Papa:

 

I added the "echo" in front of "do_shortcode('[s2Get constant="S2MEMBER_CURRENT_USER_EMAIL" /]');" and that worked. The profile field from S2member is now showing up in the profile section of Simple:Press.

 

The problem now is the shortcode is showing the "current user's" data for ALL of the users. I want to have each user's data from S2member show up in their individual Simple:Press profile.

 

Is there a way to do this?

 

Thanks.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 10, 2012 - 9:25 am

You will need to ask the S2member team if they have a similar shortcode or tag that can have a user id passed so that it returns that users data...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Justin Buehler
Member
Free Members
sp_UserOfflineSmall Offline
Apr 10, 2012 - 12:10 pm

Thanks. 🙂

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 10, 2012 - 8:29 pm

np... think you have the recipe now, just need the s2member api info...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625