Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
User Display Name Hack Details »
User Display Name Hack
Mod Version: 1.00, by Foxtroter (Member) Foxtroter is offline
Developer Last Online: Apr 2010 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.2.x Rating: (0 vote - 0 average) Installs: 4
Released: 29 Jun 2002 Last Update: Never Downloads: 32
Not Supported Is in Beta Stage  

User Display Name Hack v0.2
-Updated HTML file

User Display Name Hack v0.1
-Release

Hello this is my first hack so don't really have much to say but here it goes:

This hack will allow for a user to enter their display name to use in the forum instead of the default username. It requires a display name profile field to be created, if there is not a display name field then nothing will be displayed. This hack fixes it so that the normal Username display is replaced withthe new userdisplay field name all over the forum. This has been tested and it works. I will only offer support in the vbulletin.org hacking forum for this hack. Teh amount for support I can provide is limited as I have a very busy schedule right now and just put this hack together.

If you see another place that the userdisplayname should be used just post it here and I will see if I can add it in sometime.

I think that is basically it.

If you could all test it out for me and tell me if it works for you then that would be a great help

Screenshots

My username for my board is Foxtroter but with the display name hack it shows ->SOF<-Foxtroter-|CSN|- as shown below

Welcome panel on forumhome


Whos Online


Last Post


Thread Starter


Currently Active Users:

Thanks,
Foxtroter

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Miscellaneous Hacks Preferred Name (Display Name) Hex_legend vBulletin 3.6 Template Modifications 21 22 Feb 2009 20:24

  #16  
Old 17 Jul 2002, 13:36
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
O. Because I was looking for a hack like when you register you have a display name and a login name. And then you use your login name to login and the display name for everyone to see on the board.
Reply With Quote
  #17  
Old 17 Jul 2002, 13:39
Foxtroter Foxtroter is offline
 
Join Date: May 2002
thats what it does
Reply With Quote
  #18  
Old 17 Jul 2002, 14:18
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
Does it allow you to do it when you register?
Like add your display name there also? Like for an option if you want to use it.
Reply With Quote
  #19  
Old 17 Jul 2002, 14:57
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
I get this error after installing it. Do you no why. I dont no what to do and i wanted this hack so badly.

Database error in vBulletin 2.2.5:

Invalid SQL: SELECT userfield.userid,userfield.field9,moderator.forumid
FROM moderator
LEFT JOIN userfield
ON (moderator.userid=userfield.userid)
ORDER BY user.field9
mysql error: Unknown table 'user' in order clause

mysql error number: 1109
Reply With Quote
  #20  
Old 17 Jul 2002, 15:09
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
I installed it and i see that it works perfectly now. I fixed it. But How can I make it so it shows my display name everywhere. I mean EVERYWHERE. I dont want the login name being shown for my showthread and stuff. How would i go ahead for doing something like this? Please help.
Reply With Quote
  #21  
Old 20 Jul 2002, 15:12
Foxtroter Foxtroter is offline
 
Join Date: May 2002
could u tell me how ya fixed, and also could ya give me a list of everywhere you want it to be displayed in a PM to me? Ill see what i can do
Reply With Quote
  #22  
Old 21 Jul 2002, 06:55
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
Well I mean everywhere. AS IN EVERYWHERE. I just want the display name to be displayed and the login name to be the login. I dont want the login showing up anywhere on the forums at all for other members to see.
Reply With Quote
  #23  
Old 22 Jul 2002, 21:00
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Real name: Chris Murphy, BSc
Just saying everywhere wont help him...

He needs a list of the places that he hasnt covered yet...

Satan
Reply With Quote
  #24  
Old 22 Jul 2002, 21:50
Foxtroter Foxtroter is offline
 
Join Date: May 2002
Yeh exactly, thanks satan
Reply With Quote
  #25  
Old 26 Jul 2002, 11:05
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
Like the showthread. even in the Last Post column on the forum home. Everywhere you see the persons name show up can it be changed.

I was thinking wouldnt it be easier if the names on all part of the board were the display name? And you just change the login name to make it a log in name. I think that would be easier. What do you think.
Reply With Quote
  #26  
Old 29 Aug 2002, 21:04
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Real name: Chris Murphy, BSc
Sounds like a great idea

Satan
Reply With Quote
  #27  
Old 02 Sep 2002, 23:08
chad777 chad777 is offline
 
Join Date: May 2002
Having a problem :(

I add it i get this error:

Database error in vBulletin 2.2.6:

Invalid SQL: SELECT userfield.userid,userfield.field7,moderator.forumid
FROM moderator
LEFT JOIN userfield
ON (moderator.userid=userfield.userid)
ORDER BY user.field7
mysql error: Unknown table 'user' in order clause

mysql error number: 1109

When I try to add:

$mod = array();
$forummoderators=$DB_site->query('SELECT userfield.userid,userfield.fieldX,moderator.forumid
FROM moderator
LEFT JOIN userfield
ON (moderator.userid=userfield.userid)
ORDER BY user.fieldX');
while ($moderator=$DB_site->fetch_array($forummoderators)) {
$imodcache["$moderator[forumid]"][] = $moderator;
$mod["$moderator[userid]"] = 1;
}

and on the forum home where it says posted by: username
It now only says "by"

and in the whos online box it has 2 of me
one with no name and one with display name



I hope I added this right i know I followed th direction good except what I posted above

Also is there a way to make the display name show up for the following?

1. in profile
2. private messages (regular private message and the private message box at the buttom of forum home)
3. in number of active users today
4. for thread starter
5. in messages posted

That is all i can see as of now, but i would like the display name to be everywhere the login name usally is on the forum.

This way on the user knows there login and everyone else thinks the display name is the login ?

Thanks and btw nice hack

Last edited by chad777; 02 Sep 2002 at 23:44.
Reply With Quote
  #28  
Old 14 Sep 2002, 02:55
Foxtroter Foxtroter is offline
 
Join Date: May 2002
$forummoderators=$DB_site->query('SELECT userfield.userid,userfield.fieldX,moderator.forumid


change fieldX to your username display field
Reply With Quote
  #29  
Old 23 Sep 2002, 03:13
DraX DraX is offline
 
Join Date: Aug 2002
Real name: Ron DeFreitas
These is a pretty good idea... one I already had and started working on... LOL.

I've already ensured that in mine, the DisplayedName is not required.... working just like the Displayed Name in UBB.

When I put out the hack, feel free to take a look at the code and see how I did it.

My Hack actually makes a new field in the USER table of the database... allowing me to, with some template modification, put the Displayed Name field EXACTLY where it is in UBB on the Profile/Options pages. You might want to try that.
Reply With Quote
  #30  
Old 23 Sep 2002, 05:57
blackice912's Avatar
blackice912 blackice912 is offline
 
Join Date: Jun 2002
Real name: Brad
Seems like a neat script...

For the problem about nothing displaying if the field is empty....

Couldn't you just do something like if $fieldID = NULL then display the username?

Also:

What about the problem of two people choosing the same display name? I'm guessing right now two people can choose the same display name...
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 08:18.

Layout Options | Width: Wide Color: