Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Adsense Inside the Post Details »
Adsense Inside the Post
Mod Version: 1.01, by unitedpunjab (Designer) unitedpunjab is offline
Developer Last Online: Nov 2019 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.8 Rating: (9 votes - 4.89 average) Installs: 169
Released: 28 Feb 2007 Last Update: 03 Mar 2007 Downloads: 824
Not Supported Template Edits  

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

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

With

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

  • 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

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

with

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	adsenseqv5.jpg
Views:	5102
Size:	57.1 KB
ID:	61136  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Mini Mods Adsense Inside the Post unitedpunjab vBulletin 3.7 Template Modifications 39 07 Nov 2015 17:09

  #91  
Old 25 Apr 2008, 23:09
basketmen's Avatar
basketmen basketmen is offline
 
Join Date: Nov 2006
i am sorry, is it the tumbnail break TOS or not??

isnt we need border so not break TOS??

__________________
I am SEO specialist and forum coordinator
Reply With Quote
  #92  
Old 26 Apr 2008, 23:18
hnjco hnjco is offline
 
Join Date: Jul 2006
installed on 3.6.10 in both postbit and postbit_legacy but not working...
anyone?
Reply With Quote
  #93  
Old 28 May 2008, 17:50
saka saka is offline
 
Join Date: May 2008
Originally Posted by hnjco View Post
installed on 3.6.10 in both postbit and postbit_legacy but not working...
anyone?
same as me. it didnt work.
Reply With Quote
  #94  
Old 01 Jun 2008, 00:10
newguy's Avatar
newguy newguy is offline
 
Join Date: Nov 2007
What do you have to do to keep your edit, quote, multi quote ect images under the adsence unit? Also I noted that the content moves around based on the post. Like if the member has a signature or if the post has a quoted post in it.
Reply With Quote
  #95  
Old 05 Jun 2008, 00:31
da_judge's Avatar
da_judge da_judge is offline
 
Join Date: Jan 2006
Works very well if thread is a long one or you have big signiture...

If short post dont look good at all

Any ideas on best way round it

Attached pic

Cheers
Attached Images
File Type: jpg Image2.jpg (18.6 KB, 76 views)
Reply With Quote
  #96  
Old 05 Jun 2008, 21:15
da_judge's Avatar
da_judge da_judge is offline
 
Join Date: Jan 2006
I worked this out

If you want it under post slightly

Search for

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

in postbit

After add


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This will correct the button thing...

Depending on what skin you may need to add or remove some of the <br>

Attached what it does

Cheers
Attached Images
File Type: jpg Image2.jpg (18.9 KB, 72 views)
Reply With Quote
  #97  
Old 15 Jun 2008, 01:21
Mike Vollmer Mike Vollmer is offline
 
Join Date: May 2008
I've been trying to incorporate this into my 3.7.0 vB today, two problems become apparent:

1. A lot of experienced users set their profiles to show the newest posts first. Basing your condition on ($post[postcount] % $vboptions[maxposts] == 1) is selecting the first post ever made in the thread, not the first post viewed. If you're trying to max ad revenue by putting that 300x250 rectangle in the first ad viewed, this has the opposite effect -- it's buried at bottom of the page for user who have chosen to view newest first.

2. 3.7.0 allows threaded & hybrid views, with a preset # of cached posts. Selecting based on ($post[postcount] % $vboptions[maxposts] == 1) seems to work for the posts that are displayed initially, but if that post is later retrieved from the cache & shown again, the ad is missing, although the post is still formatted as if it were there -- with 300x250 pixels of white space on the right side.

I doubt most of my potential users are sophisticated enough to care (or even notice) if the threaded/hybrid views are missing, so I've simply disabled them. However, a workaround for the first problem would be nice.

Later (and yes, I did sleep): This code addresses the first problem above:
<if condition="(

(($bbuserinfo[postorder] == '') and
($post[postcount] % ($bbuserinfo[maxposts] == -1 ? $vboptions[maxposts] : $bbuserinfo[maxposts]) == 1))

or

(($bbuserinfo[postorder] != '') and
($GLOBALS[qrfirstpostid] == $post[postid]))

)">
Evaluating $bbuserinfo[postorder] tells me whether the user is displaying newest or oldest first. Total post count seems not to be available, but the first post that is displayed on the screen is flagged by $GLOBALS[qrfirstpostid] == $post[postid].

Another potential problem is the use of $vboptions[maxposts] in the original mod. If user has elected to display more than the default # of posts per page, the condition potentially could be satisfied as many as 3 times & push the page over one of AdSense's max-ads-allowed limits. Using $bbuserinfo[maxposts] is preferable, but because it has a default value of -1, the conditional evaluation above is needed.

Last edited by Mike Vollmer; 15 Jun 2008 at 16:31. Reason: Solved my own problem, eventually
Reply With Quote
  #98  
Old 16 Jul 2008, 02:31
balance12 balance12 is offline
 
Join Date: Sep 2007
I am using Version 3.7.1. I do this and it dont shows me nothing.. i use postbit_legacy... i algo return to the original and re code the mod.... nothingg.. what it might be?
Reply With Quote
  #99  
Old 05 Sep 2008, 21:44
zerokarma zerokarma is offline
 
Join Date: Oct 2002
Is there a way to restrict this by a certain style rather then usergroup?
Reply With Quote
  #100  
Old 28 Nov 2008, 22:13
Desi-Home Desi-Home is offline
 
Join Date: May 2007
It moves up the buttons of reply, quotes etc. Is there a way i keep them down even if the post is not too long?
Reply With Quote
  #101  
Old 09 Dec 2008, 13:42
xlguy's Avatar
xlguy xlguy is offline
 
Join Date: Feb 2004
Did anyone work out how to edit the code to get the ad to display in the last post as well?
__________________
xlguy
Reply With Quote
  #102  
Old 01 Jan 2009, 22:45
Riccardo83's Avatar
Riccardo83 Riccardo83 is offline
 
Join Date: May 2007
Does this show the ad inside the first post only or the first post on every page? that would be more useful?
__________________
Check my Blog @ http://blog.riccardo-ulpts.com
My Health Website http://www.jbsoulscan.com
Reply With Quote
  #103  
Old 24 Jul 2011, 21:29
Canadianbacon Canadianbacon is offline
 
Join Date: Apr 2007
this still work?
Reply With Quote
  #104  
Old 01 Oct 2012, 15:01
Naijasite's Avatar
Naijasite Naijasite is offline
 
Join Date: Mar 2012
how do make it to be at the middle of the fist post on 4.2.0 ?
Reply With Quote
  #105  
Old 14 Dec 2015, 05:08
mangmel mangmel is offline
 
Join Date: Nov 2010
good source......
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 00:03.

Layout Options | Width: Wide Color: