Page 7 of 12

Re: [BETA] Quick Ads

Posted: Sat May 02, 2015 2:28 pm
by o0johntam0o
Komanche wrote:Is there any possibility to add margin-top when in right position? The ad-box overflows login box and it makes my users angry... :)
Please try this:
Open .\ext\o0johntam0o\quickads\styles\all\template\event\overall_footer_after.html
Find:

Code: Select all

							if (selfHeight <= windowHeight)
							{
								el.animate({top:scrollTop+5}, {duration:800,queue:false});
							}
							else
							{
								if (selfHeight <= windowHeight + scrollTop)
								{
									tmp = windowHeight - selfHeight + scrollTop;
									el.animate({top:tmp}, {duration:800,queue:false});
								}
								else
								{
									el.animate({top:5}, {duration:800,queue:false});
								}
							}
Replace {top:scrollTop+[color=#FF0000]5[/color]} with {top:scrollTop+[color=#FF0000]50[/color]}
Replace {top:[color=#FF0000]5[/color]} with {top:[color=#FF0000]50[/color]}

Re: [BETA] Quick Ads

Posted: Sun May 03, 2015 8:40 pm
by umarizal
How do ads appear in the forum, before or after the posts?

Another thing is how to make the ad appear beside to the first post?

Thank you!

Re: [BETA] Quick Ads

Posted: Mon May 04, 2015 2:54 am
by o0johntam0o
umarizal wrote:How do ads appear in the forum, before or after the posts?
Hi umarizal, see the screenshots here https://www.phpbb.com/customise/db/mod/quick_ads_1_0_0
umarizal wrote:Another thing is how to make the ad appear beside to the first post?
It's not easy to do that, you'll need to use the Javascript and HTML to arrange it.
Maybe I'll make a tutorial for that later ;)

Re: [BETA] Quick Ads

Posted: Mon May 04, 2015 12:19 pm
by umarizal
o0johntam0o wrote:
umarizal wrote:How do ads appear in the forum, before or after the posts?
Hi umarizal, see the screenshots here https://www.phpbb.com/customise/db/mod/quick_ads_1_0_0
umarizal wrote:Another thing is how to make the ad appear beside to the first post?
It's not easy to do that, you'll need to use the Javascript and HTML to arrange it.
Maybe I'll make a tutorial for that later ;)
First I would like to say that their work was fantastic, congratulations.

But the problem which I refer is that the banner is displayed on the content.

It would be interesting to be displayed with the content, look in my forum using the Advertisement Management Mod: http://www.guiadaobra.net/forum/viewtopic.php?f=11&t=59

You see? Thus, the banners do not interfere at all viewing of the content and there is no need visitor "close" the banner.

Re: [BETA] Quick Ads

Posted: Mon May 04, 2015 7:19 pm
by Komanche
o0johntam0o wrote:
Komanche wrote:Is there any possibility to add margin-top when in right position? The ad-box overflows login box and it makes my users angry... :)
Please try this:
Open .\ext\o0johntam0o\quickads\styles\all\template\event\overall_footer_after.html
Find:

Code: Select all

							if (selfHeight <= windowHeight)
							{
								el.animate({top:scrollTop+5}, {duration:800,queue:false});
							}
							else
							{
								if (selfHeight <= windowHeight + scrollTop)
								{
									tmp = windowHeight - selfHeight + scrollTop;
									el.animate({top:tmp}, {duration:800,queue:false});
								}
								else
								{
									el.animate({top:5}, {duration:800,queue:false});
								}
							}
Replace {top:scrollTop+[color=#FF0000]5[/color]} with {top:scrollTop+[color=#FF0000]50[/color]}
Replace {top:[color=#FF0000]5[/color]} with {top:[color=#FF0000]50[/color]}
it works partially, when I load the page, it is on top, when I scroll down and up, it scrolls max to "+50"... possibility to load it "+50"?

Re: [BETA] Quick Ads

Posted: Mon May 04, 2015 7:21 pm
by Komanche

Code: Select all

	<div id="{S_QUICK_ADS_CUSTOM_ID}r" style="display:none; position:absolute; top:5px; right:5px; z-index:{S_QUICK_ADS_ZINDEX};">
-->

Code: Select all

	<div id="{S_QUICK_ADS_CUSTOM_ID}r" style="display:none; position:absolute; top:50px; right:5px; z-index:{S_QUICK_ADS_ZINDEX};">

Re: [BETA] Quick Ads

Posted: Wed May 06, 2015 2:27 pm
by o0johntam0o
Komanche wrote:

Code: Select all

	<div id="{S_QUICK_ADS_CUSTOM_ID}r" style="display:none; position:absolute; top:5px; right:5px; z-index:{S_QUICK_ADS_ZINDEX};">
-->

Code: Select all

	<div id="{S_QUICK_ADS_CUSTOM_ID}r" style="display:none; position:absolute; top:50px; right:5px; z-index:{S_QUICK_ADS_ZINDEX};">
Yes, that's it ;)

Re: [BETA] Quick Ads

Posted: Thu May 07, 2015 9:33 pm
by Komanche
thanks. But I have policy violation with rigth side banner vs. adsense... Probably no solution for it... I will move banner to another position... :?

Re: [BETA] Quick Ads

Posted: Sun May 10, 2015 2:16 am
by o0johntam0o
umarizal wrote:But the problem which I refer is that the banner is displayed on the content.

It would be interesting to be displayed with the content, look in my forum using the Advertisement Management Mod: http://www.guiadaobra.net/forum/viewtopic.php?f=11&t=59
The solution was made here viewtopic.php?f=456&t=2248311&start=45#p13941311
umarizal wrote:You see? Thus, the banners do not interfere at all viewing of the content and there is no need visitor "close" the banner.
There's an option to disable the close button in the ACP ;)

Re: [BETA] Quick Ads

Posted: Sun May 10, 2015 11:56 am
by Komanche
o0johntam0o: is there poddibility to disable showing ad on the mobile phones? Something like "if the screen has lower resolution than 1024x768, don't show ad"? When I have banner on bottom of the screen, mobile users has problem with width...

Re: [BETA] Quick Ads

Posted: Mon May 11, 2015 12:15 pm
by o0johntam0o
Komanche wrote:o0johntam0o: is there poddibility to disable showing ad on the mobile phones? Something like "if the screen has lower resolution than 1024x768, don't show ad"? When I have banner on bottom of the screen, mobile users has problem with width...
Yes Komanche, please take a look at "Minimum size" in the ACP

Re: [BETA] Quick Ads

Posted: Tue May 12, 2015 10:02 am
by Komanche
ah, really, missed this setting :mrgreen:

thanks 8-)

Re: [BETA] Quick Ads

Posted: Wed May 13, 2015 7:49 am
by Komanche
AdSense wrote:Drawing unnatural attention to ads includes placing Google ads in a floating box script that causes the ad to appear in a “sticky" position on the page as the user scrolls down. This type of ad implementation is not permitted.
:( Is it possible to stick the floating window (in right position) to top?

Re: [BETA] Quick Ads

Posted: Wed May 13, 2015 9:46 am
by o0johntam0o
Hi Komanche, the solution was made here viewtopic.php?f=456&t=2248311&start=45#p13941311

Re: [BETA] Quick Ads

Posted: Wed May 13, 2015 9:58 am
by Komanche
Hi Tam,
thank you, but I want to use your ext, just stop scrolling in page...