PDA

View Full Version : Adding footer images to categories?


pigpog
11-07-2008, 11:02 AM
Hi everyone! :)

I'm trying to edit the template "forumhome_forumbit_level1_nopost" to add footer images to my categories - without success. :(

If anyone can help me I'd be extremely greatful because I'm getting bored and want to get it fixed so I can go and bang my head against something else. :D

My code is as follows:


</table>

<br />

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">


<tbody>
<tr>
<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
<if condition="$childforumbits">
<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>
</if>
<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>

<tr align="center">
<td class="thead" width="5%">&nbsp;</td>
<td class="thead" width="50%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="7%">$vbphrase[posts]</td>
<td class="thead" width="7%">$vbphrase[threads]</td>
<td class="thead" width="33%">$vbphrase[last_post]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead" width="0%">$vbphrase[moderator]</td>
</if>
</tr>
</tbody>
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
$childforumbits
</tbody>

<!-----Start bottom table----->
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" style="background-image:url(http://www.rodentswithattitude.co.uk/forum/images/misc/background_categorybar.jpg)"><img src="http://www.rodentswithattitude.co.uk/forum/images/misc/background_categorybar.jpg" alt="" width="100%" height="28" border="0"/></td>
</tr>
</table>
<!-----End bottom table----->

</br>

</if>

Lynne
11-07-2008, 02:49 PM
Your bottom table needs to be within a <tbody> tag (along with the corresponding <tr><td> tags).

pigpog
11-07-2008, 10:59 PM
Thanks Lynne... I tried that and ended up with this:


</table>

<br />

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">


<tbody>
<tr>
<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
<if condition="$childforumbits">
<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>
</if>
<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>

<tr align="center">
<td class="thead" width="5%">&nbsp;</td>
<td class="thead" width="50%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="7%">$vbphrase[posts]</td>
<td class="thead" width="7%">$vbphrase[threads]</td>
<td class="thead" width="33%">$vbphrase[last_post]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead" width="0%">$vbphrase[moderator]</td>
</if>
</tr>

<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
$childforumbits

<TR><TD>
<!-----Start bottom table----->
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="100%"><img src="http://www.rodentswithattitude.co.uk/forum/images/misc/background_categorybar.jpg" alt="" width="100%" height="28" border="0"></td>
</tr>
</table>
<!-----End bottom table----->
</TD></TR>
</tbody>

</br>

</if>


The footers are still not showing. :o

Lynne
11-07-2008, 11:57 PM
I still doubt your html is correct there, but, how about a link to the page where this isn't working?

pigpog
11-08-2008, 10:30 AM
http://www.rodentswithattitude.co.uk/forum

Bit embarassing really, as I've been using HTML for 14 years, but give me some forum software and I'm all over the place!! :o

Lynne
11-08-2008, 02:20 PM
Try taking the footer outside of your condition (<if condition="$childforumbits">).

pigpog
11-13-2008, 10:51 PM
I tried your suggestion and still no joy. :rolleyes: It's probably something really simple, as usual!!!!!!! :D

Lynne
11-14-2008, 02:56 AM
So what does the template look like now?

pigpog
11-14-2008, 07:13 PM
Oops, sorry Lynne, forgot to add that bit. :o



</table>

<br />

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">


<tbody>
<tr>
<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
<if condition="$childforumbits">
<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>
</if>
<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>

<tr align="center">
<td class="thead" width="5%">&nbsp;</td>
<td class="thead" width="50%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="7%">$vbphrase[posts]</td>
<td class="thead" width="7%">$vbphrase[threads]</td>
<td class="thead" width="33%">$vbphrase[last_post]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead" width="0%">$vbphrase[moderator]</td>
</if>
</tr>

<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
$childforumbits

</tbody>

<TR><TD>
<!-----Start bottom table----->
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="100%"><img src="http://www.rodentswithattitude.co.uk/forum/images/misc/background_categorybar.jpg" alt="" width="100%" height="28" border="0"></td>
</tr>
</table>
<!-----End bottom table----->
</TD></TR>

</br>

</if>

Twilkey
11-14-2008, 07:15 PM
This works for me on my board. My template is the default with your image added.

<tbody>
<tr>
<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
<if condition="$childforumbits">
<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>
</if>
<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>
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
$childforumbits

<!-----Start bottom table----->
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="100%"><img src="http://www.rodentswithattitude.co.uk/forum/images/misc/background_categorybar.jpg" alt="" width="100%" height="28" border="0"></td>
</tr>
</table>
<!-----End bottom table----->
</tbody>
</if>

Lynne
11-14-2008, 07:19 PM
edit: Nevermind. Try what Twilkey posted.

pigpog
11-14-2008, 08:31 PM
Thanks Twilkey... unfortunately all it did was make my thread/posts columns really thin and misaligned on each category! :D But thank you for the suggestion, I did try it. ;)

Thanks for replying again Lynne.... I'm determined to get this done!!! I've seen it elsewhere so I know it's not impossible, and I'm going to do some more digging on here to see if anyone else has managed it using slightly different coding.

In the meantime, if anyone else has any suggestions, my most recent code is the last one I posted on this thread and I'm still looking for assistance! Any help is most greatfully received. :cool: