vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Advert Management Addon (https://vborg.vbsupport.ru/showthread.php?t=39070)

Scott MacVicar 05-26-2002 03:02 PM

Advert Management Addon
 
1 Attachment(s)
Just thought I'd post a quick preview of this hack that Im finishing off, it allows you to create ads for specific forums in the board or all forums, i've currently got it working in displaying in forumdisplay.php and showthread.php.
Though I will be considering adding it to all pages.

Features Include:
  • Multiple adverts in rotation for a forum
  • Adverts placed on categories will appear in forums below it
  • Ability to set amount of exposures an advert receives
  • Advert can be text, image, or mixed

Some screenshots i guess

Scott MacVicar 05-26-2002 03:03 PM

1 Attachment(s)
Adding an advert

Scott MacVicar 05-26-2002 03:04 PM

1 Attachment(s)
advert has been added

Darren Lewis 05-26-2002 03:37 PM

Looks very good PPN. Will javascript be allowed in the code of the advert (some ad providers use this method)?

Am I right in thinking that it will allow 468x60 banners at the top of the page below the header area?

Scott MacVicar 05-26-2002 03:58 PM

You can place whatever code you wish within the advert data, it could be images, flash movie, text, both, javascript and it will assign it to a variable $advert which you can use in any template as the variable is given a value in global.php before any of the templates are loaded.

Darren Lewis 05-26-2002 04:52 PM

Brilliant!

One other question, can you have more than one ad eg a banner at the top and a different one at the bottom of the forum?

Lesane 05-26-2002 05:14 PM

Very nice

in your admincp, your running 2.2.6 and the latest is 2.2.5 :D

Scott MacVicar 05-26-2002 05:34 PM

Released the hack
https://vborg.vbsupport.ru/showthrea...threadid=39074

I'm running the latest version of vBulletin from the cvs :P


All times are GMT. The time now is 08:12 AM.

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.01045 seconds
  • Memory Usage 1,719KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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