![]() |
i didn't say it's not working, cause it's working, but some option doesn't work, example:
i try: "ad thread last post content" look for ads on the thread, nothing. |
1 Attachment(s)
Here is a simple way to add your banners in a CMS widget.
You will need to create a PHP Execution by doing the following: Step 1: 1. In the admincp go to vBulletin CMS>Widgets 2. Click on "Create New Widget" at the bottom. 3. Choose "PHP Direct Execution" in the Widget Type drop down at the top. 4. Give your widget a title - do not make it too long as your box will be whatever size you have in your CMS. 5. Now click the "Save" button. Step 2: 1. Go to vBulletin CMS>Widgets and select the widget you just made. 2. Click on the "Configure" link all the way to the right. 3. Delete all the test inside the box when it pops up. 4. Place this code in the box: Code:
$templater = vB_Template::create('banner_sidebar'); Step 3: 1. Go to Styles & Templates>Style Manager click the drop down box on the right side and choose "Add New Template". 2. In the "Title" box put "banner_sidebar" without the quotes. 3. Now in the large box below place your code for your banners like you would any other template. For instance I put this: Code:
<div align="center">@vbbanners:4@</div><br /> 4. Now click the "Save" button. Step 4: 1. Enter your banner info using the positions that you put code to in your new template and save the banners. |
Quote:
Quote:
Quote:
Quote:
|
Quote:
For example, the inbuilt ad locations of vbulletin require you to define additional rules from within Advertising, else they will not show at all. In these definitions you would use then the RBS placeholders instead of other HTML and everything works out just fine :) |
Quote:
|
I need to exclude the banners from a specific mobile style. What's the simplest way to do this?
|
Quote:
I imagine however, you are using the advertising ... then maybe selecting the style will help. |
Quote:
But this worked. I edited the RBS Banner Insertion plugin as follows: I inserted Code:
/** don't display banners for Mobile 2 style **/ Code:
} May I suggest that an option to exclude certain styles might be added in a new version? |
Quote:
I would have made for each style an ad, instead, if I really had to, or rather not used the ad system at all and modified the relative templates in a way that I could do without it. As a matter of fact, using the ad system slows down the forums quite a bit ... it is useful and simple, but not a long term solution for heavily loaded systems ;) |
@all
I soon will review the code and add a few features. Is there anything you may wish to add? |
All times are GMT. The time now is 11:03 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|