Time spent online code (on members' profile)
3 posters
Page 1 of 1
Time spent online code (on members' profile)
I need the code to it. The first link in the google page you see => here
Doesn't work.
Does anyone know the code for it? ankillien? rono?
Doesn't work.
Does anyone know the code for it? ankillien? rono?
MrMega- Forumember
- Posts : 981
Reputation : 11
Language : English, Polish, HTML, BBCode
Location : New York, United States
Re: Time spent online code (on members' profile)
The php code your looking for would be
{TOTAL_TIME_MEMBER_LOGGED_IN}
Or
{TOTAL_TIME_LOGGED_IN}
depending on where you want to use it
regards
Craig
{TOTAL_TIME_MEMBER_LOGGED_IN}
Or
{TOTAL_TIME_LOGGED_IN}
depending on where you want to use it
regards
Craig
Guest- Guest
Re: Time spent online code (on members' profile)
I don't have a code to add a timer to your profile.
Here is an alternative...
I thinks it's a good idea to let the user choose to see a timer or not.
Personally, I use a pop-up timer (to keep track of time spent working
on forums) so it isn't reset when reloading/returning to the page.
The pop-up looks like this:
Here is an alternative...
I thinks it's a good idea to let the user choose to see a timer or not.
Personally, I use a pop-up timer (to keep track of time spent working
on forums) so it isn't reset when reloading/returning to the page.
The pop-up looks like this:
1st: Create an Html page for the timer
- Code:
<br>
<script language="JavaScript">
startday = new Date();
clockStart = startday.getTime();
function initStopwatch() {
var myTime = new Date();
return((myTime.getTime() - clockStart)/1000);
}
function getSecs() {
var tSecs = Math.round(initStopwatch());
var iSecs = tSecs % 60;
var iMins = Math.round((tSecs-30)/60);
var sSecs ="" + ((iSecs > 9) ? iSecs : "0" + iSecs);
var sMins ="" + ((iMins > 9) ? iMins : "0" + iMins);
document.forms[0].timespent.value = sMins+":"+sSecs;
window.setTimeout('getSecs()',1000);
}
</script>
<body onLoad="window.setTimeout('getSecs()',1)">
<center>
<form>
<font size="2" FACE="Arial">Time spent here: </FONT><br><input size=5 name=timespent>
</form>
</center>
</body>
</html>
Next: Create a pop-up link for the timer and add the
link to your Homepage Message content box, Widget etc.
- Code:
<a onclick="window.open('http://zone3.forumotion.com/Time-Spent-h24.htm', 'popup46', 'width=200,height=30,height=200,left=150,top=250'); return false" href="http://zone3.forumotion.com/Time-Spent-h24.htm" target="popup46"><strong>Popup Timer<strong></a>
My timer has just reminded me... I have to go!
Adios
Re: Time spent online code (on members' profile)
I want it to go to the profiles..
Thanks Placehold and Rono
Although I don't think PHP works in profile fields, does it? Although i'll give it a shot
Thanks Placehold and Rono
Although I don't think PHP works in profile fields, does it? Although i'll give it a shot
MrMega- Forumember
- Posts : 981
Reputation : 11
Language : English, Polish, HTML, BBCode
Location : New York, United States
Re: Time spent online code (on members' profile)
Bump
Up
My
Post
Up
My
Post
MrMega- Forumember
- Posts : 981
Reputation : 11
Language : English, Polish, HTML, BBCode
Location : New York, United States
Re: Time spent online code (on members' profile)
Forgot to bump this...anybody?
MrMega- Forumember
- Posts : 981
Reputation : 11
Language : English, Polish, HTML, BBCode
Location : New York, United States
Re: Time spent online code (on members' profile)
15 minutes early, but who's counting...
MrMega- Forumember
- Posts : 981
Reputation : 11
Language : English, Polish, HTML, BBCode
Location : New York, United States
Re: Time spent online code (on members' profile)
Really, someone...
MrMega- Forumember
- Posts : 981
Reputation : 11
Language : English, Polish, HTML, BBCode
Location : New York, United States
Re: Time spent online code (on members' profile)
Anybody at all?
MrMega- Forumember
- Posts : 981
Reputation : 11
Language : English, Polish, HTML, BBCode
Location : New York, United States
Re: Time spent online code (on members' profile)
I was trying this a while ago, but i was unable to create anything. Thats why i did not reply earlier. Sorry
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Similar topics
» Code for time spent in the forum does not work well
» Possibility of listing of time spent by members on the forum
» spent time on board
» Time spent on the forum
» Time spent on forum
» Possibility of listing of time spent by members on the forum
» spent time on board
» Time spent on the forum
» Time spent on forum
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum