Multiple vBadvance headers
This modification is in the archives.
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]"> </td> </tr> </table> 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]"> </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]"> </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> </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> </td> </tr> </table> <!--end forum header --> </if> </if> </if> <!--end Multiple Headers --> 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 --> Find: Code:
</if> <!--end multiple headers --> Code:
</if> 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. |