Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2011-03-06 12:37:11

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Flash Player Overlay Advertising for Embedded Videos

Hi,

Just found a method to display a advertising over the flash player for embedded videos (basically the ads will be displayed over the redtube, pornhub, ... flash player). Do you think this is a good idea?


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#2 2011-03-06 15:37:36

Pornogoddess
Member
From: NY
Registered: 2011-01-12
Posts: 183
Website

Re: Flash Player Overlay Advertising for Embedded Videos

Yes! I'd love this.

Offline

#3 2011-03-06 17:11:37

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Flash Player Overlay Advertising for Embedded Videos

Ok. Will add this global and per video category (not per video in this case, or per sponsor, as there are no sponsors). It will work like this:
http://www.skankhunter.com/157973/hot-3d-hentai/


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#4 2011-03-07 01:30:00

mfeat50
Member
Registered: 2010-10-25
Posts: 114
Website

Re: Flash Player Overlay Advertising for Embedded Videos

I love this and think it is a must. Way to go Adrian!!!

Offline

#5 2011-03-07 08:54:38

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Flash Player Overlay Advertising for Embedded Videos

Ok. There is a limitation (and its for a good security cross site reason), i cannot close the ads if the visitor clicks on content from a iframe, basically he needs to click the close button or somewhere outside the ads (in the blue div, parent for the ads) or anywhere in the page (once the ads are poped). Is this good enough?


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#6 2011-03-07 20:20:36

mfeat50
Member
Registered: 2010-10-25
Posts: 114
Website

Re: Flash Player Overlay Advertising for Embedded Videos

I really don't think there is any issue with someone having to click on the "x". People now a days are used to having to do this anyway. And since this will be for the embeds its perfect. I personally am looking forward to this feature. Its just another great way to monetize our site.

Offline

#7 2011-03-07 20:40:59

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Flash Player Overlay Advertising for Embedded Videos

Ok. It will be added.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#8 2011-03-08 19:27:54

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Flash Player Overlay Advertising for Embedded Videos

Done. Integrated completly (will only appear for embedded videos) with a per video category function and a global advertising group (if no ads are assigned to the category). You can assign multiple ads to one category, and the ads will rotate.

Here's a sample screenshot:
Screenshot-embed.png

The banner appears after 3 seconds and dissapears after 25 seconds if no action is taken.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#9 2011-03-11 13:33:40

Pornogoddess
Member
From: NY
Registered: 2011-01-12
Posts: 183
Website

Re: Flash Player Overlay Advertising for Embedded Videos

Can't wait for this! Awesome work. Think the X should be same color as the category writing? To see more clearly? Anyone else have input?

Offline

#10 2011-07-25 15:06:08

nowhereman
Member
Registered: 2011-07-03
Posts: 18

Re: Flash Player Overlay Advertising for Embedded Videos

How can I fire a popup when the play button is pressed? I tried to add it to the onLoad function but it is blocked by popup blockers. then I tried something different put a window.open on onMute and when someone presses the mute button they get the popup displayed, however thats not what I want. I want a popup when play is pressed. any ideas?

Offline

#11 2011-07-25 18:52:18

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: Flash Player Overlay Advertising for Embedded Videos

try  something like this, just  change YOUR_LINK

awePuShown = false;

function aweDoOpen(url)
{
    if ( awePuShown === true )
    {
        return true;
    }

    var aweWindow = window.open(url, "ljPu",
"toolbar,status,resizable,scrollbars,menubar,location,height=680,width=790")
;
    window.setTimeout(window.focus, 500 );

    if ( aweWindow )
    {
        aweWindow.blur();
        awePuShown = true;
    }
    
    return aweWindow;
}


function aweSetCookie(name, value, time) {
    var expires = new Date();

    expires.setTime( expires.getTime() + time );

    document.cookie = name + "=" + value + "; path=/; expires=" +
expires.toGMTString() + "; path=/";
}


function aweGetCookie(name)
{

    var cookies = document.cookie.toString().split('; ');
    var cookie, c_name, c_value;

    for (var n=0; n<cookies.length; n++)
    {
        cookie  = cookies[n].split("=");
        c_name  = cookie[0];
        c_value = cookie[1];

        if ( c_name == name )
        {
            return c_value;
        }
    }

    return null;
}


function aweCheckTarget(e)
{
    var cookieValue = aweGetCookie("popundr");
    var isRefDenied = aweCheckIsRefDenied();

    if ( isRefDenied === true )
    {
        aweSetCookie("popundr", 1, 60*60*1000);
        return ;
    }

    if ( cookieValue === null )
    {
        aweDoOpen("YOUR_LINK");

        aweSetCookie("popundr", 1, 24*60*60*1000);
    }
}


function aweCheckIsRefDenied()
{
       return false;
}


function aweInitPu()
{
    if ( document.attachEvent )
    {
        document.attachEvent( "onclick", aweCheckTarget );
    }
    else if ( document.addEventListener )
    {
        document.addEventListener( "click", aweCheckTarget, false );
    }

    return true;
}
aweInitPu();

Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

Board footer

Powered by FluxBB