Text
Birthday Table

 
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 -> Add-on`s for your forum
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: Sat Mar 24, 2007 5:26 pm    Post subject: Birthday Table Reply with quote

In an addition to the birthday hack used for profile you can now add a birthday table at the bottom of your forum so it looks like this.




So HOWTODOIT

You need to edit your index_body.tpl

Find a block of code that is similar to this

Code:
<table width="100%" border="0" cellpadding="0" cellspacing="0">
   <tr>
      <td class="tableborder">

           <table width="100%" border="0" cellspacing="1">
            <tr>
               <td colspan="2" bgcolor="#0C0C0C" class="categorybar">
      
                  <table border="0">
                     <tr>
                        <td><img src="templates/myfs_howtodoit1/images/category_icon.gif" /></td>
                        <td><span class="cattitle"><a href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></span></td>
                     </tr>
                  </table>
               
               </td>
            </tr>
            <tr>
               <td class="row1" align="center" valign="middle" rowspan="2" width="6%"><img src="templates/myfs_howtodoit1/images/whoisonline.jpg" alt="{L_WHO_IS_ONLINE}" /></td>
               <td class="row1" align="left" width="94%"><span class="gensmall">{TOTAL_POSTS}</span></td>
            </tr>
            <tr>
               <td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} </span></td></tr></table>


Now just add this code to the bottom just before the last
Code:
</table>.


Code:
<tr> <td class="row1" align="center" valign="middle" rowspan="1"><img src="http://howtodoit.myfastforum.org/templates/myfs_howtodoit1/images/birthday.gif" alt="{L_BIRTHDAY}" /></td>
  <td class="row1" align="left"><span class="gensmall">{MYFF.BIRTHDAY}</span> </td> </tr>


So it will look look something like this



Code:
   <table width="100%" border="0" cellpadding="0" cellspacing="0">
   <tr>
      <td class="tableborder">

           <table width="100%" border="0" cellspacing="1">
            <tr>
               <td colspan="2" bgcolor="#0C0C0C" class="categorybar">
      
                  <table border="0">
                     <tr>
                        <td><img src="templates/myfs_howtodoit1/images/category_icon.gif" /></td>
                        <td><span class="cattitle"><a href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></span></td>
                     </tr>
                  </table>
               
               </td>
            </tr>
            <tr>
               <td class="row1" align="center" valign="middle" rowspan="2" width="6%"><img src="templates/myfs_howtodoit1/images/whoisonline.jpg" alt="{L_WHO_IS_ONLINE}" /></td>
               <td class="row1" align="left" width="94%"><span class="gensmall">{TOTAL_POSTS}</span></td>
            </tr>

            <tr>
               <td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} </td></tr></span>
<tr>
<td class="row1" align="center" valign="middle" rowspan="1"><img src="templates/myfs_howtodoit1/images/birthday.gif" alt="{L_BIRTHDAY}" /></td>
  <td class="row1" align="left"><span class="gensmall">{MYFF.BIRTHDAY}</span></td></tr>

</table>

 


To add how old they are you would need to add the following code to your cms_birthday.tpl

Code:
({birthday.YEARS})


So the final code may look like this.

Code:
<!--BEGIN switch_birthday_title -->     
{BIRTHDAY_TITLE}
<!--END switch_birthday_title -->          
  <!-- BEGIN birthday -->
{birthday.NAME}&nbsp;
  <!-- END birthday -->


And thats HOWTODOIT


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 -> Add-on`s for your forum 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