[ABD] Adsense & Ads for phpBB

Any abandoned Extensions will be moved to this forum.

WARNING: Extensions in this forum are not currently being supported or maintained by the original Extension author. Proceed at your own risk.
Forum rules
IMPORTANT: Extension Development Forum rules

WARNING: Extensions in this forum are not currently being supported nor updated by the original Extension author. Proceed at your own risk.
User avatar
Stoker 4.0
Registered User
Posts: 1615
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

[ABD] Adsense & Ads for phpBB

Post by Stoker 4.0 »

Extension Name: Adsense & Ads for phpBB
Author: Stoker

Description:
The Adsense & Ads for phpBB EXT gives you option to use Adsense and other ads all over your board.
  1. Banner in header, display on all pages except UCP
  2. Banner in footer, display on all pages except UCP
  3. 3 Banners in viewtopic
  4. Banner in all search results
  5. Configuration in ACP
  6. Option for Adblock message, displays for user with Adblock enabled
  7. Option for Noscript message, displays for users with javascript disabled
  8. Option for blocking entire topics for ad block users
  9. Admin testmode, only admin can view ads. Good for testing
  10. Permission based. You can set permissions for users and groups to view ads. Default all groups except Bots can view ads
    Users with permissions can enable/disable ads in UCP and are allowed to use adblockers. Users without permissions will see the option but will not be able to use it. Will work both on 3.1.X and 3.2.X
  11. Enable/disable the loading.gif
  12. Choose background color for each ad container
  13. Adsense Page-Level ads for mobile content
Version: 1.0.7


Demo: PhpBB3 BBCodes


Image
Image
Image

Download:
Download Adsense & Ads for phpBB

Installation:
  1. Copy the entire contents of the repository to ext/stoker/adsenseads/
  2. Navigate in the ACP to Customise -> Extension Management -> Extensions.
  3. Click Enable.
  4. Navigate in the ACP -> Extensions and configure
Last edited by Stoker 4.0 on Tue Aug 09, 2016 11:48 am, edited 3 times in total.
~ The greatest achievement in life is to inspire ~
Regards Stoker
User avatar
KhurramMunawar
Registered User
Posts: 534
Joined: Tue Mar 25, 2014 2:20 am
Location: Islamabad, Pakistan
Name: Khurram Munawar

Re: [RC] Adsense & Ads for phpBB

Post by KhurramMunawar »

by extension name, it seems like this extension is only support adsense code.

However it support all codes.

thanks for the nice extension.
Get Free Traffic To Your Website
Trafficonic.com - Free Traffic To Your Website
User avatar
Lumpy Burgertushie
Registered User
Posts: 69228
Joined: Mon May 02, 2005 3:11 am

Re: [RC] Adsense & Ads for phpBB

Post by Lumpy Burgertushie »

are you aware that putting adsense in the search results pages and many other pages of phpbb will be in violation of google's adsense terms?


most of the time, it is suggested that the only pages to put adsense on are the index, viewtopic and viewforum pages.



robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
User avatar
ForoXL
Registered User
Posts: 48
Joined: Wed Feb 04, 2015 4:57 pm

Re: [RC] Adsense & Ads for phpBB

Post by ForoXL »

Good work!!
http://www.ForoXL.com - Foro dedicado a temas generales
User avatar
KhurramMunawar
Registered User
Posts: 534
Joined: Tue Mar 25, 2014 2:20 am
Location: Islamabad, Pakistan
Name: Khurram Munawar

Re: [RC] Adsense & Ads for phpBB

Post by KhurramMunawar »

Lumpy Burgertushie wrote:are you aware that putting adsense in the search results pages and many other pages of phpbb will be in violation of google's adsense terms?

its optional in the extension , infact every placement is optional for the user. ;)
Get Free Traffic To Your Website
Trafficonic.com - Free Traffic To Your Website
User avatar
Stoker 4.0
Registered User
Posts: 1615
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: [RC] Adsense & Ads for phpBB

Post by Stoker 4.0 »

Lumpy Burgertushie wrote:are you aware that putting adsense in the search results pages and many other pages of phpbb will be in violation of google's adsense terms?


most of the time, it is suggested that the only pages to put adsense on are the index, viewtopic and viewforum pages.



robert
I know, but you can put other ads than adsense in those places. Use a custom ad or even a special message if you want.
~ The greatest achievement in life is to inspire ~
Regards Stoker
Holger
Registered User
Posts: 1901
Joined: Tue Mar 12, 2002 3:54 pm
Location: Hannover

Re: [RC] Adsense & Ads for phpBB

Post by Holger »

Very nice! Thanks!
Kam3leoN
Registered User
Posts: 24
Joined: Sun Oct 04, 2015 9:02 pm

Re: [RC] Adsense & Ads for phpBB

Post by Kam3leoN »

Hi ^^

Is it possible to insert an advertisement into two categories / forums.
For example :
- Between categories / forums 1 & 2
- Between categories / forums 2 & 3
  etc., etc...

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

Re: [RC] Adsense & Ads for phpBB

Post by Stoker 4.0 »

Kam3leoN wrote:Hi ^^

Is it possible to insert an advertisement into two categories / forums.
For example :
- Between categories / forums 1 & 2
- Between categories / forums 2 & 3
  etc., etc...

Cheers
Everything is possible ;)

But only manually for the moment. Create a file named forumlist_body_category_header_after.html
Place something like this in it:

Code: Select all

<!-- IF U_SEE_ADS -->
<!-- IF SCRIPT_NAME eq 'index' and (forumrow.S_ROW_COUNT == 4 or forumrow.S_ROW_COUNT == 14) -->
<li class="row" style="background-color:#F4F4F4;;">
<dl>
	<div class="list-inner" style="width:100%;height:90px;margin-top:-2px;background: url('{ROOT_PATH}images/loading.gif') no-repeat center center;">
	ad code here
	</div>
</dl>
</li>
<!-- ENDIF -->

<!-- IF forumrow.S_ROW_COUNT == 1 and (FORUM_ID eq 133 or FORUM_ID eq 135 or FORUM_ID eq 139 or FORUM_ID eq 147 or FORUM_ID eq 199 or FORUM_ID eq 204) -->
<li class="row" style="background-color:#F4F4F4;">
<dl>
	<div class="list-inner" style="width:100%;height:90px;margin-top:-2px;background: url('{ROOT_PATH}images/loading.gif') no-repeat center center;">
	ad code here
	</div>
</dl>
</li>
<!-- ENDIF -->		
<!-- ENDIF -->
~ The greatest achievement in life is to inspire ~
Regards Stoker
User avatar
KhurramMunawar
Registered User
Posts: 534
Joined: Tue Mar 25, 2014 2:20 am
Location: Islamabad, Pakistan
Name: Khurram Munawar

Re: [RC] Adsense & Ads for phpBB

Post by KhurramMunawar »

if the adblocker installed on browser and adblocker message is not being activated in the extension:

the loading indicator is showing up at the ad place.

i think this loading indicator should not be in place and ad simply should not be shown in case of ad blocker.
Get Free Traffic To Your Website
Trafficonic.com - Free Traffic To Your Website
User avatar
Stoker 4.0
Registered User
Posts: 1615
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: [RC] Adsense & Ads for phpBB

Post by Stoker 4.0 »

KhurramMunawar wrote:if the adblocker installed on browser and adblocker message is not being activated in the extension:

the loading indicator is showing up at the ad place.

i think this loading indicator should not be in place and ad simply should not be shown in case of ad blocker.
Good idea, will fix in next version ;)
~ The greatest achievement in life is to inspire ~
Regards Stoker
User avatar
2600
I've Been Banned!
Posts: 2567
Joined: Fri Nov 14, 2014 5:14 pm
Location: Area-51

Re: [RC] Adsense & Ads for phpBB

Post by 2600 »

Nice. Great work. I'll have a look at this in my test site under Xampp. You indicated to me this is Prosilver based? Aero is Prosilver based I guess so I shall see if this works.
Morpheus: Unfortunately, no one can be told what The Matrix is. You'll have to see it for yourself.
Hack me.
Consider a canary token.
The nature of my chosen username
:ugeek:
User avatar
Stoker 4.0
Registered User
Posts: 1615
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: [RC] Adsense & Ads for phpBB

Post by Stoker 4.0 »

John connor wrote:Nice. Great work. I'll have a look at this in my test site under Xampp. You indicated to me this is Prosilver based? Aero is Prosilver based I guess so I shall see if this works.
I think it will work with Aero, but please let me know when you have testet it
~ The greatest achievement in life is to inspire ~
Regards Stoker
User avatar
2600
I've Been Banned!
Posts: 2567
Joined: Fri Nov 14, 2014 5:14 pm
Location: Area-51

Re: [RC] Adsense & Ads for phpBB

Post by 2600 »

Will do. Been busy here so haven't had the time yet.
Morpheus: Unfortunately, no one can be told what The Matrix is. You'll have to see it for yourself.
Hack me.
Consider a canary token.
The nature of my chosen username
:ugeek:
User avatar
2600
I've Been Banned!
Posts: 2567
Joined: Fri Nov 14, 2014 5:14 pm
Location: Area-51

Re: [RC] Adsense & Ads for phpBB

Post by 2600 »

Okay. Finally tested this. Works in Aero. However I don't use ADcode and tried my own code out and now it appears on the top in index and other forums. Might be the code. My code stays in the footer.

Image: http://i.imgur.com/EqLNQZZ.jpg

Code:

Code: Select all

<!-- Begin of Site Has Been Around For -->
<script language="javascript">
function DateEstablished(startmonth, startdate, startyear) {
sdate=startdate;
smonth=startmonth-1;
syear=startyear;
var DaysInMonth = new Array(31,28,31,30,31,30,31,31,30,31,30,31);
today = new Date()
var thisyear = today.getFullYear();
var thismonth = today.getMonth();
var thisdate = today.getDate();
mstart = new Date(syear,(smonth==12?1:smonth+1),1);
days1 = (mstart - new Date(syear,smonth,sdate))/(24*60*60*1000)-1;
mend = new Date(thisyear,thismonth,1);
days2 = (new Date(thisyear,thismonth,thisdate) - mend)/(24*60*60*1000)+1;
dayst = days1 + days2;
if (dayst >= DaysInMonth[smonth])  {
AddOneMonth = 1;
dayst -= DaysInMonth[smonth];
}
else AddOneMonth = 0;
ydiff1 = thisyear-mstart.getFullYear();
mdiff1 = thismonth-mstart.getMonth()+AddOneMonth;
if (mdiff1 >11) { mdiff1=0; ydiff1++; }
if (mdiff1 < 0) { mdiff1 = mdiff1 + 12; ydiff1--; }
temp = (ydiff1==0?"":(ydiff1==1?ydiff1+" year and ":ydiff1 + " years, "));
temp += (mdiff1==0?"0 months, and ":(mdiff1==1?mdiff1+" month, and ":mdiff1+" months, and "));
temp += (dayst==0?"no days.":(dayst==1 ? " 1 day." : dayst + " days." ));
return temp;
}
</script>
<center><script language="javascript">
document.write("<font face=Courier New>");
document.write("<font size=2>");
document.write("<font color=#6633FF>");
document.write("SysTechForum Has Been Around For ");
document.write("<font color=#F80000>");
document.write(DateEstablished(11,12,2014));  
document.write("</font>");
document.write("</font>");
document.write("</font>");
document.write("</font>");
document.write("</font>");
</script>   
<!-- End of Site Has Been Around For -->
What I'm trying to do is make sure users don't have an ADblocker on or blocking scripts since I use the extension mediaembed and using an ADblocker blocks some content. I use JS to play audio on the site.
Morpheus: Unfortunately, no one can be told what The Matrix is. You'll have to see it for yourself.
Hack me.
Consider a canary token.
The nature of my chosen username
:ugeek:

Return to “Abandoned Extensions”