Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 11-19-2002, 09:25 PM
bast's Avatar
bast bast is offline
 
Join Date: Jan 2002
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default username display request

I've looked around quite a bit and have been unable to find anything like this, but if I have overlooked it, sorry in advance.

On one of the newer versions of UBB, there is an option for a 'displayname'. You have your username that you registered with that is unchangeable, but you can select a display name that you can change on the fly.

I really don't want a hack where people can change their actual login name, becuase it gets confusing...and so something more temporary might be the solution for all my members who keep asking for name changes.

Is it possible?
Reply With Quote
  #2  
Old 11-19-2002, 09:30 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very easy to do without hacking.

Go to Admin CP.

Make a new custom user profile field. Call it "Display Username".

Make it editable by member, but not show up in user profile.

Put your mouse over the link to edit it and look at the number at the end of the URL - that is the custom user profile id - remember it (it is NOT the same as the order number).

Go to your postbit template.

Add $post[fieldx] underneath $post[username] (x being the custom profile id number).

Go to your getinfo template.

Add $userinfo[fieldx] underneath $userinfo[username] (x being the custom profile id number).

Your members can now edit "Display Username" in their profile which will show up in their posts and profile.
Reply With Quote
  #3  
Old 11-19-2002, 09:33 PM
bast's Avatar
bast bast is offline
 
Join Date: Jan 2002
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks so much!

Edit: Okay, I have another question...

If I wish to put [fieldx] in place of [username] so that only the chosen display name shows, is there a way to display [username] by default if they don't have a username for [fieldx] selected? I 'could' make the display name mandatory, but it will also take 3 years to get everyone to fill it out, AND just as long to explain to everyone why their username is not displaying...even if I make an announcement and sticky thread in each forum explaining the need to select a display name.

That way, they can have whatever name they wish, and if anyone get's confused as to who they might be, they can just click on their profile and it show their original login name.

...of course, by then it would just be easier to change everyone's username in the admin panel, lol.
Reply With Quote
  #4  
Old 11-19-2002, 09:54 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're welcome! Don't underestimate the power of custom user profiles!
Reply With Quote
  #5  
Old 11-19-2002, 10:33 PM
Hurricane Hurricane is offline
 
Join Date: Feb 2002
Location: Central Florida
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I really like this idea. I am going to play around and see what I can come up with.
Reply With Quote
  #6  
Old 01-20-2004, 12:48 PM
jluerken's Avatar
jluerken jluerken is offline
 
Join Date: Aug 2003
Location: Germany
Posts: 1,016
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

I am searching the same thing for vb3 now cause this is still not a normal function.

Has anyone a hack for this or a documentation how to do this in vb3?

Thanks in advance...
Reply With Quote
  #7  
Old 03-16-2004, 04:59 PM
jluerken's Avatar
jluerken jluerken is offline
 
Join Date: Aug 2003
Location: Germany
Posts: 1,016
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Erwin
Go to your getinfo template.

Add $userinfo[fieldx] underneath $userinfo[username] (x being the custom profile id number).
Whats this for a template in RC4? How is it called cause I can't find this string in several templates but there is none named getinfo

I create an extra field which is called DISPLAY NAME
The id is 5 cause its my first custom field

profilefieldid5

I went into my postbit_legacy Template and changed:

$post[username]

to

$post[field5]. I also tried $post[profilefieldid5]

but nothing works.

I want on ALL my pages the displayname to be shown.

Any idea what I am doing wrong? Please help me cause I need to implement this urgently.

Many thanks in advance...
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 01:27 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.03829 seconds
  • Memory Usage 2,213KB
  • Queries Executed 11 (?)
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_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_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