vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Show Thread Enhancements - Earnmoneyworld.com Adsense Optimization | Get More Clicks With Google AdSense (https://vborg.vbsupport.ru/showthread.php?t=250031)

DxSEO 09-15-2010 06:36 AM

ah sorry i forget to add postcount command

Code:

<vb:if condition="$post[postcount] == 1">
adsense code
</vb:if>


bandare 09-15-2010 10:15 AM

that didn't work for me. I still got the advert on every post.

DxSEO 09-15-2010 11:25 AM

Quote:

Originally Posted by bandare (Post 2098536)
that didn't work for me. I still got the advert on every post.

working fine for me

post your code here

bandare 09-15-2010 11:45 AM

oh good god... I'm a muppet... I see where I went wrong... sorry Mr Hiuuf....

DxSEO 09-19-2010 08:43 AM

Quote:

Originally Posted by bandare (Post 2098567)
oh good god... I'm a muppet... I see where I went wrong... sorry Mr Hiuuf....

no problem enjoy the more clicks :D

keyness 11-11-2010 02:16 PM

I can't make this mod work :( What's wrong with my code?

I put this code to above of <vb:if condition="$show['attachments']"> in postbit:

Code:

<vb:if condition="$post[postcount] == 1">
<vb:if condition="$show['guest']">Show this to guest only</vb:if>
<script type="text/javascript"><!--
google_ad_client = "pub";
/* 728x90, 11.11.2010 */
google_ad_slot = "XXXXXXXXX";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></vb:if>

But nothing is shown. What's wrong?

DxSEO 12-01-2010 08:57 AM

Quote:

Originally Posted by keyness (Post 2120555)
I can't make this mod work :( What's wrong with my code?

I put this code to above of <vb:if condition="$show['attachments']"> in postbit:

Code:

<vb:if condition="$post[postcount] == 1">
<vb:if condition="$show['guest']">Show this to guest only</vb:if>
<script type="text/javascript"><!--
google_ad_client = "pub";
/* 728x90, 11.11.2010 */
google_ad_slot = "XXXXXXXXX";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></vb:if>

But nothing is shown. What's wrong?


try this

Code:

<vb:if condition="$post[postcount] == 1">
<vb:if condition="$show['guest']">
<script type="text/javascript"><!--
google_ad_client = "pub";
/* 728x90, 11.11.2010 */
google_ad_slot = "XXXXXXXXX";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></vb:if></vb:if>


mayank8789 03-25-2011 02:51 PM

dear member what do work in versions 4.0.3

cloferba 05-10-2011 07:27 PM

cant get this work on 4.1.2

the code is simple, after
Code:

                        <div id="post_message_{vb:raw post.postid}">
                                <blockquote class="postcontent restore">
                                        {vb:raw post.message}
                                </blockquote>
                        </div>

i insert my adsense code
Code:

<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxx";
/* 728x90, creado xxxx */
google_ad_slot = "4xxxx";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

but it isnt showed :S

TundraSoul 05-14-2011 10:57 PM

Here's my code, which works very well.

Code:

<vb:if condition="$post[postcount] == 1">
<vb:if condition="is_member_of($bbuserinfo, 1)">

<script type="text/javascript"><!--
google_ad_client = "your pub ID here";
/* 468x60, created 5/14/11 */
google_ad_slot = "my ad channel";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
<p><small>Register Now! Members do not see advertisements.</small></p></vb:if></vb:if>

I even added a little note at the bottom of the ad to encourage users to register. The code works perfectly on 4.13 and I use postbit_legacy.

Enjoy!


All times are GMT. The time now is 10:42 PM.

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.01143 seconds
  • Memory Usage 1,744KB
  • 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
  • (7)bbcode_code_printable
  • (3)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