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 |
#2
|
|||
|
|||
Working great in 4.1.9
Thx for share... Regards |
#3
|
||||
|
||||
Correction:
you wrote: <div align="center">@vbbanners:4@</div><br /> is wrong. have to be <div align="center"><!--@vbbanners:4@--></div><br /> |
#4
|
|||
|
|||
Nope that is right if you are using vBSEO. As I said in the first post if you had read it all that code would be somewhat different for some than what I put there. But I will edit the original post and put that in there.
|
#5
|
||||
|
||||
I'm not using vbseo.
Perhaps some other hack could change... |
#6
|
|||
|
|||
???? I changed the original instructions to reflect members not using vBSEO. |
#7
|
||||
|
||||
ok, but you are using it now?
|
#8
|
|||
|
|||
Not sure what that has to do with anything. The site I had it on is no longer available. But it did work just fine. If you are having an issue with it working properly let me know what problem you are having and I can help.
|
#9
|
|||
|
|||
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! |
#10
|
|||
|
|||
Sorry for the late reply. I suppose you could do that with the positions and several widgets. But it does not do it automatically.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|