[RC] Adsense & Ads for phpBB

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Get Involved
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
witvisser
Registered User
Posts: 50
Joined: Wed Nov 25, 2009 9:08 am

Re: [RC] Adsense & Ads for phpBB

Post by witvisser » Wed Feb 14, 2018 6:31 pm

Try this ;)

Code: Select all

<div align="center"><a href="https://www.forumelettrico.it/" target="_top">
<style>
.fixed-ratio-resize { /* basic responsive img */
	max-width: 100%;
	height: auto;
	width: auto\9; /* IE8 */
}
</style>

<img class="fixed-ratio-resize" src="https://www.forumelettrico.it/banner_prova_jeep.jpg"></a> 
</div>

Harrison76
Registered User
Posts: 36
Joined: Wed Jul 12, 2017 7:25 am

Re: [RC] Adsense & Ads for phpBB

Post by Harrison76 » Thu Feb 15, 2018 7:41 am

OK, it works perfectly, thank you.
I would like to take advantage of two other questions:

if instead of inserting a single banner, I wanted to put two smaller banners side by side, so that from desktops they are side by side and from mobile devices they are one on top of the other, is it possible?

Second question: can you put different banners depending on the section?

Thank you very much, you are great: -)

witvisser
Registered User
Posts: 50
Joined: Wed Nov 25, 2009 9:08 am

Re: [RC] Adsense & Ads for phpBB

Post by witvisser » Thu Feb 15, 2018 9:24 am

Here we go :)
In this code i use for example 2 banners of 400*150 pixels

Code: Select all

<div align="center"><a href="https://www.forumelettrico.it/" target="_top">
<style>
.fixed-ratio-resize { /* basic responsive img */
	max-width: 100%;
	height: auto;
	width: auto\9; /* IE8 */
}
</style>
<img class="fixed-ratio-resize" src="http://www.mopardealer.com/shop_banner5.png"></a>&nbsp;

<a href="https://www.forumelettrico.it/" target="_top"> 
<img class="fixed-ratio-resize" src="http://www.mopardealer.com/shop_banner10.png"></a></div>
Change in the code 2 times the url scr="" with the url of your banner and also the 2 destination urls <a href="" if needed ;)

Harrison76
Registered User
Posts: 36
Joined: Wed Jul 12, 2017 7:25 am

Re: [RC] Adsense & Ads for phpBB

Post by Harrison76 » Thu Feb 15, 2018 10:55 am

You're too good, thank you!
For the second question, I asked you if you can put a different banner depending on the sections.
Ideally, it would be ideal to place generic banners for the respective space, and then, for example, to make two more banners that overwrite them, which appear for example only in the https://www.forumelettrico.it/forum/aut ... he-f1.html section, and in all the discussions contained therein. Is that possible? graces

witvisser
Registered User
Posts: 50
Joined: Wed Nov 25, 2009 9:08 am

Re: [RC] Adsense & Ads for phpBB

Post by witvisser » Thu Feb 15, 2018 4:08 pm

That's not possible with this extension.
Yo can only use code for:
Banner in header, display on all pages except UCP
Banner in footer, display on all pages except UCP
3 Banners in viewtopic
Banner in all search results
You can't use code which is only based on one or more specific forums.

User avatar
pino4et67
Registered User
Posts: 2
Joined: Fri Feb 16, 2018 6:08 pm
Contact:

Re: [RC] Adsense & Ads for phpBB

Post by pino4et67 » Fri Feb 16, 2018 6:17 pm

Good evening. How to do the same as you have on the forum. I can not put the screen here. I posted it here https://ibb.co/f7AXWS Thank you.


User avatar
pino4et67
Registered User
Posts: 2
Joined: Fri Feb 16, 2018 6:08 pm
Contact:

Re: [RC] Adsense & Ads for phpBB

Post by pino4et67 » Sat Feb 17, 2018 3:07 am

Many thanks.

Harrison76
Registered User
Posts: 36
Joined: Wed Jul 12, 2017 7:25 am

Re: [RC] Adsense & Ads for phpBB

Post by Harrison76 » Thu Jul 26, 2018 11:36 am

witvisser wrote:
Thu Feb 15, 2018 9:24 am
Here we go :)
hello, I was looking at the banners from my mobile phone, but it remains white space beside. Is it possible to make it full-width screen from a mobile phone? Thanks

Image

User avatar
Stoker 4.0
Registered User
Posts: 1480
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen
Contact:

Re: [RC] Adsense & Ads for phpBB

Post by Stoker 4.0 » Fri Jul 27, 2018 5:34 pm

Harrison76 wrote:
Thu Jul 26, 2018 11:36 am
witvisser wrote:
Thu Feb 15, 2018 9:24 am
Here we go :)
hello, I was looking at the banners from my mobile phone, but it remains white space beside. Is it possible to make it full-width screen from a mobile phone? Thanks

Image
Google sets the width. Just makeup sure to use responsive ADS.

fabioganga
Registered User
Posts: 15
Joined: Mon May 28, 2018 12:10 pm

Re: [RC] Adsense & Ads for phpBB

Post by fabioganga » Fri Jul 27, 2018 7:50 pm

Hi everyone!

I am using this extension too and I have an Adsense account that is in good standing and approved, so I can start displaying ads on my forum.

I have used the search feature but I haven't found much at all to answer my questions as follows:
  • Are there banner ads on Adsense that also pay by impressions or only when users click on them?
  • I would like to have just standard banner size adverts only at the top, middle and bottom of each post page. Which option of ads do I need to choose in Adsense as there are loads? I would appreciate it loads if someone could tell me step-by-step which section of Adsense I need to use to set it up.
Thank you so much indeed for your kind help.

User avatar
alhitary
Registered User
Posts: 807
Joined: Wed Jan 17, 2007 7:51 am
Location: ROY
Name: Basil Taha Alhitary
Contact:

Re: [RC] Adsense & Ads for phpBB

Post by alhitary » Fri Aug 31, 2018 8:16 am

Dear,

How to not display ads in some specific pages ?
is there a way to exclude some pages ? like an option to add link/number of pages

Post Reply

Return to “Extensions in Development”

Who is online

Users browsing this forum: deanmoke, Hartenheer, KYPREO, LapouX, martti and 15 guests