vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Add-On Releases - Make adsense look like a post (https://vborg.vbsupport.ru/showthread.php?t=129449)

Dream 11-08-2006 02:21 AM

ARGH I HATE SPACERS

cant make the ad post to show in the right place

I ditched the spacers ($spacer_open $spacer_close) and used <br />s and all is fine.

Thanks :)

bosal 11-08-2006 06:56 PM

How to make that it doesn't show for admins, mods, supa mods ?

Dream 11-09-2006 04:12 AM

to make it show after the second post the right code is

$post[postcount] == 2

bosal 11-09-2006 12:08 PM

Quote:

Originally Posted by Dream
to make it show after the second post the right code is

$post[postcount] == 2


can you show the exact code ?

beansbaxter 11-09-2006 12:32 PM

The problem I have is whenever I start adding Google Adsense to the postbit template, then the Multi-Quote and Quick Reply buttons cease working.

Is there a hack/module to do this that does not require editing the postbit template??

Dream 11-09-2006 02:34 PM

Here's a revision of the code.

Code:

<!-- Google AdSense in Posts -->
<if condition="THIS_SCRIPT == 'showthread' AND  $post[postid] == $GLOBALS['qrlastpostid']">

<if condition="$show['spacer']">
    </div>
    $spacer_close
</if>

<if condition="$show['spacer']">
    $spacer_open
    <div id="edit$post[postid]" style="padding:0px 0px $stylevar[cellpadding]px 0px">
    <if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>   
</if>

<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr valign="top">
    <td class="alt2" width="175">
           
            <div id="postmenu_$post[postid]">
                <if condition="$show['profile']">
                <span class="bigusername">Propaganda</span>
                <else />
                Propaganda
                </if>
                <br><br><script type="text/javascript"><!--
google_ad_client = "YOUR ADSENSE ID HERE!";
google_ad_width = 125;
google_ad_height = 125;
google_ad_format = "125x125_as_rimg";
google_cpa_choice = "CAAQtIHDmwIaCDbdURNUSIZ3KJDquosB";
google_ad_channel = "";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
            </div>
               
    </td>
    <if condition="$show['moderated']">
    <td class="alt2" id="">
    <else />
    <td class="alt1" id="">
    </if>
   
        <if condition="$show['messageicon'] OR $post['title']">
            <div class="smallfont">
                <if condition="$post['title']"><strong>Sponsored links</strong></if>
            </div>
            <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
        </if>
       
        <!-- message -->
        <div id="post_message_$post[postid]">
    <div align="left">
<script type="text/javascript"><!--
google_ad_client = "YOUR ADSENSE ID HERE!";
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = "300x250_as";
google_ad_type = "text_image";
google_ad_channel = "6284652722";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
    </div>

</div>
        <!-- / message -->
   
    </td>
</tr>
</table>
<!-- / post $post[postid] popup menu -->
</if>
<!-- / Google AdSense in Posts -->

If you wanna show it after the second post, instead

$post[postid] == $GLOBALS['qrlastpostid']

use

$post[postcount] == 2

Change the number for other posts.

ninjashoes 12-04-2006 02:20 AM

if you just want to make a couple big adsense squares halfway down the page do this

Code:

<center>
<!-- START ADSENSE REVENUE -->
<if condition="THIS_SCRIPT == 'showthread'AND $post[postcount] == 10 AND (!in_array($forum[forumid], array())) AND (!$show[member])">
<script type="text/javascript"><!--
google_ad_client = "your pub id";
google_ad_width = 336;
google_ad_height = 280;
google_ad_format = "336x280_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "333333";
google_color_bg = "333333";
google_color_link = "FFFFFF";
google_color_text = "FFFFFF";
google_color_url = "FFFFFF";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<script type="text/javascript"><!--
google_ad_client = "your pub id";
google_ad_width = 336;
google_ad_height = 280;
google_ad_format = "336x280_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "333333";
google_color_bg = "333333";
google_color_link = "FFFFFF";
google_color_text = "FFFFFF";
google_color_url = "FFFFFF";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</if>
</center>


NameClan.com 01-17-2007 08:47 AM

is it really good? :)

i mean to increase the revenue

pgowder 01-30-2007 02:12 PM

I've tried this in 3.6.4 and it doesn't show up??

iahead 02-01-2007 07:32 AM

can i add it inside the first post .


All times are GMT. The time now is 09:37 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.01113 seconds
  • Memory Usage 1,746KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete