eclectica
2004-04-24, 00:17
After you upgrade to a newer version of vBulletin, some of the templates change on the board as well. The only ones you need to worry about are your customized templates. To find out after an upgrade if your customized templates have changed, go in the admincp to Styles & Templates--> Find Updated Templates. It will list the ones which have been updated after you have updated your board. You can then revert them to their new defaults, and then afterwards apply your customizations again.
The templates in each style must be customized, but if it is set up so that there is a parent style then only the parent style needs to be customized, causing the templates of all child styles to be automatically customized as well. Here are the vBulletin templates which have been customized on the board:
navbar
EFFECT:
To toggle between home and forum page on navbar. See this thread (http://www.vbadvanced.com/forum/showthread.php?t=9689)
find the following, where it occurs in the second instance in the template:
<if condition="$show['member']">
above it add this:
<td class="vbmenu_control"><if condition="THIS_SCRIPT == 'adv_index'"><a href="$vboptions[bburl]/$vboptions[forumhome].php?$session[sessionurl]"> Forum <else /> <a href="$vboptions[homeurl]?$session[sessionurl]"> Home </if></a></td>
The following customized template was created to add a flash clock to the vBadvanced portal. See this information at vbadvanced.com:
http://www.vbadvanced.com/forum/showthread.php?t=1172
http://www.vbadvanced.com/membersarea.php?do=viewusermanual&productid=4&pageid=5
adv_portal_clock
<table align="center" border="0" cellpadding=
"$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]"
class="tborder" width="100%">
<tr>
<td class="tcat"><span class=
"smallfont"><strong>$vba_options[portal_blockbullet] <a href=
"http://www.3-3-3.org/forum/clocks/DeskClock2.swf">Clock</a></strong></span></td>
</tr>
<tr>
<td class="$getbgrow" width="100%"><object width="150" height=
"150"><param name="movie" value=
"http://www.3-3-3.org/forum/clocks/GlowClock.swf">
<embed src="http://www.3-3-3.org/forum/clocks/GlowClock.swf" width=
"150" height="150"></object></td>
</tr>
</table>
After the template was saved I went into the admincp > vBa CMPS > Add Module > Template, then:
- Module Title - Clock
- Module Identifier - (leave blank)
- OR Template to Include - clock
- Activate and select the column you want it in.
- Save
- Use Module Shell Template: NO (YES if clock is on the bottom of column)
The templates in each style must be customized, but if it is set up so that there is a parent style then only the parent style needs to be customized, causing the templates of all child styles to be automatically customized as well. Here are the vBulletin templates which have been customized on the board:
navbar
EFFECT:
To toggle between home and forum page on navbar. See this thread (http://www.vbadvanced.com/forum/showthread.php?t=9689)
find the following, where it occurs in the second instance in the template:
<if condition="$show['member']">
above it add this:
<td class="vbmenu_control"><if condition="THIS_SCRIPT == 'adv_index'"><a href="$vboptions[bburl]/$vboptions[forumhome].php?$session[sessionurl]"> Forum <else /> <a href="$vboptions[homeurl]?$session[sessionurl]"> Home </if></a></td>
The following customized template was created to add a flash clock to the vBadvanced portal. See this information at vbadvanced.com:
http://www.vbadvanced.com/forum/showthread.php?t=1172
http://www.vbadvanced.com/membersarea.php?do=viewusermanual&productid=4&pageid=5
adv_portal_clock
<table align="center" border="0" cellpadding=
"$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]"
class="tborder" width="100%">
<tr>
<td class="tcat"><span class=
"smallfont"><strong>$vba_options[portal_blockbullet] <a href=
"http://www.3-3-3.org/forum/clocks/DeskClock2.swf">Clock</a></strong></span></td>
</tr>
<tr>
<td class="$getbgrow" width="100%"><object width="150" height=
"150"><param name="movie" value=
"http://www.3-3-3.org/forum/clocks/GlowClock.swf">
<embed src="http://www.3-3-3.org/forum/clocks/GlowClock.swf" width=
"150" height="150"></object></td>
</tr>
</table>
After the template was saved I went into the admincp > vBa CMPS > Add Module > Template, then:
- Module Title - Clock
- Module Identifier - (leave blank)
- OR Template to Include - clock
- Activate and select the column you want it in.
- Save
- Use Module Shell Template: NO (YES if clock is on the bottom of column)