vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Real Name everywhere possible? (https://vborg.vbsupport.ru/showthread.php?t=271793)

mikeee 10-10-2011 06:48 PM

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.

Sage Knight 10-11-2011 06:56 AM

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)

mikeee 10-12-2011 10:37 PM

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.

kh99 10-12-2011 11:11 PM

Quote:

Originally Posted by mikeee (Post 2256514)
... 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.

mikeee 10-13-2011 03:00 AM

Quote:

Originally Posted by kh99 (Post 2256528)
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?

kh99 10-13-2011 03:53 AM

Quote:

Originally Posted by mikeee (Post 2256612)
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).

mikeee 10-14-2011 02:12 AM

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?


All times are GMT. The time now is 05:33 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.01074 seconds
  • Memory Usage 1,732KB
  • 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)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete