Back to vBulletin 3.5 Template Modifications

Multiple vBadvance headers
Mod Version: 1.00, by attroll

This modification is in the archives.
vB Version: 3.5.1 Rating: (0 vote - 0 average) Installs: 2
Released: 27 Nov 2005 Last Update: Never Downloads: 0
Not Supported Template Edits  

I hope I put this hack in the right loaction.

I was looking around for something that provided multiple headers for vBadvance products. I wanted different headers when I switched between the three vBadvance products.

I could not find one so I added to one that I already had. At this time it switches between the following vBadvance products Links, CMPS and the former vB Gallery.

To install this hack open you header template:

Find:
Code:
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[right]">
&nbsp;
</td>
</tr>
</table>
Replace with:
Code:
<!--Multiple Headers -->
<!--Links header -->
<if condition="THIS_SCRIPT == 'linksindex'">
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[right]">
&nbsp;
</td>
</tr>
</table>
<else />
<!--end Links header -->
<!--Gallery header -->
<if condition="THIS_SCRIPT == 'gallery_index'">
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[right]">
&nbsp;
</td>
</tr>
</table>
<else />
<!--end Gallery header -->
<!--CMPS header -->
<if condition="THIS_SCRIPT == 'adv_index'">
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[center]">
<FONT SIZE="6" COLOR="white" FACE="Times Roman"></A>Maine Sledder</FONT>
&nbsp;
</td>
</tr>
</table>
<else />
<!--end CMPS header -->
<!--forum header -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[center]">
<FONT SIZE="6" COLOR="white" FACE="Times Roman"></A>Maine Sledder Discussion Forums</FONT>
&nbsp;
</td>
</tr>
</table>
<!--end forum header -->
</if>
</if>
</if>
<!--end Multiple Headers -->
If you don’t have one of the above mentioned hacks then delete the lines between the corresponding statements:

Find: (note the Name of Hack is the name of the hack you do not have installed)
Code:
<!--Name of hack header -->
<!--end Name of hack header -->
You will also have to delete one other line if you removed lines from the above mentioned hack that you do not have installed:

Find:
Code:
</if>
<!--end multiple headers -->
Remove:
Code:
</if>
(note the are three </if> but only remove one)

There will be three different instances of the following code in the code above. One for each header. You will have to edit this to make a different header for each vBadvance header (Links, CMPS, or forums).

Edit this coded three times to what you want it to display for each header:
Code:
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>

Download

No files for download.


vblts.ru supports vBulletin®, 2022-2024