Google ads in vBAdvanced CMPS

ssj162

New Member
Hey,

I was wondering if someone could help me to add an advertisement module to vBAdvanced CMPS.

I saw this on a website some time ago and was wondering how to add this myself to my forum.

adsck6.gif



I think I have to add a module but I have no idea how to do this.

I hope someone can help me out on this.
-SsJ
 
Go to your "Admin CP > Styles Manager > Add new template

Then Title = adv_portal_google

Paste the following into the "Template" Part

Code:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
	<tr>
		<td class="tcat"><span class="smallfont"><strong>$vba_options[portal_blockbullet] <!-- Module title here -->Google Ads </strong></span></td>
	</tr>
	<tr>
		<td class="$getbgrow" width="100%">

<center><script type="text/javascript"><!--
google_ad_client = "pub-Put your google ad number here";
google_ad_width = 125;
google_ad_height = 125;
google_ad_format = "125x125_as";
google_color_border = "22229C";
google_color_bg = "E0E0F6";
google_color_link = "22229C";
google_color_url = "0F1D8C";
google_color_text = "3E5C92";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</center> 

		</td>
	</tr>
</table>
<br />

Save.

Now go into Admin CP > vBa CMPS > Add Module

Module Title = Google Ads
Module Identifier - Leave Blank
OR Template to Include = google

That should do it.
 
ok I got it working now but still one problem.

users can collapse the advertisement block, how do I change this so they can't do this?

collapseot2.jpg


Another thing.

How do I make the left column appear on more pages than just the index? (ie forumdisplay)
 
AdminCP -> vBa CMPS -> Edit Pages -> Click the page you want the module to sho on -> Scroll down and just select in the dropdown where you want the module.

AdminCP -> vBa CMPS -> Default Settings -> Style Options -> Set "Enable Collapsible Modules" to "No"
to disable minimizing of modules, but that disables every modules from minimizing. Tell me if you find a way/hack/mod that let you disable only certain modules and not all because Im interested in one.
 
thank you jastor. Although I have one more thing that I have a problem with.

First off the vbAdvanced page is correct, the table and layout is perfect.
See red markings, the table in the center is not 100% wide.

vbfa0.gif

(direct link for full size http://img211.imageshack.us/img211/293/vbfa0.gif)

The template FORUMHOME is a bit messed up.
The table is 100% wide (I tried changing the style options but no result)
I want the layout to be the same as the vbadvanced page.

homeeio4.gif

(direct link for full size http://img401.imageshack.us/img401/368/homeeio4.gif)

And when I add the vbadvanced modules to my forumhome I get this:

messedum4.gif

(direct link for full size http://img165.imageshack.us/img165/6451/messedum4.gif)

Hope you guys can help me out on this.
-SsJ
 
oh another thing, I tried this site and google but didn't quite find what I wanted, although it was posted on req forum in the sticky but nobody replied to it.

How do I display more than one announcement in forumdisplay?
 
Back
Top