vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Banner Scheme (https://vborg.vbsupport.ru/showthread.php?t=59740)

Steve^CHUK 01-05-2004 04:57 PM

Banner Scheme
 
I Urgently need a banner rotation script...

Just a simple one that i cant track clicks and displays a random banner at the top of each page.

Thanks in Advance

Steve

Symbian.info 01-12-2004 12:33 PM

Same for me.. so anyone?

The Dude 01-12-2004 12:44 PM

<a href="http://www.phpadsnew.com" target="_blank">www.phpadsnew.com</a>

Feran 01-12-2004 01:35 PM

This has.. nothing to do with vB3 :p

Steve^CHUK 01-12-2004 03:50 PM

i run php ads new on the server - but never got a good way to just iclude the banner at the top - can anyone show me the code mods required - i have previously got it to display using a layer but that scrolls with the screen - all i want it to do is just stay in the top right.

Anymore help would be appreciated

The Dude 01-12-2004 04:02 PM

Code:

ob_start();
 include("/home/virtual/site7/fst/var/www/html/topad.php");
$topad = ob_get_contents();
ob_end_clean();

Include something like that in your phpinclude_start file and then you can call the ad with the $topad code. Replace the file locotation with your one and you can replace the $topad bit with whatever you like as well.

Indy 01-12-2004 05:32 PM

1 Attachment(s)
I've tried just about all of the banner programs. Either too much work to keep on top of things, additional server resources, etc. Plus, about 2 years or so ago I had to do something quickly to keep my sponsor's banners up and running. I too wanted something simple.

Open up and enter your banner info in banner.txt
Open up and edit the $base_dir, $img_url and $max information in banner.php

Upload banner.php and banner.txt to your forum's dir.

Place the following in your phpinclude_start template:
ob_start();
include("banner.php");
$showbanner = ob_get_contents();
ob_end_clean();

Wherever you want the banner, insert $showbanner

This has been working great for me for the past two years. Yes, I have to open these two files whenever I add or change info but it only takes a couple minutes.

If a particular banner is expired, I just move it to a line down under the text "EXPIRED GOES HERE"

Remember to adjust the $max variable in banner.php to the number of line of banners you have in banner.txt.

Honestly, I thought that after I got my vB2.3 upgraded to vB3 that I would get a little fancier with this by making a table and adding banner/sponsor info in the database plus counting clicks, etc. But, like I said previously this thing works so great I may just leave it alone and K.I.S.S. it! :squareeyed:

Feel free to use it, hack it or whatever you want!

randychase 01-22-2004 05:11 PM

Awesome stuff Indyshooter. Works great!

ehask 02-08-2004 05:54 PM

Thanks Indy!!!

Just what I needed

Eric
Rackspeed Web Dev.

13th_Disciple 02-27-2004 01:25 AM

indy.. great little system.. i really like how small it is.. i have a question.. any idea how i can get it working on my main page? it is at "/" where my forums are "/forums"

any advice would be greatly appreciated..


All times are GMT. The time now is 07:51 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.03462 seconds
  • Memory Usage 1,725KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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