vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Multiple vBadvance headers (https://vborg.vbsupport.ru/showthread.php?t=101642)

attroll 11-26-2005 10:00 PM

Multiple vBadvance headers
 
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>

PennylessZ28 11-27-2005 12:42 AM

Wait, that whole statement makes no sense, I think you forgot some code.

attroll 11-27-2005 12:52 AM

Quote:

Originally Posted by HR3rdGen
Wait, that whole statement makes no sense, I think you forgot some code.

Oh Crap. You right. LOL. Thanks you for pointing that out. I will get right on it.

attroll 11-27-2005 01:07 AM

There. I hope that makes more sense now.

PennylessZ28 11-27-2005 01:13 AM

Yeaht thats alot better, I saw that and I was like?? </if> thats it??? LOL

Great, this is just what I was looking for.

attroll 11-27-2005 01:16 AM

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.

PennylessZ28 11-27-2005 01:20 AM

All I needed to know was this "<if condition="THIS_SCRIPT == 'linksindex'">"

I've seen that used before for the dynamic links

G-Force 199 11-27-2005 01:39 AM

Any screenshot, text or zip file available ?

attroll 11-27-2005 06:40 AM

Quote:

Originally Posted by G-Force 199
Any screenshot, text or zip file available ?

I could make some screen shots if you really want me to. But all it is going to do is show a different header when you go between the vBadvance Links, CMPS, and forum area.

Snake 11-27-2005 10:48 AM

<font color="#15a018">* Aftermath clicks on install</font>


All times are GMT. The time now is 01:17 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01181 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete