Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-04-2010, 12:34 PM
JohnnieOO JohnnieOO is offline
 
Join Date: Sep 2007
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default One ad location to multiple VB forums??

I have three VB sites with essentially the same content but geographically separated. I wish to store all of my advertisements in one location but have them randomly placed on my all of my VB sites . I think I need one of two options (but this is out of my league, admittedly).
1 - A "temporary" storage that randomly rotates ads to a specific location "X" and have the VB sites reference to "X".
or
2 - Have a way to randomly (but equally) rotate from each VB site to the permanent storage.

Does anyone have any suggestions, mods, or system that will perform like this? Obviously, I would also prefer to track impressions, CTR, limit monthly impressions, etc...

Thanks,
Johnnie
Reply With Quote
  #2  
Old 06-05-2010, 01:26 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I guess I'm not understanding the question... I store my banner ads on a separate server, I just put the full URL to the image in my random banner plugin, it doesn't care where they are hosted so long as you can access them via http.
Reply With Quote
  #3  
Old 06-08-2010, 02:18 PM
JohnnieOO JohnnieOO is offline
 
Join Date: Sep 2007
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks BOP5,
I guess my confusion is this, I have three sites and do plan to store the banners remotely.
1st - I want rotating banners, not static and I am not sure how this is done.
2nd - How do I track and limit the impressions. Is there a plugin for that? I understand I can reference to them anywhere on the web, but the tracking and limiting impressions is a concern.

Thanks for any advice....anyone.

Johnnie
Reply With Quote
  #4  
Old 06-08-2010, 02:39 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Mine is just a random banner plugin, I don't track # of impressions or clicks, I just know they show up randomly...

If you want to use it, make a new plugin, hook location: global_start, execution order: 5
php code:
PHP Code:
$random_number rand(13);

$random_banner[1] = '<a href="http://www.juot.net/forums/forumdisplay.php?f=33"><img src="http://qapla.com/juotbanners/drnicksfreeclinic.gif" alt="Dr. Nicks Free Clinic" border="0" /></a>';

$random_banner[2] = '<a href="http://www.officedelegate.com/"><img src="http://qapla.com/juotbanners/banner_officedel.gif" alt="Office Delegate - Administrative Project Management" border="0" /></a>';

$random_banner[3] = '<a href="http://www.babyonhold.com/"><img src="http://qapla.com/juotbanners/bohbanner1.jpg" alt="Visit Baby on Hold" border="0" /></a>'
That code picks 1 of 3 random banners, you can obviously edit it for as many banners as you want... just add an entry for each and change the "3" in the rand() function to your max number.

Then in your ad_header_logo template, or wherever you want to show a banner ad:
PHP Code:
$random_banner[$random_number
And you have a basic random banner setup.. though without the tracking options you want. There are random banner mods available but personally I never found one as simple as the above implementation.
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 10:53 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.03427 seconds
  • Memory Usage 2,192KB
  • Queries Executed 13 (?)
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
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete