vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   User Display Name Hack (https://vborg.vbsupport.ru/showthread.php?t=40428)

Foxtroter 07-20-2002 02:12 PM

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

BigJohnson 07-21-2002 05:55 AM

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.

Chris M 07-22-2002 08:00 PM

Just saying everywhere wont help him...

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

Satan

Foxtroter 07-22-2002 08:50 PM

Yeh exactly, thanks satan

BigJohnson 07-26-2002 10:05 AM

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.

Chris M 08-29-2002 08:04 PM

Sounds like a great idea;)

Satan

chad777 09-02-2002 10:08 PM

I add it i get this error:

Database error in vBulletin 2.2.6:

Invalid SQL: SELECT userfield.userid,userfield.field7,moderator.forumi d
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.forumi d
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

Foxtroter 09-14-2002 01:55 AM

$forummoderators=$DB_site->query('SELECT userfield.userid,userfield.fieldX,moderator.forumi d

change fieldX to your username display field

DraX 09-23-2002 02:13 AM

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.

blackice912 09-23-2002 04:57 AM

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...


All times are GMT. The time now is 06:14 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01023 seconds
  • Memory Usage 1,730KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete