Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-19-2015, 12:27 PM
juan71287 juan71287 is offline
 
Join Date: Dec 2003
Location: New York
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default registration required and display

Hi all. I have not been here in I would say YEARS. I been doing other things and have not done much with vB. I recently came back for a small work project and need a bit of help. I am creating an online FORUM for my job and I am getting the employees to register and I need a few things, see if someone here can help me.

1. Registration requirements/POSTBIT:
- I am looking to add fields in the registration the are REQUIRED. Then those field I want them to be displayed on the POSTBIT so that in every post they do you see the required fields.

2. User display name and login different:
- Since there are so many employees, I would like their login to be whatever they want but the board display name be their ID. So many John Smith out there, they all cant show up as John smith. So I want to be able to register as "crazyman22" but when I post on forum the user show "JohnS21"

- The display of the Username I would like to have a prefix, like [FH]JohnS21". Would I be able to do that in the user group Username HTML Markup to add the "[FH]" to everyone under that user group?

I know I may be asking a lot but thanks if you can help.
Reply With Quote
  #2  
Old 05-19-2015, 06:48 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1) In admincp, User Profile Fields > Add New User Profile Field, and set 'Field Required' to what you want (probably 'Yes, at registration and profile updating'). Also I think if you want to display it on the postbit it can't be 'private' (but if you're displaying it than I guess you wouldn't want that anyway). Then in postbit you should be able to use {vb:var post.fieldX} where X is the profile field id. But I didn't try this before posting, so I might be remembering wrong. Sometimes I think that's going to work and it turns out the data isn't there unless you explicitly do a query for it.

The second one's more difficult. Maybe the easiest way would be to have a second field as the login name (Maybe a profile field or maybe you'd have to add a custom field), then modify the login code to use that. I'm thinking that may be easier than making a special display name because I think the login name is only checked in one place but the username is displayed in many places.

But anyway I guess that doesn't help much in knowing how to do all that. I know people have made a relatively easy change to use the email address in place of the username to log in, so probably the harder part would be to add the custom login name field.
Reply With Quote
Reply


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:39 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.03324 seconds
  • Memory Usage 2,160KB
  • 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)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (2)postbit
  • (2)postbit_onlinestatus
  • (2)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