GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Webmaster Q & Fuckin' A (https://gfy.com/forumdisplay.php?f=27)
-   -   how can i edit the frecuency of this pop under? (https://gfy.com/showthread.php?t=1098172)

jcche19 01-30-2013 07:23 PM

how can i edit the frecuency of this pop under?
 
hi this is a java cookie ublockable pop unders it opens once a day
how can i change the frecuency to open every 10 minutes?
hope you guys can help me, i have change the 1 days to many things without luck...

var stagedPopFrequency = "1 days";
var stagedCookieName = "__name";

if (!document.currentStage)
document.currentStage = 0;
document.currentStage++;

if (document.currentStage == 1) {
function stagedGetCookie(Name) {
var search = Name + "=";
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search);
if (offset != -1) { // if cookie exists
offset += search.length;
// set index of beginning of value
end = document.cookie.indexOf(";", offset);
// set index of end of cookie value
if (end == -1)
end = document.cookie.length;
returnvalue = unescape(document.cookie.substring(offset, end));
}
}
return returnvalue;
}

function stagedSetCookie(Name, Value, Expire) {
if (Expire != null) {
var expireDate = new Date();
expireDate.setDate(expireDate.getDate() + parseInt(Expire));
document.cookie = Name+"="+Value+";path=/;expires=" + expireDate.toGMTString();
} else {
document.cookie = Name+"="+Value+";path=/";
}
}

function stagedResetCookie(Name) {
var expireDate = new Date();
expireDate.setDate(expireDate.getDate() - 10);
document.cookie = Name+"=;path=/;expires=" + expireDate.toGMTString();
}

function stagedPopUnder() {
if (stagedGetCookie(stagedCookieName) == '') {
var thisStage = 1;
var stageFunc = eval('window.popUnderStage'+thisStage);
if (stageFunc != undefined) {
stageFunc();
stagedSetCookie(stagedCookieName, thisStage + 1, stagedPopFrequency);
}
} else {
var thisStage = parseInt(stagedGetCookie(stagedCookieName));
var stageFunc = eval('window.popUnderStage'+thisStage);
if (stageFunc != undefined) {
stageFunc();
stagedSetCookie(stagedCookieName, thisStage + 1, stagedPopFrequency);
}
}
}

function stagedAttachBody() {
if (document.body) {
if (document.all) {
document.body.attachEvent('onclick', stagedPopUnder);
} else {
document.body.addEventListener('click', stagedPopUnder, false);
}
} else {
setTimeout('stagedAttachBody()', 200);
}
} stagedAttachBody();
}

if( parseInt(navigator.appVersion) > 3 )
{
winWidth = screen.availWidth;
winHeight = screen.availHeight;
}
else
{
winWidth = "1024";
winHeight = "768";
}

var stagedTmpFunc = function() {
var pu = window.open("https://youtube.com/watch?v=BRdq0GdkqlE", "_blank", "width=" + winWidth + ",height=" + winHeight + ",scrollbars=1,resizable=1,menubar=1");
pu.blur();
window.focus();

}
eval('window.popUnderStage'+document.currentStage+ ' = stagedTmpFunc;');
stagedTmpFunc = null;

jcche19 01-31-2013 05:05 AM

:pimp no one knows about java? :pimp

jcche19 02-01-2013 07:23 PM

Quote:

Originally Posted by jcche19 (Post 19453684)
hi this is a java cookie ublockable pop unders it opens once a day
how can i change the frecuency to open every 10 minutes?
hope you guys can help me, i have change the 1 days to many things without luck...

var stagedPopFrequency = "1 days";
var stagedCookieName = "__name";

if (!document.currentStage)
document.currentStage = 0;
document.currentStage++;

if (document.currentStage == 1) {
function stagedGetCookie(Name) {
var search = Name + "=";
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search);
if (offset != -1) { // if cookie exists
offset += search.length;
// set index of beginning of value
end = document.cookie.indexOf(";", offset);
// set index of end of cookie value
if (end == -1)
end = document.cookie.length;
returnvalue = unescape(document.cookie.substring(offset, end));
}
}
return returnvalue;
}

function stagedSetCookie(Name, Value, Expire) {
if (Expire != null) {
var expireDate = new Date();
expireDate.setDate(expireDate.getDate() + parseInt(Expire));
document.cookie = Name+"="+Value+";path=/;expires=" + expireDate.toGMTString();
} else {
document.cookie = Name+"="+Value+";path=/";
}
}

function stagedResetCookie(Name) {
var expireDate = new Date();
expireDate.setDate(expireDate.getDate() - 10);
document.cookie = Name+"=;path=/;expires=" + expireDate.toGMTString();
}

function stagedPopUnder() {
if (stagedGetCookie(stagedCookieName) == '') {
var thisStage = 1;
var stageFunc = eval('window.popUnderStage'+thisStage);
if (stageFunc != undefined) {
stageFunc();
stagedSetCookie(stagedCookieName, thisStage + 1, stagedPopFrequency);
}
} else {
var thisStage = parseInt(stagedGetCookie(stagedCookieName));
var stageFunc = eval('window.popUnderStage'+thisStage);
if (stageFunc != undefined) {
stageFunc();
stagedSetCookie(stagedCookieName, thisStage + 1, stagedPopFrequency);
}
}
}

function stagedAttachBody() {
if (document.body) {
if (document.all) {
document.body.attachEvent('onclick', stagedPopUnder);
} else {
document.body.addEventListener('click', stagedPopUnder, false);
}
} else {
setTimeout('stagedAttachBody()', 200);
}
} stagedAttachBody();
}

if( parseInt(navigator.appVersion) > 3 )
{
winWidth = screen.availWidth;
winHeight = screen.availHeight;
}
else
{
winWidth = "1024";
winHeight = "768";
}

var stagedTmpFunc = function() {
var pu = window.open("https://youtube.com/watch?v=BRdq0GdkqlE", "_blank", "width=" + winWidth + ",height=" + winHeight + ",scrollbars=1,resizable=1,menubar=1");
pu.blur();
window.focus();

}
eval('window.popUnderStage'+document.currentStage+ ' = stagedTmpFunc;');
stagedTmpFunc = null;

i am leaving this forum... no one really help

Nookster 02-02-2013 12:31 AM

Quote:

Originally Posted by jcche19 (Post 19453684)
hi this is a java cookie ublockable pop unders it opens once a day
how can i change the frecuency to open every 10 minutes?
hope you guys can help me, i have change the 1 days to many things without luck...

var stagedPopFrequency = "1 days";
var stagedCookieName = "__name";

if (!document.currentStage)
document.currentStage = 0;
document.currentStage++;

if (document.currentStage == 1) {
function stagedGetCookie(Name) {
var search = Name + "=";
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search);
if (offset != -1) { // if cookie exists
offset += search.length;
// set index of beginning of value
end = document.cookie.indexOf(";", offset);
// set index of end of cookie value
if (end == -1)
end = document.cookie.length;
returnvalue = unescape(document.cookie.substring(offset, end));
}
}
return returnvalue;
}

function stagedSetCookie(Name, Value, Expire) {
if (Expire != null) {
var expireDate = new Date();
expireDate.setDate(expireDate.getDate() + parseInt(Expire));
document.cookie = Name+"="+Value+";path=/;expires=" + expireDate.toGMTString();
} else {
document.cookie = Name+"="+Value+";path=/";
}
}

function stagedResetCookie(Name) {
var expireDate = new Date();
expireDate.setDate(expireDate.getDate() - 10);
document.cookie = Name+"=;path=/;expires=" + expireDate.toGMTString();
}

function stagedPopUnder() {
if (stagedGetCookie(stagedCookieName) == '') {
var thisStage = 1;
var stageFunc = eval('window.popUnderStage'+thisStage);
if (stageFunc != undefined) {
stageFunc();
stagedSetCookie(stagedCookieName, thisStage + 1, stagedPopFrequency);
}
} else {
var thisStage = parseInt(stagedGetCookie(stagedCookieName));
var stageFunc = eval('window.popUnderStage'+thisStage);
if (stageFunc != undefined) {
stageFunc();
stagedSetCookie(stagedCookieName, thisStage + 1, stagedPopFrequency);
}
}
}

function stagedAttachBody() {
if (document.body) {
if (document.all) {
document.body.attachEvent('onclick', stagedPopUnder);
} else {
document.body.addEventListener('click', stagedPopUnder, false);
}
} else {
setTimeout('stagedAttachBody()', 200);
}
} stagedAttachBody();
}

if( parseInt(navigator.appVersion) > 3 )
{
winWidth = screen.availWidth;
winHeight = screen.availHeight;
}
else
{
winWidth = "1024";
winHeight = "768";
}

var stagedTmpFunc = function() {
var pu = window.open("https://youtube.com/watch?v=BRdq0GdkqlE", "_blank", "width=" + winWidth + ",height=" + winHeight + ",scrollbars=1,resizable=1,menubar=1");
pu.blur();
window.focus();

}
eval('window.popUnderStage'+document.currentStage+ ' = stagedTmpFunc;');
stagedTmpFunc = null;

Just modify the line...
Code:

var stagedPopFrequency = "1 days";
...to read...
Code:

var stagedPopFrequency = "10 mins";
Learn to program before you learn a programming language. :2 cents:

martinsc 02-02-2013 01:28 AM

Quote:

Originally Posted by Nookster (Post 19458072)
Just modify the line...
Code:

var stagedPopFrequency = "1 days";
...to read...
Code:

var stagedPopFrequency = "10 mins";
Learn to program before you learn a programming language. :2 cents:

:2 cents::2 cents:

jcche19 02-02-2013 08:47 AM

Quote:

Originally Posted by Nookster (Post 19458072)
Just modify the line...
Code:

var stagedPopFrequency = "1 days";
...to read...
Code:

var stagedPopFrequency = "10 mins";
Learn to program before you learn a programming language. :2 cents:

changed 1 days to 10 mins and didn't work

sarettah 02-02-2013 09:55 AM

Quote:

Originally Posted by Nookster (Post 19458072)
Just modify the line...
Code:

var stagedPopFrequency = "1 days";
...to read...
Code:

var stagedPopFrequency = "10 mins";
Learn to program before you learn a programming language. :2 cents:


Um, nope, that's not gonna work.

The set expire date is using getdate() which returns the day of the month PLUS the integer value in the frequency string to compute the new expire date. It is pretty much hard coded to use a days value.

Quote:

function stagedSetCookie(Name, Value, Expire) {
if (Expire != null) {
var expireDate = new Date();

expireDate.setDate(expireDate.getDate() + parseInt(Expire));

document.cookie = Name+"="+Value+";path=/;expires=" + expireDate.toGMTString();
} else {
document.cookie = Name+"="+Value+";path=/";
}
}
so, where the expire date is being calculated has to be changed to use something other than getdate. getminutes might work but I would have to play with it some to make sure.

sarettah 02-02-2013 10:17 AM

Where you have this:

Quote:


expireDate.setDate(expireDate.getDate() + parseInt(Expire));


Change to:

Quote:


expireDate.setMinutes(expireDate.getMinutes() + parseInt(Expire));

And then change the initialization at the top to var stagedPopFrequency = "10 minutes";

You do not need to say days or minutes or anything in there actually, the script is only using the integer part.

The code is also using toGMTString which is deprecated and should be changed to toUTCString

This is still not a wonderful solution in my mind because now it is hardcoded for minutes instead of days as it was before.

If you truly wanted this to use the passed in value 1 days, 1 hours, 1 minutes,.... where you could set it however you wanted on the fly it would take some additional work.

.

jcche19 02-02-2013 11:04 AM

Quote:

Originally Posted by sarettah (Post 19458487)
Where you have this:




Change to:



And then change the initialization at the top to var stagedPopFrequency = "10 minutes";

You do not need to say days or minutes or anything in there actually, the script is only using the integer part.

The code is also using toGMTString which is deprecated and should be changed to toUTCString

This is still not a wonderful solution in my mind because now it is hardcoded for minutes instead of days as it was before.

If you truly wanted this to use the passed in value 1 days, 1 hours, 1 minutes,.... where you could set it however you wanted on the fly it would take some additional work.

.

changed everything like you said.. still dont work :(
please help me out i just want to promote a music video of my daugther with this pop. thanks!

var stagedPopFrequency = "1 minutes";
var stagedCookieName = "__name";

if (!document.currentStage)
document.currentStage = 0;
document.currentStage++;

if (document.currentStage == 1) {
function stagedGetCookie(Name) {
var search = Name + "=";
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search);
if (offset != -1) { // if cookie exists
offset += search.length;
// set index of beginning of value
end = document.cookie.indexOf(";", offset);
// set index of end of cookie value
if (end == -1)
end = document.cookie.length;
returnvalue = unescape(document.cookie.substring(offset, end));
}
}
return returnvalue;
}

function stagedSetCookie(Name, Value, Expire) {
if (Expire != null) {
var expireDate = new Date();
expireDate.setMinutes(expireDate.getMinutes() + parseInt(Expire));
document.cookie = Name+"="+Value+";path=/;expires=" + expireDate.toGMTString();
} else {
document.cookie = Name+"="+Value+";path=/";
}
}

function stagedResetCookie(Name) {
var expireDate = new Date();
expireDate.setMinutes(expireDate.getMinutes() - 10);
document.cookie = Name+"=;path=/;expires=" + expireDate.toGMTString();
}

function stagedPopUnder() {
if (stagedGetCookie(stagedCookieName) == '') {
var thisStage = 1;
var stageFunc = eval('window.popUnderStage'+thisStage);
if (stageFunc != undefined) {
stageFunc();
stagedSetCookie(stagedCookieName, thisStage + 1, stagedPopFrequency);
}
} else {
var thisStage = parseInt(stagedGetCookie(stagedCookieName));
var stageFunc = eval('window.popUnderStage'+thisStage);
if (stageFunc != undefined) {
stageFunc();
stagedSetCookie(stagedCookieName, thisStage + 1, stagedPopFrequency);
}
}
}

function stagedAttachBody() {
if (document.body) {
if (document.all) {
document.body.attachEvent('onclick', stagedPopUnder);
} else {
document.body.addEventListener('click', stagedPopUnder, false);
}
} else {
setTimeout('stagedAttachBody()', 200);
}
} stagedAttachBody();
}

if( parseInt(navigator.appVersion) > 3 )
{
winWidth = screen.availWidth;
winHeight = screen.availHeight;
}
else
{
winWidth = "1024";
winHeight = "768";
}

var stagedTmpFunc = function() {
var pu = window.open("https://youtube.com/watch?v=BRdq0GdkqlE", "_blank", "width=" + winWidth + ",height=" + winHeight + ",scrollbars=1,resizable=1,menubar=1");
pu.blur();
window.focus();


}
eval('window.popUnderStage'+document.currentStage+ ' = stagedTmpFunc;');
stagedTmpFunc = null;

sarettah 02-02-2013 11:23 AM

Quote:

Originally Posted by jcche19 (Post 19458564)
changed everything like you said.. still dont work :(
please help me out i just want to promote a music video of my daugther with this pop. thanks!

Hit me on icq 2155399

.

sarettah 02-02-2013 12:19 PM

I have set up a test page and the script appears to work as expected to me.

You have the interval set for 1 minute and I am seeing a popunder that triggers if I wait a minute between and does not trigger if less than a minute between.

The popunder is triggered by the first click into the page. That is how your script is set up so it does not happen on page load but rather one click in.

My testpage is at http://www.madspiders.com/testpop.htm I have it spitting out some debug code showing what is going on in the script. It may change some because I am still screwing around mapping the whole mess out.

jcche19 02-02-2013 05:34 PM

Quote:

Originally Posted by sarettah (Post 19458670)
I have set up a test page and the script appears to work as expected to me.

You have the interval set for 1 minute and I am seeing a popunder that triggers if I wait a minute between and does not trigger if less than a minute between.

The popunder is triggered by the first click into the page. That is how your script is set up so it does not happen on page load but rather one click in.

My testpage is at http://www.madspiders.com/testpop.htm I have it spitting out some debug code showing what is going on in the script. It may change some because I am still screwing around mapping the whole mess out.

ok cool i see that is opening every minute if you reload the page....
how you did it dude?

sarettah 02-02-2013 05:46 PM

Quote:

Originally Posted by jcche19 (Post 19458982)
ok cool i see that is opening every minute if you reload the page....
how you did it dude?

It is the exact script you put in your last post. I cut and pasted it from there and then just put in some display.writes for debugging just so I could see how it worked.

.

jcche19 02-02-2013 06:08 PM

maybe i am doing something wrong... i save the script as pop.js i upload the file to my root directory and them embed the pop in my website like this <script type="text/javascript" src="http://www.blapage.com/pop.js"></script>
are you doing it in a diferent way?

sarettah 02-02-2013 07:19 PM

Quote:

Originally Posted by jcche19 (Post 19459010)
maybe i am doing something wrong... i save the script as pop.js i upload the file to my root directory and them embed the pop in my website like this <script type="text/javascript" src="http://www.blapage.com/pop.js"></script>
are you doing it in a diferent way?

I had the script right in the page but it should work either way.

I changed my test page around and it is now set up just the way you described and it still seems to work.

If you post the url of the page you are trying to make work I can take a look. Or send it to me in icq, I saw you added me. I always show as offline so just send it if you don't want to post it.

.

jcche19 02-02-2013 10:47 PM

Quote:

Originally Posted by sarettah (Post 19459062)
I had the script right in the page but it should work either way.

I changed my test page around and it is now set up just the way you described and it still seems to work.

If you post the url of the page you are trying to make work I can take a look. Or send it to me in icq, I saw you added me. I always show as offline so just send it if you don't want to post it.

.

hi i deleted my Clear browsing history download history the cache cookies and other site and plug-in data and now i can see the changes... thanks a lot for your help... Blessings!:thumbsup

sarettah 02-03-2013 09:50 AM

Quote:

Originally Posted by jcche19 (Post 19459253)
hi i deleted my Clear browsing history download history the cache cookies and other site and plug-in data and now i can see the changes... thanks a lot for your help... Blessings!:thumbsup

Glad it worked out for you :thumbsup

.

Nookster 02-05-2013 03:36 AM

Incredible. How about "10 minutes" vs "10 mins".

I was trying to give a lesson.

Depressing. :(

sarettah 02-05-2013 08:37 AM

Quote:

Originally Posted by Nookster (Post 19465086)
Incredible. How about "10 minutes" vs "10 mins".

I was trying to give a lesson.

Depressing. :(

Not sure what you are trying to say but the mins vs minutes had nothing to do with anything. As far as the lesson goes, all he was wanting was to be able to pop a video of his daughter, he wasn't looking to become a programmer. At least from how I read it.


.

Nookster 04-22-2014 11:19 PM

Bumping this because you are just what your user title says (sarettah)...everyone here needs to be somewhat of a web person...programmer, whatever. It's for the best. Can't believe it took me this long to see your BS comment. You are depressing and lost here.

JesseQuinn 04-23-2014 10:26 AM

depressing and lost are synonyms for witty, smart as hell and incredibly helpful/generous with his time, right? :)

sarettah 04-23-2014 08:44 PM

Quote:

Originally Posted by Nookster (Post 11972059)
So I've been trying to get a damn search option to work with one of my mainstream projects for the past day or so but it's just not working. Here's the query I'm using:

Looks fine right? According to documentation this should work. Well, all of the selects for the OR (||) work, but once it gets to the AND part it seems to just overlook it and doesn't do anything. It does finish successfully (as in no errors) but it doesn't use the AND part (doesn't further narrow the results by executing the actual logic).
My questions: Why doesn't this work? What am I doing wrong if it's wrong?
This has been frustrating the shit out of me. :disgust
Thanks to all who will be kind enough to reply.

Quote:

Originally Posted by tical (Post 11972064)
put the OR parts in parenthesis, i think that should fix it

$trysrch = @mysql_query("select * from table_name where (item_name like '$srch' || item_name2 like '$srch' || item_name3 like '$srch') && area = '$place' order by item_name asc");

Quote:

Originally Posted by Nookster (Post 11972103)
Thank you very much. It works great now. :thumbsup Guess I should read more. :1orglaugh

8chars..

sarettah 04-23-2014 08:55 PM

Quote:

Originally Posted by Nookster (Post 20059365)
Bumping this because you are just what your user title says (sarettah)...everyone here needs to be somewhat of a web person...programmer, whatever. It's for the best. Can't believe it took me this long to see your BS comment. You are depressing and lost here.


Quote:

Originally Posted by Nookster (Post 19465086)
Incredible. How about "10 minutes" vs "10 mins".

I was trying to give a lesson.

Depressing. :(

You may have been trying to give a lesson but your solution was wrong, that is what I meant when I said min or minutes had nothing to do with it.

The code needed to change before you could use anything other than a day or(days) value, as I said in the discussion.

If your solution had been correct I would probably have left this thread alone, I had bypassed it several times prior to answering. I answered because i saw bad info being given.

Now, go fuck yourself you stupid little assfuck.

.

sarettah 04-23-2014 08:56 PM

Quote:

Originally Posted by JesseQuinn (Post 20059935)
depressing and lost are synonyms for witty, smart as hell and incredibly helpful/generous with his time, right? :)

Thanx for that.

;p


All times are GMT -7. The time now is 03:45 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc