Like the title states this script will let your network members or visitors know when they last came to your network..updated
copy and paste in textbox thats it very simple..heres the code i mean script
<script type = "text/javascript">
/***********************************************
* Display time of last visit script- by JavaScriptKit.com
* This notice MUST stay intact for use
* Visit JavaScript Kit at http://www.javascriptkit.com/
***********************************************/
var days = 730; // days until cookie expires = 2 years.
var lastvisit=new Object();
var firstvisitmsg="This is your first visit to this page. Welcome!";
lastvisit.subsequentvisitmsg="Welcome back visitor! Your last visit was on <b>[displaydate]</b>";
lastvisit.getCookie=function(Name){
var re=new RegExp(Name+"=[^;]+", "i");
if (document.cookie.match(re))
return document.cookie.match(re)[0].split("=")[1];
return'';
}
lastvisit.setCookie=function(name, value, days){
var expireDate = new Date();
var expstring=expireDate.setDate(expireDate.getDate()+parseInt(days));
document.cookie = name+"="+value+"; expires="+expireDate.toGMTString()+"; path=/";
}
lastvisit.showmessage = function() {
var wh = new Date();
if (lastvisit.getCookie("visitc") == "") {
lastvisit.setCookie("visitc", wh, days);
document.write(firstvisitmsg);
}
else {
var lv = lastvisit.getCookie("visitc");
var lvp = Date.parse(lv);
var now = new Date();
now.setTime(lvp);
var day = new Array("Sun", "Mon", "Tues", "Wed", "Thur", "Fri", "Sat");
var month = new Array ("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");
var dd = now.getDate();
var dy = now.getDay();
dy = day[dy];
var mn = now.getMonth();
mn = month[mn];
yy = now.getFullYear();
var hh = now.getHours();
var ampm = "AM";
if (hh >= 12) {ampm = "PM"}
if (hh >12){hh = hh - 12};
if (hh == 0) {hh = 12}
if (hh < 10) {hh = "0" + hh};
var mins = now.getMinutes();
if (mins < 10) {mins = "0"+ mins}
var secs = now.getSeconds();
if (secs < 10) {secs = "0" + secs}
var dispDate = dy + ", " + mn + " " + dd + ", " + yy + " " + hh + ":" + mins + ":" + secs + " " + ampm
document.write(lastvisit.subsequentvisitmsg.replace("\[displaydate\]", dispDate))
}
lastvisit.setCookie("visitc", wh, days);
}
lastvisit.showmessage();
</script>
RE UPDATED NEW EXACT SCRIPT
example can be seen here http://yubasutterconnect.com right above the latest activity module..Enjoy Horray Beer allright
Permalink Reply by Shesh Dhar Tiwari on November 13, 2012 at 12:50pm ha ha ha.........
Permalink Reply by Atheist Universe on November 13, 2012 at 12:13pm Yep, missing script =)
Permalink Reply by solo on November 13, 2012 at 1:05pm lol
dont know what happen but here it is,wow just headedout for lunch check email..
Permalink Reply by solo on November 13, 2012 at 1:08pm LEAVE OUT THE <P> ..HTML BOXES ARE SCREWY TODAY

Permalink Reply by Writer Chick {Diane} on November 13, 2012 at 2:12pm Does this only work on a two column layout?
Permalink Reply by solo on November 13, 2012 at 2:36pm HERE IS THE CODE WITHOUT THE GUNK THAT THE TEXT EDITOR IS LEAVING...WORKS ON ALL COLUMNS 2 OR 3 OR 1...
<script type = "text/javascript">
/***********************************************
* Display time of last visit script- by JavaScriptKit.com
* This notice MUST stay intact for use
* Visit JavaScript Kit at http://www.javascriptkit.com/ for this script and more
***********************************************/
var days = 730; // days until cookie expires = 2 years.
var lastvisit=new Object();
var firstvisitmsg="This is your first visit to this page. Welcome!";
lastvisit.subsequentvisitmsg="Welcome back visitor! Your last visit was on <b>[displaydate]</b>";
lastvisit.getCookie=function(Name){
var re=new RegExp(Name+"=[^;]+", "i");
if (document.cookie.match(re))
return document.cookie.match(re)[0].split("=")[1];
return'';
}
lastvisit.setCookie=function(name, value, days){
var expireDate = new Date();
var expstring=expireDate.setDate(expireDate.getDate()+parseInt(days));
document.cookie = name+"="+value+"; expires="+expireDate.toGMTString()+"; path=/";
}
lastvisit.showmessage = function() {
var wh = new Date();
if (lastvisit.getCookie("visitc") == "") {
lastvisit.setCookie("visitc", wh, days);
document.write(firstvisitmsg);
}
else {
var lv = lastvisit.getCookie("visitc");
var lvp = Date.parse(lv);
var now = new Date();
now.setTime(lvp);
var day = new Array("Sun", "Mon", "Tues", "Wed", "Thur", "Fri", "Sat");
var month = new Array ("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");
var dd = now.getDate();
var dy = now.getDay();
dy = day[dy];
var mn = now.getMonth();
mn = month[mn];
yy = now.getFullYear();
var hh = now.getHours();
var ampm = "AM";
if (hh >= 12) {ampm = "PM"}
if (hh >12){hh = hh - 12};
if (hh == 0) {hh = 12}
if (hh < 10) {hh = "0" + hh};
var mins = now.getMinutes();
if (mins < 10) {mins = "0"+ mins}
var secs = now.getSeconds();
if (secs < 10) {secs = "0" + secs}
var dispDate = dy + ", " + mn + " " + dd + ", " + yy + " " + hh + ":" + mins + ":" + secs + " " + ampm
document.write(lastvisit.subsequentvisitmsg.replace("\[displaydate\]", dispDate))
}
lastvisit.setCookie("visitc", wh, days);
}
lastvisit.showmessage();
</script>
Permalink Reply by solo on November 13, 2012 at 3:43pm @RANDY...
You can customize the two messages shown by editing the two variables near the top.
Permalink Reply by DTM on November 18, 2012 at 4:48pm I'm with you on this Randy. Check this site, go to a members page, you can see the last time they were logged in right under their avatar. I've wanted this feature for a long time.
I have no clue what they are using. http://geekwith.com/
Permalink Reply by conner on November 28, 2012 at 6:00pm I'm with Randy and DTM.... I've been wanting this feature like on this http://geekwith.com site
Hope someone comes up with a clue on what they are using or how to get this on members profile pages. :)
Permalink Reply by Atheist Universe on November 15, 2012 at 8:22am I wish we had this info in the Members Management page - exporting to CSV to know when a member last visited is a serious pain. =/
Ginny Collins replied to Ginny Collins's discussion 'HOW TO INSTALL/ADD FACEBOOK COMMENT...'


Riccardo Rossini replied to Riccardo Rossini's discussion 'FANTASTIC!!'
© 2013 Created by Ning.
