Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Bulakbol on December 06, 2008, 07:43:00 AM

Title: Time Logged-In
Post by: Bulakbol on December 06, 2008, 07:43:00 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1545)

Author: Bulakbol   Mod Name: Time Logged-In   Version: 3.1
Tested: Freshly installed SMF 1.1.7 and SMF 2.0 Beta 4

If you want to see the amount of time a member has been logged-in (session in days, hours and minutes),
count of posts they made the day while/was online, "Total time logged in", and a Theme your member is using,
then this mod is for you. The information can be found in the summary of a member's profile.
After installation, your members should log-in first before "Logged in", "Posts made" and "Online for" info are available.
Support for "Super Admin" mod. No configuration required.

Supported languages
English
English-utf8

December 8, 2008 - Released version 2.0
  Rewritten code because of additional feature.
  Added the "Total time logged in". Requested by SunKing.

December 10, 2008 - Released version 3.0
  Rewritten and optimized code because of additional feature.
  Added count of posts made the day a member logged-in ("Posts made").
 
December 11, 2008
  Removed excess code and added missing line of code (SMF 2.0 Beta 4) - fixed. Thanks edi67.
  Added Italian language translation. Thanks ed67.
  Added Swedish language translation. Thanks ScarMix.
  Added Greek-utf8 language translation. Thanks villasg.

December 17, 2008
  Added "Current Theme". A Theme a member is using.
  Added Spanish language translation. Thanks ksawery.

February 19, 2009
Released update for SMF version 2.0 RC1 and 1.1.8.
 
Please support mod authors and SMF by becoming a charter member.
Title: Re: Time Logged-In
Post by: edi67 on December 06, 2008, 10:20:14 AM
nice
Title: Re: Time Logged-In
Post by: fords8 on December 06, 2008, 11:20:11 AM
Mod installed without any issues.

But all I get is:

Logged in:  Not Available.
Online for:  Not Available.

Does it take sometime to get the info.?

I have SMF2 Beta 4!

Title: Re: Time Logged-In
Post by: villasg on December 06, 2008, 12:38:11 PM
Quote from: fords8 on December 06, 2008, 11:20:11 AM
Mod installed without any issues.

But all I get is:

Logged in:  Not Available.
Online for:  Not Available.

Does it take sometime to get the info.?

I have SMF2 Beta 4!

Need to login and logout a member AFTER installation
Title: Re: Time Logged-In
Post by: senyorito on December 06, 2008, 02:03:00 PM
Hey bro Bulakbol!  Nice MOD here huh!  I definitely need it to my board... heheh.

Thanks bro!
Title: Re: Time Logged-In
Post by: Bulakbol on December 06, 2008, 04:10:44 PM
Quote from: fords8 on December 06, 2008, 11:20:11 AM
Mod installed without any issues.

But all I get is:

Logged in:  Not Available.
Online for:  Not Available.

Does it take sometime to get the info.?

I have SMF2 Beta 4!



Villasg figured it out correctly. :) Sorry, I forgot to mention it in the readme file. I will in the next update.


@senyorito
8) Thanks for liking it bro.  Good to see you again.

@All
Thank you for using or trying this mod. I hope you'll find it usefull too.
Title: Re: Time Logged-In
Post by: fords8 on December 06, 2008, 04:11:37 PM
Quote from: villasg on December 06, 2008, 12:38:11 PM
Quote from: fords8 on December 06, 2008, 11:20:11 AM
Mod installed without any issues.

But all I get is:

Logged in:  Not Available.
Online for:  Not Available.

Does it take sometime to get the info.?

I have SMF2 Beta 4!

Need to login and logout a member AFTER installation

Yup! That worked! Thanks!
Title: Re: Time Logged-In
Post by: TW1ST3D on December 06, 2008, 04:14:58 PM
Great Mod !!  Installed Flawlessly on my Heavily Modded Forum !!

Great Job !!
Title: Re: Time Logged-In
Post by: Bulakbol on December 06, 2008, 04:25:53 PM
Thanks guys. I've been using this mod for a while and decided to share it to all.

You probably figured already that only admins can see the information. If you want to show to everyone including guests, you have to edit default/Profile.template.php and remove the
if ($context['user']['is_admin'])

If you want to show only to Admins and Global Moderators, you can try using
if (allowedTo('moderate_forum'))

Title: Re: Time Logged-In
Post by: Sudhakar Arjunan on December 06, 2008, 09:03:26 PM
Such a Excellent Mod. Its very Useful.
Title: Re: Time Logged-In
Post by: senyorito on December 06, 2008, 11:35:08 PM
@Bulakbol:  Bro, I've just noticed something...

It is clearly that this MOD remembers the time and date of the member's "last logged-in".  However, there are many forum members that doesn't logout when they leave the board/forum. 

If for example, member1 logged in today and stayed for only 5 minutes and left the forum without logging out, then he returns after 7 days, when you look at member1's profile, the hours and minutes will even count the days that member1 was missing.

My question is, is there a way that time logged-in will only count the time whenever member1 is in connected to the forum?

Can it be done like this?

member1's profile page

Logged in:    Today at 01:00:00 AM (Note: Today = December 7, 2008)
Online for:    5 minutes.

member1 left the forum without logging out.

After 7 days member1 came back.  He didn't login this time because he logged with "Forever" the last time he login.


Is it possible to only remember the time he is online to the forum?

Logged in:    Today at 010:00:00 AM (Today = December 14, 2008) <== This will become Today.
Online for:    45 minutes.

Thank you bro.
Title: Re: Time Logged-In
Post by: villasg on December 07, 2008, 03:19:39 AM
Translate for greek-utf8

$txt['tli_logged_in'] = 'Συνδέθηκε ';
$txt['tli_online_for'] = 'Συνδεδεμένος για';
$txt['tli_not_available'] = 'Μη διαθέσιμο.';
$txt['tli_day'] = ' ημέρα,';
$txt['tli_days'] = ' ημέρες,';
$txt['tli_hour'] = ' ώρα και';
$txt['tli_hours'] = ' ώρες και';
$txt['tli_minute'] = ' λεπτό';
$txt['tli_minutes'] = ' λεπτά'
Title: Re: Time Logged-In
Post by: Alpay on December 07, 2008, 06:12:20 AM
Good mod. Thanks

Translate for turkish

Modifications.turkish.php


$txt['tli_logged_in'] = 'Son Giriş Zamanı:';
$txt['tli_online_for'] = 'Ne Kadar Süredir Burada';
$txt['tli_not_available'] = 'Kayıt yok.';
$txt['tli_day'] = ' Gün, ';
$txt['tli_days'] = ' Gün, ';
$txt['tli_hour'] = ' Saat ve';
$txt['tli_hours'] = ' Saat ve';
$txt['tli_minute'] = ' dakika.';
$txt['tli_minutes'] = ' dakika.';
Title: Re: Time Logged-In
Post by: [unplugged] on December 07, 2008, 11:06:45 PM
Is there a way to show total time logged in since they registered? Like what's in the user info area (like Total time logged in: XX days, XX hours and XX minutes)?

Thanks in advance.
Title: Re: Time Logged-In
Post by: Bulakbol on December 08, 2008, 07:53:12 PM
@A.SK
Thanks for the compliment.

@Alpay and villasg
Thanks for the language translation guys. I'll add them to version 2.0. :)

@senyorito
You are right there. I understand what you mean bro but sorry, I can't. The only way is to configure your members' browser to delete cookies when they close their browser window. Maybe they don't want to login again that's why they don't click on the logout button. At least, you now have information telling you that they want to stay logged-in all the time. :)

@SunKing
That's a good idea. Maybe I should update the mod now. Thanks for the suggestion.

<edit>
December 11, 2008 - Released version 2.0
  Added the "Total time logged in" as requested by SunKing.
  Added support for Greek-utf8 language (Thanks villasg)
  Added support for Turkish language (Thanks Alpay)
</edit>
Title: Re: Time Logged-In
Post by: [unplugged] on December 08, 2008, 09:15:13 PM
Quote from: Bulakbol on December 08, 2008, 07:53:12 PM
...Added the "Total time logged in"...

Fantastic!! Works perfectly.

Thanks for a great mod.
Title: Re: Time Logged-In
Post by: tyhgdgh on December 10, 2008, 12:29:17 AM
Great mod, but i get an error

8: Undefined index: total_logged_in
File: /var/www/html/forum/Themes/default/languages/Who.english.php (eval?)
Line: 299
Title: Re: Time Logged-In
Post by: PLAYBOY on December 10, 2008, 06:54:45 AM
I wish it was more "Theme Friendly"
Anyway, good mod. Thx.
Title: Re: Time Logged-In
Post by: ScarMix on December 10, 2008, 11:46:07 AM
Hello love the idea of this mod

I just have a problem getting it working, I get this error:
Database Error
Unknown column 'mem.first_login' in 'field list'
File: /home/scarmix/public_html/Sources/Load.php
Line: 990


Hope that you will help me

Thanks in advance 
Title: Re: Time Logged-In
Post by: Bulakbol on December 10, 2008, 04:25:54 PM
@Sunking
Thanks for the compliment. Check out the new package. I added additional info that might interest admins.

@Nfanthr33 and ScarMix
What version of SMF? You have to extract the tli20x.php (Beta 4) or the tli11x.php (1.1.7) from the package and then upload the file to your root directory. Run it by typing http://www.your_site/tli11x.php if you are using version 1.1.7 or til20x.php if you are using version 2.0 Beta 4.

@PLAYBOY
Most theme uses the default/Profile.template.php. If your custom theme has its own Profile.template.php then you have to manually edit it to make this mod work.
Title: Re: Time Logged-In
Post by: tyhgdgh on December 10, 2008, 04:37:25 PM
still doesnt work when i did that
Title: Re: Time Logged-In
Post by: Bulakbol on December 10, 2008, 04:38:37 PM
Try the new package with additional info. Let me know how it goes.
Maybe you are using free host and doesn't want you to install anything. :)
Title: Re: Time Logged-In
Post by: [unplugged] on December 10, 2008, 05:36:26 PM
Nice enhancements to the mod! It just keeps getting better. Thanks again.
Title: Re: Time Logged-In
Post by: tyhgdgh on December 10, 2008, 07:00:52 PM
my host isnt free, it my father. I did install the new one too, still doesnt work ~ 1.1.7
Title: Re: Time Logged-In
Post by: TechPrince on December 10, 2008, 10:53:02 PM
8: Undefined index: total_logged_in

8: Undefined index: online_for

8: Undefined index: first_login

8: Undefined index: posts_made

SMF 1.1.7
Title: Re: Time Logged-In
Post by: vulcan59 on December 10, 2008, 11:19:33 PM
Hi Bulakbol,

Downloaded and installed with no problems.

However after logging back in, it shows the correct total time logged in for me but it shows zero post when I actually (being admin) have quite a number of post.

Does it only start counting after the installation?

Regards.
Title: Re: Time Logged-In
Post by: [unplugged] on December 10, 2008, 11:25:26 PM
Those are for the posts you have made that day, not total posts ever made.  ;D
Title: Re: Time Logged-In
Post by: vulcan59 on December 10, 2008, 11:31:13 PM
Ah, okay understood.

Regards.
Title: Re: Time Logged-In
Post by: edi67 on December 11, 2008, 03:59:48 AM
Sorry but i found one little problem:

immediately when i click the profile of one new user registered in my forum, i receive this error trying to open profile:

The database value you're trying to insert does not exist: recycle_board

Some solution for solve this?

ps. if i unistall your mod  everything is ok.




italian language bro  ;D
$txt['tli_logged_in'] = 'Ultimo accesso';
$txt['tli_online_for'] = 'Online per';
$txt['tli_not_available'] = 'Non Disponibile.';
$txt['tli_day'] = ' giorno, ';
$txt['tli_days'] = ' giorni, ';
$txt['tli_hour'] = ' ora e ';
$txt['tli_hours'] = ' ore e ';
$txt['tli_minute'] = ' minuto.';
$txt['tli_minutes'] = ' minuti.';
$txt['tli_post'] = ' discussione.';
$txt['tli_posts'] = ' discussioni.';
$txt['tli_posts_made'] = 'Discussioni scritte';
$txt['tli_total_logged_in'] = 'Tempo Totale collegato';
Title: Re: Time Logged-In
Post by: villasg on December 11, 2008, 07:55:18 AM
greek-utf8

$txt['tli_logged_in'] = 'Συνδέθηκε ';
$txt['tli_online_for'] = 'Συνδεδεμένος για';
$txt['tli_not_available'] = 'Μη διαθέσιμο.';
$txt['tli_day'] = ' ημέρα,';
$txt['tli_days'] = ' ημέρες,';
$txt['tli_hour'] = ' ώρα και';
$txt['tli_hours'] = ' ώρες και';
$txt['tli_minute'] = ' λεπτό';
$txt['tli_minutes'] = ' λεπτά'
$txt['tli_post'] = ' πόστ.';
$txt['tli_posts'] = ' πόστς.';
$txt['tli_posts_made'] = 'Πόστ που έκανε';
$txt['tli_total_logged_in'] = 'Συνολικός χρόνος σύνδεσης';
Title: Re: Time Logged-In
Post by: ScarMix on December 11, 2008, 09:36:40 AM
Thanks for this nice mod

But for me it does not seem to show correct, so I made a screen shot and here it is:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi526.photobucket.com%2Falbums%2Fcc343%2FCairX%2FScreenShot029.jpg&hash=087796869265ced41b580555afb6eeb65684760c)

Thanks for help in advance  ;)

And btw a Swedish translation (not many that will use that but anyway):
$txt['tli_logged_in'] = 'Inloggad';
$txt['tli_online_for'] = 'Du har varit inloggad i';
$txt['tli_not_available'] = 'Inte tillgänglig.';
$txt['tli_day'] = ' dag, ';
$txt['tli_days'] = ' dagar, ';
$txt['tli_hour'] = ' time och ';
$txt['tli_hours'] = ' timmar och ';
$txt['tli_minute'] = ' minut.';
$txt['tli_minutes'] = ' minuter.';
$txt['tli_post'] = ' inlägg.';
$txt['tli_posts'] = ' inlägg.';
$txt['tli_posts_made'] = 'Antal inlägg';
$txt['tli_total_logged_in'] = 'Total tid inloggad';
Title: Re: Time Logged-In
Post by: villasg on December 11, 2008, 10:10:16 AM
Work good

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg339.imageshack.us%2Fimg339%2F1580%2Fsnap2vn2.jpg&hash=b1b2786926eb309d04bbc50c4d53be76e1786f4a) (http://imageshack.us)
Title: Re: Time Logged-In
Post by: ScarMix on December 11, 2008, 10:32:11 AM
What I am I doing wrong??  :(
Title: Re: Time Logged-In
Post by: Bulakbol on December 11, 2008, 06:30:49 PM
@Nfanthr33
Which theme are you using? No errors in the error log?  Give me more details please.

@TechPrince
If you installed the mod manually, the code probably in the wrong place. Attach your Sources/Profile.php.

@SunKing
Thanks for the help.

@edi67
Sorry about that. I missed one line of code in the beta 4 version of the mod. It is now fixed. Download the new package and reinstall.

@ScarMix
Copy the txt language to default/Modification.{your_language}.php and try it again. Try the default theme too and see if it is woking there.

Thanks guys for the language translations. I added them already.
Title: Re: Time Logged-In
Post by: tyhgdgh on December 13, 2008, 07:17:57 AM
Theme ~ Default
Errors ~
8: Undefined index: total_logged_in
File: /home/virtual/site69/fst/var/www/html/forum/Themes/default/languages/Who.english.php (eval?)
Line: 302
8: Undefined index: posts_made
File: /home/virtual/site69/fst/var/www/html/forum/Themes/default/languages/Who.english.php (eval?)
Line: 299
8: Undefined index: online_for
File: /home/virtual/site69/fst/var/www/html/forum/Themes/default/languages/Who.english.php (eval?)
Line: 296
8: Undefined index: first_login
File: /home/virtual/site69/fst/var/www/html/forum/Themes/default/languages/Who.english.php (eval?)
Line: 293

Glitch ~ will not show time, posts, total, first
Title: Re: Time Logged-In
Post by: Bulakbol on December 13, 2008, 04:07:04 PM
@Nfanthr33
Attach your Sources/Profile.php.


@ScarMix
Download and try the new package. Version 3.0.
Title: Re: Time Logged-In
Post by: tyhgdgh on December 13, 2008, 06:13:33 PM
here you go
Title: Re: Time Logged-In
Post by: Bulakbol on December 13, 2008, 07:53:32 PM
How did you install this mod Nfanthr33 ?
Anyhow, here's your Profile.template.php. I cannot test it so let me know if there's more error.
Title: Re: Time Logged-In
Post by: tyhgdgh on December 13, 2008, 08:38:28 PM
heres one ~ Page wont load
users page will not load
Title: Re: Time Logged-In
Post by: Bulakbol on December 13, 2008, 08:45:37 PM
I don't know. It is maybe conflicting with other mods. A link to your site will help.
Title: Re: Time Logged-In
Post by: tyhgdgh on December 13, 2008, 08:55:10 PM
http://www.vgrecordist.com/forum/index.php?action=profile;u=1
here, its my Profile
Title: Re: Time Logged-In
Post by: Bulakbol on December 13, 2008, 09:01:33 PM
Sorry, attach the pic here. I don't the link that you posted.
Title: Re: Time Logged-In
Post by: tyhgdgh on December 13, 2008, 09:07:51 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.vgrecordist.com%2Fforum%2FMGalleryItem.php%3Fid%3D219&hash=aaded614bc1fe636dd72ed32e3fbd39e3a163f48)

Nothing Shows, i did have 1.0 and 2.0 installed before this one
Title: Re: Time Logged-In
Post by: Bulakbol on December 13, 2008, 09:11:29 PM
Did you uploaded the Profile.php that I posted? Any error in the error log?
Title: Re: Time Logged-In
Post by: tyhgdgh on December 13, 2008, 09:20:26 PM
nothing in the error log, when i loaded it, the Page goes Blank
Title: Re: Time Logged-In
Post by: Bulakbol on December 13, 2008, 09:24:56 PM
Sorry, I ran out of idea why.  It should at least display "Not Available" when there's no data.  Try hightlighting the blank space where the data should be printed. It might be black in color.
Title: Re: Time Logged-In
Post by: tyhgdgh on December 13, 2008, 10:18:36 PM
tried a manualy add it, still doesnt work even when running tlidb
Title: Re: Time Logged-In
Post by: ksawery on December 15, 2008, 04:57:53 AM
Hi. I add spanish language:

$txt['tli_logged_in'] = 'Conectado';
$txt['tli_online_for'] = 'Online desde';
$txt['tli_not_available'] = 'No disponible.';
$txt['tli_day'] = ' d&iacute;a, ';
$txt['tli_days'] = ' d&iacute;as, ';
$txt['tli_hour'] = ' hora y ';
$txt['tli_hours'] = ' horas y ';
$txt['tli_minute'] = ' minuto.';
$txt['tli_minutes'] = ' minutos.';
$txt['tli_post'] = ' post.';
$txt['tli_posts'] = ' posts.';
$txt['tli_posts_made'] = 'Posts creados';
$txt['tli_total_logged_in'] = 'Tiempo total conectado';
Title: Re: Time Logged-In
Post by: edi67 on December 16, 2008, 02:34:12 PM
everything work perfect now THX Bulakbol ;)
Title: Re: Time Logged-In
Post by: firehopper on December 17, 2008, 06:12:40 AM
Translate for german language


// Time Logged-In
$txt['tli_logged_in'] = 'Eingeloggt um';
$txt['tli_online_for'] = 'Online f&#252;r';
$txt['tli_not_available'] = 'Nicht verf&#252;gbar.';
$txt['tli_day'] = ' Tag, ';
$txt['tli_days'] = ' Tage, ';
$txt['tli_hour'] = ' Stunde und ';
$txt['tli_hours'] = ' Stunden und ';
$txt['tli_minute'] = ' Minute.';
$txt['tli_minutes'] = ' Minuten.';
$txt['tli_post'] = ' Beitrag.';
$txt['tli_posts'] = ' Beitr&#228;ge.';
$txt['tli_posts_made'] = 'Beitr&#228;ge erstellt';
$txt['tli_total_logged_in'] = 'Gesamte Onlinezeit';
$txt['tli_theme'] = 'Aktuelles Layout';
//Time Logged-In End
Title: Re: Time Logged-In
Post by: Bulakbol on December 17, 2008, 09:22:47 PM
Thanks for the translation firehopper.
Title: Re: Time Logged-In
Post by: Sentinel [AF] on December 18, 2008, 05:30:00 AM
Everything working nicely on me forum ta mate.

One suggestion or idea(however you want to look at it): how about adding the last post a user made !?

I think that would be quite useful too no !?

eZ.
Title: Re: Time Logged-In
Post by: Bulakbol on December 20, 2008, 08:14:09 PM
@ksawery
Thanks for the translation. I'll add them together with German translation to the next upldate.

@TheSentinel®
There's "Show the last posts of this person." link at the bottom already so I think it is not needed.

When I have time, I might add how many posts a member made a day before last active. I might re-arrage the display too. It is in my TODO list.
Title: Re: Time Logged-In
Post by: phpMyTony on December 20, 2008, 09:15:17 PM
Sounds great, might try.
Title: Re: Time Logged-In
Post by: Sentinel [AF] on December 21, 2008, 08:39:39 AM
The link is show the last posts of the person, aye I know.

But who wants to click links for everything when you could have it right there in front of you.

Just my way of thinking. Make ****** easier mind :D

Nevermind esé, I'll figure it out meself. - no problem.

eZ.
Title: Re: Time Logged-In
Post by: Bulakbol on December 21, 2008, 05:06:54 PM
Sorry TheSentinel®. I thank you for the suggestion although IMO, it is too much information if we add another link for the member's last post.

Title: Re: Time Logged-In
Post by: Sentinel [AF] on December 22, 2008, 05:39:38 AM
Like I said esé.

No problem !

I'll have a go at it myself and anything I can't do the fellow admin on me site probably will know how to.
I'm currently trying to improve the profile look is all by making it more like the ultimate profile thing for smf 1.x ...

I'm using smf2.04beta but aye whatever.

eZ esé & peace :)
Title: Re: Time Logged-In
Post by: ScarMix on December 22, 2008, 03:22:01 PM
Hello

Thanks for the mod  :)

I get and error when trying to view profile,
I was hoping that you could help me out with it

Quote
Fatal error: Cannot redeclare days_hours_minutes() in /home/scarmix/public_html/Sources/Profile-View.php on line 293

Thanks in advance,
Scarmix

EDIT:I tried with out using the total time thing and then it works except for the total time of course :P but then I saw another problem. The text that should show does not show :( ... how do I fix it both of the problems?


and btw some Swedish for the new one ;)

$txt['tli_logged_in'] = 'In loggad';
$txt['tli_online_for'] = 'Tid Online';
$txt['tli_not_available'] = 'Ej tillgänglig.';
$txt['tli_day'] = ' dag,';
$txt['tli_days'] = ' dagar,';
$txt['tli_hour'] = ' timme ';
$txt['tli_hours'] = ' timmar och ';
$txt['tli_minute'] = ' minut';
$txt['tli_minutes'] = ' minuter';
$txt['tli_post'] = ' inlägg.';
$txt['tli_posts'] = ' inlägg.';
$txt['tli_posts_made'] = 'Antal inlägg';
$txt['tli_total_logged_in'] = 'Total tid in loggad';
$txt['tli_theme'] = 'Tema';
Title: Re: Time Logged-In
Post by: Bulakbol on December 23, 2008, 02:44:15 AM
@Scarmix
Open your Sources/Profile-View.php and remove the other existence of the function. Look for function days_hours_minutes() and delete the block. Thanks for the translation.

Package is updated and uploaded.

Check it out!  ;D
Title: Re: Time Logged-In
Post by: firehopper on December 23, 2008, 04:50:21 AM
translated for german utf-8 (Latest Version V 3.2)


$txt['tli_logged_in'] = 'Eingeloggt um';
$txt['tli_online_for'] = 'Online f&uuml;r';
$txt['tli_not_available'] = 'Nicht verf&uuml;gbar.';
$txt['tli_day'] = ' Tag, ';
$txt['tli_days'] = ' Tage, ';
$txt['tli_hour'] = ' Stunde und ';
$txt['tli_hours'] = ' Stunden und ';
$txt['tli_minute'] = ' Minute.';
$txt['tli_minutes'] = ' Minuten.';
$txt['tli_post'] = ' Beitrag.';
$txt['tli_posts'] = ' Beitr&auml;ge.';
$txt['tli_posts_made'] = 'Beitr&auml;ge erstellt';
$txt['tli_total_logged_in'] = 'Gesamte Onlinezeit';
$txt['tli_theme'] = 'Aktuelles Layout';
$txt['tli_posts_before'] = 'Beitr&auml;ge am Tag vorher';
$txt['tli_total_posts'] = 'Gesamt Beitr&auml;ge';


and german unicode (ISO 8859-1)


$txt['tli_logged_in'] = 'Eingeloggt um';
$txt['tli_online_for'] = 'Online f&#252;r';
$txt['tli_not_available'] = 'Nicht verf&#252;gbar.';
$txt['tli_day'] = ' Tag, ';
$txt['tli_days'] = ' Tage, ';
$txt['tli_hour'] = ' Stunde und ';
$txt['tli_hours'] = ' Stunden und ';
$txt['tli_minute'] = ' Minute.';
$txt['tli_minutes'] = ' Minuten.';
$txt['tli_post'] = ' Beitrag.';
$txt['tli_posts'] = ' Beitr&#228;ge.';
$txt['tli_posts_made'] = 'Beitr&#228;ge erstellt';
$txt['tli_total_logged_in'] = 'Gesamte Onlinezeit';
$txt['tli_theme'] = 'Aktuelles Layout';
$txt['tli_posts_before'] = 'Beitr&#228;ge am Tag vorher';
$txt['tli_total_posts'] = 'Gesamt Beitr&#228;ge';



Title: Re: Time Logged-In
Post by: ScarMix on December 23, 2008, 07:36:56 AM
Well it tried your idea with the Profile-view and then I when to the mod and looked at the code and changed it to the new one. I got the error message again but on another line but I can't remember what line. Then I uploaded the language file. And then a totally different problem occurred I got this error message at the start page.


Warning: require_once(/home/scarmix/public_html/Sources/QueryString.php) [function.require-once]: failed to open stream: Permission denied in /home/scarmix/public_html/index.php on line 64

Fatal error: require_once() [function.require]: Failed opening required '/home/scarmix/public_html/Sources/QueryString.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/scarmix/public_html/index.php on line 64


I don't know what happened,
but I have tried setting everything back, but nothing works  :(


Can anybody please please help me?

Thanks in advance,
Scarmix


EDIT: I fixed it :)

But I still don't get the text to work neither the Total time view :(

Well this is funny "Last Active" shows :P
Title: Re: Time Logged-In
Post by: Sudhakar Arjunan on December 23, 2008, 04:22:43 PM
All Columns were displayed only to admin id.

And even Blue Dream's Profile Visitors mod is affected. A line  Total no of Profile Visitors : line is missing after installation.
Title: Re: Time Logged-In
Post by: Bulakbol on December 24, 2008, 08:49:13 PM
@Scarmix
If you see the ":" (colon) character then it is definitely txt string issue. If you are not using the default theme, check your custom theme's own Modifications.english.php.

@A.SK
Yes, only to admins. If you want to show to everyone, let me know so we can change some codes.

The visitors profile show only to regular members after installing this mod. Open Profile.template.php and find
<td>', $context['member']['last_login'], '</td>
</tr><tr>
<td><b>', $txt['pv_visited'], ': </b></td>

Replace
<td>', $context['member']['last_login'], '</td>
</tr>';
echo ' <tr>
<td><b>', $txt['pv_visited'], ': </b></td>

Title: Re: Time Logged-In
Post by: Burke ♞ Knight on December 24, 2008, 09:07:09 PM
Another great mod, Johnny! :)
Title: Re: Time Logged-In
Post by: Sudhakar Arjunan on December 25, 2008, 01:16:55 AM
Quote from: Bulakbol on December 24, 2008, 08:49:13 PM
@A.SK
Yes, only to admins. If you want to show to everyone, let me know so we can change some codes.

The visitors profile show only to regular members after installing this mod. Open Profile.template.php and find


Thank you JohnyB.
Title: Re: Time Logged-In
Post by: scenerip2k on December 26, 2008, 03:45:54 PM
$txt['tli_logged_in'] = 'Logged in'; $txt['tli_online_for'] = 'Online for'; $txt['tli_not_available'] = 'Not Available.'; $txt['tli_day'] = ' day, '; $txt['tli_days'] = ' days, '; $txt['tli_hour'] = ' hour and '; $txt['tli_hours'] = ' hours and '; $txt['tli_minute'] = ' minute.'; $txt['tli_minutes'] = ' minutes.'; $txt['tli_post'] = ' post.'; $txt['tli_posts'] = ' posts.'; $txt['tli_posts_made'] = 'Posts made'; $txt['tli_total_logged_in'] = 'Total time logged in'; $txt['tli_theme'] = 'Current Theme'; $txt['tli_posts_before'] = 'Posts a day before'; $txt['tli_total_posts'] = 'Total Posts'; $txt['tli_logged_in'] = 'Logged in'; $txt['tli_online_for'] = 'Online for'; $txt['tli_not_available'] = 'Not Available.'; $txt['tli_day'] = ' day, '; $txt['tli_days'] = ' days, '; $txt['tli_hour'] = ' hour and '; $txt['tli_hours'] = ' hours and '; $txt['tli_minute'] = ' minute.'; $txt['tli_minutes'] = ' minutes.'; $txt['tli_post'] = ' post.'; $txt['tli_posts'] = ' posts.'; $txt['tli_posts_made'] = 'Posts made'; $txt['tli_total_logged_in'] = 'Total time logged in'; $txt['tli_theme'] = 'Current Theme'; $txt['tli_posts_before'] = 'Posts a day before'; $txt['tli_total_posts'] = 'Total Posts'; $txt['tli_logged_in'] = 'Logged in'; $txt['tli_online_for'] = 'Online for'; $txt['tli_not_available'] = 'Not Available.'; $txt['tli_day'] = ' day, '; $txt['tli_days'] = ' days, '; $txt['tli_hour'] = ' hour and '; $txt['tli_hours'] = ' hours and '; $txt['tli_minute'] = ' minute.'; $txt['tli_minutes'] = ' minutes.'; $txt['tli_post'] = ' post.'; $txt['tli_posts'] = ' posts.'; $txt['tli_posts_made'] = 'Posts made'; $txt['tli_total_logged_in'] = 'Total time logged in'; $txt['tli_theme'] = 'Current Theme'; $txt['tli_posts_before'] = 'Posts a day before'; $txt['tli_total_posts'] = 'Total Posts';


how do i delete this?
Title: Re: Time Logged-In
Post by: phpMyTony on December 26, 2008, 03:53:29 PM
Highlight it and press backspace.
Title: Re: Time Logged-In
Post by: scenerip2k on December 26, 2008, 03:57:14 PM
lol funny....i wish i could
Title: Re: Time Logged-In
Post by: phpMyTony on December 26, 2008, 04:03:33 PM
Oh. Is it embedded like this text that I am writing?
If so, you'd have to search the file..
Title: Re: Time Logged-In
Post by: Si6776 on December 29, 2008, 04:41:57 PM
Hi, and thanks for this mod, which could be very useful.

I do, however, have a problem in that although it works fine for Admins, I would also like Global Moderators to be able to view the additional information.  I have implemented the modification in Reply #8 (http://www.simplemachines.org/community/index.php?topic=278791.msg1829787#msg1829787) of this thread, which has worked to some extent, but GMs can only see two of the fields with any data in them, the rest are blank:

Logged in:     
Last Active:    Today at 21:40
Online for:    
Posts made:    
Posts a day before:    
Total Posts:    14103 (27.173 per day)
Total time logged in:    
Current Theme:    

Is there anything I can do to allow GMs to use the mod fully?

Many thanks,

Simon.
Title: Re: Time Logged-In
Post by: Bulakbol on December 30, 2008, 07:56:47 PM
Apologies for the delayed reply.

Thanks BurkeKnight.
You are welcome A.SK

@scenerip2k
Open your default/languages/Modifications.{yourLanguage}.php and find the ending PHP tag (i.e. ?>). Move it at the very end with its own line.

@Si6776
I updated the package. You can give any group you want a permission to see the information. Admin => Permission By Membergroup => "Allow this group to access the logged-in info". It's under "Member Profiles" category.

Title: Re: Time Logged-In
Post by: Father Luke on December 30, 2008, 11:46:34 PM
Bulakbol:

Thanks for the Cool Mod, Bro!
Using it on a heavily modified 1.1.7 custom theme.

Werks great!


- -
Okay,
Father Luke
Title: Re: Time Logged-In
Post by: Eclipse16V on February 05, 2009, 03:23:32 PM
Hi,

it doesn´t work on my Page.

Theme: babylon
SMF: 1.1.8
Time Logged-In MOD: 3.3
ErrorLog:
Quote8: Undefined index: total_logged_in
Datei: .../Themes/default/languages/Who.german.php (eval?)
Zeile: 203

8: Undefined index: posts_before
Datei: .../Themes/default/languages/Who.german.php (eval?)
Zeile: 195

8: Undefined index: posts_made
Datei: .../Themes/default/languages/Who.german.php (eval?)
Zeile: 191

8: Undefined index: online_for
Datei: .../Themes/default/languages/Who.german.php (eval?)
Zeile: 187

8: Undefined index: first_login
Datei: .../Themes/default/languages/Who.german.php (eval?)
Zeile: 179
Display (Profil Page):
QuoteKarma:     0
Registrierungsdatum:    07.10.08 - 20:43:20 Uhr
Eingeloggt um:    
Letzter Besuch:    Heute um 21:24:24 Uhr
Online für:    
Beiträge erstellt:    
Beiträge am Tag vorher:    
Gesamt Beiträge:    1 (0,008 pro Tag)
Gesamte Onlinezeit:


@ Bulakbol
There is a Error in the German Languages of your MOD. Here is it right.

$txt['tli_logged_in'] = 'Eingeloggt um';
$txt['tli_online_for'] = 'Online f&#252;r';
$txt['tli_not_available'] = 'Nicht verf&#252;gbar.';
$txt['tli_day'] = ' Tag, ';
$txt['tli_days'] = ' Tage, ';
$txt['tli_hour'] = ' Stunde und ';
$txt['tli_hours'] = ' Stunden und ';
$txt['tli_minute'] = ' Minute.';
$txt['tli_minutes'] = ' Minuten.';
$txt['tli_post'] = ' Beitrag.';
$txt['tli_posts'] = ' Beitr&#228;ge.';
$txt['tli_posts_made'] = 'Beitr&#228;ge erstellt';
$txt['tli_total_logged_in'] = 'Gesamte Onlinezeit';
$txt['tli_theme'] = 'Aktuelles Layout';
$txt['tli_posts_before'] = 'Beitr&#228;ge am Tag vorher';
$txt['tli_total_posts'] = 'Gesamt Beitr&#228;ge';
Title: Re: Time Logged-In
Post by: Bulakbol on February 06, 2009, 01:49:34 AM
@Eclipse16V
Thanks for the German language correction.  I will update the package soon. Do you still need help with this mod?
Title: Re: Time Logged-In
Post by: Eclipse16V on February 06, 2009, 03:49:18 AM
Yes, it doesn´t work on my site.  :(
Title: Re: Time Logged-In
Post by: Bulakbol on February 09, 2009, 11:05:44 PM
@Eclipse16V
Did you get any error when you installed this mod? Did you install the mod manually?
Try the attached Profile.php.
Title: Re: Time Logged-In
Post by: Eclipse16V on February 12, 2009, 03:32:07 PM
Hi,
when I use your Profil.php from the last post I became this on the Page:
QuoteParse error: syntax error, unexpected $end in .../Sources/Profile.php on line 3523

Yes I install it manually.
Title: Re: Time Logged-In
Post by: Bulakbol on February 17, 2009, 04:29:12 PM
Eclipse16V
Sorry for the delay. I will update this mod soon. I have 15 mods to update so give me few days.
Title: Re: Time Logged-In
Post by: Bulakbol on February 19, 2009, 12:11:13 AM
The new update is now up. Support both SMF 1.1.8 and 2.0 RC1 versions. Thanks for using/trying this mod.
Title: Re: Time Logged-In
Post by: [unplugged] on February 19, 2009, 01:09:22 AM
Thank you, Bulakbol.
Title: Re: Time Logged-In
Post by: Eclipse16V on March 12, 2009, 05:15:00 PM
Thank you, Bulakbol.
I tested an my SMF 2.0RC1
Title: Re: Time Logged-In
Post by: hawaii on March 25, 2009, 09:05:50 AM
Hi just wonderd if someone could help please

I have 2 forums my main and a test both on dilbermc, now i downloaded the package and got an error when trying to apply the mod



1. Execute Modification ./Sources/LogInOut.php Test successful
2. Execute Modification ./Sources/Load.php Test successful
3. Execute Modification ./Sources/ManagePermissions.php Test successful
4. Execute Modification ./Sources/Profile.php Test successful
5. Execute Modification ./Themes/default/Profile.template.php Test failed
6. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
7. Execute Modification ./Themes/default/languages/ManagePermissions.english.php Test successful
8. Execute Modification ./Themes/default/languages/ManagePermissions.english-utf8.php Test successful
9. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Test successful
10. Execute Modification ./Themes/default/languages/Modifications.italian.php Skipping file
11. Execute Modification ./Themes/default/languages/Modifications.greek-utf8.php Test successful
12. Execute Modification ./Themes/default/languages/Modifications.spanish.php Skipping file
13. Execute Modification ./Themes/default/languages/Modifications.german.php Skipping file
14. Execute Modification ./Themes/default/languages/Modifications.german-utf8.php Test successful
15. Execute Modification ./Themes/default/languages/Modifications.swedish.php Skipping file
16. Execute Code tlidb11x.php



so went onto test forum change theme to default everything fine, then switched back to dilber again everything ok working fine, but when i went to do this with my main forum still got the error message.

any ideas?

thanks
Title: Re: Time Logged-In
Post by: Bulakbol on March 28, 2009, 01:51:15 PM
@Sunking and Eclipse16V
You're welcome guys.

@hawaii
You probably installed a mod that altered the Profile.template.php. If you will attach the file in question, I can look at it and edit it for you in my spare time.
Title: Re: Time Logged-In
Post by: The_Wii_Nes_Boy on April 23, 2009, 05:31:17 AM
getting a whole load of errors, I had this installed before and never had any trouble with it.

8: Undefined index: theme_name
File: /public_html/Themes/default/languages/Who.english-utf8.php (summary sub template - eval?)
Line: 189

http://twnb-worldofstuff.com/index.php?action=profile 
8: Undefined index: total_logged_in
File: /public_html/Themes/default/languages/Who.english-utf8.php (summary sub template - eval?)
Line: 186

http://twnb-worldofstuff.com/index.php?action=profile 
8: Undefined index: posts_before
File: /public_html/Themes/default/languages/Who.english-utf8.php (summary sub template - eval?)
Line: 180

http://twnb-worldofstuff.com/index.php?action=profile 
8: Undefined index: posts_made
File: public_html/Themes/default/languages/Who.english-utf8.php (summary sub template - eval?)
Line: 177

http://twnb-worldofstuff.com/index.php?action=profile 
8: Undefined index: online_for
File: /public_html/Themes/default/languages/Who.english-utf8.php (summary sub template - eval?)
Line: 174

http://twnb-worldofstuff.com/index.php?action=profile 
8: Undefined index: first_login
File: /public_html/Themes/default/languages/Who.english-utf8.php (summary sub template - eval?)
Line: 168

help me fix these!
Title: Re: Time Logged-In
Post by: Bulakbol on April 25, 2009, 11:23:22 PM
@The_Wii_Nes_Boy
I think it was not properly installed. Try uninstalling it, download the latest version and then install it again. What version of SMF are you using?
Title: Re: Time Logged-In
Post by: The_Wii_Nes_Boy on April 26, 2009, 12:04:39 AM
Sorry forgot to say I got this fixed.
Title: Re: Time Logged-In
Post by: Bulakbol on April 26, 2009, 05:52:40 AM
Oh, thank you. I can sleep sound now.  :)
Title: Re: Time Logged-In
Post by: leonardus on October 25, 2009, 11:03:37 AM
hi! can i change my and other connection time manually? how i can??

thx!
Title: Re: Time Logged-In
Post by: Eclipse16V on November 24, 2009, 07:50:56 AM
Please update it for SMF 2.0 RC2

Thx
Title: Re: Time Logged-In
Post by: Eclipse16V on March 15, 2010, 01:38:59 AM
Nice Mod

Please update it for SMF 2.0RC3  ;)

Thanks
Title: Re: Time Logged-In
Post by: ssdevious on November 02, 2010, 10:21:27 AM
Greetings,
using this mod and was wondering, is it normal that only I - the admin can see it in users profiles? Other members claim that they don't see it in theirs or anybody else's profiles.

Any ideas? Thanks in advance.

Best Regards,
SS-Totenkopf
Title: Re: Time Logged-In
Post by: Paul_Pauline on November 02, 2010, 01:22:52 PM
Quote from: Bulakbol on December 30, 2008, 07:56:47 PM
Apologies for the delayed reply.

Thanks BurkeKnight.
You are welcome A.SK

@scenerip2k
Open your default/languages/Modifications.{yourLanguage}.php and find the ending PHP tag (i.e. ?>). Move it at the very end with its own line.

@Si6776
I updated the package. You can give any group you want a permission to see the information. Admin => Permission By Membergroup => "Allow this group to access the logged-in info". It's under "Member Profiles" category.

;)
Title: Re: Time Logged-In
Post by: bestfriendavinash on May 09, 2012, 12:28:16 AM
Does it work with SMF 2.0.2 ?