Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Custom registration fields
Hello!
I'm using Vanilla 2.0.17.8
I need to add more text fields in registration form.
The resulting values need to be displayed in the user profile.
Is there any plugin for my vanilla version? Or how can I do this manually?
Thank you!
I'm using Vanilla 2.0.17.8
I need to add more text fields in registration form.
The resulting values need to be displayed in the user profile.
Is there any plugin for my vanilla version? Or how can I do this manually?
Thank you!
Tagged:
5
This discussion has been closed.
Comments
And able to display all custom fields in vanilla theme.
It does not pull in everything when it should though, and it is all about the guts of how ProxyConnect and Vanilla interact (without documentation of the process, it is extremely difficult to work it out, and still something I don't quite understand).
However, if the code is any use, I can post it somewhere.
Thanks
--Sandeep
I know that quite simple mathematical of the equation to ensure that no spam bot could not register, let's say 2+2 and in the input field with the only true value of 4, with another entry with an error of registration, but how? can anyone understands?
Here is how:
1. Add new field (eg. new_field) into table Gdn_users
2. Edit these files:
www\applications\dashboard\views\entry\register*.php
www\applications\dashboard\views\user\edit.php
Add the input HTML codes for new_field in both files
www\applications\dashboard\models\class.usermodel.php
Add to method InsertFor*
add $Fields['new_field'] = $_POST['new_field'];
right before the line
$UserID = $this->_Insert($Fields);
\www\applications\dashboard\views\modules\userinfo.php
Dump the value $this->User->new_field
Done!
Good luck!
Note: Vanilla update pack will destroy this.
I'm really sorry for gravedigging this, but I need a bit of help... I have tried @fafvin's method, and it works most of the way, but the fields entered into registration do not seem to carry on through into the user profile. The only way they can be edited is by an admin (i.e. me), is there something I did wrong with adding the mysql tables?
This is what I have entered (it's a text field just like Username):
Theres already a plugin first last name. Study that plugin, that will be better than hacking the core. Just my 2 cents
I'm looking for this kind of functionality too, but it needs to be customizable. About Me is a good template, but I don't need any of the school and career information (doesn't apply to our younger members), I need some basic information like birthdate and I'd like a host of other fill-ins and check-marks as well.
@Aolee thanks for the pointer. I'll take a look there.
someone already uploaded a plugin to add first name and last name in the reg page. you can check this out.
http://vanillaforums.org/addon/firstlastnames-plugin
Check out my other Plugins here
grr sorry for the double post, there was an error in system during my post. @underdog, please help remove the dup.
k, done. It's at a new place now, so had to search for a bit.
There was an error rendering this rich post.
what is the name of that plugin?
ProfileExtender ? (Is bundled with vanilla)
There was an error rendering this rich post.
FTFY
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
But it also works with 2.0 with a couple mods...
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌