View Full Version : VBM, banner management
amirdoit
12-01-2006, 10:41 PM
hi.
how we can include the banners in our main website? {what should i type?}
thanks
Micha
12-02-2006, 09:44 AM
When you fill the zone with banners, you need to press "generate code" to get JavaScript code that you need to copy in desired place.
Commonly used templates are:
Index.tpl - to display on home page.
Category_Main.tpl - to display on category page.
Article_full.tpl - to display in full article view page.
amirdoit
12-02-2006, 11:50 PM
When you fill the zone with banners, you need to press "generate code" to get JavaScript code that you need to copy in desired place.
Commonly used templates are:
Index.tpl - to display on home page.
Category_Main.tpl - to display on category page.
Article_full.tpl - to display in full article view page.
thanks mannnn, working perfect now
mario_braha
07-29-2007, 02:03 AM
Can any one gave a spsifik exsamle hot to put it on index.tpl
like little code as well please
my index.tpl file looks like that <!-- index.tpl -->
{DUMP_MESSAGE}
{TICKER}
<div id="content">
<div id="dynamic_box_right">
{BOX_MOST_POPULAR}
{BOX_MOST_COMMENTED}
{BOX_MOST_EMAILED}
{BOX_FEATURED_AUTHOR}
</div>
<div id="headline" class="content_holder_no_left">{FEATURED_NEWS}</div>
<div id="dynamic_box_left">
{BOX_SECTIONS}
{CALENDAR}<br />
{BOX_NEWSLETTER}<br />
{BOX_POLL}<br />
</div>
<div id="content-holder" class="content_holder">
{LATEST_NEWS}
<div class="box_gray">
<div class="box_title"><h3></h3></div>
<div class="box_line">
<!-- -->
</div>
<div class="box_body" style="text-align:right;"><a href="{VIEW_ALL}">{LNG_ALL_NEWS} »</a></div>
</div>
</div>
</div>
<div class="clear"></div>
{BOX_CATEGORY_HEADERS}
<!-- end index.tpl -->
where do I put the other code
Micha
07-30-2007, 09:05 AM
Here you go :)
<!-- index.tpl -->
{DUMP_MESSAGE}
{TICKER}
<div id="content">
<div id="dynamic_box_right">
PLACE GENERATED CODE HERE FOR BANNERS TO APPEAR IN RIGHT COLUMN
{BOX_MOST_POPULAR}
{BOX_MOST_COMMENTED}
{BOX_MOST_EMAILED}
{BOX_FEATURED_AUTHOR}
</div>
<div id="headline" class="content_holder_no_left">{FEATURED_NEWS}</div>
<div id="dynamic_box_left">
PLACE GENERATED CODE HERE FOR BANNERS TO APPEAR IN LEFT COLUMN
{BOX_SECTIONS}
{CALENDAR}<br />
{BOX_NEWSLETTER}<br />
{BOX_POLL}<br />
</div>
<div id="content-holder" class="content_holder">
PLACE GENERATED CODE HERE FOR BANNERS TO APPEAR IN CENTER COLUMN
{LATEST_NEWS}
<div class="box_gray">
<div class="box_title"><h3></h3></div>
<div class="box_line">
<!-- -->
</div>
<div class="box_body" style="text-align:right;"><a href="{VIEW_ALL}">{LNG_ALL_NEWS} »</a></div>
</div>
</div>
</div>
<div class="clear"></div>
{BOX_CATEGORY_HEADERS}
<!-- end index.tpl -->
Big Island
08-30-2007, 02:54 PM
I assume there would be no problem substituting code from openads instead if you have higher needs, such as keywords, etc?
nfriend
08-30-2007, 03:54 PM
Right, the VBM is pretty simplistic and wouldn't suit needs like yours. Use OpenAds (remote invocation for Javascript) as you would anywhere else, paste the javascript into the templates wherever you want the zones. From what I have gathered, it is possible to use local mode invocation code which works better, but since it is php code, you cannot put it into the Vivvo templates. You need to work out a way to assign template variables for the results of the script and put the template variables into the .tpl. I have not had the time to work it out, but if you eventually do...please share!!
Good luck.
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.