miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /  
 

how to add new profile description

 
Author cesar
Guest
#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
Partaker
#2 | Posted: 4 Jun 2006 17:12 
https://www.minibb.com/new_profile_field.html

read that, any problems post back

Author cesar
Guest
#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
Partaker
#4 | Posted: 4 Jun 2006 17:48 
:$,

do you know how to alter tables for mysql?

do you have access to phpmyadmin?

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

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

Author realitybytes
Partaker
#7 | Posted: 4 Jun 2006 18:01 
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
Guest
#8 | Posted: 4 Jun 2006 18:21 
ok ok wait....

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

:D

and now??

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

https://www.minibb.com/download.php?file=minibb_determine_fields

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

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

www.yourdomain.com/forums/determine_field.php

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)

'user_customclan'=>array(21,'user_customclan','clan')

underneath

'user_custom3'=>array(20,'user_custom3','user_custom3'),

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;">
</td></tr>
<!-- /clan field -->

underneath

<tr>
<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>
</tr>
<tr>

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
Guest
#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
Partaker
#12 | Posted: 4 Jun 2006 19:09 
in setup options add

$userInfoInPosts=array('user_customclan');


in

main_posts_cell.html

add

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

under {$viewReg}

Author realitybytes
Partaker
#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

add

<br />{$customclan}

under {$viewReg}

choice is yours to which

Author cesar
Guest
#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 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
Proceed with the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑