Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 07-06-2006, 04:54 PM
oldgoat oldgoat is offline
 
Join Date: Mar 2006
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:07 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.03031 seconds
  • Memory Usage 2,176KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete