vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Unique Forum Header Including Parent Forums (https://vborg.vbsupport.ru/showthread.php?t=36093)

Warlord 04-01-2002 02:20 AM

Question... if that code makes the banner appear when viewing threads, shouldn't this edited code make the banner appear when showing search results?

PHP Code:

if (substr($PHP_SELF, -strlen('forumdisplay.php')) == 'forumdisplay.php' || substr($PHP_SELF, -strlen('showthread.php')) == 'showthread.php' || substr($PHP_SELF, -strlen('search.php')) == 'search.php') {
  if(
$forumid == '') {;
    
$thread getthreadinfo($threadid);
    
$forumid $thread['forumid'];
  }
  
$foruminfo getforuminfo($forumid);
  
$parentlist explode(","$foruminfo["parentlist"]);
  
$header '';
  for (
$i=0$i<count($parentlist) and empty($header); $i++) {
    eval(
"\$header = \"".gettemplate("forumdisplay_header".$parentlist[$i])."\";");
  }
  if(
$header == '') {
    eval(
"\$header .= \"".gettemplate('header')."\";");
  }
} else {
  eval(
"\$header .= \"".gettemplate('header')."\";");


It's not working.. I'm not getting any parse errors, it just doesn't show the forum banner when displaying the search results. :( What am I doing wrong?

ladyfyre 04-01-2002 03:32 AM

PPN, FireFly, ANYONE....please help!!!!

Ok....implemented this...tested it...all was ok....still not quite what I had been looking for, but worked well, and even if it was a bit more work...it was worth it!

However....now there is a MAJOR problem.....

this is throwing wayyyy too many extra queries out....

PPN, you KNOW how many users we have...and it is kicking my servers butt BAD.

Please please please....can ya help me get this streamlined some?

Otherwise I am going to have to re edit each forum, and go back to the old different template per place....

All it would really take it is a call similiar to the one which determines what template set to use, but instead would call and add into the header of the templates the banner file for that forum. For that matter, I would even be happy with using an include right now if you can just help me get the same functionality, without all these extra queries!!!

Scott MacVicar 04-01-2002 07:57 AM

i'm doing your banner thing you wanted, like a full banner system for vBulletin so other people can use it.

Warlord 04-04-2002 09:06 PM

You talkin to me or ladyfyre? If you're talkin to me... THANKS! :)

alexwriting 04-14-2002 01:10 PM

Quote:

Originally posted by PPN
i'm doing your banner thing you wanted, like a full banner system for vBulletin so other people can use it.
Hi PPN,

Did you have time to do this? It would be just dynamite! :)

Many thanks,

Alex

Warlord 04-14-2002 10:33 PM

THWACK!

:D

Warlord 04-25-2002 10:43 PM

THWACK! :D

BrAinZ 05-09-2002 05:09 PM

I'm a little lost and would REALLY appreciate some help.

I am trying to put a Flash animated banner in the banner position where we normally have a plain jpg or gif picture.

Simply adding it as a banner image doesn't work (obviously), so I was hoping to be able to use this hack to sort the problem..

I have updated the global.php as directed and created a new template with the correct FORUMID, but the forum that I want the "modified" header for, still shows the DEFAULT header :(

Any ideas on what could be going wrong ?

Gaffer 12-01-2002 02:20 PM

did you embed the flash or just do it as an image

Rich_Z 01-22-2003 01:59 AM

Quote:

i'm doing your banner thing you wanted, like a full banner system for vBulletin so other people can use it.
Did this ever happen?

Thanks.


All times are GMT. The time now is 11:06 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.01128 seconds
  • Memory Usage 1,747KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete