Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 19 May 2015, 15:27
juan71287 juan71287 is offline
 
Join Date: Dec 2003
Real name: Mario
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 19 May 2015, 21:48
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
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



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 11:34.

Layout Options | Width: Wide Color: