Adsense for phpBB 3.1.X

Extensions & Styles for phpBB 3.1.X maintained and supported by Stoker
ThumperTM
BBCoder II
BBCoder II
Posts: 10
Joined: 09 Nov 2014, 11:56
BBCodes: 4

Re: Adsense for phpBB 3.1.X

Post by ThumperTM »

I will give a try. Thanks!
CentaurAtlas
BBCoder I
BBCoder I
Posts: 2
Joined: 09 Jan 2015, 23:16
BBCodes: 1

Re: Adsense for phpBB 3.1.X

Post by CentaurAtlas »

Hey,
I have a question regarding this part:

"Copy the entire contents of the repository to ext/stoker/ads/ and images to images".


Is that standard practice for extensions or should they be in this?

styles/all/theme/images/


I'm curious as to know the "right" answer for 3.1.x

Thanks!
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: Adsense for phpBB 3.1.X

Post by Stoker »

CentaurAtlas wrote:Hey,
I have a question regarding this part:

"Copy the entire contents of the repository to ext/stoker/ads/ and images to images".


Is that standard practice for extensions or should they be in this?

styles/all/theme/images/


I'm curious as to know the "right" answer for 3.1.x

Thanks!
No, it isnt standard procedure.
But if I remember correct, I include the image with inline css which isnt standard procedure either.
Board rules! No PM support
Deathbringer
BBCoder I
BBCoder I
Posts: 1
Joined: 11 Jan 2015, 08:09
BBCodes: 1

Re: Adsense for phpBB 3.1.X

Post by Deathbringer »

can this be made so that people who donate dont have to see ads?
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: Adsense for phpBB 3.1.X

Post by Stoker »

Deathbringer wrote:can this be made so that people who donate dont have to see ads?
Steve made a nice little installer to handle something like this. It was a permission and a template switch to display for certain groups.
Dont have the code any longer.
Board rules! No PM support
cheaty
BBCoder I
BBCoder I
Posts: 1
Joined: 31 Jan 2015, 10:49
BBCodes: 1

Re: Adsense for phpBB 3.1.X

Post by cheaty »

Stoker, thank you very much for this simple yet awesome extension. Works beautifully on my phpBB 3.1.2.

What I did to get the responsive ads working is:

Code: Select all

<!-- IF postrow.S_FIRST_ROW -->
<div class="panel" style="padding-top:0;padding-bottom:0;background-color:#ECF3F7;">
	Your adsense code goes here
</div>
<hr class="divider" />
<!-- ENDIF -->
i.e. leaving only the outer div and removing the "online" class from it - looks cleaner this way.


Now I'm wondering - how to put some ads in viewforum.php? Any thoughts?

Cheers,
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: Adsense for phpBB 3.1.X

Post by Stoker »

You can take a look at viewforum_body.html and create an event file to do it. Pretty much the same way as in viewtopic.
Board rules! No PM support
t0ast
BBCoder I
BBCoder I
Posts: 4
Joined: 13 Feb 2015, 08:39
BBCodes: 1

Re: Adsense for phpBB 3.1.X

Post by t0ast »

im gonna give this a try, thanks!

quick question, can you interchange the size of ads? like if i want bigger ads (like in viewtopic) on the home page, can i do that?
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: Adsense for phpBB 3.1.X

Post by Stoker »

You chose size for the ads when you create them so anything that fits your design.
Board rules! No PM support
PostmanMsk
BBCoder I
BBCoder I
Posts: 1
Joined: 16 Feb 2015, 17:04
BBCodes: 3

Re: Adsense for phpBB 3.1.X

Post by PostmanMsk »

Hello Can I install your mod to version 3.0.11?
Post Reply