Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
[MOD]Last visited
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2008-08-13 21:17:59
Here is a nice mod it will tell users the last time they was online

Screen Shot



Open login_bock.php and before

<?

end_block();

}

?>

Add

<script type="text/javascript">

/***********************************************

* CREATED BY FOZ @ TORRENT-WORLD.CO.UK

*

* Visit me at [url="http://www.torrent-world.co.uk./"]http://www.torrent-world.co.uk./[/url] for more stuff

***********************************************/

var lastvisit=new Object()

lastvisit.firstvisitmsg="This is your first visit to this page. Welcome!" //Change first visit message here

lastvisit.subsequentvisitmsg="Welcome back ! Your last visit was on <b>[displaydate]</b>" //Change subsequent visit message here

lastvisit.getCookie=function(Name){ //get cookie value

var re=new RegExp(Name+"=[^;]+", "i"); //construct RE to search for target name/value pair

if (document.cookie.match(re)) //if cookie found

return document.cookie.match(re)[0].split("=")[1] //return its value

return ""

}

lastvisit.setCookie=function(name, value, days){ //set cookei value

var expireDate = new Date()

//set "expstring" to either future or past date, to set or delete cookie, respectively

var expstring=expireDate.setDate(expireDate.getDate()+parseInt(days))

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

}

lastvisit.showmessage=function(){

if (lastvisit.getCookie("visitcounter")==""){ //if first visit

lastvisit.setCookie("visitcounter", 2, 730) //set "visitcounter" to 2 and for 730 days (2 years)

document.write(lastvisit.firstvisitmsg)

}

else

document.write(lastvisit.subsequentvisitmsg.replace("\[displaydate\]", new Date().toLocaleString()))

}

lastvisit.showmessage()

</script>
displaytime.JPG
displaytime.JPG
Unknown User
2008-08-13 21:38:30
thanks reporting google "fools gold", loll

ther a lot of nice scripts availables to personnalize our sites...

u can also place this on a div...and configurate
Unknown User
2008-08-13 21:39:35
"alamandra, post: 45522":
thanks reporting google "fools gold", lollther a lot of nice scripts availables to personnalize our sites...

u can also place this on a div...and configurate
WHAT?
Unknown User
2009-06-27 16:04:40
Ohhh nice hack .. is works great. Manny thanks.
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728