News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

How to insert headers for posts and topics?

Started by rongup, October 27, 2005, 12:01:29 AM

Previous topic - Next topic

rongup

I got the Posts and replies seperated but,
How to insert the top part containing the headers for posts and topics?
the simplemachines board has that

Pls help me

rongup

Since not much help was forthcoming I decide to do it myself
I made the following code.Pls tell me if there is something wrong:

echo '
<div class="tborder" style="padding: 2px;"><b>
<table border="0" width="100%" cellspacing="1" cellpadding="5" text="white">
<tr bgcolor="abb0b5">
<td width="67%"><font color="FFFFFF">Board Name</font>
<td><font color="FFFFFF">Topics</font>
<td><font color="FFFFFF">Posts</font>
<td width="22%"><font color="FFFFFF">Last Post</font>
</tr>
</table></b>
</div>
<br>';


This is just above:
/* Each category in categories is made up of:
id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down iamge),
and boards. (see below.) */


Pls tell me if right
I implemented it with a little style.css modification
Link:
http://www.electron.roxr.com/forum/index.php

JayBachatero

try this to add some class to it

echo '
                      <div class="tborder" style="padding: 2px;"><b>
                      <table border="0" width="100%" cellspacing="1" cellpadding="5" text="white">
                      <tr  class="catbg">
                      <td width="67%"><font color="FFFFFF">Board Name</font></td>
                      <td valign="middle" align="center" style="width: 6ex;"><font color="FFFFFF">Topics</font></td>
                      <td valign="middle" align="center" style="width: 6ex;"><font color="FFFFFF">Posts</font></td>
                      <td width="22%"><font color="FFFFFF">Last Post</font></td>
                      </tr>
                      </table></b>
                      </div>
                      <br>';
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert


Advertisement: