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)

proxx 09-11-2010 03:14 PM

what to search for in postbit_legacy ?

iask 09-11-2010 04:21 PM

Supported ???????

bandare 09-11-2010 04:56 PM

I just wondered, what are you using on your site to only allow an unregistered user a certain number of views before it makes you register?

indyonline 09-12-2010 03:07 AM

Ya, I can't find the that code to paste after either.

DxSEO 09-14-2010 05:53 AM

Quote:

Originally Posted by darsalles (Post 2096540)
Im editing the postbit legacy, but the code you post to find on postbit i cant found it or anyone similar.

Quote:

Originally Posted by digobguerreiro (Post 2096690)
I've done several test and so far has gone nowhere, I'm experiencing difficulties with this tutorial.

Quote:

Originally Posted by proxx (Post 2096752)
what to search for in postbit_legacy ?

Quote:

Originally Posted by iask (Post 2096782)
Supported ???????

default templates have different code

find in postbit

Code:

<vb:if condition="$show['attachments']">
Just Above Post google add

Code:

<vb:if condition="$post[postcount] == 1">
<script type="text/javascript"><!--
google_ad_client = "pub-";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
google_ad_channel = "forum";
google_color_border = "E1E1E1";
google_color_bg = "E1E1E1";
google_color_link = "FFFFFF";
google_color_text = "FFFFFF";
google_color_url = "FFFFFF";
google_ui_features = "rc:0";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</vb:if>

Quote:

Originally Posted by bandare (Post 2096804)
I just wondered, what are you using on your site to only allow an unregistered user a certain number of views before it makes you register?

you can use this condition before google adsense code

Code:

<vb:if condition="$show['guest']">Show this to guest only</vb:if>

bandare 09-14-2010 09:33 AM

Thanks for that......... Two questions I have:

1 - by posting the code just above the attachments, how will that know to only post on the first post (or am I not understanding the way this works!)???

2 -
Code:

<vb:if condition="$show['guest']">Show this to guest only</vb:if>
How does this make sure you only get a certain number of posts like on kattz before you can't see posts?

Thanks in advance....

CBNeter 09-14-2010 10:10 AM

I agree with bandare, whether this can be seen only on the first post? or if you have any ideas so that adsense can be seen in the posting number two not first post?
Thank You

bandare 09-14-2010 10:31 AM

I got it working on my forum but it doesn't just do the first post, it has added it to every post.

CBNeter 09-14-2010 10:40 AM

maybe this code you can use, because I use on my forum and can work well.

bellow :
Quote:

<blockquote class="postcontent restore ">
{vb:raw post.message}
</blockquote>
</div>
add this code :
Quote:

<vb:if condition="$post[postcount] % $vboptions[maxposts] == 1">
<script type="text/javascript"><!--
google_ad_client = "pub-XXXXXXXXXX";
/* forum */
google_ad_slot = "0149128395";
google_ad_width = 665;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
Demo Forum

bandare 09-14-2010 11:26 AM

Thanks, I'll go try that.. I clicked an add to say thanks on your demo site too ;)

Okay, I tried that and got the following error. If I take out your top line the error goes away. The error is:

Code:

The following error occurred when attempting to evaluate this template:
Unclosed Tag
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

This is for the line of code:
Code:

<vb:if condition="$post[postcount] % $vboptions[maxposts] == 1">
Ok, fixed it..... it needed a / at the end so should read:

<vb:if condition="$post[postcount] % $vboptions[maxposts] == 1"/>

However, it still ads an ad on the 2nd, 3rd posts too....


All times are GMT. The time now is 04:00 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.01757 seconds
  • Memory Usage 1,743KB
  • 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
  • (6)bbcode_code_printable
  • (7)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