[ABD] Quick Ads

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.
Locked
User avatar
o0johntam0o
Registered User
Posts: 228
Joined: Thu Sep 23, 2010 3:53 pm
Location: Viet Nam
Name: Tam
Contact:

Re: [BETA] Quick Ads

Post by o0johntam0o » Thu Feb 12, 2015 3:20 am

Got it, I'll correct it later ;)

User avatar
o0johntam0o
Registered User
Posts: 228
Joined: Thu Sep 23, 2010 3:53 pm
Location: Viet Nam
Name: Tam
Contact:

Re: [BETA] Quick Ads

Post by o0johntam0o » Fri Feb 13, 2015 4:30 pm

And there's an update (phpBB 3.1.3). See first post ;)
FomenkoAndrey wrote:what will better: PR on github or zip-archive in post?
FomenkoAndrey wrote:rushian translation
http://www.phpbbguru.net/community/down ... p?id=20640
Opps, i thought you want to get Quick Ads. So, make a pull request please :oops:

And also
Holger wrote:Swedish translation
OmkePom wrote:Dutch tranlation "quick_ads.php",

Code: Select all

<?php
/**
*
* Quick Ads extension for the phpBB Forum Software package [British English]
*
* @copyright (c) 2014 o0johntam0o
* @license GNU General Public License, version 2 (GPL-2.0)
*
*/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

if (empty($lang) || !is_array($lang))
{
	$lang = array();
}

$lang = array_merge($lang, array(
	'QUICK_ADS_TITLE'					=> 'Snel Advertenties maken',
	'QUICK_ADS_TITLE_SETTINGS1'			=> 'Algemene instellingen',
	'QUICK_ADS_TITLE_SETTINGS2'			=> 'Details instellingen',
	
	'QUICK_ADS_ENABLE'					=> 'Schakel Advertenties in',
	'QUICK_ADS_ENABLE_EXPLAIN'			=> 'Als Ja, zal de Advertenties worden getoont',
	'QUICK_ADS_ALLOW_BOT'				=> 'Bots toestaan',
	'QUICK_ADS_ALLOW_BOT_EXPLAIN'		=> 'Bots hebben toegang tot Advertenties',
	'QUICK_ADS_CUSTOM_ID'				=> 'Gebruik ID',
	'QUICK_ADS_CUSTOM_ID_EXPLAIN'		=> 'Gebruik <em style="color:#ff0000">a-z</em>, <em style="color:#ff0000">0-9</em> en <em style="color:#ff0000">underline</em> _ (laat leeg voor standaard instellingen).<br />Voorbeeld: mijn_1ste_advertentie',
	'QUICK_ADS_ZINDEX'					=> 'Z-Index (Integer)',
	'QUICK_ADS_ZINDEX_EXPLAIN'			=> 'Plaats Advertenties "achter" of "boven" een ander element',
	'QUICK_ADS_CLOSEBT'					=> 'Laat X zien',
	'QUICK_ADS_CLOSEBT_EXPLAIN'			=> 'Uitzetten door gebruiker mogelijk.',
	'QUICK_ADS_COOKIE'					=> 'Zet Cookie aan',
	'QUICK_ADS_COOKIE_EXPLAIN'			=> 'Het aantal weergeven van advertenties opslaan',
	'QUICK_ADS_COOKIE_TIME'				=> 'Cookie tijd (Integer)',
	'QUICK_ADS_COOKIE_TIME_EXPLAIN'		=> 'Hoe lang de advertenties zal worden verborgen (in minuten)',

	'QUICK_ADS_LEGEND'					=> '%s [%d]',
	'QUICK_ADS_ITEM_TOGGLE'				=> 'Klik om in te schakelen',
	'QUICK_ADS_MORE_PROP'				=> '<em style="color:#0000ff">Uitgebreid (Klik om in te schakelen)</em>',
	'QUICK_ADS_NAME'					=> 'Advertentie Titel',
	'QUICK_ADS_NAME_EXPLAIN'			=> 'Naam Advertentie',
	'QUICK_ADS_POS'						=> 'Positie',
	'QUICK_ADS_POS_EXPLAIN'				=> 'Bepaal positie van Advertentie <br/>Kies eerste waarde om Advertenties te verbergen',
	'QUICK_ADS_TOP'						=> 'Bovenaan',
	'QUICK_ADS_LEFT'					=> 'Links',
	'QUICK_ADS_BOTTOM'					=> 'Onderaan',
	'QUICK_ADS_RIGHT'					=> 'Rechts',
	
	'QUICK_ADS_ONPAGE'					=> 'Welke Forums',
	'QUICK_ADS_ONPAGE_EXPLAIN'			=> 'Welke Forums wordt Advertentie getoont',
	'QUICK_ADS_ONPAGE_ITEM_FAQ'			=> 'Veel gestelde vragen (FAQ)',
	'QUICK_ADS_ONPAGE_ITEM_INDEX'		=> 'Forumoverzicht',
	'QUICK_ADS_ONPAGE_ITEM_MCP'			=> 'Moderatorpaneel(MCP)',
	'QUICK_ADS_ONPAGE_ITEM_MEMBERLIST'	=> 'Ledenlijst',
	'QUICK_ADS_ONPAGE_ITEM_POSTING'		=> 'Berichten',
	'QUICK_ADS_ONPAGE_ITEM_REPORT'		=> 'Meldingen',
	'QUICK_ADS_ONPAGE_ITEM_SEARCH'		=> 'Zoeken',
	'QUICK_ADS_ONPAGE_ITEM_UCP'			=> 'Gebruikerspaneel (UCP)',
	'QUICK_ADS_ONPAGE_ITEM_VIEWFORUM'	=> 'Bekijk Forum',
	'QUICK_ADS_ONPAGE_ITEM_VIEWONLINE'	=> 'Wie is online',
	'QUICK_ADS_ONPAGE_ITEM_VIEWTOPIC'	=> 'Bekijk Onderwerp',
	// Custom pages
	// 'QUICK_ADS_ONPAGE_ITEM_YOUR_STUFF'	=> 'Your stuff',
	// Custom pages
	
	'QUICK_ADS_GROUP'					=> 'Groeppermissies',
	'QUICK_ADS_GROUP_EXPLAIN'			=> 'Welke Groepen kunnen Advertentie zien',
	'QUICK_ADS_HREF'					=> 'Link',
	'QUICK_ADS_HREF_EXPLAIN'			=> 'Welke link wordt geopend als je op Advertentie klikt',
	
	'QUICK_ADS_BG_IMG'					=> 'Achtergrond Afbeelding',
	'QUICK_ADS_BG_IMG_EXPLAIN'			=> 'Link naar de Afbeelding (www)',
	'QUICK_ADS_BG_COLOR'				=> 'Achtergrond Kleur',
	'QUICK_ADS_BG_COLOR_EXPLAIN'		=> 'Voorbeeld: #ffffff, #000000, wit, zwart,...',
	
	'QUICK_ADS_TEXT'					=> 'Advertentie tekst',
	'QUICK_ADS_TEXT_EXPLAIN'			=> 'Gebruik Opmaak (JS/HTML toegestaan).
											<br/>U kunt ook de variabelen hieronder gebruiken:
											<br/><em>{S_USERNAME}</em> = <em>%s</em>
											<br/><em>{S_USER_ID}</em> = <em>%s</em>
											<br/><em>{S_CURRENT_TIME}</em> = <em>%s</em>
											<br/><em>{SITE_URL}</em> = <em>%s</em>
											<br/><em>{FORUM_URL}</em> = <em>%s</em>
											<br/><em>{SITENAME}</em> = <em>%s</em>
											<br/><em>{SITE_DESCRIPTION}</em> = <em>%s</em>',
	'QUICK_ADS_SIZE'					=> 'Formaat (Integer)',
	'QUICK_ADS_SIZE_EXPLAIN'			=> 'Stel formaat in van deze Advertentie(Breedte x Hoogte) in pixel. (0) is Automatisch',
	'QUICK_ADS_MSIZE'					=> 'Minimaal Formaat(Integer)',
	'QUICK_ADS_MSIZE_EXPLAIN'			=> 'Stelt minmale Formaat in van Advertentie Box (Breedte x Hoogte) in pixels',
	'QUICK_ADS_OVERF'					=> 'Overloop',
	'QUICK_ADS_OVERF_EXPLAIN'			=> 'Stelt in wat er gebeurt als de inhoud het formaat overschreid',
	'QUICK_ADS_OVERF_HIDDEN'			=> 'Verborgen',
	'QUICK_ADS_OVERF_VISIBLE'			=> 'Zichtbaar',
	'QUICK_ADS_OVERF_SCROLL'			=> 'Scroll',
	'QUICK_ADS_OVERF_AUTO'				=> 'Auto',
	'QUICK_ADS_PRIORITY'				=> 'Prioriteit (Integer)',
	'QUICK_ADS_PRIORITY_EXPLAIN'		=> 'Hoe <strong>lager</strong> het nummer, hoe <strong>hoger</strong> prioriteit',

	'QUICK_ADS_NEW_ADS'					=> 'Nieuwe Advertentie',
	'QUICK_ADS_NEW_ADS_NAME'			=> 'Advertentie Titel',
	'QUICK_ADS_DEL_FIELD'				=> 'Verwijder deze Advertentie',
	'QUICK_ADS_DEL_FIELD_EXPLAIN'		=> '<strong style="color:#ff0000">Let Op! Dit kan niet ongedaan worden gemaakt</strong>',
	
	'QUICK_ADS_SAVED'					=> 'Advertentie Bewaard',
	'QUICK_ADS_LOG_MSG'					=> '<strong>Advertentie instellingen Aangepast</strong>',
));
;)

FomenkoAndrey
Registered User
Posts: 367
Joined: Thu Aug 19, 2010 10:44 am

Re: [BETA] Quick Ads

Post by FomenkoAndrey » Fri Feb 13, 2015 4:52 pm

Only in monday. So, faster - use zip-archive.

jonasj
Registered User
Posts: 101
Joined: Tue Jan 06, 2009 8:06 pm
Location: Stockholm, Sweden
Contact:

Re: [BETA] Quick Ads

Post by jonasj » Fri Feb 13, 2015 6:29 pm

Hi

Bottom is not working with 2.0.0, but I am still roll on 3.1.2 :|

Sorry it works, needed to remove data also...

But it shows all the ads on a line..

User avatar
o0johntam0o
Registered User
Posts: 228
Joined: Thu Sep 23, 2010 3:53 pm
Location: Viet Nam
Name: Tam
Contact:

Re: [BETA] Quick Ads

Post by o0johntam0o » Sat Feb 14, 2015 1:11 am

jonasj wrote:But it shows all the ads on a line..
Did you try with another positions (top, left, bottom, right)?

jonasj
Registered User
Posts: 101
Joined: Tue Jan 06, 2009 8:06 pm
Location: Stockholm, Sweden
Contact:

Re: [BETA] Quick Ads

Post by jonasj » Sat Feb 14, 2015 7:15 am

Yes I did, with same result..

I send you a PM with a picture...

User avatar
o0johntam0o
Registered User
Posts: 228
Joined: Thu Sep 23, 2010 3:53 pm
Location: Viet Nam
Name: Tam
Contact:

Re: [BETA] Quick Ads

Post by o0johntam0o » Sat Feb 14, 2015 3:47 pm

jonasj wrote:Yes I did, with same result..

I send you a PM with a picture...
Hmm... give me a screenshot in your ACP please

User avatar
o0johntam0o
Registered User
Posts: 228
Joined: Thu Sep 23, 2010 3:53 pm
Location: Viet Nam
Name: Tam
Contact:

Re: [BETA] Quick Ads

Post by o0johntam0o » Sun Feb 15, 2015 3:57 pm

jonasj wrote:My desire was only one banner on the bottom that show different when reload the page...
Hi jonasj, JavaScript is the solution, just put your script into the "Ads text" field, you can find it on the internet.

User avatar
Anv@r.all
Registered User
Posts: 191
Joined: Sun Sep 15, 2013 11:49 am
Location: bb3.mobi
Name: Anvar Stybaev
Contact:

Re: [BETA] Quick Ads

Post by Anv@r.all » Sun Feb 15, 2015 6:58 pm

[DEV/Beta] More extensions

Hopefully Google correctly translate my text// I do not support in private messages!

lws96
Registered User
Posts: 100
Joined: Wed Aug 05, 2009 4:39 am

Re: [BETA] Quick Ads

Post by lws96 » Sun Feb 15, 2015 7:56 pm

Can someone please assist? I have been trying to get Google Adsense to work either with the QuickAds or Custom Code extensions, and when I try to put javascript in, it gives me a "Forbidden" error. It's fine as long as it's text or regular HTML.

Code: Select all

<script type="text/javascript">
    google_ad_client = "ca-pub-3100577294892642";
    google_ad_slot = "3429391440";
    google_ad_width = 728;
    google_ad_height = 90;
</script>
<!-- HCA Leader -->
<script type="text/javascript"
src="//pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
If I put that at in the "Ads Text" section, then I get
Forbidden

You do not have permission to access this document.
I verified /phpBB3/adm/index.php has permissions 755 and even the entire phpBB3/ext/ directories and files. Is there a setting that I need to look at?

I am running my own server, so as the network administrator I can change any settings I need.

User avatar
GoBieN
Registered User
Posts: 541
Joined: Fri Mar 05, 2004 5:22 pm
Location: Belgium
Contact:

Re: [BETA] Quick Ads

Post by GoBieN » Sun Feb 15, 2015 9:49 pm

Do you get that error after you submit the text in ACP?
Anything relevant in the access and error log?
Do you have mod_security or something similar that could think this is malicious code injection?

lws96
Registered User
Posts: 100
Joined: Wed Aug 05, 2009 4:39 am

Re: [BETA] Quick Ads

Post by lws96 » Mon Feb 16, 2015 3:25 am

GoBieN wrote:Do you get that error after you submit the text in ACP?
Anything relevant in the access and error log?
Do you have mod_security or something similar that could think this is malicious code injection?
Hi,

I get that error when I change it in the ACP.

I had to switch from what I was familiar with (cPanel) to another provider running Parallels Plesk, and even after months of working with the software I get confused where I need to go to look at logs. I couldn't find anything in the phpBB logs, and I'm still digging to find logs for the server. I've logged in as root via putty to look. I do not see mod_security is even installed (looking under /etc/httpd/conf.d). However, I did try installing it and it said it was already installed. So....

I did a complete search for the file mod_security.conf and I could not find anything.

Where would I look for the access and error logs?

lws96
Registered User
Posts: 100
Joined: Wed Aug 05, 2009 4:39 am

Re: [BETA] Quick Ads

Post by lws96 » Mon Feb 16, 2015 6:52 am

I dug around and I found the error logs:
[Mon Feb 16 00:39:21 2015] [error] [client 73.3.2.50] ModSecurity: Access denied with code 403 (phase 2). Match of "contains google_ad" against "MATCHED_VAR" required. [file "/etc/httpd/conf/modsecurity.d/rules/comodo/cwaf_03.conf"] [line "23"] [id "212000"] [msg "COMODO WAF: XSS Filter - Category 1: Script Tag Vector"] [data "Matched Data: <script type=\\x22text/javascript\\x22><!--\\x0d\\x0aamazon_ad_tag=\\x22newesell-20\\x22; \\x0d\\x0aamazon_ad_width=\\x22728\\x22; \\x0d\\x0aamazon_ad_height=\\x2290\\x22; \\x0d\\x0aamazon_color_border=\\x22206BA2\\x22; \\x0d\\x0aamazon_color_logo=\\x22FFFFFF\\x22; \\x0d\\x0aamazon_color_link=\\x22206BA2\\x22; \\x0d\\x0aamazon_ad_logo=\\x22hide\\x22; \\x0d\\x0aamazon_ad_title=\\x22Hermit Crab Association's Amazon.com Store\\x22; //--></script> found within MATCHED_VAR: <script type=\\x22text/javascript\\x22><!--\\x0d\\x0aamazon..."] [severity "CRITICAL"] [hostname "neppelwebservices.com"] [uri "/phpBB3/adm/index.php"] [unique_id "VOGQmUrQ1WwAAE@0H3wAAAAB"]
So I guess it's matching something in the modsecurity.d/rules/comodo/cwaf_03.conf that blocks it.

And.. sure enough, I see "google_ad" when I CAT it.

Guess I'll need to figure out how to modify it.

User avatar
o0johntam0o
Registered User
Posts: 228
Joined: Thu Sep 23, 2010 3:53 pm
Location: Viet Nam
Name: Tam
Contact:

Re: [BETA] Quick Ads

Post by o0johntam0o » Mon Feb 16, 2015 9:33 am

There's something new here, please test it ;)
+ Delete Ads without reloading page
+ Close button on each Ads
+ Many bugs fixed

FomenkoAndrey
Registered User
Posts: 367
Joined: Thu Aug 19, 2010 10:44 am

Re: [BETA] Quick Ads

Post by FomenkoAndrey » Mon Feb 16, 2015 11:04 am

close button of frames not tested - I have no such ads.
in Firefox and Chrome hidden ads stopped blinking.
but active ads still blinking in Chrome on page refresh CTRL + R.
how it works on the tablet - will write later (now hidden ads), but I think will blinking like in desktop Chrome.

update RU translation and made pul request.

Locked

Return to “Abandoned Extensions”