The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
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. ![]() My code is as follows: Code:
</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%"> </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>
|
|
#2
|
||||
|
||||
|
Your bottom table needs to be within a <tbody> tag (along with the corresponding <tr><td> tags).
|
|
#3
|
||||
|
||||
|
Thanks Lynne... I tried that and ended up with this:
Code:
</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%"> </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>
|
|
#4
|
||||
|
||||
|
I still doubt your html is correct there, but, how about a link to the page where this isn't working?
|
|
#5
|
||||
|
||||
|
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!!
|
|
#6
|
||||
|
||||
|
Try taking the footer outside of your condition (<if condition="$childforumbits">).
|
|
#7
|
||||
|
||||
|
I tried your suggestion and still no joy.
It's probably something really simple, as usual!!!!!!!
|
|
#8
|
||||
|
||||
|
So what does the template look like now?
|
|
#9
|
||||
|
||||
|
Oops, sorry Lynne, forgot to add that bit.
![]() Code:
</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%"> </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>
|
|
#10
|
||||
|
||||
|
This works for me on my board. My template is the default with your image added.
HTML Code:
<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> |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|