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 Armani Rouse on November 15, 2012 at 8:39am Hey Scott! this look great brother! Mines only has my picture in the module, how did you include all those other members? I thought this code was for individual members? Anyhow, great job and BIG thanks to solo for adding this! I purchased a mod from TJ@Jquery similar to this that only displays on the members page which is also awesome but this one depending if you added it to the home page like I did, the member is more notified!
Permalink Reply by Armani Rouse on November 15, 2012 at 9:35am What a great reply Scott! We indeed will be pals now as I think there may be some mods you can help me with! Im very "paypal friendly" so good business is my practice. Lets talk! Check out my site wellkunnected.com and tell me if you have anything interesting you think my network could use that you could conjure business about! Talk @ ya soon pal, thanks again!
perty cool but im more interested in when last time Member visited due to controlling issues surely there is a code that is not copyrighted... ?
Permalink Reply by DTM on November 18, 2012 at 4:50pm The following is what we really want. 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 Annika Brandt on November 26, 2012 at 5:18am can't get it to work www.svepla.com
Troy Marquis replied to Andrew Sanderson's discussion 'Video chat for ning network'
Kos replied to SM's discussion 'How to Target the First Page of your Site with CSS'© 2013 Created by Ning.
