miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
Specific miniBB Support Forums / Specific /  
 

Adding a new user profile field

 
Author rivkadr
Partaker
#1 | Posted: 2 Nov 2007 17:14 
Well, I followed the somewhat confusing instructions on this page: https://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
 Share Topic's Link

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


  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Get the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑