PDA

View Full Version : Miscellaneous Hacks - Ads or anything anywhere


Simon Lloyd
08-06-2012, 10:00 PM
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/admincp/plugin.php?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 (https://vborg.vbsupport.ru/member.php?u=142586)

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 modEnter 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:

al2thero
11-25-2012, 07:10 PM
thanx