PDA

View Full Version : [HOW] Use a display name instead of a username



IDN
Wed 1st May '02, 12:09am
Well over at vb.org someone asked how to have a display name like UBB, so i came up with this idea..

==============================================
this will put the display name in the place of a username


create a new custom profile feild named display name, desc "This will show up instead of your username" and make it hidden - required - and editable


now go to ACP > Templates > Modify > Extend > Postbit templates > Postbit


now replace


<normalfont><b>$post[username]</b></normalfont><br>


with


<normalfont><!-- <b>$post[username]</b></normalfont><br> --><b>$userinfo[field7]</b><br>


and replace 7 with your custom profile feild number


just take out the <!-- --> if you want both to be displayed and change


<b>$userinfo[field7]</b><br>


with


<i>$userinfo[field7]</i><br>



all done! any commenst would be nice

eva2000
Wed 1st May '02, 4:53am
interesting :)

Arsenik
Wed 1st May '02, 11:50am
Wont that confuse the members? You give them the option to change their title (display name) and not show the username but when posting isnt the username going to show in "last posted by" and so on? Also you risk off having many people with the same custom title (display name) making it easy to confuse members. I understand showing the Username and the Custom title (you call it display name) at the same time but only showing the title i dont know...

If you want your user to be able to change their title and still see their username (or just comment out the username if that is what you want) just enable Custom titles and your members will be happy. I have a hard time understanding whats the goal behind this tip. Why would people not want to see the username and only see a custom title (you call it a display name) Could you explain to me what was wanted by the people who asked for this.

Thanks

IDN
Wed 1st May '02, 3:03pm
well, im not using this. someone requested it so i thought i'd share it

Bad Bunny
Fri 10th May '02, 1:13pm
YaBB had a display name you could change. And I think it was done like this, because to PM the person, you had to get their real username.

Floris
Wed 15th May '02, 9:19pm
Nice template mod :)