miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Specific miniBB Support Forums / Specific /   

Adding a new user profile field

Author rivkadr
Registered
#1 | Posted: 2 Nov 2007 17:14 | Edited by: rivkadr 
Well, I followed the somewhat confusing instructions on this page: http://www.minibb.com/new_profile_field.html and I'm still having issues.

Basically, I did this:

1) Added a new field to the minibbtable_users called user_template
2) Modified setup_options.php with the following line:
'user_template'=>array(21,'user_template','template')
3) Added the following to bb_plugins.php:

$query = "SELECT * FROM Templates";
$result = mysql_query($query);
while($row = mysql_fetch_array($result))
{
$id = $row['pkTemplate'];
$templates[$id] = $row['sTemplate'];
}

$templateDropDown=makeValuedDropDown($templates,'template');

4) Modified user_dataform.html to have {$templateDropDown}

I'm getting the drop-down just fine -- I've viewed the source, and everything there is correct. What it's not doing is updating the value in the database. What did I forget to do?

Author Paul
Lead Developer
#2 | Posted: 3 Nov 2007 04:57 
The field should be named user_customtemplate i.e. it should contain the wording 'user_custom' at the beginning.

Everything else is your custom issue and we're supporting such issues only for the fee.

Specific miniBB Support Forums / Specific / Adding a new user profile field Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

 ?
You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Proceed with the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB