vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Miscellaneous Hacks - Ads or anything anywhere (https://vborg.vbsupport.ru/showthread.php?t=286403)

Simon Lloyd 08-06-2012 10:00 PM

Ads or anything anywhere
 
1 Attachment(s)
What this mod does
Allows you to put an ad or anything i.e html, text..etc in any template simply by adding a variable like $ad1. Each ad or content can be individually turned on and off in admincp

What this mod doesn't do
This mod does not have a rotational feature and does not provide any automatic features, it's simply a mod that allows you to add some text, html or whatever in admincp in any or all of the 6 ad boxes and display those contents anywhere you add the variables.

Installation
Simply go to AdminCp>Plugins & Products>Manage Products>Add/Import Product or http://www.yoursite.com/forum/adminc...?do=productadd then in Admincp>vbulletin Options>Ads Everywhere turn the mod on, add content and then place your variables in any templates you like, the variable for each ad box is shown in the description.

Uninstall
Simply uninstall through admincp

Originally asked for and donated for by: PANZER MAX

Ziki 08-07-2012 06:39 AM

You don't even need to setup new variables as the options are already accessible anywhere. :)

Panzer Max 11-16-2012 01:20 AM

This is great--simple interface and effective. Thanks, Simon!

Nirjonadda 11-20-2012 06:04 PM

Does it work on 4.1.10 ? Can you update for work on 4.1.10 ?

Simon Lloyd 11-20-2012 06:32 PM

I've not tried it on vb4 but i belive that the variables have to be rendered, i don't have a reason at the moment to upgrade this but that's not to say i wont in the future :)

Give it a try anyway, you can always uninstall it without any consequences.

Nirjonadda 11-20-2012 06:50 PM

Installed but where ads to show ?

Simon Lloyd 11-20-2012 06:53 PM

you have to add the variables as explained wherever you want the ad or whatever to show. As it says in the mod
Quote:

Enter your ad content/html for you ad, you use it by putting $ad1 wherever you want the ad

CoffeeLovesYou 11-20-2012 11:34 PM

Demo anywhere? Like, to see it in action? Or maybe screenshots? Thx

Simon Lloyd 11-20-2012 11:42 PM

There's no demo, it's pretty straight forward, add your content to any one or all of the boxes, put your variable like $ad1 in the place you want the content from that particular box to display and there you have it!

Panzer Max 11-21-2012 03:00 AM

You put the short ad bit in one of your templates, for example, the header or footer template or the Navigation /Breadcrumb templates > navbar template. Once you have the $ad1 bit there, you go to the ACP > vBulletin Options > Ads Anywhere and in that control panel, you put the code or whatever you want to show up on the site. Repeat for each style you have, and that's it. You want a different ad or piece of content somewhere else, then use $ad2. The standard mod allows for up to 6.

There may be other ways to "setup new variables" but I for one have no idea about that. This mod makes it super easy to switch out banner ads, announcement texts, logos, etc. across multiple styles. :up:


All times are GMT. The time now is 08:15 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.01152 seconds
  • Memory Usage 1,726KB
  • 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_quote_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