vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   google Ad Block in vBadvanced CMPS v2.1.0 (https://vborg.vbsupport.ru/showthread.php?t=114292)

ryancooper 04-28-2006 10:55 AM

google Ad Block in vBadvanced CMPS v2.1.0
 
1 Attachment(s)
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

Code:

<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:

Code:

<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

Quote:

Originally Posted by RetroDreams
You're missing the necessary table stuff for modules. You need to add:

Code:

<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


All times are GMT. The time now is 03:28 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00964 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete