Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-07-2008, 11:02 AM
pigpog's Avatar
pigpog pigpog is offline
 
Join Date: Oct 2008
Location: United Kingdom
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.

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>
Reply With Quote
  #2  
Old 11-07-2008, 02:49 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your bottom table needs to be within a <tbody> tag (along with the corresponding <tr><td> tags).
Reply With Quote
  #3  
Old 11-07-2008, 10:59 PM
pigpog's Avatar
pigpog pigpog is offline
 
Join Date: Oct 2008
Location: United Kingdom
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 11-07-2008, 11:57 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I still doubt your html is correct there, but, how about a link to the page where this isn't working?
Reply With Quote
  #5  
Old 11-08-2008, 10:30 AM
pigpog's Avatar
pigpog pigpog is offline
 
Join Date: Oct 2008
Location: United Kingdom
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!!
Reply With Quote
  #6  
Old 11-08-2008, 02:20 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try taking the footer outside of your condition (<if condition="$childforumbits">).
Reply With Quote
  #7  
Old 11-13-2008, 10:51 PM
pigpog's Avatar
pigpog pigpog is offline
 
Join Date: Oct 2008
Location: United Kingdom
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried your suggestion and still no joy. It's probably something really simple, as usual!!!!!!!
Reply With Quote
  #8  
Old 11-14-2008, 02:56 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So what does the template look like now?
Reply With Quote
  #9  
Old 11-14-2008, 07:13 PM
pigpog's Avatar
pigpog pigpog is offline
 
Join Date: Oct 2008
Location: United Kingdom
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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%">&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>
Reply With Quote
  #10  
Old 11-14-2008, 07:15 PM
Twilkey's Avatar
Twilkey Twilkey is offline
 
Join Date: Oct 2006
Posts: 314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09014 seconds
  • Memory Usage 2,278KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (1)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete