vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Mini Mods - Adsense Inside the Post (https://vborg.vbsupport.ru/showthread.php?t=172170)

dancue 03-27-2008 04:47 PM

I just read their guidelines and didn't see any mention of it.

I'm sure, if they do indeed prohibit the use of ads in this manner that we could simply substitute the code for another code from another ad agency. (as long as the ads look different from those from google's)

pcoskat 03-28-2008 02:25 PM

Quote:

Originally Posted by abroad (Post 1461872)
Dont use this script. It is not allowed to use float elements and Iframesfor your Google Ads. I got an email from Google concerning this.

Specifically what were you doing, and what did Google say to you?

Jase2 03-28-2008 02:41 PM

He is correct. You are not allowed to use Iframes -- but the ad can go there.

Here is the correct way:

FIND:
Code:

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

Replace with:

Code:

<!-- message -->
        <div id="post_message_$post[postid]">
<if condition="($post[postcount]==1) and ($show['guest'])">
<div style="float: right; margin: 0 0 5px 5px;">
        <script type="text/javascript"><!--
google_ad_client = "pub-0574157151562455";
/* 250x250, created 28/03/08 */
google_ad_slot = "5276949639";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<br />
</div>
</if>
$post[message]
</div>
        <!-- / message -->

Change to match your set-up!

Anyway, where would I edit to get my ads to down the right hand side of a thread? Am I right in thinking somewhere in the 'showthread' template?

Regards Jason :)

dancue 03-29-2008 02:20 AM

Quote:

Originally Posted by Jase2 (Post 1476826)
He is correct. You are not allowed to use Iframes -- but the ad can go there.

Here is the correct way:

FIND:
Code:

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

Replace with:

Code:

<!-- message -->
        <div id="post_message_$post[postid]">
<if condition="($post[postcount]==1) and ($show['guest'])">
<div style="float: right; margin: 0 0 5px 5px;">
        <script type="text/javascript"><!--
google_ad_client = "pub-0574157151562455";
/* 250x250, created 28/03/08 */
google_ad_slot = "5276949639";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<br />
<a href="http://www.techsupportteam.org/register.php" target="_parent"></a>
</div>
</if>
$post[message]
</div>
        <!-- / message -->

Change to match your set-up!

Anyway, where would I edit to get my ads to down the right hand side of a thread? Am I right in thinking somewhere in the 'showthread' template?

Regards Jason :)


Thanks!

Now why do you have this there for?
Code:

<a href="http://www.techsupportteam.org/register.php" target="_parent"></a>

Jase2 03-29-2008 11:48 AM

You don't, remove it if you want.

Regards Jason :)

Liquid1ce 04-11-2008 12:26 PM

its same for postbit legacy?

dancue 04-12-2008 03:33 PM

I'm using mine on postbit legacy. Works fine. Just be sure to use Jase's version (post 13 in this thread) if you are using google for ads.

netsavy006 04-13-2008 09:36 PM

It's not working for me. I was trying it out with Bidvertiser code and it doesn't work:

Code:

        <!-- message -->
<if condition="(($post[postcount] % $vboptions[maxposts] == 1))">
<span style="margin: 2px; float: right; width: 301px; height: 251px;">
<SCRIPT LANGUAGE="JavaScript1.1" SRC="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=84584&bid=241167" type="text/javascript"></SCRIPT>
<noscript><a href="http://www.bidvertiser.com">affiliate program</a></noscript>
</span>
</if>
    <div id="post_message_$post[postid]">$post[message]</div>
              <!-- / message -->


koolfire 04-29-2008 02:41 AM

I think this kind of add placing is really annoying and makes you think how greedy the admin is..

But hey, thats just me

dancue 04-29-2008 01:27 PM

Quote:

Originally Posted by koolfire (Post 1502008)
I think this kind of add placing is really annoying and makes you think how greedy the admin is..

But hey, thats just me

I disagree. If it's kept on just the first post of every thread it isn't as annoying. Hey, we've got to try and make our money somehow...


All times are GMT. The time now is 03:41 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.01053 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
  • (6)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