PDA

View Full Version : google Ad Block in vBadvanced CMPS v2.1.0


ryancooper
04-28-2006, 10:55 AM
Can someone help me with this. I am trying to add google to the vBadvanced CMPS v2.1.0 but am having no luck.

here is what I am using. From vBadvanced's page

<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<thead>
<tr>
<td class="tcat smallfont" style="font-weight: bold;"><a style="float: $stylevar[right]" href="#" onclick="return toggle_collapse('forumhome_$mods[filename]')"><img id="collapseimg_forumhome_$mods[filename]" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_randomtopic].gif" width="15" height="15" border="0" alt="Collapse/Expand" /></a>$vba_options[portal_blockbullet] $mods[title]</td>
</tr>
</thead>
<tfoot style="display: none;"></tfoot>
<tbody id="collapseobj_forumhome_$mods[filename]">
<tr style="$vbcollapse[collapseobj_forumhome_randomtopic]">
<td class="$getbgrow">
<center><script type="text/javascript"><!--
google_ad_client = "pub-XXX";
google_ad_width = 160;
google_ad_height = 600;
google_ad_format = "160x600_as";
google_ad_channel ="";
google_color_border = "669966";
google_color_bg = "99CC99";
google_color_link = "000000";
google_color_url = "00008B";
google_color_text = "336633";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center>
</td>
</tr>
</tbody>
</table>
<br />

but it turns out like the pic attached. Any help?

RetroDreams
04-28-2006, 12:59 PM
You're missing the necessary table stuff for modules. You need to add:


<tr><td> at the top of the template.
</td></tr> at the bottom of the template.

ryancooper
04-28-2006, 01:07 PM
cool thanks! ;)

KW802
04-28-2006, 02:20 PM
You're missing the necessary table stuff for modules. You need to add:


<tr><td> at the top of the template.
</td></tr> at the bottom of the template.
Yep. :) With the advent of the new 'Generic Module Shell' option in the CMPS 2.x series the module template now requires it to be encapsulated inside of a the <tr><td>{content}</td></tr> format. Modules that don't use the generic shell don't need the extra tags.

ryancooper
04-28-2006, 05:17 PM
Awesome. Do either of you know how i can get my Custom BB templates to open in the same window? They all open in a new wondow now.

Thanks!

Ryan