vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Sub forum specific header modifications (https://vborg.vbsupport.ru/showthread.php?t=120478)

oldgoat 07-06-2006 04:54 PM

Sub forum specific header modifications
 
Hello to all
I have modified the following code ? see below: essentially what this does is display a specific ad in the right side portion of the header. The left side will always have the same banner in place. I am looking for suggestions to accomplish the following:

1- is there a way to include a range of forum id?s in an array, instead of entering each value individually. (example below)
<if condition="in_array($GLOBALS['forumid'], array(18,19,20,25,26))">

2- if a forum id is not included in the array, can a default image be displayed
3- how can I add left / right columns and custom header to the www.website.com/forum/index.php? page only, all other pages are to be excluded. (I assume that all modifications will be made to the header / footer templates) this page in running vbadvanced 2.1.0

thank you in advance for all your help

PHP Code:

<!-- logo -->
<
a name="top"></a>
<
table border="0" width="$stylevar[outertablewidth]cellpadding="0" cellspacing="0" align="center">
<
tr>
    <
td align="left"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><a href="http://www.website/forum/index.php?">
<
img src="$stylevar[imgdir_misc]/BANNER.jpg" WIDTH="410" HEIGHT="100" alt="banner" border="1"></a></a></td>

<!-- 
FORUM SPECIFIC AD MODIFICATION -->

<if 
condition="in_array($GLOBALS['forumid'], array(18,19,20,25,26))">

</if>
<if 
condition="in_array($GLOBALS['forumid'], array(25))">
        <
td align="center"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><a href="http://www.hyperlink.com">
<
img src="$stylevar[imgdir_misc]/AD.jpg" WIDTH="570" HEIGHT="100" alt="AD" border="1"></a></a></td>
    </
td>
</if>

</if>
<if 
condition="in_array($GLOBALS['forumid'], array(18))">
        <
td align="center"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><a href="http://www.hyperlink2.com">
<
img src="$stylevar[imgdir_misc]/AD2.jpg" WIDTH="570" HEIGHT="100" alt="AD2" border="1"></a></a></td>
    </
td>
</if>

</if>
<if 
condition="in_array($GLOBALS['forumid'], array(26))">
        <
td align="center"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><a href="http://www.hyperlink3.com">
<
img src="$stylevar[imgdir_misc]/AD3.jpg" WIDTH="570" HEIGHT="100" alt="AD3" border="1"></a></a></td>
    </
td>
</if>


<if 
condition="in_array($GLOBALS['forumid'], array(18,19,20,25,26))">
    </
tr>
    </
table>
</if>

<!-- /
FORUM SPECIFIC LINK MODIFICATION -->

</
tr>
</
table>
<!-- /
logo -->

<!-- 
content table -->
$spacer_open

$_phpinclude_output 



All times are GMT. The time now is 03:59 AM.

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.00945 seconds
  • Memory Usage 1,746KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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