The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Time spent online code (on members' profile)

View previous topic View next topic Go down

Time spent online code (on members' profile)

Post by MrMega on September 18th 2009, 9:50 pm

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?
avatar
MrMega
Forumember

Male Posts : 981
Reputation : 11
Language : English, Polish, HTML, BBCode
Location : New York, United States

Back to top Go down

Re: Time spent online code (on members' profile)

Post by Guest on September 18th 2009, 11:10 pm

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 Smile

regards







Craig

Guest
Guest


Back to top Go down

Re: Time spent online code (on members' profile)

Post by RoNo on September 19th 2009, 12:06 am

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:


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>
It's not what you asked for... but it's the alternative I use.

My timer has just reminded me... I have to go!

Adios
avatar
RoNo
Active Poster

Male Posts : 1270
Reputation : 135
Language : English
Location : Laguna Beach, California

http://bf2mercenaries.forumotion.com/

Back to top Go down

Re: Time spent online code (on members' profile)

Post by MrMega on September 19th 2009, 1:36 am

I want it to go to the profiles..

Thanks Placehold and Rono thumleft

Although I don't think PHP works in profile fields, does it? Although i'll give it a shot Smile
avatar
MrMega
Forumember

Male Posts : 981
Reputation : 11
Language : English, Polish, HTML, BBCode
Location : New York, United States

Back to top Go down

Re: Time spent online code (on members' profile)

Post by MrMega on September 20th 2009, 3:18 pm

Bump
Up
My
Post
avatar
MrMega
Forumember

Male Posts : 981
Reputation : 11
Language : English, Polish, HTML, BBCode
Location : New York, United States

Back to top Go down

Re: Time spent online code (on members' profile)

Post by MrMega on September 22nd 2009, 9:41 pm

Forgot to bump this...anybody?
avatar
MrMega
Forumember

Male Posts : 981
Reputation : 11
Language : English, Polish, HTML, BBCode
Location : New York, United States

Back to top Go down

Re: Time spent online code (on members' profile)

Post by MrMega on September 23rd 2009, 9:25 pm

15 minutes early, but who's counting...
avatar
MrMega
Forumember

Male Posts : 981
Reputation : 11
Language : English, Polish, HTML, BBCode
Location : New York, United States

Back to top Go down

Re: Time spent online code (on members' profile)

Post by MrMega on September 25th 2009, 9:21 pm

Really, someone...
avatar
MrMega
Forumember

Male Posts : 981
Reputation : 11
Language : English, Polish, HTML, BBCode
Location : New York, United States

Back to top Go down

Re: Time spent online code (on members' profile)

Post by MrMega on September 28th 2009, 2:37 am

Anybody at all?
avatar
MrMega
Forumember

Male Posts : 981
Reputation : 11
Language : English, Polish, HTML, BBCode
Location : New York, United States

Back to top Go down

Re: Time spent online code (on members' profile)

Post by Sanket on September 29th 2009, 3:13 pm

I was trying this a while ago, but i was unable to create anything. Thats why i did not reply earlier. Sorry
avatar
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2828
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum