FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Display user names in profiles
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Display user names in profiles [message #16260 is a reply to message #16234] Fri, 23 January 2004 22:55 Go to previous messageGo to previous message
Wild_Cat is currently offline  Wild_Cat   Ukraine
Messages: 144
Registered: November 2002
Location: Odessa, Ukraine
Karma:
Senior Member
I were wondering about this myself.
Since Ilia said the name is intended only for the admin in his vision, I can tell that this should be a hack - with source code modification. I haven't done this yet on my forum but that's a good occasion to do so:

You should modify the $DATA_DIR/src/usrinfo.php.t as following:
you have a set of similar short lines (121-130 for 2.6.0) like
$location = $u->location ? '{TEMPLATE: location}' : '';
add a line at the top of this block
$user_name	= $u->name ? '{TEMPLATE: user_name}' : '';


Then you should modify $DATA_DIR/thm/default/trml/usrinfo.tmpl (or whatever theme you use in place of deafult) as following:
add the above mentioned TEMPLATE SECTION anywhere in upper part of the file between {SECTION: END} and next {SECTION: user_image} e.g. as following:
{SECTION: user_name}
<tr class="{ALT-VAR: search_alt RowStyleA RowStyleB}"><td nowrap class="GenText">{MSG: register_name}</td><td 
class="GenText">{VAR: u->name}</td></tr>
{SECTION: END}

Then find the {PAGE_USERINFO line (186 for now)
scroll down to a start of a set of lines beginning with {TEMPLATE-DATA:
at the top of this block of similar lines add a line that will display the user_name actually
{TEMPLATE-DATA: user_name}


Now you're done, all the users can see each other names (if they entered it - it's not a required field in this forum normally).

I guess this thread should really be in hacks and let's hope moderators will move it there.


Lady of Avalon
[Message index]
 
Read Message
Read Message
Read Message icon6.gif
Previous Topic: Question about Referrals
Next Topic: Allow anonimous to recognize whether there are new posts?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 14:53:47 GMT 2024

Total time taken to generate the page: 0.07475 seconds