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)
-   -   Mini Mods - Adsense Inside the Post (https://vborg.vbsupport.ru/showthread.php?t=140664)

popowich 04-15-2007 12:34 AM

Quote:

Originally Posted by kpascal (Post 1221803)
I changed the placement of this mod when I applied it. (link to example) With the ad placed under the post, instead of beside it, I have not experienced an [img] or [quote] problem.

Hello,

Where do you insert the code for this mod to look like your version?

-Raymond

kpascal 04-15-2007 09:12 AM

Quote:

Originally Posted by popowich (Post 1227941)
Hello,

Where do you insert the code for this mod to look like your version?

-Raymond


Hi Raymond, instead of using the suggested code below:
Quote:

<!-- message -->
<if condition="(($post[postcount] % $vboptions[maxposts] == 1)) and ($show['guest'])">
<span style="margin: 2px; float: right; width: 301px; height: 251px;">
ADSENSE CODE HERE
</span>
</if>
<div id="post_message_$post[postid]">$post[message]</div>
<!-- / message -->

I used his instead:
Quote:

<!-- message -->
<div id="post_message_$post[postid]">$post[message]</div>

<if condition="(($post[postcount] % $vboptions[maxposts] == 1)) and !is_member_of($bbuserinfo,10,11,12,14)"><br />
<center><span style="margin: 5px; width: 470px; height: 62px;">

ADSENSE CODE HERE

</span></center>
</if>
<!-- / message -->

The !is_member_of($bbuserinfo,10,11,12,14) part of the <if> statement specifies which usergroups do not see the ads.

abakus 04-15-2007 05:40 PM

very nice thanks man

Digital Girl 04-16-2007 08:27 AM

Great Mod but it does not seem to be working for me?

Mrdby 04-18-2007 12:45 AM

anybody?

Smitty 04-18-2007 08:59 AM

Quote:

Originally Posted by Digital Girl (Post 1228852)
Great Mod but it does not seem to be working for me?

It is working for me, but only shows in the first post.

How do I get it to show in the last post on the page as well as the first post?

Edit Add:

In my postbit I've put
Code:

<!-- Start AdSense Google within post message -->
<if condition="(($post[postcount] % $vboptions[maxposts] == 1) or ($post[islastshown]))">
<span style="margin: 2px; float: right; width: 301px; height: 251px;">
GOOGLE ADSENSE CODE HERE
</span>
</if>
    <div id="post_message_$post[postid]">$post[message]</div>
                <!-- End AdSense Google within post message -->

to work, but if someone uses the 'quick edit' on a post with adsense in it (first or last post in a thread), the ajax of Quick Edit kicks in but the google ad that is there is superimposed over part of the editing box....

smestas 06-01-2007 08:05 AM

Thanks for the great MOD!

I just installed it and it seems to be working for the most part but I did remove the code to show to all users and now I'm getting more then one add per page. Usuall this wouldnt be so bad but I already have 2 other Adsense adds running. Is there a way to keep it only on the first post of every page?

here is and example: http://www.alfabb.com/bb/forums/showthread.php?t=7645


Code:

                <!-- message -->
<if condition="(($post[postcount] % $vboptions[maxposts] == 1))">
<span style="margin: 2px; float: right; width: 301px; height: 251px;">
       
<script type="text/javascript"><!--
google_ad_client = "pub-8924331979110227";
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = "300x250_as";
google_ad_type = "text";
//2007-06-01: AlfaBB postbit
google_ad_channel = "3930652802";
google_color_border = "F6F6F6";
google_color_bg = "F6F6F6";
google_color_link = "CC0000";
google_color_text = "333333";
google_color_url = "CC0000";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

</span>
</if>
    <div id="post_message_$post[postid]">$post[message]</div>
              <!-- / message -->


smestas 06-01-2007 08:18 AM

Hmmmmmmmmmm....

I just noticed that the adds overlap image attachements. depending on how much text is in the post before the attachments. See my screenshot below.

Smitty 06-01-2007 11:26 AM

I had to remove the mod. My forum regulars went ballistic. The complaints started rolling in within minutes. Some even complained that when ads showed up in their posts they felt it may appear to some people that they personally 'approved' the advertisement(s). There were also many justification issues (such as overlap noted above) in many posts.

Nice idea, though.

smestas 06-01-2007 09:39 PM

Anyone figure out how to fix this so it doesn't show multiple times on a single page?

I can live with the justification problems for now but I would like to control how many times it shows on a single page. Since its showing more then once my other Adsense adds aren't loading.


All times are GMT. The time now is 03:48 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.01038 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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