Symon
|
Birthday TableIn 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: | <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" 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>
<td class="row1" align="center" valign="middle" rowspan="1"><img src="http://testhtml.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>
</table> |
To add how old they are you would need to add the following code to your cms_birthday.tpl
So the final code may look like this.
| Code: | <!--BEGIN switch_birthday_title -->
{BIRTHDAY_TITLE}
<!--END switch_birthday_title -->
<!-- BEGIN birthday -->
{birthday.NAME}
<!-- END birthday --> |
And thats HOWTODOIT
|