vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Need help to finish this hack!!!!!! Please (https://vborg.vbsupport.ru/showthread.php?t=51245)

trafix 04-06-2003 02:26 AM

Need help to finish this hack!!!!!! Please
 
I am building a new banner hack to allow targeted sponsorship of nominated forums and files. :) Just like phpnewads but far less confusing and much easire to add a new sponsor / advertiser

When you add banners you can allicate it a forun no. or just add it to the bannerbank for random display.

If a forum is sponsored the approiate banner will be displayed with link at the top of the thread list and next to the forum title in forum display as well as at the top of EVERY page of EVERY thread.........THIS WORKS! :p

However if a forum is not sponsored then a random banner is to be selected from the bannerbank list....THIS IS NOT WORKING :ermm:

Original help request thread here.
https://vborg.vbsupport.ru/showthrea...045#post378045

Thanks in advance

PS I have decided to realease it once finished :smoke:

trafix 04-06-2003 06:26 AM

this wont work either....

the first bit does work and diplays the template with $showad[???] inserted but the dosnt after } else { the template is displayed but the $anotherad[??????] are blank

any ideas

PHP Code:

if ($showad[active]=='1') {
  eval(
"\$showthisad .= \"".gettemplate("ads_forum_sponsor")."\";");

  } else {
  
$anotherad=$DB_site->query("SELECT * FROM ads WHERE id='2'");
  eval(
"\$showthisad .= \"".gettemplate("ads_bannerbank")."\";");
  } 



All times are GMT. The time now is 09:20 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.01138 seconds
  • Memory Usage 1,717KB
  • 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
  • (2)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