Log in to check your private messages 
Username: Password:   
  howtodoit.myfastforum.org
  Walkthough guides for myfreeforum phpbb 2 forums
Index  FAQ  Search  Memberlist  Usergroups  Profile

Text
Text
Friends
MYFF Support Forum
HOWTODOIT (PHPbb3)
portalogy
CGArts
ANNOUNCEMENTS
Complete List of templates Available
Please Read First Before Editing your template
Permissions
Admin Index
Sticky Articles
Latest Posts
Friends

Start | Stop
Birthday Hack
Jump to:  
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    howtodoit.myfastforum.org Forum Index » Add-on`s for your forum
Author Message
Please Register and Login to this forum to stop seeing this advertising.







Add Comment
Show Comments
Posted:

Symon
Guide Legend
Guide Legend



Joined: 11 Jun 2006
Posts: 911


Location: Berkshire,England
FLAGS
Add Comment
Show Comments
PostPosted: Sun Jan 07, 2007 3:41 am  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 BIRTHDAY 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 Birthday 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.


Open profile_view_body.tpl and add where you want it to appear.(NOTE:IT is case sensitive, if the code below is capaltalized, keep it that way Wink )
Code:
<tr>
<td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_BIRTHDAY}:&nbsp;</span></td>
<td><b><span class="gen">{BIRTHDAY}</span></b></td>
</tr>


So I want it to appear after OCCUPATION So my code will look like this when im finished
Code:
 <td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_OCCUPATION}:&nbsp;</span></td>
        <td><b><span class="gen">{OCCUPATION}</span></b></td>
      </tr>
<tr>
<td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_BIRTHDAY}:&nbsp;</span></td>
<td><b><span class="gen">{BIRTHDAY}</span></b></td>
</tr>       
<tr>
        <td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_INTERESTS}:</span></td>
        <td> <b><span class="gen">{INTERESTS}</span></b></td>
      </tr>
     </table>
   </td>
  </tr>


Alright open Profile_add_body.tpl
Add {XPROFILE} where you want it to appear. So I want it to appear after OCCUPATION so my finished code looks like
Code:
<input type="text" class="post" style="width: 200px"  name="occupation" size="25" maxlength="100" value="{OCCUPATION}" />
     </td>
   </tr>{XPROFILE}
   <tr>
     <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>


In viewtopic_body.Tpl
Add

Code:
<br />{postrow.BIRTHDAY}

Where you would like it appear in this code area.

Code:
<!-- BEGIN postrow -->
   <tr>
      <td width="150" align="left" valign="top" class="{postrow.ROW_CLASS}"><span class="name"><a name="{postrow.U_POST_ID}"></a><b>{postrow.POSTER_NAME}</b></span><br /><span class="postdetails">{postrow.POSTER_RANK}<br />{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<br />{postrow.POSTER_JOINED}<br />{postrow.POSTER_POSTS}<br />{postrow.POSTER_FROM}</span><br /></td>
      <td class="{postrow.ROW_CLASS}" width="100%" height="28" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">

So if I wanted it after the how many posts an user made, the code would look like this
Code:
Code:
<!-- BEGIN postrow -->
   <tr>
      <td width="150" align="left" valign="top" class="{postrow.ROW_CLASS}"><span class="name"><a name="{postrow.U_POST_ID}"></a><b>{postrow.POSTER_NAME}</b></span><br /><span class="postdetails">{postrow.POSTER_RANK}<br />{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<br /><br />{postrow.POSTER_JOINED}<br />{postrow.POSTER_POSTS}<br /> {postrow.BIRTHDAY}<br />{postrow.POSTER_FROM}</span><br /></td>
      <td class="{postrow.ROW_CLASS}" width="100%" height="28" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">


Then your done

Finished images
In Adding in Profile

Click to see full size image

In a Topic (NOTE: I highlighted it by the way)

Click to see full size image


Please remember it caches for 24hours, so for example if you enter your birthday as 32/13/07 on the 32/13/07 then it will not show you must add it 24 hours before so add it on the 31/13/07

Guide courtesy of CodyT07 @ Modifed By Symon

View user's profile Send private message Visit poster's website FACEBOOKSTEAM
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.myfastforum.org Forum Index » Add-on`s for your forum


 
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

HOWTODOIT was designed and built by Symon Field
Creator Of ☆ ☆ FunnyWorld
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