vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Forum -specific news & banners (https://vborg.vbsupport.ru/showthread.php?t=64358)

Spinball 04-25-2004 11:28 AM

Forum -specific news & banners
 
Hi,
in vB2 I use a hack by MaDCaT75 which alters forumdisplay.php to place banners at the top of specific forums.

I have edited the code further to also display static HTML news items:
PHP Code:

if ($forumid==36) {
   
$mycustombanner file_get_contents("http://www.homecinemachoice.com/cgi-bin/hcgnewsheadlines.html") . "<P></P>"
} elseif (
$forumid==37) {
   eval(
"\$mycustombanner .= \"".gettemplate('forum37advert')."\";"); 
   
$mycustombanner .= "<P></P>" file_get_contents("http://www.totaldvd.net/cgi-bin/dvdnewsheadlines.html"); 
} elseif (
$forumid==124) {
   
$mycustombanner file_get_contents("http://www.totaldvd.net/includes/dvddata.php") . "<P></P>"
} elseif (
$forumid==126) {
   
$mycustombanner file_get_contents("http://www.totaldvd.net/cgi-bin/hacks.php") . "<P></P>"
} elseif (
$forumid==82) {
   if (
mt_rand(1,2) == 1) {
      eval(
"\$mycustombanner .= \"".gettemplate('forum82nexnix')."\";"); 
   } else {
      eval(
"\$mycustombanner .= \"".gettemplate('forum82avsales')."\";"); 
   }
}
eval(
"dooutput(\"".gettemplate('forumdisplay')."\");");


This hack uses some templates which display the banners.
Could some fantastic person tell me how I could implement this into vB3?
Please? If so then I can upgrade to it !!!
Thanks

Spinball 04-29-2004 08:40 AM

Anyone?

Spinball 05-11-2004 06:35 AM

bump. anyone there?

d3nnis 05-11-2004 06:51 AM

u can use the if conditional statements in the templates to achieve this :)


All times are GMT. The time now is 10:04 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.00971 seconds
  • Memory Usage 1,720KB
  • 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
  • (4)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