The Arcive of vBulletin Modifications Site. |
|
![]() |
|||||||||||||||||||||||||
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> Show Your Support
|
Comments |
#2
|
|||
|
|||
![]()
Wait, that whole statement makes no sense, I think you forgot some code.
|
#3
|
||||
|
||||
![]() Quote:
|
#4
|
||||
|
||||
![]()
There. I hope that makes more sense now.
|
#5
|
|||
|
|||
![]()
Yeaht thats alot better, I saw that and I was like?? </if> thats it??? LOL
Great, this is just what I was looking for. |
#6
|
||||
|
||||
![]()
Phew, I found another problem with a background color I stuck in there for testing. I hope I uploaded the fix before anyone has tried it out.
|
#7
|
|||
|
|||
![]()
All I needed to know was this "<if condition="THIS_SCRIPT == 'linksindex'">"
I've seen that used before for the dynamic links |
#8
|
||||
|
||||
![]()
Any screenshot, text or zip file available ?
|
#9
|
||||
|
||||
![]() Quote:
|
#10
|
||||
|
||||
![]()
<font color="#15a018">* Aftermath clicks on install</font>
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|