ThemeForest

Does anyone know if we have this kind of plugin on codecanyon

no-thumbnail
cookiemonster1988 Recent Posts
Threads Started
28 posts
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • Netherlands
  • Referred between 1 and 9 users
cookiemonster1988 says

ok i am looking for a plugin for my website …

i am using a intro as flash… but its gets annoying when people want to go to the site the need to go first to the intro..

is there a script that checks the ip or whatever …. that if they script sees that you already visited it once that it wil skip it and bring that person to the main page ?

kind regards Cookie

5007 posts The Dude Abides
  • United States
  • Elite Author
  • Has been a member for 4-5 years
  • Exclusive Author
  • Sold between 50 000 and 100 000 dollars
  • Contributed a Tutorial to a Tuts+ Site
  • Author had a Free File of the Month
+4 more
CodingJack says

Ironically, you can use a cookie for this :D. There are a few jQuery plugins that make setting and retrieving a cookie easy. It’s a simple task so I don’t think you’ll find it for sale here, but search Google for “jQuery cookie” for some examples.

293 posts
  • Author had a Free File of the Month
  • Sold between 10 000 and 50 000 dollars
  • Indonesia
  • Referred between 200 and 499 users
  • Bought between 10 and 49 items
  • Has been a member for 2-3 years
  • Exclusive Author
amatyr4n says

... is there a script that checks the ip or whatever …. that if they script sees that you already visited it once that it wil skip it and bring that person to the main page ?

kind regards Cookie

Seems you’ve already know the answer :D

no-thumbnail
cookiemonster1988 Recent Posts
Threads Started
28 posts
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • Netherlands
  • Referred between 1 and 9 users
cookiemonster1988 says

woah lol but still confused what do i need to look for never did it before :S

69 posts
  • Elite Author
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 100 000 and 250 000 dollars
  • Referred between 100 and 199 users
  • Bought between 10 and 49 items
  • Author had a Free File of the Month
  • Seychelles
DOTonPAPER says
You can add try code (add it in <head>):
<script type="text/JavaScript">

if (readCookie("website_visited") == "yes"){
   window.location = "after intro page URL";
}
else{
    setCookie("website_visited", "yes", 7); 
}

function setCookie(c_name, value, expiredays){
    var exdate = new Date();

    exdate.setDate(exdate.getDate()+expiredays);
    document.cookie = c_name+"="+escape(value)+((expiredays==null) ? "" : ";expires="+exdate.toUTCString());
}

function readCookie(name){
    var nameEQ = name + "=",
    ca = document.cookie.split(";");

    for(var i=0;i < ca.length;i++){
        var c = ca[i];
        while (c.charAt(0)==" ") c = c.substring(1,c.length);
        if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
    }
    return null;
}
</script>

I haven’t tested the code but you shouldn’t have any problems.

no-thumbnail
cookiemonster1988 Recent Posts
Threads Started
28 posts
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • Netherlands
  • Referred between 1 and 9 users
cookiemonster1988 says

You can add try code (add it in <head>):
<script type="text/JavaScript">

if (readCookie("website_visited") == "yes"){
   window.location = "after intro page URL";
}
else{
    setCookie("website_visited", "yes", 7); 
}

function setCookie(c_name, value, expiredays){
    var exdate = new Date();

    exdate.setDate(exdate.getDate()+expiredays);
    document.cookie = c_name+"="+escape(value)+((expiredays==null) ? "" : ";expires="+exdate.toUTCString());
}

function readCookie(name){
    var nameEQ = name + "=",
    ca = document.cookie.split(";");

    for(var i=0;i < ca.length;i++){
        var c = ca[i];
        while (c.charAt(0)==" ") c = c.substring(1,c.length);
        if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
    }
    return null;
}
</script>
I haven’t tested the code but you shouldn’t have any problems.

Thank you so much… it works fine.. i even implemented the mobile detect script too ^^ small question i noticed it only last or a day how do i edit this?

3373 posts
  • Australia
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • Interviewed on the Envato Notes blog
  • Microlancer Beta Tester
  • Sold between 1 000 and 5 000 dollars
Australia says

Set cookie.

http://php.about.com/od/phpfunctions/g/cookie_params.htm

The snippet above is set to 7 days , we use microtime

69 posts
  • Elite Author
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 100 000 and 250 000 dollars
  • Referred between 100 and 199 users
  • Bought between 10 and 49 items
  • Author had a Free File of the Month
  • Seychelles
DOTonPAPER says

Thank you so much… it works fine.. i even implemented the mobile detect script too ^^ small question i noticed it only last or a day how do i edit this?

I don’t understand your question.

69 posts
  • Elite Author
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 100 000 and 250 000 dollars
  • Referred between 100 and 199 users
  • Bought between 10 and 49 items
  • Author had a Free File of the Month
  • Seychelles
DOTonPAPER says

Set cookie. http://php.about.com/od/phpfunctions/g/cookie_params.htm The snippet above is set to 7 days , we use microtime

My code is for JavaScript.

3373 posts
  • Australia
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 2-3 years
  • Interviewed on the Envato Notes blog
  • Microlancer Beta Tester
  • Sold between 1 000 and 5 000 dollars
Australia says

No shit sherlock

by
by
by
by
by