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

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    howtodoit.myfreeforum.org Forum Index -> Answers on your profile Questions
View previous topic :: View next topic  
Author Message
Please Register and Login to this forum to stop seeing this advertsing.





Add Karma

Posted:     Post subject:

Back to top
symon
Site Admin
Site Admin

Location: 

Joined: 13 Mar 2006
Posts: 866


Location: Hampshire Add Karma

PostPosted: Wed May 10, 2006 7:48 pm    Post subject: Extra fields for profile e.g fav band/car/Birthday Reply with quote

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.


Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    howtodoit.myfreeforum.org Forum Index -> Answers on your profile Questions All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Card File  Gallery  Forum Archive
HOWTODOIT was designed and built by Symon Field
Creator Of ☆ FarnboroughInvinciblesAgonyAuntFairiesAsylum Alliance FunnyWorldHOWTODOIT PHPbb3
HOWTODOIT© Symon Field 2006,2007,2008

Powered by phpBB Group © 2001,2005.
 

Create your own free forum | Buy a domain to use with your forum