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 would like that too - but only for antispam purposes. It will be nice to add extra field which will be used to check if registration is not done by bot. Unfortunately recaptcha doesn't work...
@studioleland I have written an internal custom module that goes some way to attempting this. In my case it pulls in custom fields to add to the user's profile details (in a profiles plugin - "About Me" IIRC). It also pulls in additional roles from the external CMS and applies them to Vanilla.
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.
I also need an additional field in the registration. 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?
I successfully added it! 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):
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.
Comments
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •And able to display all custom fields in vanilla theme.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •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.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Thanks
--Sandeep
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •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?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •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.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •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):
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Theres already a plugin first last name. Study that plugin, that will be better than hacking the core. Just my 2 cents
- Spam
- Abuse
- Troll
1 • Off Topic Insightful 1Awesome LOL •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.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •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
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •grr sorry for the double post, there was an error in system during my post. @underdog, please help remove the dup.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •k, done. It's at a new place now, so had to search for a bit.
What to do if I get a Bonk Error?
Vanilla Wiki : Join and help edit our Wiki! | View all Vanilla issues on GitHub | Report a new Vanilla issue on GitHub
Deploying a new Forum and adding a Theme | Give thanks to the Vanilla Developers!
- Spam
- Abuse
- Troll
1 • Off Topic Insightful 1Awesome LOL •