The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Have corners in the tcat?
I was wondering if it was possible to get corners, or images on the left and right of the tcat.
Here's what I mean: http://forums.ifskinzone.net/ So, I'd have an image on the left set as the background so text can overlap, an image in the middle as the background so my template can be set to fluid, and an image on the right. How and where would I go to edit that? Thanks |
#2
|
|||
|
|||
Thats just basic HTML.. You may want to read up on tables.
|
#3
|
|||
|
|||
Yeah I know that, but I don't know which section it is so I can edit it.
|
#4
|
||||
|
||||
If you want to change only index, then edit tables that have class="tborder" in template "forumhome". If you want to change all pages then you'll need to edit 100+ templates for almost every table that has class="tborder".
Just move first table row where title is outside of table and put it in other table with rounded images, so it would be like this: Code:
<table ...> <tr> <td align="left"> left rounded image </td> <td class="tcat"> here is title </td> <td align="right"> right rounded image </td> </tr> </table> <table class="tborder" ...> ..and the rest of original table |
#5
|
|||
|
|||
Quote:
But here's the skin I have: http://www.vbmode.com/?styleid=31 So the forum title, I would want some kind of background image, which would have a curve or something. The middle would just be a gradient as the background, and the right, another curvy thing. The forumhome is attached. Thanks for helping. |
#6
|
||||
|
||||
In your case you need to edit one of forumhome_forumbit templates, most likely forumhome_forumbit_level1_nopost. To start lets convert who's online box to use rounded corners as its the simpliest part to do, then you'll need to convert all other tables similar way.
In forumhome find this: Code:
<!-- what's going on box --> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <thead> <tr> <td class="tcat" colspan="2">$vbphrase[whats_going_on]</td> </tr> </thead> <if condition="$show['loggedinusers']"> <!-- logged-in users --> Code:
<!-- what's going on box --> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr> <td width="20"><img src="$stylevar[imgdir_misc]/corner_left.gif" width="20" height="20" border="0" alt="" /></td> <td width="100%" class="tcat">$vbphrase[whats_going_on]</td> <td width="20"><img src="$stylevar[imgdir_misc]/corner_right.gif" width="20" height="20" border="0" alt="" /></td> </tr> </table> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-top-width: 0;"> <if condition="$show['loggedinusers']"> <!-- logged-in users --> So create two corner images that would match design and then adjust that code for your images. When you do that apply same changes to other tables that you want to have rounded corners. |
#7
|
|||
|
|||
Quote:
Here's what it looks like: Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <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> </table> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <if condition="$childforumbits"> <tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}"> <tr align="center"> <td class="thead" width="50"></td> <td class="thead" align="$stylevar[left]">$vbphrase[forum]</td> <td class="thead" width="30%">$vbphrase[last_post]</td> <td class="thead" width="50">$vbphrase[threads]</td> <td class="thead" width="50">$vbphrase[posts]</td> <if condition="$vboptions[showmoderatorcolumn]"> <td class="thead">$vbphrase[moderator]</td> </if> </tr> $childforumbits </if> </tbody> </table><div style="padding: 5px 5px 5px 5px;"></div> Thanks again for your help. |
#8
|
||||
|
||||
In that code you have more than one row in title text if description of child forums present, so I suggest to split it in two different headers: rounded one will be shown if title has only one line of text, standard one will be shown if more than one line of text. Something like this:
Code:
<if condition="$show['forumdescription'] or $show['subforums']"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <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> </table> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <else /> <table width="100%" cellspacing="0" cellpadding="0" border="0"> <tr> <td width="20"><img src="$stylevar[imgdir_misc]/corner_left.gif" width="20" height="20" border="0" alt="" /></td> <td class="tcat" width="100%"> <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> </td> <td width="20"><img src="$stylevar[imgdir_misc]/corner_right.gif" width="20" height="20" border="0" alt="" /></td> </tr> </table> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-top-width: 0;"> </if> <if condition="$childforumbits"> <tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}"> <tr align="center"> <td class="thead" width="50"></td> <td class="thead" align="$stylevar[left]">$vbphrase[forum]</td> <td class="thead" width="30%">$vbphrase[last_post]</td> <td class="thead" width="50">$vbphrase[threads]</td> <td class="thead" width="50">$vbphrase[posts]</td> <if condition="$vboptions[showmoderatorcolumn]"> <td class="thead">$vbphrase[moderator]</td> </if> </tr> $childforumbits </if> </tbody> </table><div style="padding: 5px 5px 5px 5px;"></div> |
#9
|
|||
|
|||
There we go, that's exactly what I was looking for. Thanks so much for your help.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|