Community Support Forums — WordPress® ( Users Helping Users ) — 2011-04-24T15:35:51-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=3081 2011-04-24T15:35:51-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3081&p=13265#p13265 <![CDATA[Re: Changing Name Displayed Publicly]]>
thanks for the response, it didn't work like id like it to.
Still displaying the first names.

but i will try and figure it out.

Thanks again!

Statistics: Posted by ProCody_Rookie_coding — April 24th, 2011, 3:35 pm


]]>
2011-04-23T06:36:36-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3081&p=13212#p13212 <![CDATA[Re: Changing Name Displayed Publicly]]>
Just note that I think you have to change it in three places in the file (lines 410, 552 and 669 in my file). And also, my changes were overwritten when I updated with the last s2member update, so you'll have to remember to re-upload your new file manually after any plugin updates.

Code:
if (!$user->first_name && $fname)
                                 update_user_meta ($user_id, "first_name", $fname) ./**/
                                 wp_update_user (array ("ID" => $user_id, "display_name" => $fname . " " . $lname));

Statistics: Posted by amgregory — April 23rd, 2011, 6:36 am


]]>
2011-04-22T21:54:31-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3081&p=13198#p13198 <![CDATA[Re: Changing Name Displayed Publicly]]>
I am trying to solve this same problem on my s2 site. However I want the default display name
to be the username given at registration.

(also I am using free membership, so I guess these would be subscriber names...idk if this is important in the code)
'
This is what I have in my regstrations.inc.php

Code:
if (!$user->first_name && $fname){
                                 update_user_meta ($user_id, "display_name", $subscr_id);
                                 wp_update_user (array ("ID" => $user_id, "display_name" => $subscr_id));
                              }


Any help is appreciated!

Statistics: Posted by ProCody_Rookie_coding — April 22nd, 2011, 9:54 pm


]]>
2011-04-13T10:40:22-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3081&p=9677#p9677 <![CDATA[Re: Changing Name Displayed Publicly]]> Statistics: Posted by amgregory — April 13th, 2011, 10:40 am


]]>
2011-04-12T17:37:50-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3081&p=9594#p9594 <![CDATA[Re: Changing Name Displayed Publicly]]> Thanks for your inquiry.

s2Member sets a User's Display Name to the First Name during paid registration. This, along with some other minor issues related to BuddyPress Profiles vs. s2Member Profiles still need to get worked out. We're working on these in the development release, so they should be resolved soon.

In the mean time, if you know some PHP and would like to tweak things yourself, run a search for ( "display_name" ) inside this file: /s2member/includes/classes/registrations.inc.php.

Statistics: Posted by Jason Caldwell — April 12th, 2011, 5:37 pm


]]>
2011-04-11T08:07:20-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3081&p=9473#p9473 <![CDATA[Changing Name Displayed Publicly]]>
Does anyone know if there's a way to tweak this from the s2Member side? Or would I have to do this from BuddyPress? I can't find a way to make the tweak either way.

Statistics: Posted by amgregory — April 11th, 2011, 8:07 am


]]>