PunBB Resource

Your ultimate PunBB resource!

Keywords:

    (Extended)

You are not logged in.

#1 2006-07-29 17:08:06

Smartys
Member
Registered: 2005-03-18
Posts: 314
Website

Adsense after First Post 1.1.1

Code:

##
##
##        Mod title:  Adsense after First Post
##
##      Mod version:  1.1
##   Works on PunBB:  1.2.*
##     Release date:  2005-09-11
##           Author:  Neal Poole (smartys@gmail.com)
##
##      Description:  This mod allows you to place a Google ad after the first
##                post in every thread, disguised as a post.
##
##   Affected files:  viewtopic.php
##                    include/common.php
##                      include/cache.php
##
##       Affects DB:  Yes
##
##            Notes:  This doesn't change the color of the ad based on the style used.
##              If people need it, I'll try and implement it in the next version.
##              If you need to upgrade, just replace the plugin
##
##       DISCLAIMER:  Please note that "mods" are not officially supported by
##                    PunBB. Installation of this modification is done at your
##                    own risk. Backup your forum database and any and all
##                    applicable files before proceeding.
##
##

Download here


Free PunBB Hosting - lots of mods, easy to customize

Offline

 

#2 2006-07-29 17:09:39

Smartys
Member
Registered: 2005-03-18
Posts: 314
Website

Re: Adsense after First Post 1.1.1

This release adds the ability to use Link Units! Thanks elbekko for testing the functionality out (remember to choose the correct ad type or it won't work!)
I also updated install_mod.php to use the current MDK (I thought I had already done that, but meh) so if it doesn't work, tell me


Free PunBB Hosting - lots of mods, easy to customize

Offline

 

#3 2006-08-04 18:54:14

Bâshrat the Sneaky
New member
Registered: 2006-05-29
Posts: 8

Re: Adsense after First Post 1.1.1

I suppose it does NOT support this feature, if a user is member of a certain usergroup, don't show any ads?

Offline

 

#4 2006-08-06 01:31:35

dollarbill
Member
Registered: 2006-07-17
Posts: 21

Re: Adsense after First Post 1.1.1

Bâshrat the Sneaky wrote:

I suppose it does NOT support this feature, if a user is member of a certain usergroup, don't show any ads?

The old one did.

Offline

 

#5 2006-08-06 13:22:21

Smartys
Member
Registered: 2005-03-18
Posts: 314
Website

Re: Adsense after First Post 1.1.1

This one should too: why, is it not working?


Free PunBB Hosting - lots of mods, easy to customize

Offline

 

#6 2007-03-07 20:47:10

FBI
Member
Registered: 2007-02-28
Posts: 17

Re: Adsense after First Post 1.1.1

Its works on 1.2.14.
Very nice mods.
Cool. smile


PunBB, Simplicity has been easier than before
Smart is Simple. Fast is Smart. Think Fast, You'll be Smart..

PunBB & SMF Fans

Offline

 

#7 2007-03-08 01:30:53

Smartys
Member
Registered: 2005-03-18
Posts: 314
Website

Re: Adsense after First Post 1.1.1

Thanks smile


Free PunBB Hosting - lots of mods, easy to customize

Offline

 

#8 2007-04-07 15:53:51

olive230
Member
Registered: 2007-04-07
Posts: 18

Re: Adsense after First Post 1.1.1

Thanks a lot , its great wink
u saved me smile

Offline

 

#9 2007-05-06 12:59:22

admk
New member
Registered: 2007-04-30
Posts: 1

Re: Adsense after First Post 1.1.1

it doeasn't work on 1.2.15??

Offline

 

#10 2007-05-08 09:35:06

Romain
Member
From: 127.0.0.1
Registered: 2006-09-17
Posts: 18
Website

Re: Adsense after First Post 1.1.1

This mod works with PunBB 1.2.15. wink

Offline

 

#11 2007-05-08 23:51:53

Smartys
Member
Registered: 2005-03-18
Posts: 314
Website

Re: Adsense after First Post 1.1.1

Indeed wink


Free PunBB Hosting - lots of mods, easy to customize

Offline

 

#12 2007-06-06 23:38:56

Jesse
Member
Registered: 2007-06-06
Posts: 14

Re: Adsense after First Post 1.1.1

I have installed this, but for the adsense box I am only getting a white box.  This happens with firefox with adblock disabled, and on Internet Explorer.

Did I do something wrong?

/////
     PunBB 1.2.15 - Check for upgrade
    © Copyright 2002, 2003, 2004, 2005 Rickard Andersson
Server load
    1.21 1.34 1.58 (2 users online)
Environment
    Operating system: Linux
    PHP: 4.4.4 - Show info
    Accelerator: N/A
Database
    MySQL 4.1.21-standard
    Rows: 1824
    Size: 1.78 MB
/////
Example:
http://wawuo.com/forum/PS0349.png

Last edited by Jesse (2007-06-06 23:42:28)

Offline

 

#13 2007-06-07 01:46:01

MindlessOath
Member
Registered: 2007-04-25
Posts: 56

Re: Adsense after First Post 1.1.1

do you have a link for someone to see if its on your end or server end?

Offline

 

#14 2007-06-07 01:50:12

Smartys
Member
Registered: 2005-03-18
Posts: 314
Website

Re: Adsense after First Post 1.1.1

MindlessOath wrote:

do you have a link for someone to see if its on your end or server end?

Indeed, that's the easiest way to check


Free PunBB Hosting - lots of mods, easy to customize

Offline

 

#15 2007-06-07 03:55:50

Jesse
Member
Registered: 2007-06-06
Posts: 14

Re: Adsense after First Post 1.1.1

Well adsense works fine on my other sites, so I figured it's in the code somewhere.

http://wawuo.com/forum/viewtopic.php?id=10

Offline

 

#16 2007-06-07 14:11:40

MindlessOath
Member
Registered: 2007-04-25
Posts: 56

Re: Adsense after First Post 1.1.1

i see it fine. the advertisement is a little too long for the post tho, mabe use a smaller ad size. works good here tho.

i would take a screencap but cant atm.

Offline

 

#17 2007-06-07 14:20:56

elbekko
Moderator
From: Leuven, Belgium
Registered: 2006-01-31
Posts: 1353

Re: Adsense after First Post 1.1.1

The problem is probably you having multiple ads on one page.


FluxBB
dictionary.com on programming: The most fun you can have with your clothes on (although clothes are not mandatory).

Offline

 

#18 2007-06-07 18:37:27

MindlessOath
Member
Registered: 2007-04-25
Posts: 56

Re: Adsense after First Post 1.1.1

elbekko wrote:

The problem is probably you having multiple ads on one page.

huh? works for me, i dont see any other ad's.  what do you mean?

Offline

 

#19 2007-06-07 19:15:03

Smartys
Member
Registered: 2005-03-18
Posts: 314
Website

Re: Adsense after First Post 1.1.1

Jesse: I see what you see on that page. Could you give me a link to an example on your other sites?
bekko: He only has the one ad, as far as I can see


Free PunBB Hosting - lots of mods, easy to customize

Offline

 

#20 2007-06-07 19:23:36

Dr.Jeckyl
Member
Registered: 2005-06-17
Posts: 231

Re: Adsense after First Post 1.1.1

the ads are too big and break out of the post in ff 2.0.0.4

Last edited by Dr.Jeckyl (2007-06-07 19:23:57)

Offline

 

#21 2007-06-07 19:41:07

Smartys
Member
Registered: 2005-03-18
Posts: 314
Website

Re: Adsense after First Post 1.1.1

Mmm, ads seem to be working atm

My guess? From my searching, it seems Adsense serves up a blank when it doesn't know enough about the page to serve relevant ads. It seems like it's just a lack of activity/indexing by Google

Last edited by Smartys (2007-06-07 19:45:11)


Free PunBB Hosting - lots of mods, easy to customize

Offline

 

#22 2007-06-07 20:00:15

Jesse
Member
Registered: 2007-06-06
Posts: 14

Re: Adsense after First Post 1.1.1

Smartys wrote:

Mmm, ads seem to be working atm

My guess? From my searching, it seems Adsense serves up a blank when it doesn't know enough about the page to serve relevant ads. It seems like it's just a lack of activity/indexing by Google

They send PSA's if there isn't enough info, not blank ads.

Offline

 

#23 2007-06-07 20:03:28

Smartys
Member
Registered: 2005-03-18
Posts: 314
Website

Re: Adsense after First Post 1.1.1

http://www.yugatech.com/blog/?p=795
https://www.google.com/adsense/support/ … teads.html

Google wrote:

Collapsing ad units are an optional advanced feature of alternate ads -- the collapsing ad unit code will 'collapse' your ad unit so that it takes up no page space if there are no targeted ads available. This allows you to minimize any blank space that would otherwise occur through the use of alternate colors.

You can get both


Free PunBB Hosting - lots of mods, easy to customize

Offline

 

#24 2007-06-07 20:03:42

Jesse
Member
Registered: 2007-06-06
Posts: 14

Re: Adsense after First Post 1.1.1

MindlessOath wrote:

i see it fine. the advertisement is a little too long for the post tho, mabe use a smaller ad size. works good here tho.

i would take a screencap but cant atm.

I set the size to lower, and am still having the same issue.

Tried different stylesheets, same issue.

Offline

 

#25 2007-06-07 20:23:53

Jesse
Member
Registered: 2007-06-06
Posts: 14

Re: Adsense after First Post 1.1.1

Okay now they are suddenly working... :rofl:

Offline

 

Board footer

Based on PunBB
© Copyright 2002–2005 Rickard Andersson

© Copyright 2004–2006 Kristoffer Jansson

User contributed files are property of their respective owners.