vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   [HOW] Use a display name instead of a username (https://vborg.vbsupport.ru/showthread.php?t=182712)

ammoskumar 06-17-2008 05:04 AM

[HOW] Use a display name instead of a username
 
is there any hack or any way i can make this happen.... so user can change their display name when they want instead of user name.....

if they want to show choose their desire custom name instead of user name so it can show in the postbit instead of their actual suer name....

like this hack but its for version 2 so i m not sure this will work or not..... can someone please guide me...

https://vborg.vbsupport.ru/showthread.php?t=40428

Dismounted 06-17-2008 07:36 AM

Create a new profile field, and replace all instances of (in templates):
Code:

$bbuserinfo[username]
$post[username]
$prepared[username]

With:
Code:

$bbuserinfo[fieldX]
$post[fieldX]
$prepared[fieldX]

Where "X" in "fieldX" is the profile field's ID (given in the profile field manager).

ammoskumar 06-17-2008 05:46 PM

umm bit confused which templates ?

Dismounted 06-18-2008 07:23 AM

All templates. Search & replace in ALL templates.

ammoskumar 06-18-2008 08:03 PM

i did but my user name still display when i make thread and in the chatbox.... it changes only on right upper corner... where u can see the new message and name.. i want it to change instead of showing user name their choose name...

King Kovifor 06-18-2008 09:26 PM

There was an "Alias" mod around here somewhere. Do a search for "Alias".


All times are GMT. The time now is 10:40 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.01080 seconds
  • Memory Usage 1,718KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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