Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-05-2004, 04:57 PM
Steve^CHUK Steve^CHUK is offline
 
Join Date: Jul 2002
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 01-12-2004, 12:33 PM
Symbian.info Symbian.info is offline
 
Join Date: Nov 2001
Location: Netherlands
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Same for me.. so anyone?
Reply With Quote
  #3  
Old 01-12-2004, 12:44 PM
The Dude The Dude is offline
 
Join Date: Apr 2003
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="http://www.phpadsnew.com" target="_blank">www.phpadsnew.com</a>
Reply With Quote
  #4  
Old 01-12-2004, 01:35 PM
Feran's Avatar
Feran Feran is offline
 
Join Date: Oct 2003
Location: San Diego, CA (USA)
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This has.. nothing to do with vB3
Reply With Quote
  #5  
Old 01-12-2004, 03:50 PM
Steve^CHUK Steve^CHUK is offline
 
Join Date: Jul 2002
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 01-12-2004, 04:02 PM
The Dude The Dude is offline
 
Join Date: Apr 2003
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 01-12-2004, 05:32 PM
Indy Indy is offline
 
Join Date: Jun 2002
Location: Indianapolis, IN
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Attached Files
File Type: php banner.php (1,021 Bytes, 100 views)
File Type: txt banners.txt (329 Bytes, 105 views)
Reply With Quote
  #8  
Old 01-22-2004, 05:11 PM
randychase randychase is offline
 
Join Date: Apr 2002
Location: San Diego
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome stuff Indyshooter. Works great!
Reply With Quote
  #9  
Old 02-08-2004, 05:54 PM
ehask ehask is offline
 
Join Date: Apr 2003
Location: Clearwater, FL
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Indy!!!

Just what I needed

Eric
Rackspeed Web Dev.
Reply With Quote
  #10  
Old 02-27-2004, 01:25 AM
13th_Disciple 13th_Disciple is offline
 
Join Date: Jan 2003
Posts: 262
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
Reply With Quote
Reply


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 08:25 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08371 seconds
  • Memory Usage 2,270KB
  • Queries Executed 12 (?)
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_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_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
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete