vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Hack to display alternate text (name) for logname. (https://vborg.vbsupport.ru/showthread.php?t=27087)

hwitten 09-01-2001 06:05 PM

I'd like to set up my 2.0.3 vB to give the registered user an optional text field that (if not blank) is displayed wherever the logname is normally displayed.

I.e. my logname is hwitten but I'd like to display Heinz.
Hello Heinz in emails is much friendlier than Hello hwitten :-)

Anyone done it? Anyone want to do it? Can it be done (reasonably easy/reasonable cost)?

Heinz

ozone2000 09-02-2001 10:12 AM

i too would like this hack, and i think it is done, because i think i have seen something like:

Username: <you vbb username>
Screen name: <your prefered name on the screen>
password...
... etc

can this be done, or is it already done?

Admin 09-02-2001 10:21 AM

You can just add a custom field, and use it for the Screen Name.
If you want to use that field for the emails, you would have to change email_notify template, and replace $touser[username] with $touser[field5] but change 5 to the ID of the custom field you added.
To use this new screen name on the posts, replace $post[username] with $post[field5], and again, change the ID.

hwitten 09-02-2001 03:40 PM

By custom field I assume you mean add a field to the user table in mySQL?

Or alternatively use one of the icq,aim,yahoo fields as a screen name field?

Thanks very much for pointing out where/what the required changes need to be made. I think I can handle that ok.

Heinz

Admin 09-02-2001 03:47 PM

No problem. :)

You can add custom fields in your admin cp - User profile fields => Add.

hwitten 09-02-2001 04:07 PM

You've just opened the floodgates for me.

Thank you VERY much. And thanks to the vB crew for thinking flexibility duirng design :-)

Heinz

Admin 09-02-2001 04:38 PM

No problem. :)


All times are GMT. The time now is 03:49 PM.

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.01703 seconds
  • Memory Usage 1,714KB
  • 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)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