PDA

View Full Version : Anyone know how to do this?



Joeychgo
03-05-2005, 04:43 AM
If you look at the forum catagories here - http://www.dodgetalk.com/forums/

There is an image in the black catagory bar.

How do I do that?

Noppid
03-05-2005, 01:51 PM
They made their tcat bar span 2 columns (2 and 3 wide each) in the row and used two seperate images.


<tbody>
<tr>
<td class="tcat" colspan="2">

<a style="float:left" href="#top" onclick="return toggle_collapse('forumbit_67')"><img id="collapseimg_forumbit_67" src="http://www.dodgetalk.com/forums/images/buttons/collapse_tcat.gif" alt="" border="0" /></a>
<a href="forumdisplay.php?amp;f=67">Classifieds and Special-Buy Forums</a>


</td>
<td class="tcat" colspan="3" style="padding: 0px;"><div align="right"><img src="http://www.dodgetalk.com/forums/images/misc/tcat_right.gif" border="0" width="361" height="28"></div></td>
</tr>
</tbody>

Joeychgo
03-05-2005, 05:46 PM
I meant - how did he program it in? I assume he changed a template -

Noppid
03-05-2005, 06:17 PM
I meant - how did he program it in? I assume he changed a template -

Exactly, that's my point. That is the html code from his forumhome->forumhome_forumbit_level1_nopost template.

The stock code is...



<tbody>
<tr>
<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</td>
</tr>
</tbody>


Also note that the stock forumhome template only has the bar with the column descriptions at the top of the forums once, not like they or I have it on every forum block.

clasione
03-06-2005, 06:51 AM
If you look at the forum catagories here - http://www.dodgetalk.com/forums/


Thats one of the nicest VB's I've seen....

Joeychgo
03-06-2005, 08:42 AM
isnt it?

Noppid
03-06-2005, 07:57 PM
It's very nice, however the XHTML does not validate.

I'm of the school that says we should stick to that and that it matters?

theMusicMan
03-06-2005, 08:21 PM
Joey: You're ok to modify templates yeah?