[How To] Add a Hidden Birthday Table in the Header

How-to's, little tricks, tutorials, code examples (snippets) and read-me's.

Re: [How To] Add a Hidden Birthday Table in the Header

Postby Sniper_E » 24 May 2007, 17:05

Spoiler:
<!-- IF S_DISPLAY_BIRTHDAY_LIST and BIRTHDAY_LIST -->
<br clear="all" />

<table class="tablebg" width="100%" cellspacing="1">
<tr>
<td class="cat" colspan="2"><h4>{L_BIRTHDAYS}</h4></td>
</tr>
<tr>
<td class="row1" align="center" valign="middle"><img src="{T_THEME_PATH}/images/whosonline.gif" alt="{L_BIRTHDAYS}" /></td>
<td class="row1" width="100%"><p class="genmed"><!-- IF BIRTHDAY_LIST -->{L_CONGRATULATIONS}: <b>{BIRTHDAY_LIST}</b><!-- ELSE -->{L_NO_BIRTHDAYS}<!-- ENDIF --></p></td>
</tr>
</table>
<!-- ENDIF -->

This works in the bottom of the index page of subsilver2.
This is what's written in our subsilver2 style.

You could try to see if it works in the viewforum_body.html or the viewtopic_body.html pages.... I never have.
I'll look later, I'm on a mission.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6983
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6


Re: [How To] Add a Hidden Birthday Table in the Header

Postby Sniper_E » 24 May 2007, 23:03

MikeR wrote:I tried adding it to "viewforum_body.html" to see it inside the forum itself, but never could get it to show. (I copy/pasted the regular code so it was always visable) as I only have 1 forum on that particular board, so most of my users never see the front page. They link in to viewforum instead.
Looking at the files, only the root/index.php file pulls the Birthday Info
It will only show in the index_body.html file.

If you want yours to show up only in your viewforum_body.html page,
maybe the Birthday Info code could be copied and then added in the root/viewforum.php file.

You will need a real coder here to tell you what and where exactly to add it in.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6983
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: [How To] Add a Hidden Birthday Table in the Header

Postby MikeR » 25 May 2007, 04:25

Ok, thanks. I'm not going to worry too much about it. :)
If it exists in the real world, it can be created in 3D
MikeR
Borg Drone
Borg Drone
 
Posts: 169
Joined: 01 Apr 2007, 08:32
Location: California
Favorite Team: none
Gender: Male

Previous

Return to Tutorials and How-Tos

Who is online

Users browsing this forum: Google Adsense [Bot] and 7 guests