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)

banuchi2 03-04-2007 03:29 AM

For some reason, the ad is only showing in the first post and not the last. I have 2 questions...

1) How can I get this to show in the last post?
Update: Ahhh....Google states: "Please place only one link unit on any content page. This number does not affect the current limit of 3 regular ad units on any page - you may still place up to 3 regular ad units in addition to a single link unit on any content page"
U
2) If I wanted it to show in every post, what changes are necessary.
Answered my own question...there's a limit of 3
Thanks!

perju 03-04-2007 10:43 PM

It works great, but QUOTES and IMGs generate undesirable results. I had to uninstall because of this. :(

--
Edit: I'm guessing the only way this mod would work would be if it checks to see if the post contains a quote or an img. If neither of those elements are present, then the adsense code would appear.

soletrader 03-05-2007 12:01 AM

Is there a way to limit the ads to show only if there are greater than X words on that post?

kontrabass 03-08-2007 01:59 PM

Great hack and just in time - have been talking to a Google Adsense rep about optimizing my site, the rectangle in the first post is their top suggestion. And for guests only, this is perfect.

Stupid question: How do I modify it so that the ad is only displayed in the first post and not the last?

[installed]

Zia 03-08-2007 02:18 PM

nice to see u here unitedpanjab :)
looks promising modification..
will use it..if the adsense only shown in last post & shown to every one..& without any conflict along with [quote] & [img] tags..seems it will generate more clicks...

clicks install to get future notification/update...

valdet 03-16-2007 01:14 PM

Did anyone check whether this works with Yahoo Publishers Network YPN?

unitedpunjab 03-16-2007 01:39 PM

I don't see why it should not work.

magnaromagna 03-19-2007 10:32 PM

great hack.
how to put it at the top of the message? The ads is on the middle of the first message, I'd like to put it at the top. Adding vAlign=top ?

4x4 Mecca 03-20-2007 04:21 AM

It was a simple install, but it's not working... any ideas? I know that's vauge, but it's just not working?!?

Here is what I have
Code:

<!-- / icon and title -->
                </if>
               
        <!-- message -->
<if condition="(($post[postcount] % $vboptions[maxposts] == 1)) and ($show['guest'])">
<span style="margin: 2px; float: right; width: 301px; height: 251px;">
<script type="text/javascript"><!--
google_ad_client = "pub-XXXXXXXXXXXX";
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = "300x250_as";
google_ad_type = "text_image";
//2007-03-19: Forum
google_ad_channel = "2290601347";
google_color_border = "F5F7F9";
google_color_bg = "F5F7F9";
google_color_link = "003265";
google_color_text = "000000";
google_color_url = "0066CC";
//-->
</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 -->


Zia 03-21-2007 11:32 AM

no news yet ???


All times are GMT. The time now is 04:14 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.01125 seconds
  • Memory Usage 1,733KB
  • 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
  • (1)bbcode_code_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