![]() |
Add Banner Rotator Widget To CMS
1 Attachment(s)
First if you plan on using this hack you must download & install y2Ksw's Banner Rotator hack found here: https://vborg.vbsupport.ru/showthread.php?t=188328. This little mod is only for use with that hack. CLICK INSTALLED TO GET SUPPORT FOR THIS ADD-ON. IF YOU DO NOT CLICK INSTALLED I CANNOT HELP YOU. 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: vBSEO ONLY!!! Code:
<div align="center">@vbbanners:4@</div><br /> If you are not using vBSEO it will look like this: NOT USING vBSEO!!!! Code:
<div align="center"><!--@vbbanners:4@--></div><br /> Step 4: 1. Enter your banner info using the positions that you put code to in your new template and save the banners. |
Working great in 4.1.9
Thx for share... Regards |
Correction:
you wrote: <div align="center">@vbbanners:4@</div><br /> is wrong. have to be <div align="center"><!--@vbbanners:4@--></div><br /> |
Quote:
|
I'm not using vbseo.
Perhaps some other hack could change... |
Quote:
???? I changed the original instructions to reflect members not using vBSEO. |
ok, but you are using it now?
|
Quote:
|
Hey, I have a question.
I want to specify what ads go where by CMS section or catagory. Like if I have articles in the Food section I can specify articles to go there. Is this capable of doing that? Thanks! |
Quote:
|
All times are GMT. The time now is 12:49 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|