Archive for howtodoit.myfastforum.org Walkthough guides for myfreeforum phpbb 2 forums
 


       howtodoit.myfastforum.org Forum Index -> Answers on your profile Questions
Symon

Extra fields for profile e.g fav band/car/Birthday

Remember to backup your forum template and use editor before you do this incase something goes wrong.

Go to your forum's Administration Panel -----   2. General --- Profile Fields

Now add favband And click Add Custom Profile Field

You will now see this screen




Fill in the details to how you want them then click submit.

You have now set up your fav Band/food/car etc field.


The Guide below is ONLY for those that wish to edit or move the code to a place not given in the drop down bar in the screen above.

Please note i use the name favband only as an example you must change all favband with the same name as in the Field name (see picture above).

Now got to admin -panel-Styles Admin-Edit Templates/Logos
Select the template you wish to edit and then

In profile_view_body.tpl you should add the following code where you want it to appear

Code:
<tr>
        <td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_favband}:&nbsp;</span></td>
        <td><b><span class="gen">{favband}</span></b></td>
      </tr>


so it could look like this

Code:
   <tr>
        <td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_LOCATION}:&nbsp;</span></td>
        <td><b><span class="gen">{LOCATION}</span></b></td>
      </tr>   <tr>
        <td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_favband}:&nbsp;</span></td>
        <td><b><span class="gen">{favband}</span></b></td>
      </tr>


Now goto profile_add_body.tpl

And add
Code:
{XPROFILE}
where you need it to go for example if you wish it to be on the list under interests and before the sig box place the code like this

Code:
  <td class="row1"><span class="gen">{L_INTERESTS}:</span></td>
     <td class="row2">
      <input type="text" class="post" style="width: 200px"  name="interests" size="35" maxlength="150" value="{INTERESTS}" />
     </td>
   </tr>{XPROFILE}



Now when a user enters their profile they will see the option to add fav band, of course you can just change the words fav band to anything you like and you can add more than one again just copy and paste the code and change the favband text, of course remember to add the fields in forum footer aswell.

       howtodoit.myfastforum.org Forum Index -> Answers on your profile Questions
Page 1 of 1
Create your own free forum | Buy a domain to use with your forum