News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Use REALNAME instead of USERNAME on registration template

Started by famomamo, February 02, 2016, 04:43:00 AM

Previous topic - Next topic

famomamo

Hello,
As a newbie I have two problems which I couldn't resolve reading FAQ, online HELP files etc. :
1- I want members to use REALNAME variable on my forum. On registration form I have added a custom field, accepts input as REALNAME however I cannot have this input used automatically on member's forum profile. USERNAME is used instead.

2- I have created another custom field on registration form, Birth Date, but again the input from this field is not transferred automatically to member's forum profile.

Is there a solution to handle these situations without altering some php files?

Thank you

Illori

you mean a custom profile field? as far as i know they are not exposed to the email templates. this may require a good bit of custom code to get them exposed so that you can use them.

famomamo


Kindred

1- why are you using custom profile fields when SMF already can collect and display "real name" (use username (aka login name) and display name (which you can call "real name" if you like)

2- SMF already collects birthdates...   a minor tweak to profile.template.php could display the birth date instead of the calculated age...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

famomamo

Quote from: Kindred on February 02, 2016, 07:44:02 AM
1- why are you using custom profile fields when SMF already can collect and display "real name" (use username (aka login name) and display name (which you can call "real name" if you like)

2- SMF already collects birthdates...   a minor tweak to profile.template.php could display the birth date instead of the calculated age...

Well I couldn't figure out how to collect and display on forum profile, applying member's "display name" and "birthdate". At the moment I have to ask each applicant, through email template, his/her real name and birthdate, and manually enter this data on to their profile.  :-[


famomamo

Quote from: famomamo on February 03, 2016, 05:05:42 AM
Is it OK to use such a mod?

http://custom.simplemachines.org/mods/index.php?mod=1747

Nope! It didn't work on my SMF 2.0.11
It failed on test phase. "register.php" file changes seems to cause the problem.

"BithdayonRegister" mod is installed and working with no problem, on the other hand.

Advertisement: