Archive for Manchester United Fans Forum For All Manchester United Fans From Across The World!
 



       Manchester United Fans Forum Index -> General Discussion
Andrew(AP)

Age in birthday table

Some people have been wondering how to get the age into the birthday table well heres how to get the agenext ot the username PLUS get birthday count.

If you have a birthday hack profile feild you will be able to have this on your forum.




goto your admin panel ---- 3. Styles----Edit Templates/Logos---- choose index_body.tpl

find a code block that is some what close 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>



next add this following code after 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 now looks 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>



This is for a more updated version


if you would like the newer type of birthday table hack which looks like this.




you will need to go to your cms.birthday.tpl

and add
Code:
(<b>{BIRTHDAY_COUNT}</b>):


to where ever you want it to appear. the birthday count is how many birthdays there is. (if thereis no birthdaysit shows 0 for no birthdays)

to get the Age of the user next to there name you need to add
Code:
({birthday.YEARS})

to where ever you want it to appear. (you can place () around {birthday.YEARS} if you want.

So my new code looks like

Code:
<!--BEGIN switch_birthday_title -->     
{BIRTHDAY_TITLE} (<b>{BIRTHDAY_COUNT}</b>):
<!--END switch_birthday_title -->     
  <!-- BEGIN birthday -->
{birthday.NAME}&nbsp;({birthday.YEARS})
  <!-- END birthday -->
Angelcity7

Wow how complicated is this.
Andrew(AP)

umm is it complicated? if so ill try and make it easier
Angelcity7

It is a little for me i cant understand anything lol and what i have to do , to do it
Andrew(AP)

hmm what are you having grounble on? Whihc part
Angelcity7

Im not sure of what to do
so i have to copy only this;?

<!--BEGIN switch_birthday_title -->
{BIRTHDAY_TITLE} ({BIRTHDAY_COUNT}):
<!--END switch_birthday_title -->
<!-- BEGIN birthday -->
{birthday.NAME}&nbsp;({birthday.YEARS})
<!-- END birthday -->
Andrew(AP)

That is the hole birthday thing, you must have your birthday feild named BIRTHDAY so then if you put that code into cms.birthday.tpl it will show how many birthdays there is and what the age of the person is but just a reminded it only hcanges after midnight
BEB

Thanks for the guilde.

But surely this is just copying of MFF ??????
NoOnAn-2k7

all these different letters in different zig zag form is kinda confusing alright! lol
pedrosa007

NoOnAn-2k7 wrote:
all these different letters in different zig zag form is kinda confusing alright! lol
its html mate, how do you think this forum got like it is lol

its like The Matrix World
NoOnAn-2k7

haha thats it alright
Andrew(AP)

BEB wrote:
Thanks for the guilde.

But surely this is just copying of MFF ??????

nope i wrote the hole guide my self
Angelcity7

Cool it worked i tryied it lol
Yeyy thanks for explaining to me Andrew
Andrew(AP)

thanks angel
freedom

Andrew(AP) wrote:
BEB wrote:
Thanks for the guilde.

But surely this is just copying of MFF ??????

nope i wrote the hole guide my self


I dont think so and the give away would be

Quote:
next add this following code after 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>


Clearly you have lifted alot from howtodoit.
Andrew(AP)

yeah i know i only took some of the code bits from it but i edited some of them my self.

I just got the birthday table bit but i never got the age thing and how many birthdays there is and stuff like that from howtodoit becuase if you looked on howtodoit awhile back it never showed them.

       Manchester United Fans Forum Index -> General Discussion
Page 1 of 1
Create your own free forum | Buy a domain to use with your forum