The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Add Banner Rotator Widget To CMS Details »» | |||||||||||||||||||||||||||
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'); $output = $templater->render(); 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 /> <div align="center">@vbbanners:5@</div><br /> <div align="center">@vbbanners:6@</div><br /> <div align="center">@vbbanners:7@</div><br /> <div align="center">@vbbanners:8@</div><br /> <div align="center">@vbbanners:9@</div> If you are not using vBSEO it will look like this: NOT USING vBSEO!!!! Code:
<div align="center"><!--@vbbanners:4@--></div><br /> <div align="center"><!--@vbbanners:5@--></div><br /> <div align="center"><!--@vbbanners:6@--></div><br /> <div align="center"><!--@vbbanners:7@--></div><br /> <div align="center"><!--@vbbanners:8@--></div><br /> <div align="center"><!--@vbbanners:9@--></div> Step 4: 1. Enter your banner info using the positions that you put code to in your new template and save the banners. Screenshots
Supporters / CoAuthors Show Your Support
|
2 благодарности(ей) от: | ||
fxdigi-cash, RichieBoy67 |
Comments |
#12
|
|||
|
|||
I don't get it, I already follow the tutorial
and when I add the banner, only shown in add selector the page i can put the banner (Achieve, blog sidebar, blog middle, blog entry and etc ) in the tutorial Enter your banner info using the positions that you put code to in your new template and save the banners. in where ?? i using the 4.1.12 vbulletin |
#13
|
|||
|
|||
The position numbers have to correspond with where you added banner in the hack. Please click installed to gain support.
|
#14
|
|||
|
|||
Fast and easy. Works perfectly.
Thank you. One question, how can I add a 3px border around the banners in the widget? |
#15
|
|||
|
|||
Quote:
Code:
<div align="center" style="border:3px solid #000000;"><!--@vbbanners:4@--></div> |
#16
|
|||
|
|||
Hello,
is possible use the Hack as Forum Sidebar instead on the CMS? Thanks |
#17
|
|||
|
|||
Quote:
Instructions on adding this to the forum blocks sidebar can be found here: https://vborg.vbsupport.ru/showthread.php?t=285991 |
#18
|
||||
|
||||
?help a newbie, i have installed this butnow iam stuck on how toinsert a banner.....i can see the widget in my cms...how do i add the banner...in the code? befor, after postion number?
thanks joe |
#19
|
|||
|
|||
Quote:
|
Благодарность от: | ||
tacklebox joe |
#20
|
||||
|
||||
sorry metal, i've did everything to the book and read the pdf file but still can not get my banners to show in the widget i created. i put the banners in positions 4,5,6 etc.....nothing showing....what did i do wrong? thanks!
|
#21
|
|||
|
|||
What is you url to the site you are trying to get it working on? I'll have a look and see if I can tell what the issue may be. Make sure that Guest can see the widget box for the banners.
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|