View Full Version : Template help
Mythotical
06-24-2005, 01:40 AM
I am trying to use images for my category strip, I have a left image, a center image, and a right image, how do I add that in and get rid of the default category strip? One example would be the armada style found at cinvin.com
I will attached a screenshot to show you what I am talking about.
Thanks in advance
Myth
Guest190829
06-24-2005, 01:45 AM
I think you can get that effect by editing the forumdisplay template and then added two more columns with new classes...
Mythotical
06-24-2005, 02:03 AM
Do you know the code exactly, if you can give me the jist of the code, I can go from there. I don't want to get it wrong and keep being wrong.
deathemperor
06-24-2005, 03:34 AM
ok this is my forumhome_forumbit_level1_nopost template, the left and right are images, use a background image for the center (talking about your attachment). edit the images in my code properly so that it will show off
<if condition="$forum[forumid] == 1">
<else />
</table>
<table summary="$forum[title]" align=center style="background-image: url('$stylevar[imgdir_misc]/gradients/catbottombg.gif'); background-repeat: repeat-x;" border="0"
cellPadding="0" cellSpacing="0" width="100%">
<tbody>
<tr>
<td align=left width="50%"><img border="0" height="13" src="$stylevar[imgdir_misc]/gradients/catbottomleft.gif" width="39"></td>
<td align=right width="50%"><img border="0" height="13" src="$stylevar[imgdir_misc]/gradients/catbottomright.gif"
width=39></td></tr></tbody></table>
<br /><table summary="$forum[description]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
</if>
<tbody>
<tr>
<td class="tcat" align="center" 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>
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
<tr align="center">
<td class="thead"> </td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="225" nowrap>$vbphrase[last_post]</td>
<td class="thead" nowrap>$vbphrase[threads]</td>
<td class="thead" nowrap>$vbphrase[posts]</td>
<if condition="$vboptions[showmoderatorcolumn]">
<td class="thead" nowrap>$vbphrase[moderator]</td>
</if>
</tr>
$childforumbits
</tbody>
</if>
Mythotical
06-24-2005, 04:32 AM
What version of vb are you running? I have 3.0.7 so trying to compare my template with yours would be impossible if its any other version. I will try to add your code tho. I thought I would have to edit ForumHome, ShowThreads, ShowGRoups, threadbit, MemberInfo, MemberHome for this to work right.
Ok I won't be able to figure it out, here is my forumhome_forumbit_level1_nopost:
<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>
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
$childforumbits
</tbody>
</if>
deathemperor
06-24-2005, 05:47 PM
I used 3.0.7 and that code is not the default vb3 so I don't think you can compare those 2, I just use it for the customize you want like the attach you gave, of course it's only for forumhome categories, others need more modifications on templates
Mythotical
06-24-2005, 06:05 PM
Oh ok, let me reinstall the default template then get back to you with that. But if you know what templates and how to edit, please direct me.
Ok this is a fresh install of the default template:
<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>
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
$childforumbits
</tbody>
</if>
You can view to verify that it is definately 3.0.7 that I am using, http://testvb.eternaltide.net
Thanks for your help
deathemperor
06-25-2005, 07:20 AM
ok this is my forumhome_forumbit_level1_nopost template, the left and right are images, use a background image for the center (talking about your attachment). edit the images in my code properly so that it will show off
there
Mythotical
06-25-2005, 09:00 AM
OK I will give it a try tomorrow then, need to get some sleep, 5 am here right now.
Ok tried it, put the images below my forums, not where I want them, I want to replace the regular background color with my own images.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.