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)

unitedpunjab 03-04-2008 10:00 PM

Adsense Inside the Post
 
This little template modification allows you to put an Ad inside the post with Text wrapped around the Ad.

See Screenshot.

In postbit template replace
Code:

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

With
Code:

        <!-- 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 -->

  • you will have to replace ADSENSE CODE HERE with the actual code.
  • The code is for 300 * 250 Medium Rectangle Format,Edit width & height parameters if you want to use any other format.
  • Ad is shown on the first and last post (modify if you want)
  • Ad is shown to guests Only ( remove "and ($show['guest'])" to show to all)
Version History:
v 1.0.1 :Ads displayed after the first post on every page (instead of just the first page)

Tip: To remove quote button for guests.
Replace
Code:

<if condition="$post['replylink']
with
Code:

<if condition="$post['replylink'] AND $show['member']">

iogames 03-05-2008 08:28 PM

I think is too much :(

SwollenCranium 03-05-2008 08:53 PM

Quote:

Originally Posted by iogames (Post 1457912)
I think is too much :(


I did as well, then I saw this part ;

** Ad is shown to guests Only ( remove "and ($show['guest'])" to show to all) **

I would never subject my members to this type of add placement, but I have seen many forums that do.

Basically ... some will like it, some won't.

Barakat 03-06-2008 01:25 AM

looks nice ....

v12kid 03-07-2008 11:11 PM

can you assign this to specific forums?

abroad 03-10-2008 10:45 PM

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.

shoppingtelly 03-12-2008 11:47 AM

What did Google say?

Would it be possible to apply this to some various usergroups?

abroad 03-12-2008 04:11 PM

they just said that they have switched off my ads as I used float elements with the ad and that I have 2 weeks to remove it...otherwise they are going to deactivate my account.

jack bro 03-12-2008 04:34 PM

Although this is a good idea, I wouldn't recommend using until Google approves it or it gets changed.

Jack.

pcoskat 03-22-2008 11:45 AM

Anyone heard from google?


All times are GMT. The time now is 09:27 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.01116 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
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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