miniBB Support Forums | 16 years on The Web
miniBB ®


 | Begin | Register | Reply | Search | Statistics | File Bank | Manual |
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /   

how to add new profile description

Author cesar
#1 | Posted: 4 Jun 2006 17:11 
hi I dont speak english well... sorry :D

how to add new profile description.. like
- Website (full URL)
- Occupation
- email
- Clan:

I want to add "clan" and displayet it on the main_posts_cell.html :D

sorry my bad english

Author realitybytes
#2 | Posted: 4 Jun 2006 17:12

read that, any problems post back

Author cesar
#3 | Posted: 4 Jun 2006 17:41 
thx but :S I dont Understand his tutorial is only for birthday? :S
I like a simple tutorial for add "Clan" and displayet it on the main_posts_cell.html :(

Author realitybytes
#4 | Posted: 4 Jun 2006 17:48 | Edited by: realitybytes 

do you know how to alter tables for mysql?

do you have access to phpmyadmin?

Author cesar
#5 | Posted: 4 Jun 2006 17:51 
ya =)

Author cesar
#6 | Posted: 4 Jun 2006 17:55 
hey I Dont create dropdown list :( ur tutorial is dropdown list :(

Author realitybytes
#7 | Posted: 4 Jun 2006 18:01 | Edited by: realitybytes 
ok select the minibb database and then select the sql link add the following

ALTER TABLE `miniibb_users` ADD `user_customclan` VARCHAR( 50 ) NULL

I am presuming 50 characters is enough for a clan name if not increase to what you think is sufficient also I am presuming that your user table is minibb_users again if you changed it then you need to alter that aswell

Let me know if that is sucessful

Author cesar
#8 | Posted: 4 Jun 2006 18:21 
ok ok wait....

Author cesar
#9 | Posted: 4 Jun 2006 18:27 
ALTER TABLE `minibbtable_users` ADD `user_customclan` VARCHAR( 20 ) NULL


and now??

Author realitybytes
#10 | Posted: 4 Jun 2006 18:33 | Edited by: realitybytes 
Cant wait around much longer anyway, if that works ok you ened to download the following file

unzip and put in the root of you forum where setup_options is.

then in your web browser point to that filw e.g.

now you want the number for user_customclan it might be 21.

if it is 21 open up setup_options.php

and add the following (if it is not 21 change the 21 below to suit)




remember to add the , at the end of 'user_custom3'=>array(20,'user_custom3','user_custom3') like it is above.

once you have done that go in to the templates folder and add the following to user_dataform.html

<!-- clan field -->
<tr><td class="caption4" style="text-align:right;vertical-align:top">Clan Name</td>
<td class="caption5">
<input type="text" name="clan" maxlength="150" size="20" value="{$clan}"
class="textForm" style="width:200px;">
<!-- /clan field -->


<td class="caption4a" style="text-align:right">{$l_im}</td>
<td class="caption5"><input type="text" name="icq" maxlength="15" size="20" value="{$icq}" class="textForm" style="width:200px;" /></td>

or if you would like it elsewhere on the form then change to suit.

Right that will get you going with the field in the registration and in the preferences form.

Cant really hang about much longer so read over that post I linked before see if you can figure out how to get it on the profile and also in the members post section.

If not will post back later

Author cesar
#11 | Posted: 4 Jun 2006 18:48 
thx thx thx =)

:O ok ok this work perfectament but how I put it
(the informacion Clan: Clan BwChile)

in the main_posts_cell.html


Author realitybytes
#12 | Posted: 4 Jun 2006 19:09 | Edited by: realitybytes 
in setup options add





<br />{$userInfo_user_customclan[$poster_id]}

under {$viewReg}

Author realitybytes
#13 | Posted: 4 Jun 2006 19:15 
or if you wanted to take a step further and diaply it with a description such as Clan then use the following

open bb_plugings.php and add

function parseUserInfo_user_customclan($customclan){
if($customclan!='') return "Clan <br />$customclan"; else return '';

then in main_posts_cell.html


<br />{$customclan}

under {$viewReg}

choice is yours to which

Author cesar
#14 | Posted: 4 Jun 2006 19:26 
OH MY GOD!!!!!!!!! I LOVE YOU!!! =) THX MEN!!

gracias amigo =)!

Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /
 how to add new profile description
 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 our forum posting rules. If not, it may be locked or deleted 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
Check out the Captcha add-on: protect your miniBB-forums from the automated spam and flood.