vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Adding footer images to categories? (https://vborg.vbsupport.ru/showthread.php?t=195664)

pigpog 11-07-2008 11:02 AM

Adding footer images to categories?
 
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:

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%">&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:

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%">&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

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%">&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.

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>



All times are GMT. The time now is 11:08 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04273 seconds
  • Memory Usage 1,767KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete