Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
  #1  
Old 10-10-2011, 06:48 PM
mikeee mikeee is offline
 
Join Date: Dec 2002
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Real Name everywhere possible?

I added a new field for real names. Is there a way to display that instead of username? Im not looking to make it an option, just force real names.
Reply With Quote
  #2  
Old 10-11-2011, 06:56 AM
Sage Knight Sage Knight is offline
 
Join Date: Apr 2011
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hm, you can make a mandatory profile field & edit the templates to hide the username on the postbit and just move the profile field above the avatar (legacy postbit)
Reply With Quote
  #3  
Old 10-12-2011, 10:37 PM
mikeee mikeee is offline
 
Join Date: Dec 2002
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks. I have the custom field already, and they're required and filled out. column name is fullname in table user. But When I edit templates, its not recognizing that column on all pages. I can get postbit to do it, but not the welcome message or who's online or PM.

--------------- Added [DATE]1318463134[/DATE] at [TIME]1318463134[/TIME] ---------------

Actually, maybe an easier solution would be to be able to login using another field other than username.
Reply With Quote
  #4  
Old 10-12-2011, 11:11 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mikeee View Post
... I can get postbit to do it, but not the welcome message or who's online or PM.
I added a fullname column to my user table and changed bbuserinfo.username to bbuserinfo.fullname in the header template, and I got it to show up in the welcome message. Is that different than what you did?



Quote:
Actually, maybe an easier solution would be to be able to login using another field other than username.

You might be able to do that, but the pages would still be displaying the user name.
Reply With Quote
  #5  
Old 10-13-2011, 03:00 AM
mikeee mikeee is offline
 
Join Date: Dec 2002
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
I added a fullname column to my user table and changed bbuserinfo.username to bbuserinfo.fullname in the header template, and I got it to show up in the welcome message. Is that different than what you did?






You might be able to do that, but the pages would still be displaying the user name.
the header worked and displayed fullname, however, the rest of the pages only show the username. I searched in templates for bbuserinfo.username, and it didnt come up with all the pages that display the username, such as postit, PM search, etc...

If I could login with fullname, then I can run a query to switch all usernames with fullnames and then let VB display the fullname. I just want them to login with their initials, which is how I had it setup at registration.

--------------- Added [DATE]1318478705[/DATE] at [TIME]1318478705[/TIME] ---------------

In whosOnlineBit - it shos userinfo.musername (notice the M username), what value do I change it to in order to display fullname?
Reply With Quote
  #6  
Old 10-13-2011, 03:53 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mikeee View Post
If I could login with fullname, then I can run a query to switch all usernames with fullnames and then let VB display the fullname. I just want them to login with their initials, which is how I had it setup at registration.
If you could switch username with fullname, the fullname would become the username and it would be displayed and used to login in and you wouldn't have to change anything (and username would then be unused I guess). But I don't know if that would work or not - I don't know if the username is used anywhere else in the database. And you would have a problem if two people had the same real name.


Quote:
In whosOnlineBit - it shos userinfo.musername (notice the M username), what value do I change it to in order to display fullname?

I'm pretty sure musername always comes from the function fetch_musername, and you can create a plugin to modify that value. Use hook fetch_musername and code like this:

Code:
if ($usernamefield == 'username')
    $user['musername'] = $vbulletin->usergroupcache["$displaygroupid"]['opentag'] . $user['fullname'] . $vbulletin->usergroupcache["$displaygroupid"]['closetag'];

(but I haven't actually tried it).
Reply With Quote
  #7  
Old 10-14-2011, 02:12 AM
mikeee mikeee is offline
 
Join Date: Dec 2002
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

that worked for postbit but made names disapear in whosonline.

how do I get login to work with fullname (custom column) rather than username? That would solve all my issues. And thank you for all your help. Much appreciated!

I came across this, do you think this can be modified to use the fullname field instead of the email field?

https://vborg.vbsupport.ru/showthrea...ht=login+email

--------------- Added [DATE]1318647411[/DATE] at [TIME]1318647411[/TIME] ---------------

anyone know if it's possible to login with any other field other than username?
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump


All times are GMT. The time now is 07:46 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04345 seconds
  • Memory Usage 2,218KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete