Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Nibogo on November 06, 2005, 01:42:31 AM

Title: Users Online Today Mod
Post by: Nibogo on November 06, 2005, 01:42:31 AM
Link to the mod (https://custom.simplemachines.org/index.php?mod=217)

(https://www.smfpacks.com/imagenes/nuevo_logo_mod.png) (http://www.smfpacks.com)
Users Online Today by SMFPacks.com (http://www.smfpacks.com)
Creator:

Originally created by Carceri (http://www.simplemachines.org/community/index.php?action=profile;u=30615)

Developer:

www.smfpacks.com (http://www.smfpacks.com)

Important Info:

This Mod is developer by SMFPacks.com - The #1 Website for the Customziation of your SMF. SMFPacks.com Provides Other Great Packages:

- Reason for Editing Mod.
- Yet Another Global Announcements Mod.
- SMF Social Groups.
- SMF Links Directory.
- SMF Downloads Directory.
- SMF Dynamic Directory.
- Advanced Topic Prefix Mod.
- Advanced Invitations System.
- Move Topic Notification.
- PM to New Members.
- Permissions Info.
- Next Post Level.
- Karma Buttons.
- SMF Multi Quote.
- Attachments in Topics.
- and much more visit us on SMFPacks.com

Description:

Adds a list of all users that were online on the current day to the 'Info Center'. This is a simple mod that does the job and not a whole lot more. I like to keep it simple.

Features:
- By hovering the cursor over the username, it will display when the user was last logged in
- The time period that the user list shows can be the current day, last 24 hours or last week
- The list can be sorted in various ways
- Viewing of the list can be restricted

It modifies files in the default theme, so if you are using any other theme you need to make changes to your theme files. I offer no support for this.

Upgrading:

Just uninstall whatever version you've installed and install the latest one.

Languages:

- Croatian.
- Danish.
- Dutch.
- English.
- Finnish.
- German.
- Hungarian.
- Persian.
- Portuguese.
- Russian.
- Serbian.
- Spanish.
- Turkish.
Title: Re: Users Online Today Mod
Post by: Teknomancer on November 06, 2005, 09:46:40 AM
This doesn't seem to work for me. Just installed it on SMF 1.1. RC1... nothing has changed in the Info Center.

Is there any setting that needs to be enabled?
Title: Re: Users Online Today Mod
Post by: xenovanis on November 06, 2005, 11:13:54 AM
If you are using a custom theme, you probably need to make some changes to your themefiles.

How to make mods work with themes? (http://www.simplemachines.org/community/index.php?topic=34526.0)
Title: Re: Users Online Today Mod
Post by: snork13 on November 06, 2005, 05:54:53 PM
works great in 1.1rc1, thanks for sharing


-snork
Title: Re: Users Online Today Mod
Post by: xenovanis on November 06, 2005, 06:24:01 PM
Actually, I got this errormessage:

8: Undefined index: num_buddies
File: .../forum/Sources/BoardIndex.php
Regel: 298

This is how I fixed it. BoardIndex.php

Code (find) Select

        $context['users_online_today'] = array();
$context['list_users_online_today'] = array();


Code (add after) Select

$context['num_buddies'] = array();


Probably a dirty fix  :P
Title: Re: Users Online Today Mod
Post by: Carceri on November 06, 2005, 07:33:16 PM
You are right that this is a bug, and the correct fix is not adding the line that uses $context['num_buddies'] which is:

$context['num_buddies']++;

Your fix works as well, but should be

$context['num_buddies'] = 0;

:)

Thanks for reporting it. It has been fixed in the latest version.
Title: Re: Users Online Today Mod
Post by: thetzfreak on November 06, 2005, 09:55:34 PM
Do I have to do the custom editing thing for my theme even after you updated it now?
Title: Re: Users Online Today Mod
Post by: Carceri on November 07, 2005, 01:34:47 AM
Quote from: thetzfreak on November 06, 2005, 09:55:34 PM
Do I have to do the custom editing thing for my theme even after you updated it now?
If you have a file called 'BoardIndex.template.php' in your theme dir, then you need to edit it manually. This mod only edits it for the default theme.
Title: Re: Users Online Today Mod
Post by: jerm on November 07, 2005, 04:01:11 PM
lol, just realized it
with the other online users mod it wasn't a huge deal, but with this one it can be a bigger deal i guess
but for those users who like to remain hidden, they hide in the "users online", but they arn't hidden on the "users online today" section.. and now you can just hover over their nickname to see when they were last active.
think theres a fix for this?
Title: Re: Users Online Today Mod
Post by: Carceri on November 07, 2005, 04:23:03 PM
It's easy to make a fix. The question is what the right fix is :)

Just a question: What happens if you go to a profile of a user who does not want to be shown on the today list. Can you still see when that user was last logged in? If yes, then I think this mod does not reveal any more information that what could already be found elsewhere and I think it should be left as it is.

If that information is not shown in the users profile, then we should probably do something. The easy fix is to simply remove the user from the list and add some additional text like:

13 users online today (3 hidden):
<<13 usernames of non-hidden users>>

Suggestions?
Title: Re: Users Online Today Mod
Post by: xenovanis on November 07, 2005, 04:26:28 PM
I think it's okay to show them in the list, but not in an italic font. Now, you can see all hidden users easily.
Title: Re: Users Online Today Mod
Post by: Carceri on November 07, 2005, 04:32:08 PM
Are the hidden users shown with an italic font? I have never noticed that, but perhaps it's because I'm an administrator on the board?
Title: Re: Users Online Today Mod
Post by: xenovanis on November 07, 2005, 04:38:36 PM
Yes, in the online list their names are shown in italic font to administrators. Normal users can't see they are online.

In your mod, their names also appear in a italic font, but they are now also visible like this to other users. It's like drawing extra attention to them IMO. I found this in BoardIndex.php

$context['list_users_online_today'][$row['lastLogin'] . $row['memberName']] = empty($row['showOnline']) ? ' <i>' . $link . ' </i>' : $link;
and removed the <i> tags to normalize the font.
Title: Re: Users Online Today Mod
Post by: Carceri on November 07, 2005, 04:41:30 PM
Yes, but it is the same code that apparently hides them from regular users in the users online list. I will have to investigate why the same code hides the users from the online list, but not the online today list.

Then I will make the correct fix.
Title: Re: Users Online Today Mod
Post by: xenovanis on November 07, 2005, 04:42:06 PM
No, it doesn't. I tested it. This works correct  ;)
Title: Re: Users Online Today Mod
Post by: Carceri on November 07, 2005, 04:47:11 PM
Sorry, what works correct?
Title: Re: Users Online Today Mod
Post by: xenovanis on November 07, 2005, 04:49:41 PM
Removing the <i> tags keeps the users hidden (or italic to admins) in the current online list, and shows hidden users in a normal font in the online today list.
Title: Re: Users Online Today Mod
Post by: Carceri on November 07, 2005, 04:55:04 PM
I don't quite understand this. Are you saying that this mod modifies the behaviour of the current online list?
Title: Re: Users Online Today Mod
Post by: xenovanis on November 07, 2005, 05:01:11 PM
No, it doesn't affect the current online list. Sorry for the confusion.  :-\

But it does show to ordinary members whether a member has choosen to be hidden, by displaying it's username in an italic font in the "users online today" list. I think you should get rid of that, because it's drawing extra attention to this profile. People start wondering why this name is italicized and their own name isn't.
Title: Re: Users Online Today Mod
Post by: Carceri on November 07, 2005, 05:04:30 PM
My confusion comes from your answer to my comment where I said that I needed to investigate this, because from looking at the code my first impression is that everything works as it should, and I understood that you said that I should't look at the code because everything works ok. Now I understand again :)

While removing the <i> might work, I don't think this is the correct fix. Something else is wrong here, and I am hesistant to make a fix before I really understand what I am fixing :)
Title: Re: Users Online Today Mod
Post by: 1MileCrash on November 07, 2005, 05:06:07 PM
since the problem is that their names are italicised, then removeing <i></i> will work..it's like the only fix.
Title: Re: Users Online Today Mod
Post by: xenovanis on November 07, 2005, 05:07:47 PM
Quote from: Carceri on November 07, 2005, 05:04:30 PM
My confusion comes from your answer to my comment where I said that I needed to investigate this, because from looking at the code my first impression is that everything works as it should, and I understood that you said that I should't look at the code because everything works ok. Now I understand again :)

While removing the <i> might work, I don't think this is the correct fix. Something else is wrong here, and I am hesistant to make a fix before I really understand what I am fixing :)

Okay, glad that was cleared  :)

I agree it's probably not the best way to fix it, it's more like a quick fix for lazy people  ;)
Title: Re: Users Online Today Mod
Post by: Carceri on November 07, 2005, 05:13:42 PM
Quote from: Tippmaster on November 07, 2005, 05:06:07 PM
since the problem is that their names are italicised, then removeing <i></i> will work..it's like the only fix.
Not really, because the usernames should be in italic to the administrators and hidden from everyone else. Also the same code hides the users from non-administrators in the current online list, but shows them to everyone in the online today list.
Title: Re: Users Online Today Mod
Post by: Carceri on November 07, 2005, 05:49:20 PM
I think I have a fix, could somebody please try it and see if it works?

What should you expect:

As an administrator:
Hidden users are shown in italic
Hovering the mouse over their name shows when they were last online

As a regular user:
Hidden users are show as non-italic like all other users
Hovering the mouse over their name will not show when they were last online

Edit: Link removed. The latest version can be found in the first post in this thread.
Title: Re: Users Online Today Mod
Post by: xenovanis on November 07, 2005, 06:01:29 PM
Seems to work like a charm  ;)
Title: Re: Users Online Today Mod
Post by: DemonicInfluence on November 07, 2005, 07:19:30 PM
I have a question. All the last on times are the normal forum time. COuld you make it so it adjusts to each person's local time?
Title: Re: Users Online Today Mod
Post by: 1948Pal on November 07, 2005, 10:39:11 PM
This is a nice mod, but isn't this exactly the same mod made by FaSan, I think, who's mod was removed from SMF for some reason?
Title: Re: Users Online Today Mod
Post by: jerm on November 07, 2005, 11:33:46 PM
wow, wasn't expecting it to be fixed so fast lol.. well done. i like it like this :)
Title: Re: Users Online Today Mod
Post by: Carceri on November 08, 2005, 01:21:56 AM
Quote from: Libo on November 07, 2005, 07:19:30 PM
I have a question. All the last on times are the normal forum time. COuld you make it so it adjusts to each person's local time?
It's on my TODO list :)
Title: Re: Users Online Today Mod
Post by: Carceri on November 08, 2005, 01:23:10 AM
Quote from: 1948Pal on November 07, 2005, 10:39:11 PM
This is a nice mod, but isn't this exactly the same mod made by FaSan, I think, who's mod was removed from SMF for some reason?
I wouldn't know. I just converted my forum from phpBB and was missing this feature, and since I couldn't find a mod like this I made one myself.
Title: Re: Users Online Today Mod
Post by: Carceri on November 08, 2005, 07:56:04 AM
New version 1.2.0 RC1 can be downloaded here:

http://www.bytopia.dk/Users_Online_Today_1.2.0_RC1.zip (http://www.bytopia.dk/Users_Online_Today_1.2.0_RC1.zip)

This version should handle timezones properly depending on the user's time offset. All times are displayed as local times, and also "users online today" means today in the timezone the user is in, not the forum time. Also last login times are displayed according to the user's preferences (12/24 hrs. am/pm).

Since I can only do limited testing (I don't have a forum with users in different timezones) I leave it here for you to test. Please report any problems.
Title: Re: Users Online Today Mod
Post by: DemonicInfluence on November 08, 2005, 11:38:38 AM
There is a problem. You see. It doesn't use the forum time. even the original version doesn't use the forum time...


It is 3 hours behind my forum time..

You can test by going to profile and changing your default time to something and see if it works.
Title: Re: Users Online Today Mod
Post by: Hachi on November 08, 2005, 03:27:58 PM
Could someone please help  :'(, i have just installed this mod but its not working, i keep getting the following error:

2: in_array(): Wrong datatype for second argument
File: /home/fearncou/public_html/forum/Sources/BoardIndex.php
Line: 271

I am using a template but i have put it back to the default template and had no joy, any help would be great..

Thanks

Hachi
Title: Re: Users Online Today Mod
Post by: Carceri on November 08, 2005, 04:03:50 PM
Quote from: Libo on November 08, 2005, 11:38:38 AM
There is a problem. You see. It doesn't use the forum time. even the original version doesn't use the forum time...

It is 3 hours behind my forum time..

You can test by going to profile and changing your default time to something and see if it works.
The original didn't that's true, but with the new version, when I change my timeoffset from 0 to, say -1, then the online times are all shown as being one hour earlier than forum time. So to answer your last line, yes I did it and it does work :)

But seriously, any information you can provide will help me identify the problem. It's hard to correct when it works for me. If you hover the mouse over a user and it displays his last online time and you then click on the same user and checks the last online field there. What is the difference between those two?
Title: Re: Users Online Today Mod
Post by: Carceri on November 08, 2005, 04:09:16 PM
Quote from: Hachi on November 08, 2005, 03:27:58 PM
2: in_array(): Wrong datatype for second argument
File: /home/fearncou/public_html/forum/Sources/BoardIndex.php
Line: 271
I'm sorry I can't help you there, since your BoardIndex.php is apparently not the same as a patched one from the original version of SMF 1.1 RC1. Line 271 in BoardIndex.php should be a comment added by my mod, and nothing related to in_array(). Are you sure you are patching an unmodified version of BoardIndex.php?
Title: Re: Users Online Today Mod
Post by: jerm on November 08, 2005, 07:15:23 PM
Quote from: 1948Pal on November 07, 2005, 10:39:11 PM
This is a nice mod, but isn't this exactly the same mod made by FaSan, I think, who's mod was removed from SMF for some reason?
fasan took his mod off the list
Title: Re: Users Online Today Mod
Post by: Menni on November 09, 2005, 05:10:59 AM
Can someone pleae specify for me how and what should I modify to make this mod work in some other theme?
Title: Re: Users Online Today Mod
Post by: DemonicInfluence on November 09, 2005, 07:23:48 AM
Just follow the instructions inside the package. It is the .xml file. Then edit Boardindex.template.php with its edits...
Title: Re: Users Online Today Mod
Post by: galgoz on November 09, 2005, 06:14:54 PM
After installing the mod I get this error

2: in_array(): Wrong datatype for second argument
File: /home/content/M/R/e/MReimann/html/smf/Sources/BoardIndex.php
Line: 271

Line 271 and the following lines read as follows.

$is_buddy = in_array($row['ID_MEMBER'], $user_info['buddies']);
      if ($is_buddy)
      {
         $link = '<b>' . $link . '</b>';
      }

Any ideas?
Title: Re: Users Online Today Mod
Post by: Carceri on November 10, 2005, 01:29:10 AM
Quote from: galgoz on November 09, 2005, 06:14:54 PM
$is_buddy = in_array($row['ID_MEMBER'], $user_info['buddies']);
Could you sent me your entire BoardIndex.php file? Line 271 in my patched file is not this line, so I need to check what the differences between our files are in order to see what is wrong.

Are you using SMF 1.1 RC1 ?
Title: Re: Users Online Today Mod
Post by: Carceri on November 10, 2005, 05:43:11 AM
To all of you that experience this problem:

2: in_array(): Wrong datatype for second argument
File: /home/content/M/R/e/MReimann/html/smf/Sources/BoardIndex.php
Line: 271

This is because you are running SMF 1.0.5. I have only made this mod for SMF 1.1 RC1. Apparently $user_info['buddies'] is not defined in SMF 1.0.5. A quick fix for this problem is to delete the following from BoardIndex after applying the patch:


$is_buddy = in_array($row['ID_MEMBER'], $user_info['buddies']);
if ($is_buddy)
{
$link = '<b>' . $link . '</b>';
}


and probably also the line


'is_buddy' => $is_buddy,


Please note that this mod does not support SMF 1.0.5 and there is no guarantee that it will work for that version, even with the fix mentioned here.
Title: Re: Users Online Today Mod
Post by: Rebelbelle on November 10, 2005, 09:13:44 PM
Quote from: 1948Pal on November 07, 2005, 10:39:11 PM
This is a nice mod, but isn't this exactly the same mod made by FaSan, I think, who's mod was removed from SMF for some reason?

I have that mod on another one of my boards.  What I really liked about that one, is it also added the users online in a day to the statistics center.  Does the current mod do that?
Title: Re: Users Online Today Mod
Post by: DemonicInfluence on November 11, 2005, 07:19:13 AM
Nope. But you can get that mod from fasan's site.
Title: Re: Users Online Today Mod
Post by: jerm on November 11, 2005, 03:40:16 PM
think you could make it possible for this to appear on the [stats] page as "most online users today" ?
Title: Re: Users Online Today Mod
Post by: DemonicInfluence on November 11, 2005, 04:00:49 PM
Probably. but it would require more coding.
Title: Re: Users Online Today Mod
Post by: Carceri on November 11, 2005, 07:27:12 PM
Quote from: electrohome88 on November 11, 2005, 03:40:16 PM
think you could make it possible for this to appear on the [stats] page as "most online users today" ?
Sure, the question is how to do it. All the other stats that relate to 'today' are using as today, the forum time and does not take into account the other users' timezones, so I guess that this "most online users today" should do the same, otherwise it will be confusing, right?

But the list of users online today on the front page, are shown as today taking into account the timezone of the user viewing the frontpage.

In order to make it consistent, I would suggest the following:

- Add a "most online users today" to the [stats] page showing the number of online users today, where today is seem from the forum time.

- Make the list on the frontpage display the users online today according to the forum time, not the user's time (the popup with the last time the user was seen will still be shown in the user's time)

Comments, ideas, etc.?
Title: Re: Users Online Today Mod
Post by: DemonicInfluence on November 12, 2005, 12:56:58 PM
I think that would be great!
Title: Re: Users Online Today Mod
Post by: jerm on November 12, 2005, 10:54:35 PM
i would keep it the same way it does the other stats.. where it goes by the forum time
Title: Re: Users Online Today Mod
Post by: Carceri on November 13, 2005, 08:30:12 AM
Okay, the latest version (1.3.0 RC1) should now act according to the description above. Please test it and report any problems.
Title: Re: Users Online Today Mod
Post by: Nightstalker on November 14, 2005, 06:08:21 AM
Are there any plans to make this mod work with SMF 1.05.

Cheers.
Title: Re: Users Online Today Mod
Post by: Carceri on November 14, 2005, 07:02:14 AM
When everything is working as it should for 1.1 RC1, I might make a version compatible with 1.0.5.
Title: Re: Users Online Today Mod
Post by: DemonicInfluence on November 14, 2005, 08:15:10 PM
1.3 doesn't seem to work.. like, the stats don't show up(no tables?) and the time is still wacky on mouse over...
Title: Re: Users Online Today Mod
Post by: jonc on November 15, 2005, 01:30:25 AM
I installed the mod both v1.20 and v1.30 both version only worked when my local time is 13:00 to 0:00.  From 0:00 to 12:59 the mod doesn't work.

My local time is GMT+8, and my SMF time offset is set to 13hrs
Title: Re: Users Online Today Mod
Post by: Carceri on November 15, 2005, 01:58:09 AM
Libo: Have you copied BoardIndex.template.php and Stats.template.php from the default theme to your custom theme or modified your themefiles accordingly?

jonc: Thans for the info (finally someone provided a concrete example where it doesn't work). Still I would like to know what doesn't work. What does the time show and what should it show. If you click the username, what does "Last Active:" say?
Title: Re: Users Online Today Mod
Post by: jonc on November 15, 2005, 02:27:30 AM
When you roll the mouseover it shows the "last active" time.  Everythings OK except nothing shows up (no name, no time) between 0:00 to 12:59 GMT+8 visit http://www.mykapitbahay.com
Title: Re: Users Online Today Mod
Post by: Carceri on November 15, 2005, 03:03:25 AM
Thanks for the info. I can see the problem now and will fix it when I have the time, probably in a day or two.
Title: Re: Users Online Today Mod
Post by: beemer on November 15, 2005, 07:24:38 AM
Well if it helps I havnt found any problems running gmt 0 offset

Great mod thanx

http://www.bmw7resource.co.uk/forum/index.php
Title: Re: Users Online Today Mod
Post by: Carceri on November 15, 2005, 07:38:36 AM
The problem is related to the SMF time offset. If the forum is set to the same timezone as the server running the forum, everything should be fine. Problems only occur if you change the "Overall time offset" to something different from 0.

The fix is rather simple. When calculating the time for midnight, I need to convert midnight seen from the forum time, into midnight as seen from the timezone of the server since the lastLogin times in the database are represented in the servers timezone.

A quick untested fix is to replace the following two lines in BoardIndex.php

$frag = explode('-', strftime('%Y-%m-%d', forum_time(false)));
$midnight = mktime(0, 0, 0, (int) $frag[1], (int) $frag[2], (int) $frag[0]);


with

$frag = explode('-', strftime('%Y-%m-%d', time()));
$midnight = forum_time(false, mktime(0, 0, 0, (int) $frag[1], (int) $frag[2], (int) $frag[0]));


Please report back if this works or not.

Another needed fix is to have information such as today or yesterday in the popup time, since with certain configurations of timezones you can end up having users online today seen from the forum time, be yesterday seen from your time.

Edit: 1.3.0 RC2 includes all these fixes
Title: Re: Users Online Today Mod
Post by: DemonicInfluence on November 15, 2005, 09:05:26 PM
Quote from: Carceri on November 15, 2005, 01:58:09 AM
Libo: Have you copied BoardIndex.template.php and Stats.template.php from the default theme to your custom theme or modified your themefiles accordingly?

jonc: Thans for the info (finally someone provided a concrete example where it doesn't work). Still I would like to know what doesn't work. What does the time show and what should it show. If you click the username, what does "Last Active:" say?

Yes, i'm using default with the normal code...

This still doesn't work. It is 3 hours behind my fourm time(which is my server time...)

It doesn't add the time difference between server and forum time... That's what's going wrong...

Stat thing doesn't work. Maybe no mysql tables? In the stats.php you should query the tables that have the info..
Title: Re: Users Online Today Mod
Post by: jonc on November 15, 2005, 10:17:49 PM
Cool!  Everything's fine now!

I uninstalled 1.30 RC1 and install 1.30 RC2!

Thanks for the mod!  :D
Title: Re: Users Online Today Mod
Post by: jonc on November 16, 2005, 12:14:13 AM
Sorry bout my last post, it's working this morning but since 13:00 local time (GMT+8) it doesn't work.  Nothing shows up!
Title: Re: Users Online Today Mod
Post by: Carceri on November 16, 2005, 02:14:02 AM
Quote from: jonc on November 16, 2005, 12:14:13 AM
Sorry bout my last post, it's working this morning but since 13:00 local time (GMT+8) it doesn't work.  Nothing shows up!
Okay, so we try again. I only have a few minutes now, so this is just an idea, but it can't work any worse than it already does :)

The change can be found in 1.3.0 RC3.

This seems to work here, but the problem is probably that I always test at a specific time of day.
Title: Re: Users Online Today Mod
Post by: Juggler on November 16, 2005, 05:21:41 AM
Have to agree it's a nice mod but I really would like the "Stats Centre" Users Online Today column back. It's more of a cosmetic thing and not vital to the mod but it would be nice to have it in there if at all possible!
Title: Re: Users Online Today Mod
Post by: Carceri on November 16, 2005, 11:20:37 AM
Quote from: Juggler on November 16, 2005, 05:21:41 AM
Have to agree it's a nice mod but I really would like the "Stats Centre" Users Online Today column back. It's more of a cosmetic thing and not vital to the mod but it would be nice to have it in there if at all possible!
It is back in the latest RC version as "Total Users Online Today"
Title: Re: Users Online Today Mod
Post by: [ZW] Leviathan on November 16, 2005, 12:56:50 PM
That is under the General Statistics part of the Stats page, right?

What Juggler is probably refering to (I think) is the Total Users Online column in the Forum History part at the bottom of the Stats page. That used to have an additional column with that information, I would like to see that back there as well :)
Title: Re: Users Online Today Mod
Post by: Juggler on November 16, 2005, 02:53:56 PM
That's correct. It's the forum history bit as mentioned.
Title: Re: Users Online Today Mod
Post by: DemonicInfluence on November 16, 2005, 04:46:44 PM
fix the forum time difference between server time. in next version plz
Title: Re: Users Online Today Mod
Post by: Carceri on November 16, 2005, 06:10:33 PM
Quote from: Libo on November 16, 2005, 04:46:44 PM
fix the forum time difference between server time. in next version plz
Then help me fix it by giving me useful information :) For example, does the suggested fix above work? It works for me and I have done some limited testing by changing the forum timezone and it seems to work. That said, I made this for myself and later thought that others might be able to use it which is the reason I added it here. Unfortunately I don't have much time to do a thorough test, sorry.

Regarding the other question, I will probably add it later, but right now I prefer to fix the timezone problem. I don't know what "used to have" means. I have never seen that feature before. It is probably related to another users online today mod, but I have never seen that one, so...
Title: Re: Users Online Today Mod
Post by: jonc on November 16, 2005, 09:35:16 PM
I've installed RC3...as of now everything's fine...my local time now is 10:33 (GMT+8)...i'll wait till 13:00 and see if everything's still fine :)

Thanks again to Carceri for sharing and for his effort  :)
Title: Re: Users Online Today Mod
Post by: jonc on November 17, 2005, 01:03:17 AM
It's 14:00 (GMT+8) now! mod's still working fine! looks like Carceri has fixed the timezone problem!  :D
Title: Re: Users Online Today Mod
Post by: Carceri on November 17, 2005, 02:41:00 AM
If it still works in 24 hours or so, I'll promote RC3 to final :)

Thanks for helping out with the testing.

The forum history bit will be for a later version.
Title: Re: Users Online Today Mod
Post by: [ZW] Leviathan on November 17, 2005, 08:34:56 AM
Regarding the Users Online Today in the History part...

Quote from: Carceri on November 16, 2005, 06:10:33 PM
I don't know what "used to have" means. I have never seen that feature before. It is probably related to another users online today mod, but I have never seen that one, so...

Hmmm... interesting  ::)

I'll have a look if I can find that one, because I'm sure I had it on my forum not so long ago :)
Title: Re: Users Online Today Mod
Post by: Juggler on November 17, 2005, 10:26:53 AM
I didn't realise that this was a new mod on the same lines as the Fasan one at first. What I thought was an updated version of a mod I used to have has turned out to be a different one albeit it does the same thing. I prefer the way this one works with the time popping up on mouseover it would just be nice to have the Historical part that was on the other similar modification.
Title: Re: Users Online Today Mod
Post by: Carceri on November 17, 2005, 02:04:46 PM
I had a similar mod for my phpBB forum, but when I upgraded to SMF, I couldn't find a similar mod, so I made it myself. That is the reason for this mod. When I searched I found references to the Fasan mod, but never a download link.
Title: Re: Users Online Today Mod
Post by: DemonicInfluence on November 17, 2005, 06:00:40 PM
sorry, didn't realize there was rc3. My mistake...

Still doesn't work... LIke, i changed my forum time and everything. It didn't work...
Title: Re: Users Online Today Mod
Post by: jonc on November 17, 2005, 08:54:30 PM
It's almost 24hrs since I installed RC3, everything's running smoothly!  I can say that timezone has been fixed! Mod has been working for the last 23h24m. On mouseover, It popups the "last online" time of the user w/ correct time offsetting.

Keep it up Carceri!  Thanks for the mod!
Title: Re: Users Online Today Mod
Post by: Carceri on November 18, 2005, 02:12:34 AM
Quote from: Libo on November 17, 2005, 06:00:40 PMStill doesn't work... LIke, i changed my forum time and everything. It didn't work...
You need to be more specific. I find it hard to believe that the time on the popup is different from the "Last Active" on a users profile, since the mod uses the exact same code to display the time. If that is not the problem, then what is. Has you changed the forum time offset, user time offset, does this happen to all users, what if you are not logged in, what does the forum time says compared to the time on the server itself?, etc...
Title: Re: Users Online Today Mod
Post by: Carceri on November 18, 2005, 03:46:47 AM
Quote from: jonc on November 17, 2005, 08:54:30 PM
It's almost 24hrs since I installed RC3, everything's running smoothly!  I can say that timezone has been fixed! Mod has been working for the last 23h24m. On mouseover, It popups the "last online" time of the user w/ correct time offsetting.
I watched your forum as midnight passed (your time) and it started a new day after that as it should. I have also experimented more with timezones with a negative offset here, and it seems to work fine as well.
Title: Re: Users Online Today Mod
Post by: DemonicInfluence on November 18, 2005, 07:29:37 AM
Quote from: Carceri on November 18, 2005, 02:12:34 AM
Quote from: Libo on November 17, 2005, 06:00:40 PMStill doesn't work... LIke, i changed my forum time and everything. It didn't work...
You need to be more specific. I find it hard to believe that the time on the popup is different from the "Last Active" on a users profile, since the mod uses the exact same code to display the time. If that is not the problem, then what is. Has you changed the forum time offset, user time offset, does this happen to all users, what if you are not logged in, what does the forum time says compared to the time on the server itself?, etc...

Yes, it is exactly 3 hours different. Which is difference from forum time to server time.

When, I'm not logged in, it is still 3 hours behind...

The forum time offset is 3 hours...  Your thing is perfect except it is 3 hours behind. You can go to my site to see....
Title: Re: Users Online Today Mod
Post by: Carceri on November 18, 2005, 07:58:10 AM
I have checked and double checked the source code, and it does take into account the forum time offset in the latest version, but I noticed one thing that I found strange. When going to a user's profile on your forum the time is displayed as 'am' or 'pm' but the popup text over the username does not say 'am' or 'pm'. The latest mod should read these settings from the forum and display the time in the same format.

This, and the fact that on the other boards I have seen (including my own) this mod applies the forum time offset correctly, leads me to believe that you are not running the latest version of this mod (1.3.0 RC3). Could you please check your BoardIndex.php file and verify that is corresponds to the changes that this mod applies? Also that you are patching the files that are actually served by the webserver.
Title: Re: Users Online Today Mod
Post by: DemonicInfluence on November 18, 2005, 11:49:05 AM
What latest? It is still 1.3.0 rc3...

I am pretty sure the boardindex.php file is modified correctly according to 1.3.0 rc3 because when i uninstall, it works properly...

QuoteAlso that you are patching the files that are actually served by the webserver.

What does that mean?
Title: Re: Users Online Today Mod
Post by: Carceri on November 18, 2005, 12:02:57 PM
Quote from: Libo on November 18, 2005, 11:49:05 AM
QuoteAlso that you are patching the files that are actually served by the webserver.
What does that mean?
If you have multiple forums, then that you are patching the right one :) Yes, a longshot, but the behaviour you are experiencing are not consistent with 1.3.0 RC3.
Title: Re: Users Online Today Mod
Post by: DemonicInfluence on November 18, 2005, 02:57:50 PM
very long shot. I only have one forum...

Ah, i see. it was because I had multiple edits. I must have had one from 1.0 and frogot to uninstall.

It works perfectly now...

Only question when is stats center gonna be working?
Title: Re: Users Online Today Mod
Post by: beemer on November 18, 2005, 03:57:43 PM
Quote from: Libo on November 18, 2005, 02:57:50 PM
very long shot. I only have one forum...

Ah, i see. it was because I had multiple edits. I must have had one from 1.0 and frogot to uninstall.

It works perfectly now...

Only question when is stats center gonna be working?


It is ? Isnt it?

GREAT Mod Thanx alot Carceri
Title: Re: Users Online Today Mod
Post by: Carceri on November 18, 2005, 08:39:12 PM
Quote from: Libo on November 18, 2005, 02:57:50 PM
Only question when is stats center gonna be working?
One short answer: I don't know :) Right now things are working and the added functionality to the stats center is a feature for a future release. I have looked at it briefly and it doesn't seem to be that hard to implement, but it will require changes to the database. When I have some time to do it, I will do it, but I can't promise a date.

The most important thing for me (regarding this mod) was to get 1.3.0 final ready which is done now.

Thanks all for helping me with the timezone problems. I'm glad that so many people can actually use this mod that I originally made just for myself :)
Title: Re: Users Online Today Mod
Post by: Juggler on November 19, 2005, 01:53:55 AM
OK,

Just logged into my forum (6:51am) and it's not picking me up as being logged in today. So as far as the "Users Online Today" Section is concerned no one has been online as it's it's showing 0 people online. So I made sure it wasn't a theme problem and went into the default theme and it still shows 0 people online.

Thoughts?
Title: Re: Users Online Today Mod
Post by: Carceri on November 19, 2005, 05:27:49 AM
Must be some timezone problem that haven't been fixed. You know what information I need to look at it :)

Of course, first make sure that you are running 1.3.0
Title: Re: Users Online Today Mod
Post by: Juggler on November 19, 2005, 05:33:47 AM
Well I installed the latest version the other day but when checking the files I found that it still had the old offset code. So I changed the code as mentioned in the thread but still have the same problem. I'm at work at the moment so I can't access the files just set so I'll dig into it later.

Which files do you need again?
Title: Re: Users Online Today Mod
Post by: Carceri on November 19, 2005, 05:52:04 AM
I would like to know the server time, forum time, whether or not the error occurs when you are logged in or as guest. If you can provide your BoardIndex.php then I can see that there are no old parts of some previous modification that are messing things up.
Title: Re: Users Online Today Mod
Post by: Juggler on November 19, 2005, 06:34:15 AM
No problem, I'll dig it out later. Looking at the admin side of things I'm at plus 5 on the overall offset to bring it to UK time. So I guess that would make it 1.51am on the server?

I'll mail/PM you the boardIndex file when I can get at it.
Title: Re: Users Online Today Mod
Post by: Juggler on November 19, 2005, 06:54:57 AM
OK, managed to access the file via my cpanel so here's all the Online Today stuff from it :-

Quote// Load the users online today.
   $nowdate = @getdate(forum_time(false));
   $midnight = mktime(0, 0, 0, $nowdate['mon'], $nowdate['mday'], $nowdate['year']) - ($modSettings['time_offset'] * 3600);

   $s = strpos($user_info['time_format'], '%S') === false ? '' : ':%S';
   if (strpos($user_info['time_format'], '%H') === false && strpos($user_info['time_format'], '%T') === false)
      $time_fmt = '%I:%M' . $s . ' %p';
   else
      $time_fmt = '%H:%M' . $s;

   $result = db_query("
      SELECT
         mem.ID_MEMBER, mem.lastLogin, mem.realName, mem.memberName, mem.showOnline,
         mg.onlineColor, mg.ID_GROUP, mg.groupName
      FROM {$db_prefix}members AS mem
         LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP)) WHERE mem.lastLogin >= $midnight", __FILE__, __LINE__);

   $context['users_online_today'] = array();
   $context['list_users_online_today'] = array();

   while ($row = mysql_fetch_assoc($result))
   {
      $userday = strftime('%d', forum_time(true));
      $loginday = strftime('%d', forum_time(true, $row['lastLogin']));
      $yesterday = $userday == $loginday ? '' : $txt['uot_yesterday'];
   
      $lastLogin = $yesterday . strftime($time_fmt, forum_time(true, $row['lastLogin']));
      $title = (allowedTo('moderate_forum') || !empty($row['showOnline'])) ? ' title="' . $lastLogin . '"' : '';

      // Some basic color coding...
      if (!empty($row['onlineColor']))
         $link = ' $row['ID_MEMBER'],
         'username' => $row['memberName'],
         'name' => $row['realName'],
         'group' => $row['ID_GROUP'],
         'href' => $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
         'link' => $link,
         'is_buddy' => $is_buddy,
         'hidden' => empty($row['showOnline']),
      );

      $context['list_users_online_today'][$row['lastLogin'] . $row['memberName']] = (empty($row['showOnline']) && allowedTo('moderate_forum')) ? '' . $link . '' : $link;
   }
   mysql_free_result($result);

   krsort($context['users_online_today']);
   krsort($context['list_users_online_today']);

   $context['num_users_online_today'] = count($context['users_online_today']);
         
   // Load the users online today.
   $frag = explode('-', strftime('%Y-%m-%d', time()));
$midnight = forum_time(false, mktime(0, 0, 0, (int) $frag[1], (int) $frag[2], (int) $frag[0]));

   $s = strpos($user_info['time_format'], '%S') === false ? '' : ':%S';
   if (strpos($user_info['time_format'], '%H') === false && strpos($user_info['time_format'], '%T') === false)
      $time_fmt = '%I:%M' . $s . ' %p';
   else
      $time_fmt = '%H:%M' . $s;

   $result = db_query("
      SELECT
         mem.ID_MEMBER, mem.lastLogin, mem.realName, mem.memberName, mem.showOnline,
         mg.onlineColor, mg.ID_GROUP, mg.groupName
      FROM {$db_prefix}members AS mem
         LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP)) WHERE mem.lastLogin >= $midnight", __FILE__, __LINE__);

   $context['users_online_today'] = array();
   $context['list_users_online_today'] = array();

   while ($row = mysql_fetch_assoc($result))
   {
      $lastLogin = strftime($time_fmt, forum_time(true, $row['lastLogin']));
      $title = (allowedTo('moderate_forum') || !empty($row['showOnline'])) ? ' title="' . $lastLogin . '"' : '';

      // Some basic color coding...
      if (!empty($row['onlineColor']))
         $link = ' $row['ID_MEMBER'],
         'username' => $row['memberName'],
         'name' => $row['realName'],
         'group' => $row['ID_GROUP'],
         'href' => $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
         'link' => $link,
         'is_buddy' => $is_buddy,
         'hidden' => empty($row['showOnline']),
      );

      $context['list_users_online_today'][$row['lastLogin'] . $row['memberName']] = (empty($row['showOnline']) && allowedTo('moderate_forum')) ? '' . $link . '' : $link;
   }
   mysql_free_result($result);

   krsort($context['users_online_today']);
   krsort($context['list_users_online_today']);

   $context['num_users_online_today'] = count($context['users_online_today']);
         
   // Load the users online right now.
   $result = db_query("
      SELECT
         lo.ID_MEMBER, lo.logTime, mem.realName, mem.memberName, mem.showOnline,
         mg.onlineColor, mg.ID_GROUP, mg.groupName
      FROM {$db_prefix}log_online AS lo
         LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = lo.ID_MEMBER)
         LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))", __FILE__, __LINE__);

   $context['users_online'] = array();
   $context['list_users_online'] = array();
   $context['online_groups'] = array();
   $context['num_guests'] = 0;
   $context['num_buddies'] = 0;
   $context['num_users_hidden'] = 0;

   $context['show_buddies'] = !empty($user_info['buddies']);

   while ($row = mysql_fetch_assoc($result))
   {
      if (empty($row['realName']))
      {
         $context['num_guests']++;
         continue;
      }
      elseif (empty($row['showOnline']) && !allowedTo('moderate_forum'))
      {
         $context['num_users_hidden']++;
         continue;
      }

      // Some basic color coding...
      if (!empty($row['onlineColor']))
         $link = '' . $row['realName'] . '';
      else
         $link = '' . $row['realName'] . '';

      $is_buddy = in_array($row['ID_MEMBER'], $user_info['buddies']);
      if ($is_buddy)
      {
         $context['num_buddies']++;
         $link = '' . $link . '';
      }

      $context['users_online'][$row['logTime'] . $row['memberName']] = array(
         'id' => $row['ID_MEMBER'],
         'username' => $row['memberName'],
         'name' => $row['realName'],
         'group' => $row['ID_GROUP'],
         'href' => $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
         'link' => $link,
         'is_buddy' => $is_buddy,
         'hidden' => empty($row['showOnline']),
      );

      $context['list_users_online'][$row['logTime'] . $row['memberName']] = empty($row['showOnline']) ? '' . $link . '' : $link;

      if (!isset($context['online_groups'][$row['ID_GROUP']]))
         $context['online_groups'][$row['ID_GROUP']] = array(
            'id' => $row['ID_GROUP'],
            'name' => $row['groupName'],
            'color' => $row['onlineColor']
         );
   }
   mysql_free_result($result);

   krsort($context['users_online']);
   krsort($context['list_users_online']);
   ksort($context['online_groups']);

   $context['num_users_online'] = count($context['users_online']) + $context['num_users_hidden'];
Title: Re: Users Online Today Mod
Post by: Jorg40 on November 19, 2005, 11:01:48 AM
I have a small problem

"2.     Execute Modification     ./Themes/default/BoardIndex.template.php     Failure"

What is the cause to this? I'm using a skin, can that be the problem?
Title: Re: Users Online Today Mod
Post by: Carceri on November 19, 2005, 12:05:03 PM
Quote from: Juggler on November 19, 2005, 06:54:57 AM
OK, managed to access the file via my cpanel so here's all the Online Today stuff from it :-

You have both the old and the new version installed. The line

// Load the users online today.

indicates the start of the mod, but is present two places in the file. First comes the new version and after that the old version, which overwrites the settings from the new version.
Title: Re: Users Online Today Mod
Post by: Carceri on November 19, 2005, 01:01:59 PM
Quote from: Jorg40 on November 19, 2005, 11:01:48 AM
I have a small problem

"2.     Execute Modification     ./Themes/default/BoardIndex.template.php     Failure"

What is the cause to this? I'm using a skin, can that be the problem?
Apparently something has changed BoardIndex.template.php and my mod is only tested agains the original file. You can probably still apply the mod manually.
Title: Re: Users Online Today Mod
Post by: Jorg40 on November 19, 2005, 01:59:15 PM
How to install it manually?

Here is the total list of errors in 1.3.0

1. Execute Modification ./Sources/BoardIndex.php Success  
2. Execute Modification ./Sources/Stats.php Failure
3. Execute Modification ./Themes/default/BoardIndex.template.php Failure
4. Execute Modification ./Themes/default/Stats.template.php Failure
5. Execute Modification ./Themes/default/languages/Modifications.english.php Success
6. Execute Modification ./Themes/default/languages/Stats.english.php Failure

I use SMF 1.0.5
Title: Re: Users Online Today Mod
Post by: Carceri on November 19, 2005, 02:03:29 PM
Quote from: Jorg40 on November 19, 2005, 01:59:15 PM
How to install it manually?
http://www.simplemachines.org/community/index.php?topic=34526.0

Quote from: Jorg40 on November 19, 2005, 01:59:15 PM
I use SMF 1.0.5
This mod does not support SMF 1.0.5
Title: Re: Users Online Today Mod
Post by: Jorg40 on November 19, 2005, 03:57:52 PM
What version does it support then?
Title: Re: Users Online Today Mod
Post by: Carceri on November 19, 2005, 04:13:49 PM
Quote from: Jorg40 on November 19, 2005, 03:57:52 PM
What version does it support then?
It is written on the download page for the mod... 1.1 RC1
Title: Re: Users Online Today Mod
Post by: Jorg40 on November 19, 2005, 04:51:03 PM
Sorry, didnt read close enough... so now I have one last question:

How does I change the path of the install to anther skin?
Or do I have to install it manually then?
Title: Re: Users Online Today Mod
Post by: Carceri on November 19, 2005, 06:07:29 PM
Quote from: Jorg40 on November 19, 2005, 04:51:03 PM
How does I change the path of the install to anther skin?
Or do I have to install it manually then?
You can change the file section of the mod, but I would suggest to install it manually as it might not even work on some themes.
Title: Re: Users Online Today Mod
Post by: Jorg40 on November 19, 2005, 08:07:43 PM
I use the BlackDay theme, and its similar to Default
Title: Re: Users Online Today Mod
Post by: Dannii on November 21, 2005, 10:45:02 PM
It would be nice if you could eventually make this mod show the history as well, and maybe even convert (or use the same format logs) as FaSan's mod. Do you know the format he used? Would a database dump be useful at all? I think it's just a simple integer number for each day.
Title: Re: Users Online Today Mod
Post by: Carceri on November 22, 2005, 02:43:49 AM
There are no current plans for adding the history bit, although I might do it later when I have more time. Right now I have a lot of other work to do. If someone can tell me the format of the database fasan used, I can probably do it in the same way so it will most likely be compatible with databases already modified to use fasans mod. A dump of the database structure would be fine.
Title: Re: Users Online Today Mod
Post by: Juggler on November 22, 2005, 04:08:40 AM
Quote from: Carceri on November 19, 2005, 12:05:03 PM
Quote from: Juggler on November 19, 2005, 06:54:57 AM
OK, managed to access the file via my cpanel so here's all the Online Today stuff from it :-

You have both the old and the new version installed.


How the heck did I manage that????? All sorted and working fine as intended, thanks for the assist.
Title: Re: Users Online Today Mod
Post by: mforum on November 22, 2005, 04:30:40 AM
Any chance have a version of this mod for SMF 1.0.5 with classic theme ?  ::)
Title: Re: Users Online Today Mod
Post by: Dannii on November 22, 2005, 07:10:39 AM
FaSan's mod simply does this query (it checks first but this is all that matters):
db_query("ALTER TABLE {$db_prefix}log_activity
ADD `allOn` smallint(5) unsigned NOT NULL default '0'", __FILE__, __LINE__);

It then alters that every time someone is added to the list. If you could get that working the history page would then be identical, and noone would have to change themes :D
Title: Re: Users Online Today Mod
Post by: Carceri on November 22, 2005, 08:02:43 AM
That should be simple to add. When I get a few minutes I will probably do it :)
Title: Re: Users Online Today Mod
Post by: beemer on November 22, 2005, 08:39:06 AM
Unlikely  :( though fasans mod is still about (on his site ?)
Title: Re: Users Online Today Mod
Post by: gerrymore on November 22, 2005, 04:14:56 PM
Shame there is no simplified manual install instrucions on how to add this to other themes for non-coders like me. Yes I know the info is there, but other mods have had simplified versions in a text file on how to do it all.
Title: Re: Users Online Today Mod
Post by: FaSan on November 28, 2005, 03:12:19 AM
Great Mod ! and Great idea   :P :P :P
Title: Re: Users Online Today Mod
Post by: Carceri on November 28, 2005, 05:02:33 AM
Quote from: FaSan on November 28, 2005, 03:12:19 AM
Great Mod ! and Great idea   :P :P :P
Thanks :P I had no idea that you had done a similar mod. I got the idea from http://www.phpbb.com/phpBB/viewtopic.php?t=253650 and looked here but found nothing of that sort.
Title: Re: Users Online Today Mod
Post by: FaSan on November 28, 2005, 03:30:57 PM
Quote from: Carceri on November 28, 2005, 05:02:33 AM
Quote from: FaSan on November 28, 2005, 03:12:19 AM
Great Mod ! and Great idea   :P :P :P
Thanks :P I had no idea that you had done a similar mod. I got the idea from http://www.phpbb.com/phpBB/viewtopic.php?t=253650 and looked here but found nothing of that sort.


No problem for me. My post is a joke. I've delete my mods from that site.


FaSan
Title: Re: Users Online Today Mod
Post by: Carceri on November 28, 2005, 04:39:02 PM
I know it's a joke, but actually I am a little curious. Why did you delete your mod? It could have saved me the trouble of doing this myself  :P
Title: Re: Users Online Today Mod
Post by: mforum on November 29, 2005, 04:09:08 AM
I have installed Fasan`s mod changing 1-2 lines to work with classic theme and my forum lanquage at SMF 1.0.5
Works just perfect .. !!! Pity this mod is vanished from here  ::)
Title: Re: Users Online Today Mod
Post by: FaSan on November 29, 2005, 04:49:09 AM
Quote from: Carceri on November 28, 2005, 04:39:02 PM
I know it's a joke, but actually I am a little curious. Why did you delete your mod? It could have saved me the trouble of doing this myself  :P


Because the Staff of this Site does not interest to the quality, but only to the amount.

Don't exist the good rules, and not exist the given word.



FaSan
Title: Re: Users Online Today Mod
Post by: diegolyanky on December 04, 2005, 03:27:27 PM
Good mod, but:

I installed, and I modified files of my theme helios_multi manually and doesn't work ...

I uninstalled old User Online Today mod ...

Here is the code of my BoardIndex.template.php

<?php
// Version: 1.0.3; BoardIndex

function template_main()
{
        global $context, $settings, $options, $txt, $scripturl, $modSettings , $sourcedir;


        $topbox='<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="height: 16px; width: 22px;"><img src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topleft.gif" style="height: 16px; width: 22px; border: 0px; padding: 0px; margin: 0px;" alt="gfx" /></td><td style="height: 16px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topmid.gif); "></td><td style="height: 16px; width: 27px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topright.gif" style="height: 16px; width: 27px; border: 0px; padding: 0px; margin: 0px;" /></td></tr><tr><td style="width: 22px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-midleft.gif); "></td><td valign="top">';
        $botbox='</td><td style="width: 27px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-midright.gif); "></td></tr><tr><td style="height: 14px; width: 22px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-botleft.gif" style="height: 14px; width: 22px; border: 0px; padding: 0px; margin: 0px;" /></td><td style="height: 14px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-botmid.gif); "></td><td style="height: 14px; width: 27px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-botright.gif" style="height: 14px; width: 27px; border: 0px; padding: 0px; margin: 0px;" /></td></tr></table>';

        $leftbox='<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="height: 54px; width: 72px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-board-lefttop.gif" style="height: 54px; width: 72px; border: 0px; padding: 0px; margin: 0px;" /></td><td nowrap="nowrap" style="text-align: center; height: 54px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-board-midtop.gif); ">';
        $rightbox='</td><td style="height: 54px; width: 79px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-board-topright.gif" style="height: 54px; width: 79px; border: 0px; padding: 0px; margin: 0px;" /></td></tr></table>';


        $leftboxbot='<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-left: 5px; height: 78px; width: 72px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-board-botleft.gif" style="height: 78px; width: 72px; border: 0px; padding: 0px; margin: 0px;" /></td><td valign="top" nowrap="nowrap" style="text-align: center; height: 78px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-board-botmid.gif); ">';
        $rightboxbot='</td><td style="height: 78px; width: 79px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-board-botright.gif" style="height: 78px; width: 79px; border: 0px; padding: 0px; margin: 0px;" /></td></tr></table>';

        $leftboxbot2='<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-left: 4px; height: 36px; width: 72px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topleft-40.gif" style="height: 36px; width: 72px; border: 0px; padding: 0px; margin: 0px;" /></td><td valign="top" nowrap="nowrap" style="text-align: center; height: 36px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topmid-41.gif); ">';
        $rightboxbot2='</td><td style="padding-right: 0px; height: 36px; width: 79px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topright-42.gif" style="height: 36px; width: 79px; border: 0px; padding: 0px; margin: 0px;" /></td></tr></table>';


        // Show some statistics next to the link tree if SP1 info is off.
        echo $leftbox.'
<table width="100%" cellpadding="0" cellspacing="0">
        <tr>
                <td style="text-align: left; padding-left: 0px;" valign="bottom">', theme_linktree(), '</td>
        </tr>
</table>'.$rightbox;

        // Show the news fader?  (assuming there are things to show...)
        if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
        {
                echo $topbox;
                echo '
<div style="padding: 0px; margin-bottom: 2px;">
        <table border="0" width="100%" cellspacing="1" cellpadding="4">
                <tr>
                        <td align="left" style="font-weight: bold;">&nbsp;&nbsp;', $txt[102], '</td>
                </tr>
                <tr>
                        <td valign="middle" align="center" height="60">';

                // Prepare all the javascript settings.
                echo '
                                <div id="smfFadeScroller" style="width: 90%; padding: 2px; color: #ffffff;"><b>', $context['news_lines'][0], '</b></div>
                                <script language="JavaScript1.2" type="text/javascript"><!--
                                        // The fading delay (in ms.)
                                        var smfFadeDelay = ', empty($settings['newsfader_time']) ? 5000 : $settings['newsfader_time'], ';
                                        // Fade from... what text color?  To which background color?
                                        var smfFadeFrom = {"r": 255, "g": 255, "b": 255}, smfFadeTo = {"r": 0, "g": 0, "b": 0};
                                        // Surround each item with... anything special?
                                        var smfFadeBefore = "<b>", smfFadeAfter = "</b>";

                                        // List all the lines of the news for display.
                                        var smfFadeContent = new Array(
                                                "', implode('",
                                                "', $context['fader_news_lines']), '"
                                        );
                                // --></script>
                                <script language="JavaScript1.2" type="text/javascript" src="', $settings['default_theme_url'], '/fader.js"></script>
                        </td>
                </tr>
        </table>
</div>';
echo $botbox;
        }

        /* Each category in categories is made up of:
                id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
                new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down iamge),
                and boards. (see below.) */
        echo $topbox;
        foreach ($context['categories'] as $category)
        {
                echo '
<div class="tborder"><table border="0" width="100%" cellspacing="1" cellpadding="6">
        <tr>
                <td colspan="2" class="catbg', $category['new'] ? '2' : '', '" height="18">';

                // If this category even can collapse, show a link to collapse it.
                if ($category['can_collapse'])
                        echo '
                        <a href="', $category['collapse_href'], '">', $category['collapse_image'], '</a>';

                echo '
                        ', $category['link'], '
                </td>
                <td width="4%" class="catbg', $category['new'] ? '2' : '', '"><b>' ,$txt[21], '</b></td>
                <td width="4%" class="catbg', $category['new'] ? '2' : '', '"><b>' ,$txt[330], '</b></td>
                <td width="22%" align="center" class="catbg', $category['new'] ? '2' : '', '"> ', $txt[22], '</td>
        </tr>';

                // Assuming the category hasn't been collapsed...
                if (!$category['is_collapsed'])
                {
                        /* Each board in each category's boards has:
                                new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
                                children (see below.), link_children (easier to use.), children_new (are they new?),
                                topics (# of), posts (# of), link, href, and last_post. (see below.) */
                        foreach ($category['boards'] as $board)
                        {
                                echo '
        <tr class="windowbg2">
                <td class="windowbg" width="6%" align="center" valign="top">';

                                // If the board is new, show a strong indicator.
                                if ($board['new'])
                                        echo '<img src="', $settings['images_url'], '/on.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
                                // This board doesn't have new posts, but its children do.
                                elseif ($board['children_new'])
                                        echo '<img src="', $settings['images_url'], '/on2.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
                                // No new posts at all!  The agony!!
                                else
                                        echo '<img src="', $settings['images_url'], '/off.gif" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';

                                echo '</td>
                <td align="left">
                        <b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
                        ', $board['description'];

                                // Show the "Moderators: ".  Each has name, href, link, and id. (but we're gonna use link_moderators.)
                                if (!empty($board['moderators']))
                                        echo '
                        <div style="padding-top: 1px;" class="smalltext"><i>', count($board['moderators']) == 1 ? $txt[298] : $txt[299], ': ', implode(', ', $board['link_moderators']), '</i></div>';

                                // Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
                                if (!empty($board['children']))
                                {
                                        // Sort the links into an array with new boards bold so it can be imploded.
                                        $children = array();
                                        /* Each child in each board's children has:
                                                id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
                                        foreach ($board['children'] as $child)
                                        {
                                                $child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
                                                $children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
                                        }

                                        echo '
                        <div style="padding-top: 1px;" class="smalltext"><i>', $txt['parent_boards'], ': ', implode(', ', $children), '</i></div>';
                                }

                                // Show some basic information about the number of posts, etc.
                                echo '
                </td>
                <td class="windowbg" valign="middle" align="center" style="width: 8ex;"><span class="smalltext">
                        ', $board['posts'], '</span></td>
                <td class="windowbg" valign="middle" align="center" style="width: 8ex;"><span class="smalltext">
                        ', $board['topics'],'
                </span></td>
                <td class="smalltext" valign="middle" width="25%" style="padding-left: 12px;">';

                                /* The board's and children's last_post's have:
                                        time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
                                        link, href, subject, start (where they should go for the first unread post.),
                                        and member. (which has id, name, link, href, username in it.) */
                                if (!empty($board['last_post']['id']))
                                        echo $board['last_post']['time'], '<br />
                       <b>', $board['last_post']['link'], '</b> ', $txt[525], '
                       ', $board['last_post']['member']['link'];

                                echo '
                </td>
        </tr>';
                        }
                }

                echo '
</table></div>';
        }

        echo $botbox;

        echo $leftboxbot;
        if ($context['user']['is_logged'])
        {
                echo '
<div style="padding-top: 16px;"><table border="0" width="100%" cellspacing="0" cellpadding="0" valign="top">
        <tr>
                <td align="left" class="smalltext" valign="top">
                        <img src="' . $settings['images_url'] . '/new_some.gif" alt="" align="absmiddle" border="0" /> ', $txt[333], '
                        <img src="' . $settings['images_url'] . '/new_none.gif" alt=""  align="absmiddle" border="0" style="margin-left: 4ex;" /> ', $txt[334], '
                </td>
                <td align="right" class="smalltext">';
                // Show the mark all as read button?
                if ($settings['show_mark_read'])
                        echo '
                        <a href="', $scripturl, '?action=markasread;sa=all">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/markread.gif" alt="' . $txt[452] . '" border="0" />' : $txt[452]), '</a>';
                echo '
                </td>
        </tr>
</table></div>';
        }
        else
           echo '<div style="padding: 0px;"><table border="0" width="100%" cellspacing="0" cellpadding="5">
        <tr>
                <td align="left" class="smalltext">

                </td>
                <td align="right" class="smalltext">
                </td>
        </tr>
</table></div>';
echo $rightboxbot;

        // Here's where the "Info Center" starts...

       echo $leftboxbot2.'<div style="font-weight: bold; text-align: center;">'.$txt[685].'</div>'.$rightboxbot2;

       echo '<div style="padding-left: 0px; padding-right: 0px;">'.$topbox;
       echo '

<div class="tborder"><table border="0" width="100%" cellspacing="1" cellpadding="4"> ';

        // This is the "Recent Posts" bar.
        if (!empty($settings['number_recent_posts']))
        {
                echo '
        <tr>
                <td class="catbg" colspan="2">', $txt[214], '</td>
        </tr>
        <tr>
                <td class="windowbg" width="20" valign="middle" align="center">
                        <a href="', $scripturl, '?action=recent">
                                <img src="', $settings['images_url'], '/post/xx.gif" alt="', $txt[214], '" border="0" /></a>
                </td>
                <td class="windowbg2">';

                // Only show one post.
                if ($settings['number_recent_posts'] == 1)
                {
                        // latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (it's id.)
                        echo '
                        <b><a href="', $scripturl, '?action=recent">', $txt[214], '</a></b>
                        <div class="smalltext">
                                ', $txt[234], ' &quot;', $context['latest_post']['link'], '&quot; ', $txt[235], ' (', $context['latest_post']['time'], ')<br />
                        </div>';
                }
                // Show lots of posts.
                elseif (!empty($context['latest_posts']))
                {
                        echo '
                        <table width="100%" border="0">';
                        /* Each post in latest_posts has:
                                board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
                                subject, short_subject (shortened with...), time, link, and href. */
                        foreach ($context['latest_posts'] as $post)
                                echo '
                                <tr>
                                        <td class="smalltext" align="right" valign="top" nowrap="nowrap">[', $post['board']['link'], ']</td>
                                        <td class="smalltext" valign="top">', $post['link'], ' ', $txt[525], ' ', $post['poster']['link'], '</td>
                                        <td class="smalltext" align="right" valign="top" nowrap="nowrap">', $post['time'], '</td>
                                </tr>';
                        echo '
                        </table>';
                }
                echo '
                </td>
        </tr>';
        }

        // Show information about events, birthdays, and holidays on the calendar.
        if ($context['show_calendar'])
        {
                echo '
        <tr>
                <td class="catbg" colspan="2">', $context['calendar_only_today'] ? $txt['calendar47b'] : $txt['calendar47'], '</td>
        </tr><tr>
                <td class="windowbg" width="20" valign="middle" align="center">
                        <a href="', $scripturl, '?action=calendar">
                                <img src="', $settings['images_url'], '/icons/calendar.gif" width="20" alt="', $txt['calendar24'], '" border="0" /></a>
                </td>
                <td class="windowbg2" width="100%">
                        <span class="smalltext">';

                // Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.
                if (!empty($context['calendar_holidays']))
                        echo '
                                <span style="color: #', $modSettings['cal_holidaycolor'], ';">', $txt['calendar5'], ' ', implode(', ', $context['calendar_holidays']), '</span><br />';

                // People's birthdays.  Like mine.  And yours, I guess.  Kidding.
                if (!empty($context['calendar_birthdays']))
                {
                        echo '
                                <span style="color: #', $modSettings['cal_bdaycolor'], ';">', $context['calendar_only_today'] ? $txt['calendar3'] : $txt['calendar3b'], '</span> ';
                        /* Each member in calendar_birthdays has:
                                id, name (person), age (if they have one set?), is_last. (last in list?), and is_today (birthday is today?) */
                        foreach ($context['calendar_birthdays'] as $member)
                                echo '
                                <a href="', $scripturl, '?action=profile;u=', $member['id'], '">', $member['is_today'] ? '<b>' : '', $member['name'], $member['is_today'] ? '</b>' : '', isset($member['age']) ? ' (' . $member['age'] . ')' : '', '</a>', $member['is_last'] ? '<br />' : ', ';
                }
                // Events like community get-togethers.
                if (!empty($context['calendar_events']))
                {
                        echo '
                                <span style="color: #', $modSettings['cal_eventcolor'], ';">', $context['calendar_only_today'] ? $txt['calendar4'] : $txt['calendar4b'], '</span> ';
                        /* Each event in calendar_events should have:
                                title, href, is_last, can_edit (are they allowed?), modify_href, and is_today. */
                        foreach ($context['calendar_events'] as $event)
                                echo '
                                ', $event['can_edit'] ? '<a href="' . $event['modify_href'] . '" style="color: #FF0000;">*</a> ' : '', '<a href="', $event['href'], '">', $event['is_today'] ? '<b>' . $event['title'] . '</b>' : $event['title'], '</a>', $event['is_last'] ? '<br />' : ', ';

                        // Show a little help text to help them along ;).
                        if ($context['calendar_can_edit'])
                                echo '
                                (<a href="', $scripturl, '?action=helpadmin;help=calendar_how_edit" onclick="return reqWin(this.href);">', $txt['calendar_how_edit'], '</a>)';
                }
                echo '
                        </span>
                </td>
        </tr>';
        }

        // Show a member bar.  Not heavily ornate, but functional at least.
        if ($settings['show_member_bar'])
        {
                echo '
        <tr>
                <td class="catbg" colspan="2">', $txt[331], '</td>
        </tr>
        <tr>
                <td class="windowbg" width="20" valign="middle" align="center">
                        <a href="', $scripturl, '?action=mlist">
                                <img src="', $settings['images_url'], '/icons/members.gif" width="20" alt="', $txt[332], '" border="0" /></a>
                </td>
                <td class="windowbg2" width="100%">
                        <b><a href="', $scripturl, '?action=mlist">', $txt[332], '</a></b>
                        <div class="smalltext">', $txt[200], '</div>
                </td>
        </tr>';
        }

        // Show YaBB SP1 style information...
        if ($settings['show_sp1_info'])
        {
                echo '
        <tr>
                <td class="catbg" colspan="2">', $txt[645], '</td>
        </tr>
        <tr>
                <td class="windowbg" width="20" valign="middle" align="center">
                        <a href="', $scripturl, '?action=stats">
                                <img src="', $settings['images_url'], '/icons/info.gif" alt="', $txt[645], '" border="0" /></a>
                </td>
                <td class="windowbg2" width="100%">
                        <table border="0" width="90%"><tr>
                                <td class="smalltext">
                                        <div style="float: left; width: 50%;">', $txt[490], ': <b>', $modSettings['totalTopics'], '</b></div>', $txt[489], ': <b>', $modSettings['totalMessages'], '</b><br />', !empty($context['latest_post']) ? '
                                        ' . $txt[659] . ': &quot;' . $context['latest_post']['link'] . '&quot;  (' . $context['latest_post']['time'] . ')<br />' : '', '
                                        <a href="', $scripturl, '?action=recent">', $txt[234], '</a>', $context['show_stats'] ? '<br />
                                        <a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
                                </td>
                                <td width="32%" class="smalltext" valign="top">
                                        ', $txt[656], ': <b>', $context['latest_member']['link'], '</b><br />';
                // If they are logged in, show their unread message count, etc..
                if ($context['user']['is_logged'])
                        echo '
                                        ', $txt['smf199'], ': <b><a href="', $scripturl, '?action=pm">', $context['user']['messages'], '</a></b> ', $txt['newmessages3'], ': <b><a href="', $scripturl, '?action=pm">', $context['user']['unread_messages'], '</a></b>';
                echo '
                                </td>
                        </tr></table>
                </td>
        </tr>';
        }
        // Chat Stats
        if(isset($modSettings['chatLanguage']))
        echo '
        <tr>
                <td class="titlebg" colspan="2"></td>
        </tr><tr>
                <td class="windowbg" width="20" valign="middle" align="center">
                </td>
                <td class="windowbg2" width="100%">
                        Mire las estadísticas, pueden resultarle interesantes .<br />

                        <span class="smalltext">';

        // "Users online" - in order of activity.
        echo '
        <tr>
                <td class="catbg" colspan="2">', $txt[158], '</td>
        </tr><tr>
                <td class="windowbg" width="20" valign="middle" align="center">
                        <a href="', $scripturl, '?action=who">
                                <img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], '" border="0" /></a>
                </td>
                <td class="windowbg2" width="100%">
                        <a href="', $scripturl, '?action=who">', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ', $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'], (empty($context['num_users_hidden']) ? '' : ' (' . $context['num_users_hidden'] . ' ' . $txt['hidden'] . ')'), '</a><br />
                        <span class="smalltext">';

        // Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
        if (!empty($context['users_online']))
                echo '
                                ', $txt[140], ':<br />', implode(', ', $context['list_users_online']);

        echo '
                                <br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
                                <a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
                        </span>
                        <hr /><span class="smalltext">
                        Mayor cantidad de usuarios conectados al mismo tiempo hoy: '.$modSettings['mostOnlineToday'].' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

                        </span>


                </td>
        </tr>';

        // "Users online Today"
        if(isset($context['num_users_today']))
        echo '
        <tr>
                <td class="catbg" colspan="2">', ' ( ', $context['num_users_today'], ' ', $context['num_users_today'] == 1 ? $txt['user'] : $txt['users'], ' )</td>
        </tr><tr>
                <td class="windowbg" width="20" valign="middle" align="center">
                <td class="windowbg2" width="100%"><span class="smalltext">', $context['user_today'], '</span></td>
        </tr>';

        // If they are logged in, but SP1 style information is off... show a personal message bar.
        if ($context['user']['is_logged'] && !$settings['show_sp1_info'])
        {
                echo '
        <tr>
                <td class="catbg" colspan="2">', $txt[159], '</td>
        </tr><tr>
                <td class="windowbg" width="20" valign="middle" align="center">
                        <a href="', $scripturl, '?action=pm">
                                <img src="', $settings['images_url'], '/message_sm.gif" alt="', $txt[159], '" border="0" /></a>
                </td>
                <td class="windowbg2" valign="top">
                        <b><a href="', $scripturl, '?action=pm">', $txt[159], '</a></b>
                        <div class="smalltext">
                                ', $txt[660], ' ', $context['user']['messages'], ' ', $context['user']['messages'] == 1 ? $txt[471] : $txt[153], '.... ', $txt[661], ' <a href="', $scripturl, '?action=pm">', $txt[662], '</a> ', $txt[663], '
                        </div>
                </td>
        </tr>';
        }

        // Show the login bar. (it's only true if they are logged out anyway.)
        if ($context['show_login_bar'])
        {
                echo '
        <tr>
                <td class="catbg" colspan="2">', $txt[34], ' <a href="', $scripturl, '?action=reminder" class="smalltext">(' . $txt[315] . ')</a></td>
        </tr>
        <tr>
                <td class="windowbg" width="20" align="center">
                        <a href="', $scripturl, '?action=login">
                                <img src="', $settings['images_url'], '/icons/login.gif" alt="', $txt[34], '" border="0" /></a>
                </td>
                <td class="windowbg2" valign="middle">
                        <form action="', $scripturl, '?action=login2" method="post" style="margin: 0;">
                                <table border="0" cellpadding="2" cellspacing="0" align="center" width="100%"><tr>
                                        <td valign="middle" align="left">
                                                <label for="user"><b>', $txt[35], ':</b><br /><input type="text" name="user" id="user" size="15" /></label>
                                        </td>
                                        <td valign="middle" align="left">
                                                <label for="passwrd"><b>', $txt[36], ':</b><br /><input type="password" name="passwrd" id="passwrd" size="15" /></label>
                                        </td>
                                        <td valign="middle" align="left">
                                                <label for="cookielength"><b>', $txt[497], ':</b><br /><input type="text" name="cookielength" id="cookielength" size="4" maxlength="4" value="', $modSettings['cookieTime'], '" /></label>
                                        </td>
                                        <td valign="middle" align="left">
                                                <label for="cookieneverexp"><b>', $txt[508], ':</b><br /><input type="checkbox" name="cookieneverexp" id="cookieneverexp" checked="checked" class="check" /></label>
                                        </td>
                                        <td valign="middle" align="left">
                                                <input type="submit" value="', $txt[34], '" /&
Title: Re: Users Online Today Mod
Post by: beemer on December 04, 2005, 04:27:02 PM
Quote from: diegolyanky on December 04, 2005, 03:27:27 PM
Good mod, but:

I installed, and I modified files of my theme helios_multi manually and doesn't work ...

I uninstalled old User Online Today mod ...

                                   <input type="submit" value="', $txt[34], '" /&g

You uninstalled the old version?

From the template you just posted you are running smf 1.03 so you need the old version !!
Title: Re: Users Online Today Mod
Post by: diegolyanky on December 04, 2005, 04:39:11 PM
No, is 1.1RC1 ... I have downloaded and installed helios_multi premod long time ago. So, I think what Bloc ( Bloc is helios_multi creator ) just forget to change from 1.0.3 to 1.1rc1 ... But the code is actualiced for working with SMF 1.1rc1

Resumming: " I have al files up to date " and I wanna to install this mod on my forum. remember what my forum use helios_multi as Default Community Theme .

Many thanks for you reply !  ;)
Title: Re: Users Online Today Mod
Post by: DemonicInfluence on December 04, 2005, 04:45:11 PM
Helios Multi premod doesn't work with rc1....

Title: Re: Users Online Today Mod
Post by: SoaringUSAEagle on December 04, 2005, 08:07:18 PM
I'm lost on how to install this... any help is appreciated.  I am running 1.1 RC1
Title: Re: Users Online Today Mod
Post by: diegolyanky on December 04, 2005, 09:11:01 PM
Quote from: Libo on December 04, 2005, 04:45:11 PM
Helios Multi premod doesn't work with rc1....



What ?

Helios-multi premod is the helios_multi files modified for working with users online today and other mods.

Helios_multi premod is working on my forum long time ... And works fine !


Title: Re: Users Online Today Mod
Post by: DemonicInfluence on December 05, 2005, 07:22:32 AM
I know. it isn't supposed to work on rc1.. It is for 1.0.5 only..
Title: Re: Users Online Today Mod
Post by: Menni on December 05, 2005, 01:07:38 PM
I have this mod installed to my forum. How can I have text "x users online today" chanced to my own language(finnish)?
Title: Re: Users Online Today Mod
Post by: Owdy on December 05, 2005, 05:05:24 PM

Menni, translate these and put them to Modifications.finnish.php

$txt['uot_users_online_today_title']='Users Online Today';
$txt['uot_user_online_today']='user online today';
$txt['uot_users_online_today']='users online today';
$txt['uot_total_users_online_today']='Total Online Today';
$txt['uot_yesterday']='Yesterday at ';
Title: Re: Users Online Today Mod
Post by: RoarinRow on December 10, 2005, 06:11:44 PM
I finally got this to work on my forum SMF 1.0.5.

1.  I downloaded the file from FaSan's website (Registration required to get to download section).  After your register, you should logout, then log back in again to see the contents of the download section.

     http://www.smitalia.net/community/index.php

2.  Download and install OnLineUserToday_13_10.zip via Package Manager

3.  Edit your 'BoardIndexTemplate' for your custom them. 

I had to change the highlighted code from 'titlebg' to 'catgb' to go with my Techhead theme.

// "Users online Today"
        if(isset($context['num_users_today']))
        echo '
        <tr>
                <td class="catbg" colspan="2">', $txt['158bis'], ' ( ', $context['num_users_today'], ' ', $context['num_users_today'] == 1 ? $txt['user'] : $txt['users'], ' )</td>
        </tr><tr>
                <td class="windowbg" width="20" valign="middle" align="center"><img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['158bis'], '" border="0" /></td>
                <td class="windowbg2" width="100%"><span class="smalltext">', $context['user_today'], '</span></td>
        </tr>';

That's it.  It put's the member's names in alphabetical order.
Title: Re: Users Online Today Mod
Post by: ToyDozer on December 11, 2005, 12:42:35 AM
Very nice! Took me a bit but I got it going on SMF 1.0.5 using Helios_Multi theme!

Thanks go out to everyone involved!

Take a peak at Wheeling Adventures (http://www.wheelingadventures.com/Board)
Title: Re: Users Online Today Mod
Post by: Maycomb on December 11, 2005, 10:29:57 PM
This may sound stupid, but where do you install this to?
Title: Re: Users Online Today Mod
Post by: RoarinRow on December 11, 2005, 11:38:48 PM
Quote from: Maycomb on December 11, 2005, 10:29:57 PM
This may sound stupid, but where do you install this to?

I installed the zip file via the Package Manager through the Admin section of your forum.
Title: Re: Users Online Today Mod
Post by: jerm on December 12, 2005, 11:40:20 AM
i would like to go about removing myself from the "Users Online Today" list. how would i go about doing this?
Title: Re: Users Online Today Mod
Post by: L.G.S on December 12, 2005, 12:01:46 PM
Any idea when I try to install it with any skin other than default it re arranges my skin?
Title: Re: Users Online Today Mod
Post by: RoarinRow on December 12, 2005, 12:34:58 PM
Quote from: electrohome88 on December 12, 2005, 11:40:20 AM
i would like to go about removing myself from the "Users Online Today" list. how would i go about doing this?

Don't think you can.  Once you log on it captures your information and puts you on the list.
Title: Re: Users Online Today Mod
Post by: RoarinRow on December 12, 2005, 12:38:29 PM
Quote from: The Outsider on December 12, 2005, 12:01:46 PM
Any idea when I try to install it with any skin other than default it re arranges my skin?

The fix I used was for SMF 1.0.5.   Not sure why it would re-arrange your skin unless it was something from this mod from Carceri.
Title: *Insert Month here* dissapeared from Stats
Post by: L.G.S on December 13, 2005, 11:44:32 AM
I have only added Users Online Today mod, which has been up for 2 weeks and had no previous problems.

At the bottom where it is supposed to say :

December
November
October
September

Etc,

it just shows

2005
2005

etc
Title: Re: Users Online Today Mod
Post by: Carceri on December 13, 2005, 04:12:51 PM
"At the bottom". Could you be more specific?

If you are refering to the Fasan mod, please state it clearly or do so in another thread. It makes it easier for me to respond to problems about my mod if I know that people posting in this thread is actually referring to my mod :)
Title: Re: Users Online Today Mod
Post by: L.G.S on December 14, 2005, 04:46:50 PM
At the bottom as in the bottom area of the stats where the hits/posts/members per day is kept.
Title: Re: Users Online Today Mod
Post by: Skipdawg on December 14, 2005, 07:45:09 PM
 ???

OK have gone through this thread twice and used the search too.
Is there a place to download this Mod for 1.0.5 that is a English language site. I get to the other mentioned here and get stuck for I can't read it.  ::)
Title: Re: Users Online Today Mod
Post by: beemer on December 15, 2005, 04:49:20 AM
Quote from: Skipdawg on December 14, 2005, 07:45:09 PM
???

OK have gone through this thread twice and used the search too.
Is there a place to download this Mod for 1.0.5 that is a English language site. I get to the other mentioned here and get stuck for I can't read it.  ::)

Here is the old 1.05 version

http://www.simplemachines.org/community/index.php?topic=20168.msg345586#msg345586
Title: Re: Users Online Today Mod
Post by: Skipdawg on December 15, 2005, 01:32:57 PM
beemer thanks  ;)
Got and it loaded fine.
kewl Mod!  8)
Title: Re: Users Online Today Mod
Post by: Stuart on December 27, 2005, 12:23:11 PM
I wish I could get this MOD working on my forum but all I get are some errors  :'(
I'm not using a default theme and my language is Dutch  :(
Title: Re: Users Online Today Mod
Post by: ASi ve MAVi on December 28, 2005, 06:55:33 AM
my dear frıend,ı have opened this mod download my web page.ıs ıt ok for you?

http://www.guzelforum.com/forum/index.php/board,70.0.html

sorry I don't english speak too
Title: Re: Users Online Today Mod
Post by: Stuart on December 28, 2005, 12:04:11 PM
Quote from: ASi ve MAVi on December 28, 2005, 06:55:33 AM
my dear frıend,ı have opened a mod ın whıch you had.ıs ıt ok for you?

http://www.guzelforum.com/forum/index.php/board,70.0.html

sorry I don't english speak too

Thanks for offering your help, though I don't get any further by visiting your website  :( Nevertheless it's appreciated that you tried  ;D

If anyone can help me how I can actually get this MOD working on my forum that would be very kind !

Cheers,
Stuart
Title: Re: Users Online Today Mod
Post by: ASi ve MAVi on December 28, 2005, 01:05:49 PM
1.1RC1 FOR MANUEL SETUP


SOURCE directory BoardIndex.php file chance


find


mysql_free_result($result_boards);

after to add

// Load the users online today.
$nowdate = @getdate(forum_time(false));
$midnight = mktime(0, 0, 0, $nowdate['mon'], $nowdate['mday'], $nowdate['year']) - ($modSettings['time_offset'] * 3600);

$s = strpos($user_info['time_format'], '%S') === false ? '' : ':%S';
if (strpos($user_info['time_format'], '%H') === false && strpos($user_info['time_format'], '%T') === false)
$time_fmt = '%I:%M' . $s . ' %p';
else
$time_fmt = '%H:%M' . $s;

$result = db_query("
SELECT
mem.ID_MEMBER, mem.lastLogin, mem.realName, mem.memberName, mem.showOnline,
mg.onlineColor, mg.ID_GROUP, mg.groupName
FROM {$db_prefix}members AS mem
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP)) WHERE mem.lastLogin >= $midnight", __FILE__, __LINE__);

$context['users_online_today'] = array();
$context['list_users_online_today'] = array();

while ($row = mysql_fetch_assoc($result))
{
$userday = strftime('%d', forum_time(true));
$loginday = strftime('%d', forum_time(true, $row['lastLogin']));
$yesterday = $userday == $loginday ? '' : $txt['uot_yesterday'];

$lastLogin = $yesterday . strftime($time_fmt, forum_time(true, $row['lastLogin']));
$title = (allowedTo('moderate_forum') || !empty($row['showOnline'])) ? ' title="' . $lastLogin . '"' : '';

// Some basic color coding...
if (!empty($row['onlineColor']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '"' . $title . ' style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '"' . $title . '>' . $row['realName'] . '</a>';

$is_buddy = in_array($row['ID_MEMBER'], $user_info['buddies']);
if ($is_buddy)
{
$link = '<b>' . $link . '</b>';
}

$context['users_online_today'][$row['lastLogin'] . $row['memberName']] = array(
'id' => $row['ID_MEMBER'],
'username' => $row['memberName'],
'name' => $row['realName'],
'group' => $row['ID_GROUP'],
'href' => $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
'link' => $link,
'is_buddy' => $is_buddy,
'hidden' => empty($row['showOnline']),
);

$context['list_users_online_today'][$row['lastLogin'] . $row['memberName']] = (empty($row['showOnline']) && allowedTo('moderate_forum')) ? '<i>' . $link . '</i>' : $link;
}
mysql_free_result($result);

krsort($context['users_online_today']);
krsort($context['list_users_online_today']);

$context['num_users_online_today'] = count($context['users_online_today']);





SOURCE directory Stats.php file chance

find


$context['online_today'] = (int) $context['online_today'];

after to add

// Total members online today
$frag = explode('-', strftime('%Y-%m-%d', time()));
$midnight = forum_time(false, mktime(0, 0, 0, (int) $frag[1], (int) $frag[2], (int) $frag[0]));
$result = db_query("
SELECT
COUNT(*)
FROM {$db_prefix}members
WHERE lastLogin >= $midnight", __FILE__, __LINE__);
list ($context['total_users_online_today']) = mysql_fetch_row($result);





yours theme BoardIndex.template.php file chance

find


<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';


after to add


// Users online today
echo '
<tr>
<td class="catbg" colspan="2">', $txt['uot_users_online_today_title'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], ' ', $txt['uot_users_online_today_title'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';

echo '
<div class="smalltext">';

echo $context['num_users_online_today'], ' ', $context['num_users_online_today'] == 1 ? $txt['uot_user_online_today'] : $txt['uot_users_online_today'];

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']))
echo ':<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';





yours theme Stats.template.php file chance

find


<td nowrap="nowrap">', $txt['users_online_today'], ':</td>
<td align="right">', $context['online_today'], '</td>';


remove and add

<td nowrap="nowrap">', $txt['users_online_today'], ':</td>
<td align="right">', $context['online_today'], '</td>
</tr><tr>
<td nowrap="nowrap">', $txt['uot_total_users_online_today'], ':</td>
<td align="right">', $context['total_users_online_today'], '</td>';





DEFAULT Theme LANGUAGES directory Modifications.english.php file chance

?>

over to add

$txt['uot_users_online_today_title']='Users Online Today';
$txt['uot_user_online_today']='user online today';
$txt['uot_users_online_today']='users online today';
$txt['uot_total_users_online_today']='Total Online Today';
$txt['uot_yesterday']='Yesterday at ';

Title: Re: Users Online Today Mod
Post by: Stuart on December 28, 2005, 01:21:03 PM
I'm still using SMF 1.0.5.  :-[
Title: Re: Users Online Today Mod
Post by: ASi ve MAVi on December 28, 2005, 03:46:15 PM
1,0,5 different
Title: Re: Users Online Today Mod
Post by: beemer on December 28, 2005, 04:31:07 PM
Stuart ?

Did you install the 1.05 version?

What are the errors you are getting?
Title: Re: Users Online Today Mod
Post by: Stuart on December 28, 2005, 04:43:59 PM
Quote from: beemer on December 28, 2005, 04:31:07 PM
Stuart ?

Did you install the 1.05 version?

What are the errors you are getting?

I may actually have used the wrong version of this MOD  ???
Title: Re: Users Online Today Mod
Post by: beemer on December 28, 2005, 04:46:34 PM
See if you can uninstall and try the versio in the link on my post 2 above?
Title: Re: Users Online Today Mod
Post by: Stuart on December 28, 2005, 04:54:48 PM
Quote from: beemer on December 28, 2005, 04:46:34 PM
See if you can uninstall and try the versio in the link on my post 2 above?

I'm ever so sorry, but that seems to be the location MOD  ???
I already tried that but what has it got to do with the Online Today MOD  ???
Sorry for not understanding, I possibly look like a pretty dumb guy now  :(
Title: Re: Users Online Today Mod
Post by: beemer on December 28, 2005, 05:12:28 PM
Stuart sorry  (that was for someting else) doh

The latest version says for 1.1 rc1 I cant find an old copy maybe on my works pc?

What are the errors you get?
Title: Re: Users Online Today Mod
Post by: Stuart on December 28, 2005, 05:40:26 PM
Quote from: beemer on December 28, 2005, 05:12:28 PM
Stuart sorry  (that was for someting else) doh

The latest version says for 1.1 rc1 I cant find an old copy maybe on my works pc?

What are the errors you get?

I should find myself the 1.0.5. version I guess  :P

1. Voer aanpassing uit ./Sources/BoardIndex.php Succes
2. Voer aanpassing uit ./Sources/Stats.php Failed
3. Voer aanpassing uit ./Themes/default/BoardIndex.template.php Failed
4. Voer aanpassing uit ./Themes/default/Stats.template.php Failed
5. Voer aanpassing uit ./Themes/default/languages/Modifications.english.php Failed
6. Voer aanpassing uit ./Themes/default/languages/Stats.english.php Failed

2: in_array(): Wrong datatype for second argument
Bestand: /data/members/paid/o/r/orisit.nl/htdocs/www/astmaforum/Sources/BoardIndex.php
Regel: 274

8: Undefined index: buddies
Bestand: /data/members/paid/o/r/orisit.nl/htdocs/www/astmaforum/Sources/BoardIndex.php
Regel: 274
Title: Re: Users Online Today Mod
Post by: Stuart on December 28, 2005, 06:13:47 PM
Quote from: RoarinRow on December 10, 2005, 06:11:44 PM
I finally got this to work on my forum SMF 1.0.5.

1.  I downloaded the file from FaSan's website (Registration required to get to download section).  After your register, you should logout, then log back in again to see the contents of the download section.

     http://www.smitalia.net/community/index.php

2.  Download and install OnLineUserToday_13_10.zip via Package Manager

3.  Edit your 'BoardIndexTemplate' for your custom them. 

I had to change the highlighted code from 'titlebg' to 'catgb' to go with my Techhead theme.

// "Users online Today"
        if(isset($context['num_users_today']))
        echo '
        <tr>
                <td class="catbg" colspan="2">', $txt['158bis'], ' ( ', $context['num_users_today'], ' ', $context['num_users_today'] == 1 ? $txt['user'] : $txt['users'], ' )</td>
        </tr><tr>
                <td class="windowbg" width="20" valign="middle" align="center"><img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['158bis'], '" border="0" /></td>
                <td class="windowbg2" width="100%"><span class="smalltext">', $context['user_today'], '</span></td>
        </tr>';

That's it.  It put's the member's names in alphabetical order.

I tried all that but I'm getting these errors:

8: Undefined index: 158bis
Bestand: /data/members/paid/o/r/orisit.nl/htdocs/www/astmaforum/Themes/safblue105/BoardIndex.template.php (eval?)
Regel: 362


8: Undefined index: 158bis
Bestand: /data/members/paid/o/r/orisit.nl/htdocs/www/astmaforum/Themes/safblue105/BoardIndex.template.php (eval?)
Regel: 364


I have to put my account into English, otherwise it's not working and it looks like a mess when you view the stats page (if you're using the Dutch language)  :'(

8: Undefined index: smf_stats_14bis
Bestand: /data/members/paid/o/r/orisit.nl/htdocs/www/astmaforum/Themes/default/languages/Stats.dutch.php (eval?)
Regel: 181
Title: Re: Users Online Today Mod
Post by: Stuart on December 28, 2005, 06:48:16 PM
Quote from: RoarinRow on December 28, 2005, 06:24:02 PM
Quote from: Stuart on December 28, 2005, 06:13:47 PM
Quote from: RoarinRow on December 10, 2005, 06:11:44 PM
I finally got this to work on my forum SMF 1.0.5.

1.  I downloaded the file from FaSan's website (Registration required to get to download section).  After your register, you should logout, then log back in again to see the contents of the download section.

     http://www.smitalia.net/community/index.php

2.  Download and install OnLineUserToday_13_10.zip via Package Manager

3.  Edit your 'BoardIndexTemplate' for your custom them. 

I had to change the highlighted code from 'titlebg' to 'catgb' to go with my Techhead theme.

// "Users online Today"
        if(isset($context['num_users_today']))
        echo '
        <tr>
                <td class="catbg" colspan="2">', $txt['158bis'], ' ( ', $context['num_users_today'], ' ', $context['num_users_today'] == 1 ? $txt['user'] : $txt['users'], ' )</td>
        </tr><tr>
                <td class="windowbg" width="20" valign="middle" align="center"><img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['158bis'], '" border="0" /></td>
                <td class="windowbg2" width="100%"><span class="smalltext">', $context['user_today'], '</span></td>
        </tr>';

That's it.  It put's the member's names in alphabetical order.

I tried all that but I'm getting these errors:

8: Undefined index: 158bis
Bestand: /data/members/paid/o/r/orisit.nl/htdocs/www/astmaforum/Themes/safblue105/BoardIndex.template.php (eval?)
Regel: 362


8: Undefined index: 158bis
Bestand: /data/members/paid/o/r/orisit.nl/htdocs/www/astmaforum/Themes/safblue105/BoardIndex.template.php (eval?)
Regel: 364


I have to put my account into English, otherwise it's not working and it looks like a mess when you view the stats page (if you're using the Dutch language)  :'(

I have the file here - OnLineUserToday (http://www.avalanchestyle.com/forum/AVS/OnLineUserToday_13_10.zip)

I resolved those errors by going to my 'Modifications.english.php file' found at Themes/default/languages and adding this line:

//OnLine Users Today
$txt['158bis'] = 'Users Online Today';
$txt['smf_stats_14bis'] = 'Users Online Today';



It worked, thanks for your help  :D
Title: Re: Users Online Today Mod
Post by: RoarinRow on December 28, 2005, 06:49:23 PM
Quote from: Stuart on December 28, 2005, 06:48:16 PM
Quote from: RoarinRow on December 28, 2005, 06:24:02 PM
Quote from: Stuart on December 28, 2005, 06:13:47 PM
Quote from: RoarinRow on December 10, 2005, 06:11:44 PM
I finally got this to work on my forum SMF 1.0.5.

1.  I downloaded the file from FaSan's website (Registration required to get to download section).  After your register, you should logout, then log back in again to see the contents of the download section.

     http://www.smitalia.net/community/index.php

2.  Download and install OnLineUserToday_13_10.zip via Package Manager

3.  Edit your 'BoardIndexTemplate' for your custom them. 

I had to change the highlighted code from 'titlebg' to 'catgb' to go with my Techhead theme.

// "Users online Today"
        if(isset($context['num_users_today']))
        echo '
        <tr>
                <td class="catbg" colspan="2">', $txt['158bis'], ' ( ', $context['num_users_today'], ' ', $context['num_users_today'] == 1 ? $txt['user'] : $txt['users'], ' )</td>
        </tr><tr>
                <td class="windowbg" width="20" valign="middle" align="center"><img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['158bis'], '" border="0" /></td>
                <td class="windowbg2" width="100%"><span class="smalltext">', $context['user_today'], '</span></td>
        </tr>';

That's it.  It put's the member's names in alphabetical order.

I tried all that but I'm getting these errors:

8: Undefined index: 158bis
Bestand: /data/members/paid/o/r/orisit.nl/htdocs/www/astmaforum/Themes/safblue105/BoardIndex.template.php (eval?)
Regel: 362


8: Undefined index: 158bis
Bestand: /data/members/paid/o/r/orisit.nl/htdocs/www/astmaforum/Themes/safblue105/BoardIndex.template.php (eval?)
Regel: 364


I have to put my account into English, otherwise it's not working and it looks like a mess when you view the stats page (if you're using the Dutch language)  :'(

I resolved those errors by going to my 'Modifications.english.php file' found at Themes/default/languages and adding this line:

//OnLine Users Today
$txt['158bis'] = 'Users Online Today';
$txt['smf_stats_14bis'] = 'Users Online Today';



It worked, thanks for your help  :D

Welcome!
Title: Re: Users Online Today Mod
Post by: California Dreamin on December 29, 2005, 02:28:02 AM
I have installed this and it is not showing up on my board. How do you activate it?
I have logged out and back in. Still not showing up.
Title: Re: Users Online Today Mod
Post by: RoarinRow on December 29, 2005, 02:36:00 AM
Quote from: fresnolady on December 29, 2005, 02:28:02 AM
I have installed this and it is not showing up on my board. How do you activate it?
I have logged out and back in. Still not showing up.

I used the edit to my custom BoardIndexTemplate.php as described above for my SMF v.1.0.5 forum.  The mod should work for the Default theme, but anything else will require modification to your BoardIndexTemplate.php for your version of SMF.
Title: Re: Users Online Today Mod
Post by: California Dreamin on December 30, 2005, 12:27:53 AM
Quote from: RoarinRow on December 29, 2005, 02:36:00 AM
Quote from: fresnolady on December 29, 2005, 02:28:02 AM
I have installed this and it is not showing up on my board. How do you activate it?
I have logged out and back in. Still not showing up.

I used the edit to my custom BoardIndexTemplate.php as described above for my SMF v.1.0.5 forum.  The mod should work for the Default theme, but anything else will require modification to your BoardIndexTemplate.php for your version of SMF.

I am using the Default theme  :(
Title: Re: Users Online Today Mod
Post by: RoarinRow on December 30, 2005, 12:46:19 AM
Quote from: fresnolady on December 30, 2005, 12:27:53 AM
Quote from: RoarinRow on December 29, 2005, 02:36:00 AM
Quote from: fresnolady on December 29, 2005, 02:28:02 AM
I have installed this and it is not showing up on my board. How do you activate it?
I have logged out and back in. Still not showing up.

I used the edit to my custom BoardIndexTemplate.php as described above for my SMF v.1.0.5 forum.  The mod should work for the Default theme, but anything else will require modification to your BoardIndexTemplate.php for your version of SMF.

I am using the Default theme  :(

Is this in your 'boardindextemplate.php' file:

// "Users online Today"
        if(isset($context['num_users_today']))
        echo '
        <tr>
                <td class="catbg" colspan="2">', $txt['158bis'], ' ( ', $context['num_users_today'], ' ', $context['num_users_today'] == 1 ? $txt['user'] : $txt['users'], ' )</td>
        </tr><tr>
                <td class="windowbg" width="20" valign="middle" align="center"><img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['158bis'], '" border="0" /></td>
                <td class="windowbg2" width="100%"><span class="smalltext">', $context['user_today'], '</span></td>
        </tr>';
Title: Re: Users Online Today Mod
Post by: California Dreamin on December 30, 2005, 01:04:33 AM
Quote from: RoarinRow on December 30, 2005, 12:46:19 AM
Quote from: fresnolady on December 30, 2005, 12:27:53 AM
Quote from: RoarinRow on December 29, 2005, 02:36:00 AM
Quote from: fresnolady on December 29, 2005, 02:28:02 AM
I have installed this and it is not showing up on my board. How do you activate it?
I have logged out and back in. Still not showing up.

I used the edit to my custom BoardIndexTemplate.php as described above for my SMF v.1.0.5 forum.  The mod should work for the Default theme, but anything else will require modification to your BoardIndexTemplate.php for your version of SMF.

I am using the Default theme  :(

Is this in your 'boardindextemplate.php' file:

// "Users online Today"
        if(isset($context['num_users_today']))
        echo '
        <tr>
                <td class="catbg" colspan="2">', $txt['158bis'], ' ( ', $context['num_users_today'], ' ', $context['num_users_today'] == 1 ? $txt['user'] : $txt['users'], ' )</td>
        </tr><tr>
                <td class="windowbg" width="20" valign="middle" align="center"><img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['158bis'], '" border="0" /></td>
                <td class="windowbg2" width="100%"><span class="smalltext">', $context['user_today'], '</span></td>
        </tr>';


no, I don't see that......
Title: Re: Users Online Today Mod
Post by: HNHF on December 30, 2005, 02:41:49 AM
Hi There,

I am running  SMF RC2  and de Online Users Today mod won't work with this version.

Is there a update for it?

Greetings, Martin.
Title: Re: Users Online Today Mod
Post by: DemonicInfluence on December 30, 2005, 03:52:57 AM
I don't think so as the mod creator isn't a charter member, so they wouldn't be able to get rc2..
Title: Re: Users Online Today Mod
Post by: Carceri on December 30, 2005, 04:49:14 AM
There will be a version for RC2 as soon as I can get my hands on it :)
Title: Re: Users Online Today Mod
Post by: diegolyanky on December 31, 2005, 04:06:47 PM
It's working fine ... I instralled and modified files ...

But, :

How can I do to see the members what was online today in ALPHABETICALLY ORDER  ? It's that possible ?

I don't like to view in time logged order ...

Thanks and happy 2006  :D
Title: Re: Users Online Today Mod
Post by: Carceri on December 31, 2005, 11:03:01 PM
It's not possible to get them in alphabetically order with this mod, sorry.
Title: Re: Users Online Today Mod
Post by: SpyDie on January 02, 2006, 09:21:08 AM
Great mod!

I'm getting this quite alot in the forum error logs...

8: Undefined index: uot_yesterday
File: /home/landzdow/public_html/Sources/BoardIndex.php
Line: 366

Using RC2.

Line 366:

Quote$yesterday = $userday == $loginday ? '' : $txt['uot_yesterday'];

TIA
Title: Re: Users Online Today Mod
Post by: Carceri on January 02, 2006, 11:31:18 AM
It should be defined in "Modifications.english.php"
Title: Re: Users Online Today Mod
Post by: badja on January 03, 2006, 07:20:08 PM
HI all..
I am Downloaded this mod.
I have installed SMF 1.0.5

How can I Install This Mod?
Please Reply someone, How I can install it.. Step By Step..
I am an Newbie :S
Title: Re: Users Online Today Mod
Post by: Skipdawg on January 04, 2006, 01:49:53 AM
I put it on my test 1.1rc2 board and I love it. Using default theme.  ;)
Great job on this Mod. I now use it on 1.0.5, rc1 and rc2  ;D
Title: Re: Users Online Today Mod
Post by: beemer on January 04, 2006, 08:44:36 AM
Quote from: badja on January 03, 2006, 07:20:08 PM
HI all..
I am Downloaded this mod.
I have installed SMF 1.0.5

How can I Install This Mod?
Please Reply someone, How I can install it.. Step By Step..
I am an Newbie :S

Put the downloaded file in your packages folder, then go to packages in AdminCp and apply mod
Title: Re: Users Online Today Mod
Post by: Webster on January 05, 2006, 09:47:27 AM
My forum runs on 1.0.5 and this does not work, why?

The Paket Manager says installation ends with errors :(
Title: Re: Users Online Today Mod
Post by: SpyDie on January 05, 2006, 09:56:11 AM
Quote from: Webster on January 05, 2006, 09:47:27 AM
My forum runs on 1.0.5 and this does not work, why?

The Paket Manager says installation ends with errors :(

The Mod isn't supported on 1.0.5.
Title: Re: Users Online Today Mod
Post by: Webster on January 05, 2006, 10:26:05 AM
Quote from: SpyDie on January 05, 2006, 09:56:11 AM
Quote from: Webster on January 05, 2006, 09:47:27 AM
My forum runs on 1.0.5 and this does not work, why?

The Paket Manager says installation ends with errors :(

The Mod isn't supported on 1.0.5.

Is there another Who Was Online Mod which supports the 1.0.5?
Title: Re: Users Online Today Mod
Post by: RoarinRow on January 05, 2006, 01:21:58 PM
I got the v.1.0.5 version from this site - http://www.smitalia.net/community/index.php

It's called Online Users Today, instead of Users Online Today.
Title: Re: Users Online Today Mod
Post by: Webster on January 05, 2006, 04:28:52 PM
Quote from: RoarinRow on January 05, 2006, 01:21:58 PM
I got the v.1.0.5 version from this site - http://www.smitalia.net/community/index.php

It's called Online Users Today, instead of Users Online Today.
Thx! Work's fine :)
Title: Re: Users Online Today Mod
Post by: RoarinRow on January 05, 2006, 04:32:37 PM
Quote from: Webster on January 05, 2006, 04:28:52 PM
Quote from: RoarinRow on January 05, 2006, 01:21:58 PM
I got the v.1.0.5 version from this site - http://www.smitalia.net/community/index.php

It's called Online Users Today, instead of Users Online Today.
Thx! Work's fine :)

Welcome!  ;D
Title: Re: Users Online Today Mod
Post by: sistembusy on January 07, 2006, 02:25:31 PM
Quote from: RoarinRow on January 05, 2006, 04:32:37 PM
Quote from: Webster on January 05, 2006, 04:28:52 PM
Quote from: RoarinRow on January 05, 2006, 01:21:58 PM
I got the v.1.0.5 version from this site - http://www.smitalia.net/community/index.php

It's called Online Users Today, instead of Users Online Today.
Thx! Work's fine :)

Welcome!  ;D


Cool  ;D
God bless u all.. It works :)
Title: Re: Users Online Today Mod
Post by: dustrho on January 08, 2006, 06:37:38 PM
I was using this when I had SMF 1.0.5 installed, but due to a recent upgrade to 1.1 RC2 this isn't working anymore.  I later read that all mods should have been uninstalled prior to the upgrade, but I don't think that was CLEARLY communicated since so many people had problems with this last upgrade.  Well, this particular mod does not work anymore.

I am using the custom theme titled Dark Black Default.  I have tried uninstalling this mod and reinstalling it, and it still doesn't work.  The author of this particular theme said that I might have to edit some file or files in the Default theme, but I have no idea which file I'm supposed to be editing.  Any idea as to what needs editing or what I need to do in order to get this working?

If this has been asked before please point me in the right direction (instead of slamming me to the ground).  Thanks in advance!
Title: Re: Users Online Today Mod
Post by: Carceri on January 08, 2006, 08:05:41 PM
Just to make one thing clear, since it appears to cause some confusion: This mod has never been released for 1.0.5 and in fact does not work on 1.0.5. It works on 1.1 RC1 and 1.1 RC2 only.

There is apparently another mod which does more or less the same thing, which does work on 1.0.5. Please don't confuse those two.
Title: Re: Users Online Today Mod
Post by: dustrho on January 08, 2006, 09:11:27 PM
Quote from: Carceri on January 08, 2006, 08:05:41 PM
There is apparently another mod which does more or less the same thing, which does work on 1.0.5. Please don't confuse those two.

So how about telling us what this OTHER one you're referring to is called?  I could swear that the mod I'm referring to as being previously installed in my forum was Users Online Today.
Title: Re: Users Online Today Mod
Post by: RoarinRow on January 08, 2006, 09:24:26 PM
Quote from: dustrho on January 08, 2006, 09:11:27 PM
Quote from: Carceri on January 08, 2006, 08:05:41 PM
There is apparently another mod which does more or less the same thing, which does work on 1.0.5. Please don't confuse those two.

So how about telling us what this OTHER one you're referring to is called?  I could swear that the mod I'm referring to as being previously installed in my forum was Users Online Today.

For v.1.0.5 it is called, Online Users Today.
Title: Re: Users Online Today Mod
Post by: Gargoyle on January 08, 2006, 09:25:19 PM
I am getting an error when Installing on 1.1RC2....

3.     Execute Modification     ./Themes/default/BoardIndex.template.php     Test failed

Any suggestions ? I really like this MOD.. ;D
Title: Re: Users Online Today Mod
Post by: Carceri on January 09, 2006, 11:32:28 AM
Quote from: Gargoyle on January 08, 2006, 09:25:19 PM
I am getting an error when Installing on 1.1RC2....

3.     Execute Modification     ./Themes/default/BoardIndex.template.php     Test failed

Any suggestions ? I really like this MOD.. ;D
Are you using verion 1.3.1? 1.3.0 is for RC1 only?

Have you installed any other mods that modifies BoardIndex.template.php?

Are you sure that BoardIndex.template.php is an unmodified version from SMF 1.1 RC2?
Title: Re: Users Online Today Mod
Post by: Gobo on January 09, 2006, 05:33:24 PM
im getting the same error with install of this mod

i am using 1.1rc2 version of SMF

the mods I have installed are:

-Show Multiple Badges (Aka Stars)   1.0
-Quick Upload   2.1

Any help please?
Title: Re: Users Online Today Mod
Post by: Carceri on January 09, 2006, 06:06:37 PM
My guess is that one of these mods change ./Themes/default/BoardIndex.template.php so my mod no loger applies correctly. I suggest that you add this mod manually. There is another post in the beginning of this thread describing how to do this.
Title: Re: Users Online Today Mod
Post by: Gargoyle on January 09, 2006, 07:46:45 PM
I figured out what my problem was.... My BoardIndex file was modified but it was modified by me... Turns out my FTP program did not upload the SMF1.1RC2 version of the file correctly... Along with a few others...

So long story short the MOD is perfect ... My files were not... ;D
Title: Re: Users Online Today Mod
Post by: MrHeartbreaker on January 11, 2006, 05:05:58 AM
Hi friends
I just upgraded to 1.1 rc2 and want install Users Online Today Mod 1.3.1
After I finished download and applied it. Go the message like this.

Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

1. Execute Modification Users_Online_Today_Mod.xml Modification parse error
2. Execute Modification -                                               Modification parse error

I don't know how to do next.... can u pls help me to find out?
Thanks
Title: Re: Users Online Today Mod
Post by: Furvert on January 11, 2006, 11:46:15 PM
Online Users Today was by Fsan and all his mods were removed :(
It is possible he still has it available directly or via his sites.
That one was written for 1.0.5 and other versions
I had it working on 1.1b3p but lost it upgrading to rc2
It was very similar to this one, I do not know all the differences.

But one thing I may add later is to sort the list of users as this one doesn't do that.
Unless it sorts by last online?
I prefer alpha for this.
Title: Re: Users Online Today Mod
Post by: DemonicInfluence on January 12, 2006, 07:30:06 AM
yes, it sorts by last online
Title: Re: Users Online Today Mod
Post by: Carceri on January 13, 2006, 06:37:29 AM
Quote from: Furvert on January 11, 2006, 11:46:15 PM
But one thing I may add later is to sort the list of users as this one doesn't do that.
Unless it sorts by last online?
I prefer alpha for this.
As said it sorts by last online, and it will continue to do so :)

If you want to sort by username, just find

[$row['lastLogin'] . $row['memberName']]

and replace it with

[strtolower($row['memberName'])]

in BoardIndex.php. It occurs in two places.

In the same file, also change

krsort($context['users_online_today']);
krsort($context['list_users_online_today']);

to

ksort($context['users_online_today']);
ksort($context['list_users_online_today']);

This is just from memory and has not been tested at all.
Title: Re: Users Online Today Mod
Post by: HNHF on January 14, 2006, 02:26:35 AM
Hi There,

I have installed Online uses today mod for the SMF 1.1 RC2.

But i get still some errors.

Martin       Vandaag om 08:12:56

8: Undefined index: users_online
Bestand: f:\easyphp1-8\www\yabbsm\Themes\default\Stats.template.php (eval?)
Regel: 37

Can somebody help me with this...
Title: Re: Users Online Today Mod
Post by: on4ya on January 14, 2006, 03:21:48 AM
Hello Members.

I have installed Online Users Today 1.3.1  on SMF 1.1 RC2 and get alot of errors :

8: Undefined index: uot_user_online_today
Bestand: /home/beon4ya/public_html/vlaamsamateurradioforum/Themes/default/BoardIndex.template.php (main sub template - eval?)
Regel: 416

8: Undefined index: uot_users_online_today_title
Bestand: /home/beon4ya/public_html/vlaamsamateurradioforum/Themes/default/BoardIndex.template.php (main sub template - eval?)
Regel: 409

8: Undefined index: uot_users_online_today_title
Bestand: /home/beon4ya/public_html/vlaamsamateurradioforum/Themes/default/BoardIndex.template.php (main sub template - eval?)
Regel: 406

8: Undefined index: uot_yesterday
Bestand: /home/beon4ya/public_html/vlaamsamateurradioforum/Sources/BoardIndex.php
Regel: 368

Please , can someone help me with this.

Thanks.

Robert  8)
Title: Re: Users Online Today Mod
Post by: tolsta on January 14, 2006, 02:50:55 PM
Have a look at the Modifications.english.php file in the languages directory of the theme you are currently using and ensure it contains the following entries


$txt['uot_users_online_today_title']='Users Seen Today';
$txt['uot_user_online_today']='user seen today';
$txt['uot_users_online_today']='users seen today';
$txt['uot_total_users_online_today']='Users Seen Today';
$txt['uot_yesterday']='Yesterday at ';
Title: Re: Users Online Today Mod
Post by: Furvert on January 14, 2006, 03:56:37 PM
Thanks for the assist, I will see about changing the sort to alpha.
I use the list to check for certain people and its easier that way, the current sort is handy too so I may have to think about adding a switch. :D
Title: Re: Users Online Today Mod
Post by: on4ya on January 16, 2006, 02:11:40 AM
Quote from: tolsta on January 14, 2006, 02:50:55 PM
Have a look at the Modifications.english.php file in the languages directory of the theme you are currently using and ensure it contains the following entries


$txt['uot_users_online_today_title']='Users Seen Today';
$txt['uot_user_online_today']='user seen today';
$txt['uot_users_online_today']='users seen today';
$txt['uot_total_users_online_today']='Users Seen Today';
$txt['uot_yesterday']='Yesterday at ';


Hello Tolsta.

Thanks for the information.

I had to make these changes also in "Modifications.dutch.php"

Now everthing is working fine and no more errors.

Manny thanks.

Robert  8) :)
Title: Re: Users Online Today Mod
Post by: fiver on January 16, 2006, 05:00:40 PM
Thanks Carceri,

I installed on SMF1.1RC2 and it works instantly! Only as admin can I see the time. I tested as a normal member and I can't see the time. That's great. 8)

Its not shown as "Users Online Today" - its shown as "Users Seen Today"?

Does it also record if member browsed the forum as guest but not logged in, based on the ip address?

If not, perhaps it will be clearer if its "Users Logged In Today" or "Members Logged In Today" or just "Logged In Today".

;)
Title: Re: Users Online Today Mod
Post by: Carceri on January 16, 2006, 06:04:16 PM
All users should be able to see the time, unless the specific user has chosen to hide his online status. In that case, only the admin can see the last online time.

For RC2 the text has been renamed to "Users Seen Today". There were simply too many references to users online, so it got confusing. There already is an "Online Today". "Users Logged in Today", might be a good text also. I will consider this for 1.1 final, but please give me your suggestions here.

It does not handle guests, only users that actually log in.
Title: Re: Users Online Today Mod
Post by: fiver on January 16, 2006, 06:49:33 PM
I've changed it to "Logged In Today". :P
See: www.fivearts.net

The advantage is that you don't have to worry about using the wrong word "user" or "users".

Also, instead of

Logged In Today
[icon]  3 logged in today:
member1, member2, member3

... better to use

Logged In Today
[icon] Total: 3
member1, member2, member3

... or

Logged In Today: 3
[icon] member1, member2, member3

What do you think?

;)
Title: Re: Users Online Today Mod
Post by: fiver on January 16, 2006, 07:09:24 PM
Even less load if put it under

Users Online
0 Guests, 1 User
Users active in past 15 minutes:
member2
----------------- end tr ----------------
online.gifLogged In Today: 3
member1, member2, member3
----------------- end tr ----------------
Most Online Today: ... Most Online Ever: ...
----------------- end tr ----------------

Which means the 'td' for online.gif icon has to be changed from rowspan=2 to rowspan=3.

Notice the gradual increment in statistic:
- Past 15 minutes
- Logged In Today
- Most Online Today
- Most Online Ever

;)
Title: Re: Users Online Today Mod
Post by: Carceri on January 17, 2006, 02:19:23 AM
Actually I think I like the current layout better, but I will rethink this when 1.1 final is out :)
Title: Re: Users Online Today Mod
Post by: fiver on January 20, 2006, 12:21:55 PM
Hi Carceri,

I just found out that 1.1RC2's Most Online Today is only a highest recorded block of "Users active in past 15 minutes".
See 1.1.RC2 Most Online Today (http://www.simplemachines.org/community/index.php?topic=66800.0)

So I think your MOD has the right name for Users Online Today. thumbsup!

Is it possible to include number of Guests? Like this...

Users Online Today: 40 guests, 3 members
member1, member2, member3

I know this actually means out of the 40 guests, 10 of them has login. So better something like this...

Users Online Today: 40 guests, 3 had logged in.
member1, member2, member3

:)
Title: Re: Users Online Today Mod
Post by: Carceri on January 21, 2006, 06:16:16 AM
Quote from: fivearts on January 20, 2006, 12:21:55 PM
Is it possible to include number of Guests? Like this...

Not really, since there is no way to uniquely identify a quest. I mean I can't differentiate between a guest that visits the forum several times a day, and several guest visiting once a day.

One might use the IP addresses of the guests for an approximation, though.
Title: Re: Users Online Today Mod
Post by: kai920 on January 21, 2006, 06:21:47 AM
Hi,

Downloaded 1.3.1 from http://mods.simplemachines.org/index.php?mod=217

but the .zip seems to be corrupted? Can anyone confirm?
Title: Re: Users Online Today Mod
Post by: diegolyanky on January 21, 2006, 11:09:31 AM
Is not corrupted, try with Windows Extract or WinRar ...

Regards  ;)
Title: Re: Users Online Today Mod
Post by: kai920 on January 21, 2006, 11:40:22 AM
Quote from: diegolyanky on January 21, 2006, 11:09:31 AM
Is not corrupted, try with Windows Extract or WinRar ...

Regards  ;)

I'm using Winrar! and get "Unexepcted end of archive"  ::)
Title: Re: Users Online Today Mod
Post by: fiver on January 21, 2006, 12:25:08 PM
Sounds like download was terminated before it's 100% complete. Try redownload again?
Title: Re: Users Online Today Mod
Post by: fiver on January 21, 2006, 12:28:05 PM
Quote from: Carceri on January 21, 2006, 06:16:16 AM
Quote from: fivearts on January 20, 2006, 12:21:55 PM
Is it possible to include number of Guests? Like this...

Not really, since there is no way to uniquely identify a quest. I mean I can't differentiate between a guest that visits the forum several times a day, and several guest visiting once a day.

One might use the IP addresses of the guests for an approximation, though.

Thanks for the mod as it is. Hope someday that will be possible.  :D
Title: Re: Users Online Today Mod
Post by: diegolyanky on January 21, 2006, 01:31:17 PM
Quote from: kai920 on January 21, 2006, 11:40:22 AM
I'm using Winrar! and get "Unexepcted end of archive"  ::)

Download it again ... Is working fine.

Good Luck ...
Title: Re: Users Online Today Mod
Post by: mistermad on January 22, 2006, 10:30:22 AM
Good mod but I've been looking for something similar to what I had on my old phpBB board with the last vist mod installed, but couldn't find anything that matches that.

Then I stumbled upon this site when searching the web for it : http://www.puntingzone.com/forum/index.php and that's more or less what I'm looking for. Strangely I can't seem to find that on any other smf forum.

However I have no idea what mod that site uses or where I could find it? Any idea?

Or is there a way to develop the users online mod towards this?

Thanks for your help.

Title: Re: Users Online Today Mod
Post by: kai920 on January 22, 2006, 11:29:43 AM
That's an ... interesting site. :D  I see their implementation of the Today mod and wonder what it is as well.

What really interests me is their review directory script pzsearchform.php... has anyone heard of this or did they custom write it?
Title: Re: Users Online Today Mod
Post by: Carceri on January 22, 2006, 11:50:49 AM
Quote from: mistermad on January 22, 2006, 10:30:22 AM
Or is there a way to develop the users online mod towards this?

Sure there is. All it requires is someone with a little time to do it. It shouldn't be too difficult.
Title: Re: Users Online Today Mod
Post by: jerm on January 22, 2006, 03:19:44 PM
i know this has been discussed already, but i find it a tad annoying now.
The "Show others your online status?" is useless with this mod installed. A user can still see you browsing the forum. I know you will probably say that a user can just go into your profile and see when you last loged on, but thats not really the point. If i want to be hidden on my board, yet still view sections of the board that are restricted. I have to log in, and once i log in, it shows on the "users seen  today" list. Not showing the time doesn't really do anything, cause it updates as soon as you click a link and you move closer to the front of the list.

I enjoy the mod, and like seeing which users have been online during the day, but i can't hide from my users...
Title: Re: Users Online Today Mod
Post by: Carceri on January 23, 2006, 05:58:47 AM
I might change that in the future. For now, you can fix it yourself by adding the line


if (!allowedTo('moderate_forum') && empty($row['showOnline'])) continue;


Just below these lines


$context['users_online_today'] = array();
$context['list_users_online_today'] = array();

while ($row = mysql_fetch_assoc($result))
{


I still don't understand your comment "I know you will probably say that a user can just go into your profile and see when you last loged on, but thats not really the point".

What is the point then? You say you want to hide from your users, but you can't do that if they can just go into your profile and see when you were last online.
Title: Re: Users Online Today Mod
Post by: flapper on January 23, 2006, 06:08:58 AM
Cant seem to find the answer, how do you change the mod so that members are in alphabetical order, can be a pain with lots of members vising the site, to try and find out if they have visited the site today.

Thanks in advance.

:)
Title: Re: Users Online Today Mod
Post by: Prasad007 on January 23, 2006, 06:24:03 AM
Thanks for this mod! its gr8!!! :)
too bad it wont work on my non-default theme :(
Title: Re: Users Online Today Mod
Post by: Carceri on January 23, 2006, 06:27:04 AM
Quote from: flapper on January 23, 2006, 06:08:58 AM
Cant seem to find the answer, how do you change the mod so that members are in alphabetical order, can be a pain with lots of members vising the site, to try and find out if they have visited the site today.

Thanks in advance.

:)

http://www.simplemachines.org/community/index.php?topic=55513.msg452667#msg452667
Title: Re: Users Online Today Mod
Post by: flapper on January 23, 2006, 06:43:45 AM
Thanks, great mod
Title: Re: Users Online Today Mod
Post by: flapper on January 23, 2006, 11:47:18 AM
Ok Ive got the members in alphabetical order but half way it starts at a again. How do a put the members in alphabetical order from a to z without it doing it twice. Image unclosed
Title: Re: Users Online Today Mod
Post by: beemer on January 23, 2006, 01:48:29 PM
Quote from: Prasad007 on January 23, 2006, 06:24:03 AM

too bad it wont work on my non-default theme :(


Why not?
Title: Re: Users Online Today Mod
Post by: Carceri on January 23, 2006, 04:24:50 PM
Quote from: flapper on January 23, 2006, 11:47:18 AM
Ok Ive got the members in alphabetical order but half way it starts at a again. How do a put the members in alphabetical order from a to z without it doing it twice. Image unclosed
Don't know. As I said the code was untested. Apparently it doesn't work :)

Edit: Oh I just took a look at the picture :) It is working. When sorting alphabetically, capital letters come before lowercase letters. I have updated the previous post to not take uppercase letters into account.
Title: Re: Users Online Today Mod
Post by: kai920 on January 23, 2006, 11:42:26 PM
Installed 1.4.0 beta1... Just noticed one issue - I have a user logged in, his username is "D", and does NOT show up under "Users logged in today".

http://www.kaitech.hk/component/option,com_smf/Itemid,71/

edit#2 - just noticed another user not showing up under "Users logged in today"...  am I doing something wrong?
Title: Re: Users Online Today Mod
Post by: Carceri on January 24, 2006, 04:27:56 AM
Quote from: kai920 on January 23, 2006, 11:42:26 PM
Installed 1.4.0 beta1... Just noticed one issue - I have a user logged in, his username is "D", and does NOT show up under "Users logged in today".

http://www.kaitech.hk/component/option,com_smf/Itemid,71/

edit#2 - just noticed another user not showing up under "Users logged in today"...  am I doing something wrong?
Have the users not showing up chosen to hide their online status? If yes, are you the administrator and still can't see them when you are logged in?
Title: Re: Users Online Today Mod
Post by: kai920 on January 24, 2006, 04:34:13 AM
Found a 3rd user - just checked all 3 users profiles:

Show others your online status? was checked for all 3...

And I am the administrator - I saw them online under SMF's default "Who's Online" list, but their names do not appear in "Users Logged in Today". (1.4.0 beta 1)

edit : if you go to my site now, even as a guest you can see user "ninjaw" logged in, but he does not show up as having logged in TODAY.
Title: Re: Users Online Today Mod
Post by: kai920 on January 24, 2006, 05:01:10 AM
Hmm, strange - "ninjaw" is now shown as having logged in today, but I am still "missing" two users...
Title: Re: Users Online Today Mod
Post by: Carceri on January 24, 2006, 05:04:01 AM
Quote from: kai920 on January 24, 2006, 04:34:13 AM
And I am the administrator - I saw them online under SMF's default "Who's Online" list, but their names do not appear in "Users Logged in Today". (1.4.0 beta 1)
Can you confirm that this behaviour does not exist with version 1.3.1? Since a user suddenly appear, one might suspect something related to the time the user was logged in, but that code has not changed at all from 1.3.1...
Title: Re: Users Online Today Mod
Post by: kai920 on January 24, 2006, 05:12:32 AM
Quote from: Carceri on January 24, 2006, 05:04:01 AM
Quote from: kai920 on January 24, 2006, 04:34:13 AM
And I am the administrator - I saw them online under SMF's default "Who's Online" list, but their names do not appear in "Users Logged in Today". (1.4.0 beta 1)
Can you confirm that this behaviour does not exist with version 1.3.1? Since a user suddenly appear, one might suspect something related to the time the user was logged in, but that code has not changed at all from 1.3.1...

Sure, let me uninstall 1.4.0 and put back 1.3.1 and report back later...
Title: Re: Users Online Today Mod
Post by: Carceri on January 24, 2006, 05:19:10 AM
I just checked your member "D" and on his profile he is listed as being last active:

Yesterday at 08:26:10 PM

This time is what SMF stores in the database, and this is the time I read from the database to determine if a user was logged in today or not. If that time is incorrect, then clearly my mod does not work. If he was actually online earlier today, then I think you should report this as a bug in SMF
Title: Re: Users Online Today Mod
Post by: kai920 on January 24, 2006, 12:41:34 PM
You're absolutely right, I had no idea those times were reported wrong!

I suspect this may have something to do with the Joomla - SMF bridge?
Title: Re: Users Online Today Mod
Post by: Furvert on January 24, 2006, 05:54:45 PM
I decided to keep the list sorted by last active, it is quite useful. I may decide to add a selector for alpha or last active eventually.

I had already modified memberlist to add Last Login for those times I want to look up who logged in today. I also added age to memberlist since I have some content that needs it. So I decided I did not need the alpha sort so badly at the moment.

I wonder, is there a reasonable way to track how many bots have been on?
Or guests?
Likely IP is only way to count uniques but AOL will throw that off since it changes often. A user may have half a dozen IPs while loged in! Maybe worse.
Just curious, if IP is logged for guests then a Mod could do a lookup to seperate Users from Guests etc and show a count for Online Today.
Title: Re: Users Online Today Mod
Post by: MacGig on January 28, 2006, 09:52:37 AM
didnt work for me. I using the saf blue theme.
Title: Re: Users Online Today Mod
Post by: beemer on January 28, 2006, 04:10:55 PM
Quote from: macgeek on January 28, 2006, 09:52:37 AM
didnt work for me. I using the saf blue theme.

Did you make the manual changes to your saf blue theme?
Title: Re: Users Online Today Mod
Post by: desistyle on January 28, 2006, 07:39:14 PM
hi i just upgraded from smf 1.05 to smf 1.06 and the mod is not working can u guise please help
Title: Re: Users Online Today Mod
Post by: Carceri on January 28, 2006, 08:49:09 PM
The mod does not support 1.0.5 and will not support 1.0.6 either. It will support 1.1 final when it is available.
Title: Re: Users Online Today Mod
Post by: desistyle on January 28, 2006, 09:55:25 PM
well it used to work with smf 1.05 it used to show like how many users are online till now is it possible to get something like that for 1.06 please please
Title: Re: Users Online Today Mod
Post by: Carceri on January 29, 2006, 04:46:40 PM
Quote from: desistyle on January 28, 2006, 09:55:25 PM
well it used to work with smf 1.05

If it worked for 1.0.5 it was pure luck, as I have never tested it on 1.0.5. However, judging from some comments here, this mod does not work on 1.0.5. It will support 1.1 if you can wait until then :)
Title: Re: Users Online Today Mod
Post by: desistyle on January 29, 2006, 05:47:21 PM
ok sir will wait for your release thanks
Title: Re: Users Online Today Mod
Post by: diegolyanky on January 29, 2006, 08:20:01 PM
I don't like what the guests can see the users what was online today ... Be cause Google Spider is a GUEST and all members of my forum is appearing on google searcher  :o

The guests would not have to be able to see who was online.

What can I do ?
Title: Re: Users Online Today Mod
Post by: Carceri on January 30, 2006, 02:15:17 AM
Quote from: diegolyanky on January 29, 2006, 08:20:01 PM
The guests would not have to be able to see who was online.

What can I do ?

You can

1. Uninstall this mod
2. Modify it so guests cannot see who has been online today :)

But if your users are actually posting on your forum and guests can read those posts, Google will just pick up their names from there.

I will consider changing this behaviour in the next version, as I think that guests have no use for that information. If they are not part of the forum, they don't need to know who from the forum logged in today.
Title: Re: Users Online Today Mod
Post by: diegolyanky on January 30, 2006, 08:24:20 AM
Quote from: Carceri on January 30, 2006, 02:15:17 AM

You can

1. Uninstall this mod
2. Modify it so guests cannot see who has been online today :)


1° Uninstal this mod = NO ... Be cause I love this mod.
I just don't like what guests can see my users ( for competitors )
And Google Spider is registered as user, then Google YES can see all my forum.

2° I like to modify this mod, but I don't know how to do it  :(

Thanks for your reply .... And good job ( I repeat: " I love your mod " )

Title: Re: Users Online Today Mod
Post by: Owain on January 30, 2006, 09:26:15 AM
Installed the mod and it works a dream! Great Work!

One question, what file do I need to modify if I want to change the wording from "Users Seen Today" to something else...thanks.

Title: Re: Users Online Today Mod
Post by: Carceri on January 30, 2006, 02:00:32 PM
Quote from: Owain on January 30, 2006, 09:26:15 AM
One question, what file do I need to modify if I want to change the wording from "Users Seen Today" to something else...thanks.

Then you should edit 'Modifications.english.php'
Title: Re: Users Online Today Mod
Post by: Carceri on January 30, 2006, 02:42:43 PM
Quote from: diegolyanky on January 30, 2006, 08:24:20 AM
2° I like to modify this mod, but I don't know how to do it  :(
Try the 1.4.0 Beta 2 package I have just uploaded...
Title: Re: Users Online Today Mod
Post by: jerm on January 30, 2006, 11:43:33 PM
excellent. love the updates Carceri.
installed with no errors (1.4.0 beta 2)
Title: Re: Users Online Today Mod
Post by: ew1dm on January 31, 2006, 01:33:56 PM
... about this mod for SMF 1.05

Someone, whose nickname is "Fasan" has done (changed) this mod for SMF 1.05.
It worked perfect for 1.05. But it does not work with 1.06
Is there anyone (may be that "Fasan") who can do it again?
to good get accustomed quickly  :D
Title: Re: Users Online Today Mod
Post by: Carceri on January 31, 2006, 02:27:19 PM
Quote from: ew1dm on January 31, 2006, 01:33:56 PM
Someone, whose nickname is "Fasan" has done (changed) this mod for SMF 1.05.

Fasan did his own mod some time before I did this mod, but for reasons he has explained elsewhere in this thread, he removed it from these pages. I used a similar mod for phpBB and when searching for one for SMF I didn't find any and made my own. Since I was using 1.1 RC1 at that time, I never supported the 1.0.x versions and never will.

Hope this clears up some confusion.
Title: Re: Users Online Today Mod
Post by: desistyle on January 31, 2006, 02:35:43 PM
well i got a mod from this other site its workin with my smf 1.06 if u guise want i can post the link here and i think this is from fasan
Title: Re: Users Online Today Mod
Post by: fiver on February 01, 2006, 11:22:46 AM
Hi Carceri,

I have uninstalled the previous version and installed the new 1.4.0 Beta 2. It is perfect for members' privacy. Thanks.

One problem is after installation, my category table seems to have gone wrong. Please take a look.
http://www.fivearts.net/index.php#6

Any file that I can look to correct the error? Thanks.

* I also have "Googlebot & Spiders Mod" installed awhile ago.

Title: Re: Users Online Today Mod
Post by: Carceri on February 01, 2006, 03:55:09 PM
Quote from: fivearts on February 01, 2006, 11:22:46 AM
One problem is after installation, my category table seems to have gone wrong. Please take a look.
http://www.fivearts.net/index.php#6

Any file that I can look to correct the error? Thanks.

* I also have "Googlebot & Spiders Mod" installed awhile ago.

Yes, that looks strange. Don't know why, but I can't see how my mod touches this part. Take a look at BoardIndex.template.php. Perhaps uninstall my mod to see if the problem goes away. If yes, compare this file to itself before and after my mod is installed. See if it touches anything related to this.
Title: Re: Users Online Today Mod
Post by: fiver on February 02, 2006, 09:56:25 AM
Hi Carceri,

The problem seems to be the <acronym> tag filled into the subject and making it too long. As it happened the same time when I updated your mod, I mistaken it as being caused by it.  :P My apology. Thanks again for the fab Mod.  :D
Title: Re: Users Online Today Mod
Post by: fiver on February 11, 2006, 12:22:06 AM
Hi Carceri,

Just a note that when the homepage is loading, the alt text for the online.gif has a very long description:
alt="Users Online Users Logged In Today"

Which file should I find to change it to alt="Users Logged In Today"?

Thanks.  :D

Title: Re: Users Online Today Mod
Post by: Carceri on February 11, 2006, 05:57:14 AM
Quote from: fivearts on February 11, 2006, 12:22:06 AM
Hi Carceri,

Just a note that when the homepage is loading, the alt text for the online.gif has a very long description:
alt="Users Online Users Logged In Today"

Which file should I find to change it to alt="Users Logged In Today"?

You should change BoardIndex.template.php. I will also fix this in the next version.
Title: Re: Users Online Today Mod
Post by: Bigguy on February 13, 2006, 09:29:25 PM
How would I get the "Users Online Today Mod" to show up on the SMFOne_blue theme ??? WHat files need to be moddified ???
Title: Re: Users Online Today Mod
Post by: DemonicInfluence on February 16, 2006, 01:20:18 PM
boardindex.template.php
Title: Re: Users Online Today Mod
Post by: Alan S on February 16, 2006, 04:24:09 PM
it dosent work for me at all??
Title: Re: Users Online Today Mod
Post by: Bigguy on February 16, 2006, 05:01:45 PM
K, thanks DemonicInfluence

Quote from: DemonicInfluence on February 16, 2006, 01:20:18 PM
boardindex.template.php
Title: Re: Users Online Today Mod
Post by: Carceri on February 17, 2006, 03:12:18 AM
Quote from: alan s on February 16, 2006, 04:24:09 PM
it dosent work for me at all??
Let me guess. You are not using the default theme?
Title: Re: Users Online Today Mod
Post by: perplexed on February 19, 2006, 11:09:11 AM
I love this mod, it makes the forum look so much healthier.

Usually all we see is the 'most online' which can be a little depressing, but now we see that there are a lot more people on the forum during a day, and its really great to know that many people are actually logging in every day.

Thanks!

I love this mod :)
Title: Re: Users Online Today Mod
Post by: p9939068 on February 20, 2006, 03:36:43 PM
Hi, i just installed it, but i dont see anything new on the Info Center. Yes i've switched to the default skin, but still it doesnt show. Is there some admin settings to this mod..?

by the way, i'm using 1.4.0 beta with rc2 :) this is my site: http://www.simdragons.com/smf/index.php

-edit- i checked through the .xml in the mod, and realised nothing in the "add" tag was added...none of the files listed in Users_Online_Today_Mod.xml was modified at all...weird

-edit2- the above prompted me to chmod all the listed files to 777, and voila, it works :P hope this will help any future users..
Title: Re: Users Online Today Mod
Post by: mcalan2001 on March 01, 2006, 08:28:13 AM
I can't get this mod to work.

It's very useful and I put it on every board I create.
However after upgrading a couple of boards from 1.1.b3 to 1.1.RC2 and re-installing the package, it goes through the motions with no error messages, but seems to have no effect.

I've looked through this topic and tried the suggestions, but with no luck.

I am using the default theme and have done a chmod 777 to all effected files.
Title: Re: Users Online Today Mod
Post by: Carceri on March 03, 2006, 03:23:40 AM
Quote from: mcalan2001 on March 01, 2006, 08:28:13 AM
I am using the default theme and have done a chmod 777 to all effected files.
Can you check the affected files, and see if any change has occurred to them? E.g. by comparing to the original files in SMF RC2.
Title: Re: Users Online Today Mod
Post by: tzd on March 03, 2006, 06:05:05 AM
What to edit in classic template to make this work?
Title: Re: Users Online Today Mod
Post by: cyberstang5.0 on March 07, 2006, 01:36:19 PM
I installed this mod on SMF 1.1rc2 and it works wonderful  :D

My question is, what can I do to restrict normal users from seeing this mod but only allow admins to see it?  Is there a way to incorporate permission to this mod?
Title: Re: Users Online Today Mod
Post by: Bigguy on March 07, 2006, 08:57:50 PM
No I dont believe there are permissions for this mod but there should be away to do that by modifying the code somehow. Its a good idea though. :)
Title: Re: Users Online Today Mod
Post by: cyberstang5.0 on March 07, 2006, 09:34:45 PM
Quote from: Bigguy on March 07, 2006, 08:57:50 PM
No I dont believe there are permissions for this mod but there should be away to do that by modifying the code somehow. Its a good idea though. :)
Alright, is there anyone brave enough to write the code for this?  I am not a programmer by any means...
Title: Re: Users Online Today Mod
Post by: Bigguy on March 07, 2006, 09:39:08 PM
I would help but I dont know enough about it yet, sorry.
Title: Re: Users Online Today Mod
Post by: DemonicInfluence on March 08, 2006, 11:37:39 AM
just make it so that
if($context['user']['is_admin'])
{


is before the mod stuff in the boardindex.template.php of every theme.

Then at the end put
}

Should work to only allow admins to see..
Title: Re: Users Online Today Mod
Post by: Red on March 10, 2006, 07:43:03 AM
great mod...

any way to change the "online users" list so it would show the list in alphabetical order???
Title: Re: Users Online Today Mod
Post by: beemer on March 10, 2006, 01:51:21 PM
Quote from: Red on March 10, 2006, 07:43:03 AM
great mod...

any way to change the "online users" list so it would show the list in alphabetical order???


I am sure this has allready been covered in this post
Title: Re: Users Online Today Mod
Post by: cbrchris on April 04, 2006, 05:43:39 PM
Great mod!

It works with no problem under the defualt theme.  I am trying to modify the Helios Multi theme for it to work.

I know I have to modify the file: BoardIndex.template.php

I have attempted to insert the required code
// Users online today
echo '
<tr>
<td class="titlebg" colspan="2">', $txt['uot_users_online_today_title'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], ' ', $txt['uot_users_online_today_title'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';

echo '
<div class="smalltext">';

echo $context['num_users_online_today'], ' ', $context['num_users_online_today'] == 1 ? $txt['uot_user_online_today'] : $txt['uot_users_online_today'];

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']))
echo ':<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';


right before the line:
Most users online ever: <b>'.$modSettings['mostOnline'].'</b> ( '.timeformat($modSettings['mostDate']).'

when I attempt to save the updated file within the admin panel to modify the BoardIndex.template.php file, I get this error:   

The file you tried to save generated the following error:
Parse error: parse error, unexpected '>' in BoardIndex.template.php on line 445


line 445 of this file after the modification is:
<td class="windowbg" width="20" valign="middle" align="center">


The board is currently SMF 1.1 RC2.  Any assistance will be greatly appreciated. I don't know enough to determine what the problem is.

Thanks!
Title: Re: Users Online Today Mod
Post by: beemer on April 04, 2006, 06:30:34 PM
You dont want to put it there

find

                        Most users online today: '.$modSettings['mostOnlineToday'].' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        Most users online ever: <b>'.$modSettings['mostOnline'].'</b> ( '.timeformat($modSettings['mostDate']).'  )

                        </span>


                </td>
        </tr>';


And replace everything below with

// Users online today
echo '
<tr>
<td class="catbg" colspan="2">', $txt['uot_users_online_today_title'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], ' ', $txt['uot_users_online_today_title'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';

echo '
<div class="smalltext">';

echo $context['num_users_online_today'], ' ', $context['num_users_online_today'] == 1 ? $txt['uot_user_online_today'] : $txt['uot_users_online_today'];

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']))
echo ':<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';

// If they are logged in, but SP1 style information is off... show a personal message bar.
if ($context['user']['is_logged'] && !$settings['show_sp1_info'])
{
echo '
<tr>
<td class="catbg" colspan="2">', $txt[159], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
', $context['allow_pm'] ? '<a href="' . $scripturl . '?action=pm">' : '', '<img src="', $settings['images_url'], '/message_sm.gif" alt="', $txt[159], '" border="0" />', $context['allow_pm'] ? '</a>' : '', '
</td>
<td class="windowbg2" valign="top">
<b><a href="', $scripturl, '?action=pm">', $txt[159], '</a></b>
<div class="smalltext">
', $txt[660], ' ', $context['user']['messages'], ' ', $context['user']['messages'] == 1 ? $txt[471] : $txt[153], '.... ', $txt[661], ' <a href="', $scripturl, '?action=pm">', $txt[662], '</a> ', $txt[663], '
</div>
</td>
</tr>';
}

// Show the login bar. (it's only true if they are logged out anyway.)
if ($context['show_login_bar'])
{
echo '
<tr>
<td class="catbg" colspan="2">', $txt[34], ' <a href="', $scripturl, '?action=reminder" class="smalltext">(' . $txt[315] . ')</a></td>
</tr>
<tr>
<td class="windowbg" width="20" align="center">
<a href="', $scripturl, '?action=login">
<img src="', $settings['images_url'], '/icons/login.gif" alt="', $txt[34], '" border="0" /></a>
</td>
<td class="windowbg2" valign="middle">
<form action="', $scripturl, '?action=login2" method="post" style="margin: 0;">
<table border="0" cellpadding="2" cellspacing="0" width="100%"><tr>
<td valign="middle" align="left">
<label for="user"><b>', $txt[35], ':</b><br /><input type="text" name="user" id="user" size="15" /></label>
</td>
<td valign="middle" align="left">
<label for="passwrd"><b>', $txt[36], ':</b><br /><input type="password" name="passwrd" id="passwrd" size="15" /></label>
</td>
<td valign="middle" align="left">
<label for="cookielength"><b>', $txt[497], ':</b><br /><input type="text" name="cookielength" id="cookielength" size="4" maxlength="4" value="', $modSettings['cookieTime'], '" /></label>
</td>
<td valign="middle" align="left">
<label for="cookieneverexp"><b>', $txt[508], ':</b><br /><input type="checkbox" name="cookieneverexp" id="cookieneverexp" checked="checked" class="check" /></label>
</td>
<td valign="middle" align="left">
<input type="submit" value="', $txt[34], '" />
</td>
</tr></table>
</form>
</td>
</tr>';
}


        echo '
</table></div>';
echo $botbox.'</div>';

}

?>
Title: Re: Users Online Today Mod
Post by: nebulous on April 05, 2006, 09:51:10 AM
great mod, thanks Carceri.

mouse over username showing last login time is not working in Opera, anyone facing the same problem?
work great on firefox though.

edit: sorry my fault, I disabled opera's "show tooltip"
Title: Re: Users Online Today Mod
Post by: cbrchris on April 05, 2006, 10:43:48 AM
Thanks beemer! That worked great.
Title: Re: Users Online Today Mod
Post by: beemer on April 05, 2006, 12:21:22 PM
Quote from: cbrchris on April 05, 2006, 10:43:48 AM
Thanks beemer! That worked great.

Glad to hear it  ;)
Title: Re: Users Online Today Mod
Post by: kcs on April 18, 2006, 10:14:37 PM
hi all,
i noticed that my MOST USERS stats is not updated... even after i "RECOUNT" under Forum maintenance...

any idea what went wrong?

thanks!
Title: Re: Users Online Today Mod
Post by: Backlash on April 19, 2006, 06:46:53 PM
i had a problem, and don't know how to fix it.


8: Undefined index: uot_hidden
Datei: /home/www/web23/html/board/Themes/default/BoardIndex.template.php (eval?)
Zeile: 419

8: Undefined index: uot_visible
Datei: /home/www/web23/html/board/Themes/default/BoardIndex.template.php (eval?)
Zeile: 419


8: Undefined index: uot_users_online_today_title
Datei: /home/www/web23/html/board/Themes/default/BoardIndex.template.php (eval?)
Zeile: 410


is there somebody who is able to help me??
Title: Re: Users Online Today Mod
Post by: perplexed on April 20, 2006, 08:13:45 AM
Quote from: kcs on April 18, 2006, 10:14:37 PM
hi all,
i noticed that my MOST USERS stats is not updated... even after i "RECOUNT" under Forum maintenance...

any idea what went wrong?

thanks!


I could be wrong but I thought that this mod shows the number of members online in a 24hour period, whereas your most users online is most members online at the one time?

So you could have 35 people online in a 24 hour period but only 10 of them on at the same time, so the most online would be 10 not 35

If that's wrong, someone let me know, but that was my understanding :)
Title: Re: Users Online Today Mod
Post by: perplexed on April 20, 2006, 08:18:00 AM
Quote from: Backlash on April 19, 2006, 06:46:53 PM
i had a problem, and don't know how to fix it.


8: Undefined index: uot_hidden
Datei: /home/www/web23/html/board/Themes/default/BoardIndex.template.php (eval?)
Zeile: 419

8: Undefined index: uot_visible
Datei: /home/www/web23/html/board/Themes/default/BoardIndex.template.php (eval?)
Zeile: 419


8: Undefined index: uot_users_online_today_title
Datei: /home/www/web23/html/board/Themes/default/BoardIndex.template.php (eval?)
Zeile: 410


is there somebody who is able to help me??

there is something about it here in this thread http://www.simplemachines.org/community/index.php?topic=36793.msg520999
Title: Re: Users Online Today Mod
Post by: kcs on April 21, 2006, 12:26:11 AM
hi,
agree with you on the "bottom" stats portion, but for the "top" portion, there's also a "Users seen today" value... and this value doesnt tally with the users seen on the main index page....

any idea what went wrong?

another query is that, how can i go about "adding" the MOST Seen online Users" on the bottom portion of the stats?

thanks!


Quote from: perplexed on April 20, 2006, 08:13:45 AM
I could be wrong but I thought that this mod shows the number of members online in a 24hour period, whereas your most users online is most members online at the one time?

So you could have 35 people online in a 24 hour period but only 10 of them on at the same time, so the most online would be 10 not 35

If that's wrong, someone let me know, but that was my understanding :)


Quote from: kcs on April 18, 2006, 10:14:37 PM
hi all,
i noticed that my MOST USERS stats is not updated... even after i "RECOUNT" under Forum maintenance...

any idea what went wrong?

thanks!


Title: Re: Users Online Today Mod
Post by: top_secret on April 23, 2006, 02:08:28 PM
hi people

i´m having problems with the installation...

apears to me this error:

-------------------------------------------------------------------------
391:                   </div>
392:                </td>
393:             </tr>
394:             <tr>
395:                <td class="windowbg2" width="100%">
396:                   <span class="middletext">
397:                      ', $txt['most_online_today'], ': <b>', $modSettings['mostOnlineToday'], '</b>.
398:                      // Users online today
399:    echo '

400:    <tr>

401:       <td class="titlebg" colspan="2">', $txt['uot_users_online_today_title'], '</td>
402:    </tr><tr>
403:       <td class="windowbg" width="20" valign="middle" align="center">
404:          <img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], ' ', $txt['uot_users_online_today_title'], '" border="0" />

----------------------------------------------------------------------------------------

Parse error: parse error, unexpected '>' in .../Themes/default/BoardIndex.template.php on line 400


please help me!!!

im using the DEFAULT THEME and the 1.1 RC2
Title: Re: Users Online Today Mod
Post by: DemonicInfluence on April 23, 2006, 02:38:58 PM
Quote from: top_secret on April 23, 2006, 02:08:28 PM
hi people

i´m having problems with the installation...

apears to me this error:

-------------------------------------------------------------------------
391:                   </div>
392:                </td>
393:             </tr>
394:             <tr>
395:                <td class="windowbg2" width="100%">
396:                   <span class="middletext">
397:                      ', $txt['most_online_today'], ': <b>', $modSettings['mostOnlineToday'], '</b>.
398:                      // Users online today
399:    echo '

400:    <tr>

401:       <td class="titlebg" colspan="2">', $txt['uot_users_online_today_title'], '</td>
402:    </tr><tr>
403:       <td class="windowbg" width="20" valign="middle" align="center">
404:          <img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], ' ', $txt['uot_users_online_today_title'], '" border="0" />

----------------------------------------------------------------------------------------

Parse error: parse error, unexpected '>' in .../Themes/default/BoardIndex.template.php on line 400


please help me!!!

im using the DEFAULT THEME and the 1.1 RC2



Replace this:;


</div>
</td>
</tr>
<tr>
<td class="windowbg2" width="100%">
<span class="middletext">
', $txt['most_online_today'], ': <b>', $modSettings['mostOnlineToday'], '</b>.
// Users online today
echo '

<tr>

<td class="titlebg" colspan="2">', $txt['uot_users_online_today_title'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], ' ', $txt['uot_users_online_today_title'], '" border="0" />


with:

</div>
</td>
</tr>
<tr>
<td class="windowbg2" width="100%">
<span class="middletext">
', $txt['most_online_today'], ': <b>', $modSettings['mostOnlineToday'], '</b>.';
// Users online today
echo '

<tr>

<td class="titlebg" colspan="2">', $txt['uot_users_online_today_title'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], ' ', $txt['uot_users_online_today_title'], '" border="0" />

Title: Re: Users Online Today Mod
Post by: top_secret on April 23, 2006, 03:11:47 PM
now is this:

Quote419:    if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
420:       echo '<br />', implode(', ', $context['list_users_online_today']);
421:
422:    echo '
423:             <br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
424:             <a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
425:          </div>
426:       </td>
427:    </tr>';

428:                      ', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ')

429:                   </span>
430:                </td>
431:             </tr>';

Parse error: parse error, unexpected T_STRING in .../Themes/default/BoardIndex.template.php on line 428

help please !!!  :'(
Title: Re: Users Online Today Mod
Post by: DemonicInfluence on April 23, 2006, 04:55:12 PM
CHange this:

419:    if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
420:       echo '<br />', implode(', ', $context['list_users_online_today']);
421:
422:    echo '
423:             <br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
424:             <a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
425:          </div>
426:       </td>
427:    </tr>';

428:                      ', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ')

429:                   </span>
430:                </td>
431:             </tr>';


to:

419:    if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
420:       echo '<br />', implode(', ', $context['list_users_online_today']);
421:
422:    echo '
423:             <br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
424:             <a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
425:          </div>
426:       </td>
427:    </tr>
428:                      ', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ')
429:                   </span>
430:                </td>
431:             </tr>';
Title: Re: Users Online Today Mod
Post by: top_secret on April 23, 2006, 05:18:06 PM
thanks BRO!!

works GREAT!!!


Regards  8)
Title: Re: Users Online Today Mod
Post by: DemonicInfluence on April 23, 2006, 08:06:33 PM
No problem :)
Title: Re: Users Online Today Mod
Post by: WarBirD on April 29, 2006, 10:58:24 AM
Maybe a n00b question, but how can I use it for an other Theme than just the default ?

Wolfseye
Title: Re: Users Online Today Mod
Post by: WarBirD on April 29, 2006, 11:08:28 AM
Quote from: beemer on April 04, 2006, 06:30:34 PM
You dont want to put it there

find

                        Most users online today: '.$modSettings['mostOnlineToday'].' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        Most users online ever: <b>'.$modSettings['mostOnline'].'</b> ( '.timeformat($modSettings['mostDate']).'  )

                        </span>


                </td>
        </tr>';


And replace everything below with

// Users online today
echo '
<tr>
<td class="catbg" colspan="2">', $txt['uot_users_online_today_title'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], ' ', $txt['uot_users_online_today_title'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';

echo '
<div class="smalltext">';

echo $context['num_users_online_today'], ' ', $context['num_users_online_today'] == 1 ? $txt['uot_user_online_today'] : $txt['uot_users_online_today'];

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']))
echo ':<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';

// If they are logged in, but SP1 style information is off... show a personal message bar.
if ($context['user']['is_logged'] && !$settings['show_sp1_info'])
{
echo '
<tr>
<td class="catbg" colspan="2">', $txt[159], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
', $context['allow_pm'] ? '<a href="' . $scripturl . '?action=pm">' : '', '<img src="', $settings['images_url'], '/message_sm.gif" alt="', $txt[159], '" border="0" />', $context['allow_pm'] ? '</a>' : '', '
</td>
<td class="windowbg2" valign="top">
<b><a href="', $scripturl, '?action=pm">', $txt[159], '</a></b>
<div class="smalltext">
', $txt[660], ' ', $context['user']['messages'], ' ', $context['user']['messages'] == 1 ? $txt[471] : $txt[153], '.... ', $txt[661], ' <a href="', $scripturl, '?action=pm">', $txt[662], '</a> ', $txt[663], '
</div>
</td>
</tr>';
}

// Show the login bar. (it's only true if they are logged out anyway.)
if ($context['show_login_bar'])
{
echo '
<tr>
<td class="catbg" colspan="2">', $txt[34], ' <a href="', $scripturl, '?action=reminder" class="smalltext">(' . $txt[315] . ')</a></td>
</tr>
<tr>
<td class="windowbg" width="20" align="center">
<a href="', $scripturl, '?action=login">
<img src="', $settings['images_url'], '/icons/login.gif" alt="', $txt[34], '" border="0" /></a>
</td>
<td class="windowbg2" valign="middle">
<form action="', $scripturl, '?action=login2" method="post" style="margin: 0;">
<table border="0" cellpadding="2" cellspacing="0" width="100%"><tr>
<td valign="middle" align="left">
<label for="user"><b>', $txt[35], ':</b><br /><input type="text" name="user" id="user" size="15" /></label>
</td>
<td valign="middle" align="left">
<label for="passwrd"><b>', $txt[36], ':</b><br /><input type="password" name="passwrd" id="passwrd" size="15" /></label>
</td>
<td valign="middle" align="left">
<label for="cookielength"><b>', $txt[497], ':</b><br /><input type="text" name="cookielength" id="cookielength" size="4" maxlength="4" value="', $modSettings['cookieTime'], '" /></label>
</td>
<td valign="middle" align="left">
<label for="cookieneverexp"><b>', $txt[508], ':</b><br /><input type="checkbox" name="cookieneverexp" id="cookieneverexp" checked="checked" class="check" /></label>
</td>
<td valign="middle" align="left">
<input type="submit" value="', $txt[34], '" />
</td>
</tr></table>
</form>
</td>
</tr>';
}


        echo '
</table></div>';
echo $botbox.'</div>';

}

?>


Ok, never mind, could change it with the Info in this Post in the Theme I wanted most and it works, but for the Blue Jeans Theme, I can´t find those lines, is it different in this Theme ?

Mfg

Wolfseye
Title: Re: Users Online Today Mod
Post by: perplexed on April 29, 2006, 01:39:16 PM
Quote from: kcs on April 21, 2006, 12:26:11 AM
hi,
agree with you on the "bottom" stats portion, but for the "top" portion, there's also a "Users seen today" value... and this value doesnt tally with the users seen on the main index page....

any idea what went wrong?

another query is that, how can i go about "adding" the MOST Seen online Users" on the bottom portion of the stats?

thanks!


Quote from: perplexed on April 20, 2006, 08:13:45 AM
I could be wrong but I thought that this mod shows the number of members online in a 24hour period, whereas your most users online is most members online at the one time?

So you could have 35 people online in a 24 hour period but only 10 of them on at the same time, so the most online would be 10 not 35

If that's wrong, someone let me know, but that was my understanding :)


Quote from: kcs on April 18, 2006, 10:14:37 PM
hi all,
i noticed that my MOST USERS stats is not updated... even after i "RECOUNT" under Forum maintenance...

any idea what went wrong?

thanks!




hmmm I see what you mean, that would be good.
Title: Re: Users Online Today Mod
Post by: iv_nik on April 29, 2006, 05:07:05 PM
Just read the whole topic and still have 2 questions:

Is it (or would it be) a possibility to modify initial period of time today logged users are shown in?
I mean what should I do, if I want have only last 12-hours logged in users, not 24h.

The 2nd question is how to hide usernames and left only total number of visitors.
Title: Re: Users Online Today Mod
Post by: Juggler on May 01, 2006, 10:11:32 AM
A bit confused here as I recently had to shift some files round to re-install a couple of mods and when I re-loaded this one I get an odd display (See description below). Any thoughts on what's gone wrong? (Just to note this is in all themes not just the default so I assume the problem is with either the boardindex or boardindex.template file).

There's no Users Online Today Header and this is the only info displayed so it looks like it's missing something!

: 13 (: 13, : 0)
Juggler, Muttley, Twinky, Tycho, bloodfalls, Getafix, Claud the crab, Nodders, whiteknuckle, OuzoIrene, Hong Kong Fooey, Ace, fwitt
Title: Re: Users Online Today Mod
Post by: Vinspire^ on May 03, 2006, 05:07:41 AM
I am using SMF 1.1 RC 2 and i've installed Online Today Version 1.4.0 Beta 2.

From what i read, I need to modify BoardIndex.template.php to get it working in Helios Theme. Is the below code is the complete codes i need to edit ?

Quote from: beemer on April 04, 2006, 06:30:34 PM
You dont want to put it there

find

                        Most users online today: '.$modSettings['mostOnlineToday'].' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        Most users online ever: <b>'.$modSettings['mostOnline'].'</b> ( '.timeformat($modSettings['mostDate']).'  )

                        </span>


                </td>
        </tr>';


And replace everything below with

// Users online today
echo '
<tr>
<td class="catbg" colspan="2">', $txt['uot_users_online_today_title'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], ' ', $txt['uot_users_online_today_title'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';

echo '
<div class="smalltext">';

echo $context['num_users_online_today'], ' ', $context['num_users_online_today'] == 1 ? $txt['uot_user_online_today'] : $txt['uot_users_online_today'];

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']))
echo ':<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';

// If they are logged in, but SP1 style information is off... show a personal message bar.
if ($context['user']['is_logged'] && !$settings['show_sp1_info'])
{
echo '
<tr>
<td class="catbg" colspan="2">', $txt[159], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
', $context['allow_pm'] ? '<a href="' . $scripturl . '?action=pm">' : '', '<img src="', $settings['images_url'], '/message_sm.gif" alt="', $txt[159], '" border="0" />', $context['allow_pm'] ? '</a>' : '', '
</td>
<td class="windowbg2" valign="top">
<b><a href="', $scripturl, '?action=pm">', $txt[159], '</a></b>
<div class="smalltext">
', $txt[660], ' ', $context['user']['messages'], ' ', $context['user']['messages'] == 1 ? $txt[471] : $txt[153], '.... ', $txt[661], ' <a href="', $scripturl, '?action=pm">', $txt[662], '</a> ', $txt[663], '
</div>
</td>
</tr>';
}

// Show the login bar. (it's only true if they are logged out anyway.)
if ($context['show_login_bar'])
{
echo '
<tr>
<td class="catbg" colspan="2">', $txt[34], ' <a href="', $scripturl, '?action=reminder" class="smalltext">(' . $txt[315] . ')</a></td>
</tr>
<tr>
<td class="windowbg" width="20" align="center">
<a href="', $scripturl, '?action=login">
<img src="', $settings['images_url'], '/icons/login.gif" alt="', $txt[34], '" border="0" /></a>
</td>
<td class="windowbg2" valign="middle">
<form action="', $scripturl, '?action=login2" method="post" style="margin: 0;">
<table border="0" cellpadding="2" cellspacing="0" width="100%"><tr>
<td valign="middle" align="left">
<label for="user"><b>', $txt[35], ':</b><br /><input type="text" name="user" id="user" size="15" /></label>
</td>
<td valign="middle" align="left">
<label for="passwrd"><b>', $txt[36], ':</b><br /><input type="password" name="passwrd" id="passwrd" size="15" /></label>
</td>
<td valign="middle" align="left">
<label for="cookielength"><b>', $txt[497], ':</b><br /><input type="text" name="cookielength" id="cookielength" size="4" maxlength="4" value="', $modSettings['cookieTime'], '" /></label>
</td>
<td valign="middle" align="left">
<label for="cookieneverexp"><b>', $txt[508], ':</b><br /><input type="checkbox" name="cookieneverexp" id="cookieneverexp" checked="checked" class="check" /></label>
</td>
<td valign="middle" align="left">
<input type="submit" value="', $txt[34], '" />
</td>
</tr></table>
</form>
</td>
</tr>';
}


        echo '
</table></div>';
echo $botbox.'</div>';

}

?>

Title: Re: Users Online Today Mod
Post by: Vinspire^ on May 03, 2006, 03:25:17 PM
Followed beemer instruction and manage to get the function working but i dont think it is the latest version of this mod. I did read the "Users_Online_Today_Mod" file and follow the instruction but after a few trial. I still couldn't get it working.

Below is the printscreen of what i've got after follow beemer instruction.

(http://img428.imageshack.us/img428/7821/useron6te.jpg) (http://imageshack.us)
Title: Re: Users Online Today Mod
Post by: Juggler on May 03, 2006, 06:20:57 PM
(http://bluebuzzards.com/uotimage.jpg)

Well it's more than what I have and this is on a clean install! Something hasn't gone into the file but I can't find what's missing.
Title: Re: Users Online Today Mod
Post by: Vinspire^ on May 03, 2006, 09:38:33 PM
Juggler, which version of the Users Online Today Mod did you install ?
Title: Re: Users Online Today Mod
Post by: Juggler on May 04, 2006, 10:47:04 AM
1.4 Beta 2
Title: Re: Users Online Today Mod
Post by: WarBirD on May 05, 2006, 06:37:59 AM
In this Theme, called MERCURY (http://themes.simplemachines.org/index.php?lemma=18), I can´t find any of this whats to replace. All that stuff is just not in there in the BoardIndex.Template.php.

What now ?
Title: Re: Users Online Today Mod
Post by: Vinspire^ on May 05, 2006, 06:49:25 AM
Quote from: WarBirD on May 05, 2006, 06:37:59 AM
In this Theme, called MERCURY (http://themes.simplemachines.org/index.php?lemma=18), I can´t find any of this whats to replace. All that stuff is just not in there in the BoardIndex.Template.php.

What now ?

The source code in different theme is different if i am not mistaken. I manage to get it working perfectly on my default theme & Themis but as for Helios Theme below is the result.

(http://img428.imageshack.us/img428/7821/useron6te.jpg)

Did make a backup for my BoardIndex.Template but wrongly replace it already. So, i've no more backup file for my original Helios BoardIndex.Template :(
Title: Re: Users Online Today Mod
Post by: WarBirD on May 05, 2006, 06:56:46 AM
Well, so I don´t think I will get it to work in the MERCURY Theme, when its so different. I am not so a php / html freak, i got some things to work, but not when I can´t find any hint how to do it. In this case, it seems, i reached one of those points. :(
Title: Re: Users Online Today Mod
Post by: Vinspire^ on May 05, 2006, 06:57:24 AM
This is the screenshot of the edit i made in default theme & themis theme

(http://img73.imageshack.us/img73/4104/defth7rm.jpg) (http://imageshack.us)

(http://img67.imageshack.us/img67/9378/themthe9qt.jpg) (http://imageshack.us)

As for Helios one i can't get it working by following the file instruction but manage to get it working by following beemer instruction but i guess the instruction is an earlier version coz there is no

- Total
- ( Visible , Hidden )

So, anyone here know how to fix this ?
Title: Re: Users Online Today Mod
Post by: L.G.S on May 05, 2006, 11:12:32 AM
Hey Vinspire, is there any chance you could should me the part where you added the whos online code under please?
Title: Re: Users Online Today Mod
Post by: Vinspire^ on May 05, 2006, 11:15:26 AM
Quote from: L.G.S on May 05, 2006, 11:12:32 AM
Hey Vinspire, is there any chance you could should me the part where you added the whos online code under please?

Modify BoardIndex.template.php and follow the instruction below

Quote from: beemer on April 04, 2006, 06:30:34 PM
You dont want to put it there

find

                        Most users online today: '.$modSettings['mostOnlineToday'].' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        Most users online ever: <b>'.$modSettings['mostOnline'].'</b> ( '.timeformat($modSettings['mostDate']).'  )

                        </span>


                </td>
        </tr>';


And replace everything below with

// Users online today
echo '
<tr>
<td class="catbg" colspan="2">', $txt['uot_users_online_today_title'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], ' ', $txt['uot_users_online_today_title'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';

echo '
<div class="smalltext">';

echo $context['num_users_online_today'], ' ', $context['num_users_online_today'] == 1 ? $txt['uot_user_online_today'] : $txt['uot_users_online_today'];

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']))
echo ':<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';

// If they are logged in, but SP1 style information is off... show a personal message bar.
if ($context['user']['is_logged'] && !$settings['show_sp1_info'])
{
echo '
<tr>
<td class="catbg" colspan="2">', $txt[159], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
', $context['allow_pm'] ? '<a href="' . $scripturl . '?action=pm">' : '', '<img src="', $settings['images_url'], '/message_sm.gif" alt="', $txt[159], '" border="0" />', $context['allow_pm'] ? '</a>' : '', '
</td>
<td class="windowbg2" valign="top">
<b><a href="', $scripturl, '?action=pm">', $txt[159], '</a></b>
<div class="smalltext">
', $txt[660], ' ', $context['user']['messages'], ' ', $context['user']['messages'] == 1 ? $txt[471] : $txt[153], '.... ', $txt[661], ' <a href="', $scripturl, '?action=pm">', $txt[662], '</a> ', $txt[663], '
</div>
</td>
</tr>';
}

// Show the login bar. (it's only true if they are logged out anyway.)
if ($context['show_login_bar'])
{
echo '
<tr>
<td class="catbg" colspan="2">', $txt[34], ' <a href="', $scripturl, '?action=reminder" class="smalltext">(' . $txt[315] . ')</a></td>
</tr>
<tr>
<td class="windowbg" width="20" align="center">
<a href="', $scripturl, '?action=login">
<img src="', $settings['images_url'], '/icons/login.gif" alt="', $txt[34], '" border="0" /></a>
</td>
<td class="windowbg2" valign="middle">
<form action="', $scripturl, '?action=login2" method="post" style="margin: 0;">
<table border="0" cellpadding="2" cellspacing="0" width="100%"><tr>
<td valign="middle" align="left">
<label for="user"><b>', $txt[35], ':</b><br /><input type="text" name="user" id="user" size="15" /></label>
</td>
<td valign="middle" align="left">
<label for="passwrd"><b>', $txt[36], ':</b><br /><input type="password" name="passwrd" id="passwrd" size="15" /></label>
</td>
<td valign="middle" align="left">
<label for="cookielength"><b>', $txt[497], ':</b><br /><input type="text" name="cookielength" id="cookielength" size="4" maxlength="4" value="', $modSettings['cookieTime'], '" /></label>
</td>
<td valign="middle" align="left">
<label for="cookieneverexp"><b>', $txt[508], ':</b><br /><input type="checkbox" name="cookieneverexp" id="cookieneverexp" checked="checked" class="check" /></label>
</td>
<td valign="middle" align="left">
<input type="submit" value="', $txt[34], '" />
</td>
</tr></table>
</form>
</td>
</tr>';
}


        echo '
</table></div>';
echo $botbox.'</div>';

}

?>

Title: Re: Users Online Today Mod
Post by: L.G.S on May 05, 2006, 05:39:28 PM
Damn nevermind, I do not have that code.

I got this error

314: // Users online today
315:    echo '

THIS LINE WRONG >>316:    <tr>

317:       <td class="catbg" colspan="2">', $txt['uot_users_online_today_title'], '</td>
318:    </tr><tr>
319:       <td class="windowbg" width="20" valign="middle" align="center">
Title: Re: Users Online Today Mod
Post by: Vinspire^ on May 05, 2006, 10:07:52 PM
No idea L.G.S :P
Title: Re: Users Online Today Mod
Post by: Juggler on May 07, 2006, 06:29:04 AM
OK, found my problem. For some reason it had not added the txt strings to the Modifications English file. Stuck them in and all is well with the world.
Title: Re: Users Online Today Mod
Post by: Vinspire^ on May 07, 2006, 11:29:42 AM
Glad to hear that Juggler  :D :D :D
Title: Re: Users Online Today Mod
Post by: DVD_GR on May 07, 2006, 02:59:32 PM
seeking for 1.07 version,does something exist???
Title: Re: Users Online Today Mod
Post by: Bigguy on May 07, 2006, 03:08:24 PM
No I don`t believe it is compatible with 1.0.7

http://mods.simplemachines.org/index.php?mod=217
Title: Re: Users Online Today Mod
Post by: geezmo on May 08, 2006, 02:56:10 AM
I'm using Default Theme, SMF ver. 1.1RC2. Successfully installed this without any prob, but the list does not appear in the info Center. Do I need to activate this somewhere or edit some templates to make this work?
Title: Re: Users Online Today Mod
Post by: Vinspire^ on May 08, 2006, 05:23:52 AM
What list doesn't appear in info center ?
Title: Re: Users Online Today Mod
Post by: geezmo on May 08, 2006, 05:44:14 AM
The Online Users Today list. That's supposed to appear below the "Users Online" list right, as in your post in Post #295 of this thread? Or do I still need to edit some template?
Title: Re: Users Online Today Mod
Post by: Vinspire^ on May 08, 2006, 07:54:19 AM
Quote from: geezmo on May 08, 2006, 05:44:14 AM
The Online Users Today list. That's supposed to appear below the "Users Online" list right, as in your post in Post #295 of this thread? Or do I still need to edit some template?

I thought you said the mod had been installed successfully ?
Title: Re: Users Online Today Mod
Post by: Bigguy on May 08, 2006, 09:12:14 AM
If you have a custom theme you will have to edit template files.
Title: Re: Users Online Today Mod
Post by: geezmo on May 08, 2006, 07:40:14 PM
I have the Default theme. The mod was supposedly successfully installed but all I see in the Info Center is this:

QuoteUsers Online
Users Online    x Guests, x Users
Users active in past 15 minutes:
xxxxxx
[More Stats]
Most Online Today: x. Most Online Ever: x (May x, 2006, xx:xx PM)

Shouldn't I have another line for Users Logged In Today like in HERE (http://www.simplemachines.org/community/index.php?topic=55513.msg568756#msg568756)?

Title: Re: Users Online Today Mod
Post by: scottws on May 08, 2006, 10:44:50 PM
I have the exact same behavior as geezmo:

Title: Re: Users Online Today Mod
Post by: scottws on May 08, 2006, 11:02:56 PM
Turns out it was a permission issue.

I tried uninstalling the mod, and every test failed.  It then said I didn't have permissions in the Packages directory, or one of its files.  The permissions on Packages was 777, so I don't know how that can be.

I ended up nuking the forum and installing a backup.  Then I chmodded the entire forum to 777 and it installed and displayed ok.

Edit: Well, not wanting my whole forum with all directories and files set with permissions of 777, I wiped out the whole forum and restored a recent backup.

The thing is, I can't figure out why it's not working.  Every file and directory is owned by user "smf" and group "forum," and that's the user/group combination I'm using to install/uninstall.  I did look at the owner of the files again, and some were "www-data."  I ran a chown -R smf.forum *.

Then I tried installing the mod again, this time without the crazy all 777 permissions.  I experienced the same behavior as before:  it claimed to install just fine, but it wasn't there and it won't uninstall. When I attempt to uninstall it, I get the following message:

QuoteYou cannot download or install new packages because the Packages directory or one of the files in it are not writable!

Well, the Packages folder is owned by smf.forum, and has 777 permissions set.  Inside, the backups folder is also 777. installed.list, smf_patch-1.0.7-1.1RC2-1.tar.gz, and Users_Online_Today_1.4.0_beta_2.zip have 666 permissions.  index.php is the only thing that does not have write permissions.  It's permissions are 644.

So I don't know what it is talking about since the requisite files have the proper write permissions.

I followed this guide to set permissions: http://www.activewebhosting.com/faq/scripts-simplemachines.html

So basically all permissions are the standard 755 for directories and 644 for files, except:


Is there some better guide on how to set file and folder permissions so packages installed via the package manager actually work?  I was going to try to install the package manually, but all that it contains are two XML files which seem to sort of work automatically.
Title: Re: Users Online Today Mod
Post by: Bigguy on May 08, 2006, 11:46:23 PM
Is the backup folder inside the packages folder also chmodded to 777
Title: Re: Users Online Today Mod
Post by: scottws on May 09, 2006, 06:34:50 AM
Quote from: Bigguy on May 08, 2006, 11:46:23 PM
Is the backup folder inside the packages folder also chmodded to 777

Yes:

Quote from: scottws on May 08, 2006, 11:02:56 PMWell, the Packages folder is owned by smf.forum, and has 777 permissions set.  Inside, the backups folder is also 777.
Title: Re: Users Online Today Mod
Post by: scottws on May 09, 2006, 02:32:07 PM
I changed my ownership on all files and directories to www-data.www-data, which is what Apache2 runs as.  This solved my problem.
Title: Re: Users Online Today Mod
Post by: geezmo on May 09, 2006, 02:40:56 PM
So it's now working on your forum, scott? You installed then uninstalled then changed permissions then installed the mod again?
Title: Re: Users Online Today Mod
Post by: scottws on May 09, 2006, 03:29:56 PM
I have a recent backup of the forum, so I kept testing the installation and uninstallation.  When it broke or failed, I just nuked the whole forum and restored the backup.

The only ways I was able to get it to work were to chmod the whole forum to 777 or to chown to www-data.www-data (previously was owned by smf.forum). Following the guides I saw for setting certain folder and file permissions to 777 and 666 and then using the user "smf" FTP login information in the package manager did not work.
Title: Re: Users Online Today Mod
Post by: scottws on May 09, 2006, 03:35:00 PM
Hmm...

It correctly works on the default theme:

(http://eac.forgiven5.com/pictures/usersonline.png)

But following beemer's instructions to get this mod working on Helios resulted in the same thing Vinspire^ is experiencing:

(http://eac.forgiven5.com/pictures/usersonline_helios.png)
Title: Re: Users Online Today Mod
Post by: Viceroy on May 10, 2006, 07:52:52 AM
Are there any plans to make this mod available for 1.0.7 by any chance?
Title: Re: Users Online Today Mod
Post by: geezmo on May 10, 2006, 08:19:35 AM
at least, scott, something's showing in your forum. in mine (Default Theme, 1.1RC2), the mod was supposedly successfully installed but nothing appears.
Title: Re: Users Online Today Mod
Post by: scottws on May 10, 2006, 08:43:07 AM
Quote from: geezmo on May 10, 2006, 08:19:35 AM
at least, scott, something's showing in your forum. in mine (Default Theme, 1.1RC2), the mod was supposedly successfully installed but nothing appears.
Yeah, like I previously posted, I was having the same problem.

For me, it was an issue with permissions.  I was never able to nail down exactly which files and/or directories it was failing on since I got around it by giving read, write, and execute permissions to everyone, and then later making the owner and group of the files and directories the user Apache runs under.

But I have shell and root access to mess around with that sort of thing with ease: it's my server.
Title: Re: Users Online Today Mod
Post by: Stuart on May 10, 2006, 08:52:51 AM
Quote from: Viceroy on May 10, 2006, 07:52:52 AM
Are there any plans to make this mod available for 1.0.7 by any chance?

You can read my last post which you can find HERE (http://www.simplemachines.org/community/index.php?topic=55513.msg433857#msg433857) :D

As the file in that message isn't working anymore you can get if from my server HERE (http://www.astmaforum.nl/downloads/OnLineUserToday_13_10.zip)  ;D
Title: Re: Users Online Today Mod
Post by: geezmo on May 10, 2006, 09:01:21 AM
scott, I have VPS and I can basically do the same. But I don't think it's worth it given the fact that this mod is supposedly released and thus should be working perfectly. We need to find what's wrong with the mod so it will be a good, working mod for SMF.
Title: Re: Users Online Today Mod
Post by: L.G.S on May 10, 2006, 01:12:39 PM
Can I ever get some help for my problem please?
Title: Re: Users Online Today Mod
Post by: scottws on May 10, 2006, 01:28:12 PM
Quote from: L.G.S on May 10, 2006, 01:12:39 PM
Can I ever get some help for my problem please?
When you installed the package, did it say it was installed successfully and pass all tests?  If so, did it actually appear at the bottom of the board index of the default Core theme?

If not, your problem was in the installation of the mod in the first place.  I believe the code beemer provided was to get this mod to work in the Helios theme as well (after intalling it via the package manager for the default theme).

It sounds like you replaced the wrong portion of code, cut out too much, left too much, or just don't have a proper installation of the mod in the first place.

I would start by restoring a backup of the Default.template.php file, if you have one.
Title: Re: Users Online Today Mod
Post by: L.G.S on May 10, 2006, 01:51:46 PM
The default installation went fine, I know how to see if it did or not.

Want I want to know is how to install it on my theme - Aqua Slate
Title: Re: Users Online Today Mod
Post by: scottws on May 10, 2006, 02:48:27 PM
For someone looking for help, you sure do cop an attitude.
Title: Re: Users Online Today Mod
Post by: L.G.S on May 10, 2006, 04:50:28 PM
You may perceive it as an attitude, but it wasn't posted with one so I'm sorry if you took it that way.
Title: Re: Users Online Today Mod
Post by: cyberstang5.0 on May 10, 2006, 09:45:24 PM
Quote from: DemonicInfluence on March 08, 2006, 11:37:39 AM
just make it so that
if($context['user']['is_admin'])
{


is before the mod stuff in the boardindex.template.php of every theme.

Then at the end put
}

Should work to only allow admins to see..

Another stupid programing question for ya'll...

How do I get it so admins and moderators (or specific membergroups) see the list but keep it "hidden" from regular users?  ???
Title: Re: Users Online Today Mod
Post by: Vinspire on May 10, 2006, 11:38:59 PM
Quote from: scottws on May 09, 2006, 03:35:00 PM
Hmm...

It correctly works on the default theme:

(http://eac.forgiven5.com/pictures/usersonline.png)

But following beemer's instructions to get this mod working on Helios resulted in the same thing Vinspire^ is experiencing:

(http://eac.forgiven5.com/pictures/usersonline_helios.png)

Scot, did you manage to get a solution for this ? If so kindly instruct me about it on how to solve it. Thanks :)
Title: Re: Users Online Today Mod
Post by: scottws on May 10, 2006, 11:42:57 PM
Nope. No solution as of yet. I have to look at the code.
Title: Re: Users Online Today Mod
Post by: Vinspire on May 10, 2006, 11:54:59 PM
Quote from: scottws on May 10, 2006, 11:42:57 PM
Nope. No solution as of yet. I have to look at the code.

The code that beemer gave and the code we are using in default theme with clean installation is different code.

I tried using the new code but it came out with an error. So, i am currently using beemer guide.
Title: Re: Users Online Today Mod
Post by: DVD_GR on May 11, 2006, 10:25:35 PM
From where can we download older versions who are compatible with 1.07??
Latest says its only for 1.1 rc2?So it doesnt work on 1.07??  ::)
Title: Re: Users Online Today Mod
Post by: Gobo on May 11, 2006, 11:47:05 PM
For users of 1.1RC2

I have a hell of a lot of themes installed on my forum and the easiest way to modify the boardindex.template.php file is to simply look for this line:

// If they are logged in, but SP1 style information is off... show a personal message bar.

it occurs in all the themes --- just place the code above it

it works A-OK
Title: Re: Users Online Today Mod
Post by: Carceri on May 12, 2006, 07:37:50 AM
Quote from: DVD_GR on May 11, 2006, 10:25:35 PM
From where can we download older versions who are compatible with 1.07??
Latest says its only for 1.1 rc2?So it doesnt work on 1.07??  ::)

I know I have said this before, but since this thread is rather long, I guess most people haven't read all of it. Therefore I will say it again.

There is no version for the 1.0 series from me, for the simple reason that I have never used the 1.0 series.

There is one for 1.1 RC1 and RC2, and there will be one for RC3 and 1.1 Final when they eventually are done.
Title: Re: Users Online Today Mod
Post by: scottws on May 14, 2006, 09:40:50 AM
Quote from: akulion on May 11, 2006, 11:47:05 PM
For users of 1.1RC2

I have a hell of a lot of themes installed on my forum and the easiest way to modify the boardindex.template.php file is to simply look for this line:

// If they are logged in, but SP1 style information is off... show a personal message bar.

it occurs in all the themes --- just place the code above it

it works A-OK
"Just place the code..."  What code are you referring to?  Beemer's code?
Title: Re: Users Online Today Mod
Post by: L.G.S on May 14, 2006, 11:52:25 AM
Quote from: akulion on May 11, 2006, 11:47:05 PM
For users of 1.1RC2

I have a hell of a lot of themes installed on my forum and the easiest way to modify the boardindex.template.php file is to simply look for this line:

// If they are logged in, but SP1 style information is off... show a personal message bar.

it occurs in all the themes --- just place the code above it

it works A-OK

Woah it worked, thanks a hellava bunch mate!
Title: Re: Users Online Today Mod
Post by: Gobo on May 15, 2006, 01:05:45 PM
Quote from: scottws on May 14, 2006, 09:40:50 AM
Quote from: akulion on May 11, 2006, 11:47:05 PM
For users of 1.1RC2

I have a hell of a lot of themes installed on my forum and the easiest way to modify the boardindex.template.php file is to simply look for this line:

// If they are logged in, but SP1 style information is off... show a personal message bar.

it occurs in all the themes --- just place the code above it

it works A-OK
"Just place the code..."  What code are you referring to?  Beemer's code?

The code I am referring to is this:




// Users online today
echo '
<tr>
<td class="titlebg" colspan="2">', $txt['uot_users_online_today_title'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], ' ', $txt['uot_users_online_today_title'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';

echo '
<div class="smalltext">';

echo $context['num_users_online_today'], ' ', $context['num_users_online_today'] == 1 ? $txt['uot_user_online_today'] : $txt['uot_users_online_today'];

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']))
echo ':<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';






Important Always remember to make a back-up of your original file before any modifications are made - that way EVEN if something goes wrong you dont have to worry because you can upload the old file and everything will be back to normal :)

Title: Re: Users Online Today Mod
Post by: Gobo on May 15, 2006, 04:19:30 PM
Quote
(http://eac.forgiven5.com/pictures/usersonline_helios.png)

Users with this problem follow these instructions:

1. Go to your theme folder for the theme in which u are having this problem

2. Go to the Languages folder and download this file Modifications.english.php

3. Make a backup of this file in case u mess up

4. Open the file in a text editor and just before the ?> right at the end of the file, add the following code



$txt['uot_users_online_today_title']='Users Seen Today';
$txt['uot_user_online_today']='user seen today';
$txt['uot_users_online_today']='users seen today';
$txt['uot_total_users_online_today']='Users Seen Today';
$txt['uot_yesterday']='Yesterday at ';



4. save and upload
Title: Re: Users Online Today Mod
Post by: wallis77 on May 15, 2006, 10:24:48 PM
i use blackTed Skin and have 1.1rc2 this is all great it works on the other skins but not on the one i currently use for my forum, sorry if this has been discussed already on the previous 20+ pages but how can i get it to work on my current skin?
Title: Re: Users Online Today Mod
Post by: scottws on May 16, 2006, 09:00:31 AM
Quote from: akulion on May 15, 2006, 04:19:30 PM

Users with this problem follow these instructions:

1. Go to your theme folder for the theme in which u are having this problem

2. Go to the Languages folder and download this file Modifications.english.php

3. Make a backup of this file in case u mess up

4. Open the file in a text editor and just before the ?> right at the end of the file, add the following code



$txt['uot_users_online_today_title']='Users Seen Today';
$txt['uot_user_online_today']='user seen today';
$txt['uot_users_online_today']='users seen today';
$txt['uot_total_users_online_today']='Users Seen Today';
$txt['uot_yesterday']='Yesterday at ';



4. save and upload

I am not seeing a Modifications.english.php file in Themes/helios_multi11rc2/languages/.
Title: Re: Users Online Today Mod
Post by: SpyDie on May 16, 2006, 12:45:42 PM
Quote from: akulion on May 15, 2006, 04:19:30 PM
I am not seeing a Modifications.english.php file in Themes/helios_multi11rc2/languages/.

In which case, go and open a New Notepad window on your own system.

Copy & paste the contents of this box into it. Save it as Modifications.english.php, upload it to Themes/helios_multi11rc2/languages/.

Quote<?php

$txt['uot_users_online_today_title']='Users Seen Today';
$txt['uot_user_online_today']='user seen today';
$txt['uot_users_online_today']='users seen today';
$txt['uot_total_users_online_today']='Users Seen Today';
$txt['uot_yesterday']='Yesterday at ';

?>

Works perfectly on my own forum, I have mutliple themes - I placed this into every single theme folder and it worked perfectly.

HTH
Title: Re: Users Online Today Mod
Post by: scottws on May 16, 2006, 02:09:21 PM
I was going to try that, but I wasn't sure it would make a difference.

I've been told not to edit PHP files with Notepad.  I use vim directly on the server.
Title: Re: Users Online Today Mod
Post by: scottws on May 16, 2006, 02:25:13 PM
Ok, SpyDie's modifications seemed to work, but I was wondering if there was a way to make it more like how it appears on the default theme:

QuoteTotal: 2 (Visible: 2, Hidden: 0)

instead of how it is now after doing the modification:

Quote2 users seen today

Edit: It looks like it has something to do with this in beemer's code for BoardIndex.template.php:

echo $context['num_users_online_today'], ' ', $context['num_users_online_today']
      == 1 ? $txt['uot_user_online_today'] : $txt['uot_users_online_today'];


It looks like that is showing a number (the number of users that were online), then testing if that number is equal to one or not, and then using one of two variables depending on the result.

So I could probably move that around and then change the value of the variables in Modifications.english.php to reflect what appears in the default theme for this mod.  The problem comes in that I don't know PHP very well at all, so I don't want to break the line of code by trying to move stuff around.
Title: Re: Users Online Today Mod
Post by: Vinspire on May 17, 2006, 05:27:39 AM
Follow akulion guide but i still couldn't get it working. Anyone manage to get it working ?
Title: Re: Users Online Today Mod
Post by: Carceri on May 17, 2006, 05:49:27 AM
Quote from: scottws on May 16, 2006, 02:25:13 PM
QuoteTotal: 2 (Visible: 2, Hidden: 0)

instead of how it is now after doing the modification:

Quote2 users seen today
This was changed from the second to the first in a later version of the mod. Probably the code you are trying to use is based on an old version of this mod.
Title: Re: Users Online Today Mod
Post by: Vinspire on May 17, 2006, 06:04:34 AM
Quote from: Carceri on May 17, 2006, 05:49:27 AM
Quote from: scottws on May 16, 2006, 02:25:13 PM
QuoteTotal: 2 (Visible: 2, Hidden: 0)

instead of how it is now after doing the modification:

Quote2 users seen today
This was changed from the second to the first in a later version of the mod. Probably the code you are trying to use is based on an old version of this mod.

Carceri, yep. That is what i suspect too that beemer code is from the old version but when i tried it with the new codes ... it gaves me an error.
Title: Re: Users Online Today Mod
Post by: Gobo on May 17, 2006, 07:44:12 AM
Quote from: Vinspire on May 17, 2006, 05:27:39 AM
Follow akulion guide but i still couldn't get it working. Anyone manage to get it working ?

Please note the following Error I made in posting the last code (I have fixed it in my last post as well but posting here just so that everyone knows)

The boardindex.template.php file must be modified as following: (for helios theme)

Download you boardindex.template.php file is to simply look for this line:

// If they are logged in, but SP1 style information is off... show a personal message bar.

it occurs in all the themes --- just place the following code above it





// Users online today
echo '
<tr>
<td class="titlebg" colspan="2">', $txt['uot_users_online_today_title'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], ' ', $txt['uot_users_online_today_title'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';

echo '
<div class="smalltext">';

echo $context['num_users_online_today'], ' ', $context['num_users_online_today'] == 1 ? $txt['uot_user_online_today'] : $txt['uot_users_online_today'];

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']))
echo ':<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';





That should fix it :)

Important Always remember to make a back-up of your original file before any modifications are made - that way EVEN if something goes wrong you dont have to worry because you can upload the old file and everything will be back to normal :)



================================================================
==============Below are steps ONLY for people who have already modified the file using my past instructions====================================================

Simply find this in your boardindex.template.php file and REMOVE it



', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ')
</span>
</td>
</tr>';
]]></search>
<add><![CDATA[




this was the part I had accidentally included in the code from the mod package - what it simply does is search and replace a bit of code - so removing it should fix any sort of errors :) A good way to search for the above code would be to simply do a search for <add><![CDATA[

find it - compare the 2 bits of code in your file and the one given here and remove it :)
Title: Re: Users Online Today Mod
Post by: scottws on May 17, 2006, 08:37:09 AM
Quote from: Carceri on May 17, 2006, 05:49:27 AM
Quote from: scottws on May 16, 2006, 02:25:13 PM
QuoteTotal: 2 (Visible: 2, Hidden: 0)

instead of how it is now after doing the modification:

Quote2 users seen today
This was changed from the second to the first in a later version of the mod. Probably the code you are trying to use is based on an old version of this mod.

Ok, well then does anyone have any idea how to get this properly working on the Helios theme?
Title: Re: Users Online Today Mod
Post by: Vinspire on May 17, 2006, 11:01:54 AM
Quote from: scottws on May 17, 2006, 08:37:09 AM
Quote from: Carceri on May 17, 2006, 05:49:27 AM
Quote from: scottws on May 16, 2006, 02:25:13 PM
QuoteTotal: 2 (Visible: 2, Hidden: 0)

instead of how it is now after doing the modification:

Quote2 users seen today
This was changed from the second to the first in a later version of the mod. Probably the code you are trying to use is based on an old version of this mod.

Ok, well then does anyone have any idea how to get this properly working on the Helios theme?

Scott, I am looking for the same answer as well. Did you tried akulion codes ? I did tried but it gaves me an error. Guess i did something wrong with the codes. :( :( :(
Title: Re: Users Online Today Mod
Post by: rsj1 on May 17, 2006, 04:51:00 PM
Is there a way to make this hack (I'm using 1.4 beta) with the default skin show users online in the last 24 hours (IE keep cycling around instead of resetting at midnight)? Any help or suggestions would be most appreciated ;)
Title: Re: Users Online Today Mod
Post by: Carceri on May 18, 2006, 07:20:56 AM
Quote from: rsj1 on May 17, 2006, 04:51:00 PM
Is there a way to make this hack (I'm using 1.4 beta) with the default skin show users online in the last 24 hours (IE keep cycling around instead of resetting at midnight)? Any help or suggestions would be most appreciated ;)

That should be easy. In BoardIndex.php find


$nowdate = @getdate(forum_time(false));
$midnight = mktime(0, 0, 0, $nowdate['mon'], $nowdate['mday'], $nowdate['year']) - ($modSettings['time_offset'] * 3600);


And replace with


$midnight = time() - 86400;


And in Stats.php find


$frag = explode('-', strftime('%Y-%m-%d', time()));
$midnight = forum_time(false, mktime(0, 0, 0, (int) $frag[1], (int) $frag[2], (int) $frag[0]));


and replace with


$midnight = time() - 86400;


Also edit Modifications.english.php to the appropriate text you want displayed
Title: Re: Users Online Today Mod
Post by: rsj1 on May 20, 2006, 11:02:56 AM
 ;D Many thanks it worked a treat!

Quote from: Carceri on May 18, 2006, 07:20:56 AM
Quote from: rsj1 on May 17, 2006, 04:51:00 PM
Is there a way to make this hack (I'm using 1.4 beta) with the default skin show users online in the last 24 hours (IE keep cycling around instead of resetting at midnight)? Any help or suggestions would be most appreciated ;)

That should be easy. In BoardIndex.php find


$nowdate = @getdate(forum_time(false));
$midnight = mktime(0, 0, 0, $nowdate['mon'], $nowdate['mday'], $nowdate['year']) - ($modSettings['time_offset'] * 3600);


And replace with


$midnight = time() - 86400;


And in Stats.php find


$frag = explode('-', strftime('%Y-%m-%d', time()));
$midnight = forum_time(false, mktime(0, 0, 0, (int) $frag[1], (int) $frag[2], (int) $frag[0]));


and replace with


$midnight = time() - 86400;


Also edit Modifications.english.php to the appropriate text you want displayed
Title: Re: Users Online Today Mod
Post by: kriskd on May 21, 2006, 11:14:05 AM
Quote from: akulion on May 15, 2006, 04:19:30 PM
Quote
(http://eac.forgiven5.com/pictures/usersonline_helios.png)

Users with this problem follow these instructions:

1. Go to your theme folder for the theme in which u are having this problem

2. Go to the Languages folder and download this file Modifications.english.php

3. Make a backup of this file in case u mess up

4. Open the file in a text editor and just before the ?> right at the end of the file, add the following code



$txt['uot_users_online_today_title']='Users Seen Today';
$txt['uot_user_online_today']='user seen today';
$txt['uot_users_online_today']='users seen today';
$txt['uot_total_users_online_today']='Users Seen Today';
$txt['uot_yesterday']='Yesterday at ';



4. save and upload
Quote from: akulion on May 17, 2006, 07:44:12 AM
Please note the following Error I made in posting the last code (I have fixed it in my last post as well but posting here just so that everyone knows)

The boardindex.template.php file must be modified as following: (for helios theme)

Download you boardindex.template.php file is to simply look for this line:

// If they are logged in, but SP1 style information is off... show a personal message bar.

it occurs in all the themes --- just place the following code above it





// Users online today
echo '
<tr>
<td class="titlebg" colspan="2">', $txt['uot_users_online_today_title'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], ' ', $txt['uot_users_online_today_title'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';

echo '
<div class="smalltext">';

echo $context['num_users_online_today'], ' ', $context['num_users_online_today'] == 1 ? $txt['uot_user_online_today'] : $txt['uot_users_online_today'];

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']))
echo ':<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';





That should fix it :)

Important Always remember to make a back-up of your original file before any modifications are made - that way EVEN if something goes wrong you dont have to worry because you can upload the old file and everything will be back to normal :)

I have done both these steps.  First on my test forum and I got it working beautifully.  Then, I went to duplicate it on my real forum and for whatever reason I can't get it to work.  Here is what is displayed:

Attachment deleted

Does this give anyone a clue as to what I did wrong?
Title: Re: Users Online Today Mod
Post by: kriskd on May 21, 2006, 11:40:41 AM
Okay, never mind on my users online today.  I got it working, but now my SMF shoutbox isn't working.  I'll try that thread now....
Title: Re: Users Online Today Mod
Post by: cyberstang5.0 on June 02, 2006, 11:27:19 AM
Quote from: cyberstang5.0 on May 10, 2006, 09:45:24 PM
Quote from: DemonicInfluence on March 08, 2006, 11:37:39 AM
just make it so that
if($context['user']['is_admin'])
{


is before the mod stuff in the boardindex.template.php of every theme.

Then at the end put
}

Should work to only allow admins to see..

Another stupid programing question for ya'll...

How do I get it so admins and moderators (or specific membergroups) see the list but keep it "hidden" from regular users?  ???
Anyone?  ??? ??? :(
Title: Re: Users Online Today Mod
Post by: DemonicInfluence on June 03, 2006, 09:27:42 AM
That is how to keep hidden from other users other than admin...

For moderators try only allowing the moderator group?
Title: Re: Users Online Today Mod
Post by: cotdagoo on June 03, 2006, 11:52:38 AM
using the latest version of the mod, and 1.1rc2 of SMF - I'm having banned users showing up on the users online today list.. is it possible to have this removed? I keep getting questions from my members about banned poeple accessing the forum.

any help is appreciated.
Title: Re: Users Online Today Mod
Post by: Bigguy on June 03, 2006, 11:53:43 AM
You might see them online but I think all there viewing is a "You are banned" message.
Title: Re: Users Online Today Mod
Post by: cotdagoo on June 03, 2006, 03:05:44 PM
Quote from: Bigguy on June 03, 2006, 11:53:43 AM
You might see them online but I think all there viewing is a "You are banned" message.

Indeed.. however it's still somewhat confusing to regular members who don't have access to viewing error logs to see that it's just a ban message. I've litterally gotten about 10-15 PMs from people asking why banned names still show up (just in the past 2 days)

Is there not any way to filter banned users out of the list, much like the hidden users are? Seems kinda silly to include users that are banned in the list.. perhaps that's just my personal prefrence though.

cheers
Title: Re: Users Online Today Mod
Post by: Carceri on June 03, 2006, 06:46:15 PM
Quote from: cotdagoo on June 03, 2006, 03:05:44 PM
Is there not any way to filter banned users out of the list, much like the hidden users are? Seems kinda silly to include users that are banned in the list.. perhaps that's just my personal prefrence though.

I guess it's a personal preference. You might argue that they are active on the forum that day, even though they are banned. You can also argue that they are not valid users because they have been banned. Both points are valid IMO.
Title: Re: Users Online Today Mod
Post by: ghostfreak on June 04, 2006, 03:46:09 PM
Great mod, works fine :)
Title: Re: Users Online Today Mod
Post by: tzd on June 05, 2006, 05:17:45 PM
What do i have to edit in my croatian language to make this work?
Title: Re: Users Online Today Mod
Post by: WarBirD on June 06, 2006, 02:18:20 AM
I tried all that stuff and never got it to work  :(, I need it for the black22 (http://themes.simplemachines.org/index.php?lemma=19) Theme. Anyone can help me with that ?

WarBirD
Title: Re: Users Online Today Mod
Post by: DemonicInfluence on June 08, 2006, 03:11:26 PM
MANUALLY EDIT the boardindex.template.php in your black22 theme..
Title: Re: Users Online Today Mod
Post by: WarBirD on June 08, 2006, 03:54:58 PM
Yeah, tried that, it ended this way.

Quote
Template Parse Error!
There was a problem loading the /Themes/black22_11rc2/BoardIndex.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

Parse error: parse error, unexpected T_STRING in .../Themes/black22_11rc2/BoardIndex.template.php on line 435

426:
427:         echo '
428:                                 <br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
429:                                 <a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
430:                         </span>
431:                 </td>
432:         </tr>';
433:
434:

435:                      ', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ')

436:                   </span>
437:                </td>
438:             </tr>';
439: ]]></search>

I did it with the Code that was written at page 23 of this Thread.

Quote from: akulion on May 15, 2006, 01:05:45 PM
Quote from: scottws on May 14, 2006, 09:40:50 AM
Quote from: akulion on May 11, 2006, 11:47:05 PM
For users of 1.1RC2

I have a hell of a lot of themes installed on my forum and the easiest way to modify the boardindex.template.php file is to simply look for this line:

// If they are logged in, but SP1 style information is off... show a personal message bar.

it occurs in all the themes --- just place the code above it

it works A-OK
"Just place the code..."  What code are you referring to?  Beemer's code?

The code I am referring to is this:




', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ')
</span>
</td>
</tr>';
]]></search>
<add><![CDATA[
// Users online today
echo '
<tr>
<td class="titlebg" colspan="2">', $txt['uot_users_online_today_title'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], ' ', $txt['uot_users_online_today_title'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';

echo '
<div class="smalltext">';

echo $context['num_users_online_today'], ' ', $context['num_users_online_today'] == 1 ? $txt['uot_user_online_today'] : $txt['uot_users_online_today'];

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']))
echo ':<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';





Important Always remember to make a back-up of your original file before any modifications are made - that way EVEN if something goes wrong you dont have to worry because you can upload the old file and everything will be back to normal :)


Title: Re: Users Online Today Mod
Post by: perplexed on June 10, 2006, 10:34:31 AM
Quote from: cotdagoo on June 03, 2006, 03:05:44 PM
Quote from: Bigguy on June 03, 2006, 11:53:43 AM
You might see them online but I think all there viewing is a "You are banned" message.

Indeed.. however it's still somewhat confusing to regular members who don't have access to viewing error logs to see that it's just a ban message. I've litterally gotten about 10-15 PMs from people asking why banned names still show up (just in the past 2 days)

Is there not any way to filter banned users out of the list, much like the hidden users are? Seems kinda silly to include users that are banned in the list.. perhaps that's just my personal prefrence though.

cheers
you could always ban users from your entire .com via cpanel :)
Title: Re: Users Online Today Mod
Post by: perplexed on June 10, 2006, 10:45:10 AM
I'm not sure where we are with this but can someone explain this to me:


Users Online
Users Online    0 Guests, 1 User
Users active in past 15 minutes:
Perplexed
Most Online Today: 15. Most Online Ever: 85 (December 20, 2005, 05:43:09 AM)


Users Seen Today <----- the users online today mod
Users Online Users Seen Today    
26 users seen today:
*names removed*

If 26 users were seen today then why does it show most online today as 15. 

This is confusing
Title: Re: Users Online Today Mod
Post by: cotdagoo on June 10, 2006, 09:01:29 PM
@perplexed - yes.. I have resorted to banning the static IP from cpanel, but when a user changes their IP, it just creates more work.

regarding the users online today thing.. the "Most online today" refers the most people online at one time (default is within 15min) - so you had 26 users log in throughout the day, but 15 was the number of users online at the same time.
Title: Re: Users Online Today Mod
Post by: tinhyeuon on June 11, 2006, 02:00:35 PM
sorry!
I want hack it into my forum 1.0.7.
SO can i hack it ok?
Title: Re: Users Online Today Mod
Post by: Carceri on June 12, 2006, 05:47:11 AM
Quote from: tinhyeuon on June 11, 2006, 02:00:35 PM
sorry!
I want hack it into my forum 1.0.7.
SO can i hack it ok?

That depends on your skills :) I am sure it isn't too difficult to make it work with 1.0.7, but it doesn't out of the box
Title: Re: Users Online Today Mod
Post by: L.G.S on June 18, 2006, 06:34:03 AM
Sorry if this has been asked, but how do I let the mod show for guests instead of just the number of people who came on?
Title: Re: Users Online Today Mod
Post by: tapirul on June 18, 2006, 01:18:09 PM
regarding seeing users that are hidden on the "users online today," I don't think the problem is totally solved by changing the italics and not-showing-the-time-on-hover. It's very easy to figure out "who is the user that is hidden and connected right now". Let me tell you how:
- you see on "users online", say, "3 users online, (1 hidden)"
- on the list "users online today", the first three users shown are exactly the users online at the moment. Well, you just saw who's the "hidden" one (those unhidden appear on both list).
My point is that, by showing all users "online today" (includding those hidden), this mod actually cancels user's choice to post hidden.
It's a great mod though, and I wouldn't want to quit it. Is there any way to fix it by showing, to regular users, ONLY the users that are not hidden (on the "users onlyne today" list)? OR, another way would be to randomize the list on "online today" so the users connected at a moment do not appear first on the list. Alphabetic order maybe? In this case it would be impossible to do the trick I described.

PS sorry if the issue has been discussed further, I've read this topic only 'till page 5 or so - lack of free time...

It would be, also, wonderful if there were some settings in the admin panel you could control (turning int on or of for example, or giving permissions to see the list to specific groups). I understand that this takes a lot of codind, I am just dreaming :)
Title: Re: Users Online Today Mod
Post by: Carceri on June 19, 2006, 03:23:02 AM
Quote from: tapirul on June 18, 2006, 01:18:09 PM
My point is that, by showing all users "online today" (includding those hidden), this mod actually cancels user's choice to post hidden.

The behaviour you want, is exactly how 1.4.0 Beta 2 handles things. Hidden users are not shown on the list to regular users, only admins.
Title: Re: Users Online Today Mod
Post by: Carceri on June 19, 2006, 04:05:56 AM
Quote from: L.G.S on June 18, 2006, 06:34:03 AM
Sorry if this has been asked, but how do I let the mod show for guests instead of just the number of people who came on?

You modify the source code :) Look in BoardIndex.template.php for $context['user']['is_guest']. It occurs twice in the file.

I would really like to add a control panel at some point where you could change some options, since it is impossible to satisfy everyone this the same set of options. The problem is, as you all know, the lack of time.
Title: Re: Users Online Today Mod
Post by: tapirul on June 19, 2006, 11:11:46 AM
thanks ceceri. I am still using 1.3.0 (afraid of betas..:))...
Anyway, I found a way around the issue I mentioned above. All credits go to Ştefan Tălpălaru, actually.
To show Users online today in alphabetical order rather than login time, you have to do some minor modifications in the BoardIndex.php file (Sources folder), as follows:
Delete "$row['lastLogin'] . " from here

$context['users_online_today'][$row['lastLogin'] . $row['memberName']] = array(
'id' => $row['ID_MEMBER'],
'username' => $row['memberName'],
'name' => $row['realName'],
'group' => $row['ID_GROUP'],
'href' => $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
'link' => $link,
'is_buddy' => $is_buddy,
'hidden' => empty($row['showOnline']),
);

$context['list_users_online_today'][$row['lastLogin'] . $row['memberName']] = (empty($row['showOnline']) && allowedTo('moderate_forum')) ? '<i>' . $link . '</i>' : $link;


so it will look like

$context['users_online_today'][$row['memberName']] = array(
'id' => $row['ID_MEMBER'],
'username' => $row['memberName'],
'name' => $row['realName'],
'group' => $row['ID_GROUP'],
'href' => $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
'link' => $link,
'is_buddy' => $is_buddy,
'hidden' => empty($row['showOnline']),
);

$context['list_users_online_today'][$row['memberName']] = (empty($row['showOnline']) && allowedTo('moderate_forum')) ? '<i>' . $link . '</i>' : $link;


and change "krsort" with "ksort"
  mysql_free_result($result);

   krsort($context['users_online_today']);
   krsort($context['list_users_online_today']);


Remeber, in ASCII capital letters come before small letters (I didn't know..), so all usernames starting with a capital letter will come first.
This works great if  you want your users to be able to see who was online today (regardless hidden/unhidden), without figuring out who's online at the moment

Title: Re: Users Online Today Mod
Post by: Carceri on June 19, 2006, 01:03:54 PM
Quote from: tapirul on June 19, 2006, 11:11:46 AM
thanks ceceri. I am still using 1.3.0 (afraid of betas..:))...
Anyway, I found a way around the issue I mentioned above. All credits go to Ştefan Tălpălaru, actually.

Well, I posted a similar solution somewhere in this thread when someone wanted the list sorted by usernames instead of last logged in :)

By the way... I actually think that 1.4.0 beta 2 has less bugs than 1.3.0 as it has been around for a long time without any problems. It would have been called 1.4.0 final when SMF 1.1 was released as final, but that seems to take a long time.
Title: Re: Users Online Today Mod
Post by: tapirul on June 19, 2006, 01:47:54 PM
 :)
I didn't have the patience to read 25 pages.. :P
Is there any way I can upgrade to 1.4, or I have to uninstall first?
Title: Re: Users Online Today Mod
Post by: Carceri on June 20, 2006, 02:11:30 AM
You need to uninstall the old version first. Somewhere in these 26 pages are descriptions of bad things that can happen if you just install it op top of an old version :)
Title: Re: Users Online Today Mod
Post by: tapirul on June 20, 2006, 11:18:27 AM
okay, i'l read an uninstall
Title: Re: Users Online Today Mod
Post by: TGB on June 20, 2006, 08:18:12 PM
This is not a huge problem but im just wondering how to fix it.

I have successfully installed the mod onto my custom theme
the only problem is that it is using this border: (http://www.dreamcasthaven.com/forum/Themes/TechBlue1/images/catbg2.gif)

and i think it is supposed to be this border: (http://www.dreamcasthaven.com/forum/Themes/TechBlue1/images/catbg.gif)

See here:
(http://freespaces.com/acidbath/tech_blue.png)

The default theme seems to be working fine:
(http://freespaces.com/acidbath/default.png)


I've tried several things and still can't manage to fix it.
Title: Re: Users Online Today Mod
Post by: RoarinRow on June 21, 2006, 12:55:05 AM
I have multiple themes on my site and this is what I did to my BoardIndex.template.php file:

Find this:

// Users online today

   echo '
   <tr>
      <td class="titlebg" colspan="2">'

Change the "titlebg" to "catbg"

Be sure to backup your file.
Title: Re: Users Online Today Mod
Post by: auroramae on June 21, 2006, 08:38:05 AM
regarding showing guests-
Quote from: Carceri on June 19, 2006, 04:05:56 AM
You modify the source code :) Look in BoardIndex.template.php for $context['user']['is_guest']. It occurs twice in the file.

I have the same question but I am clueless as to how to change this to make the guests show as users in the list.  A member asked that we show them as we are a community site and we get many more guests than members on the boards.

I am hoping you can find the time to walk me through how I should change it?

I posted the question in the general coding section and I couldn't delete it...sorry for the redundant post.

BTW  I love this mod!
aurora
SMF 1.1 RC2
Title: Re: Users Online Today Mod
Post by: TGB on June 21, 2006, 01:45:58 PM
Quote from: RoarinRow on June 21, 2006, 12:55:05 AM
I have multiple themes on my site and this is what I did to my BoardIndex.template.php file:

Find this:

// Users online today

   echo '
   <tr>
      <td class="titlebg" colspan="2">'

Change the "titlebg" to "catbg"

Be sure to backup your file.

Works perfectly thanks
Title: Re: Users Online Today Mod
Post by: RoarinRow on June 21, 2006, 01:51:55 PM
Quote from: edsloter on June 21, 2006, 01:45:58 PM
Quote from: RoarinRow on June 21, 2006, 12:55:05 AM
I have multiple themes on my site and this is what I did to my BoardIndex.template.php file:

Find this:

// Users online today

   echo '
   <tr>
      <td class="titlebg" colspan="2">'

Change the "titlebg" to "catbg"

Be sure to backup your file.

Works perfectly thanks

Welcome, glad to help.  8)
Title: Re: Users Online Today Mod
Post by: Carceri on June 22, 2006, 09:05:09 AM
Quote from: auroramae on June 21, 2006, 08:38:05 AM
I have the same question but I am clueless as to how to change this to make the guests show as users in the list.

This is not what my previous post referred to. It was how to show the list of online users to guest visiting the forum, not to show the guests in the list. IMO showing guests in the list 1) doesn't make much sense, and 2) is actually impossible to do as discussed previously in this thread.

1) You will end up with a list with a lot of entries saying "Guest". That's hardly useful information :)

2) You cannot distinguish a guest from a previous guest that has visited the forum earlier that day.
Title: Re: Users Online Today Mod
Post by: auroramae on June 22, 2006, 11:01:52 AM
Sorry for mistaking one issue for another.

I realize that it is impossible to distinguish guests.
I did read the previous thread regarding the issues you cite.

Would it be possible to show the total number of guests?
Or is that shown somewhere else in the stats that I am not seeing?
Even if it was not accurate it would give a rough idea of how many people browsed the board that day.

aurora
Title: Re: Users Online Today Mod
Post by: Carceri on June 23, 2006, 06:45:26 PM
Quote from: auroramae on June 22, 2006, 11:01:52 AM
I realize that it is impossible to distinguish guests.
<snip>
Would it be possible to show the total number of guests?

I guess you answered your own question :)

One could do a rough estimate of the number of times a guest user visited the forum, or the number of different ip addresses used by guests, but as far as I know that information is not available in the database, so one would have to add it first.
Title: Re: Users Online Today Mod
Post by: auroramae on June 23, 2006, 10:26:29 PM
Thanks for taking the time to reply to my elementary quieries!
Title: Re: Users Online Today Mod
Post by: carola0102 on June 25, 2006, 06:50:11 AM
I'm using chatbubbles theme.. how to make this mod visible after installing it? Should I edit only the BoardIndex.template.php? And what exactly should I edit? I read the guidelines on this forum. But still I couldnt make it :-[ Can anyone please help?

Thanks in advance,
Carola
Title: Re: Users Online Today Mod
Post by: DemonicInfluence on June 26, 2006, 07:02:19 PM
only edit boardindex.template.php
Title: Re: Users Online Today Mod
Post by: Fatih! on June 28, 2006, 06:53:31 AM
I want to list user online last 24 hour.
How can i do this?

Thanx
Title: Re: Users Online Today Mod
Post by: PrizeLive.com on June 28, 2006, 10:13:33 AM
Installed successfully!! Thanks..

You can find it here: http://www.moneytalkpro.com/index.php if you want to see it :D.

Quote from: DeDu on June 28, 2006, 06:53:31 AM
I want to list user online last 24 hour.
How can i do this?

Thanx

Try this:

Admin >> Features and Options >> Change the "User online time threshold" to 1440 if you want to show how many have been online in last 24 hours.
Title: Re: Users Online Today Mod
Post by: PrizeLive.com on June 28, 2006, 10:34:18 AM
Once you install this, how can you disable it?
Title: Re: Users Online Today Mod
Post by: Gobo on June 28, 2006, 12:18:36 PM
just remove it from the board index template and it will be gone :D
Title: Re: Users Online Today Mod
Post by: Fatih! on June 28, 2006, 01:27:52 PM
Quote from: SurfExcelerator.com on June 28, 2006, 10:13:33 AM

Try this:

Admin >> Features and Options >> Change the "User online time threshold" to 1440 if you want to show how many have been online in last 24 hours.
Yes, i know it but i want to view last ten minute and 24 hour online list
Title: Re: Users Online Today Mod
Post by: carola0102 on June 29, 2006, 02:23:11 AM
Quote from: DemonicInfluence on June 26, 2006, 07:02:19 PM
only edit boardindex.template.php

thank you so much, but what should I edit there?
Title: Re: Users Online Today Mod
Post by: PrizeLive.com on June 29, 2006, 09:09:16 AM
Quote from: akulion on June 28, 2006, 12:18:36 PM
just remove it from the board index template and it will be gone :D

Isn't there an admin function to disable it?
Title: Re: Users Online Today Mod
Post by: L.G.S on July 01, 2006, 08:38:23 AM
Admin disable would be a nice feature in the next version, if there is one
Title: Re: Users Online Today Mod
Post by: carola0102 on July 02, 2006, 12:10:40 PM
Quote from: carola0102 on June 25, 2006, 06:50:11 AM
I'm using chatbubbles theme.. how to make this mod visible after installing it? Should I edit only the BoardIndex.template.php? And what exactly should I edit? I read the guidelines on this forum. But still I couldnt make it :-[ Can anyone please help?

Thanks in advance,
Carola

anyone?
Title: Re: Users Online Today Mod
Post by: DemonicInfluence on July 03, 2006, 11:48:11 AM
Umm... In the install.xml there is a section for boardindex.template.php... Then just do the edits..
Title: Re: Users Online Today Mod
Post by: L.G.S on July 04, 2006, 04:56:34 PM
Hey, I'm trying to add this mod to Dilber MC theme, but I'm having this problem.

<file name="$themedir/BoardIndex.template.php">
<operation>
<search position="replace"><![CDATA[
<td class="windowbg2">
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
]]></search>
<add><![CDATA[
<td class="windowbg2"', $board['is_redirect'] && $modSettings['redirect_hide_columns'] ? ' colspan="2"' : '' , '>
<b><a href="', $board['href'], '" name="b', $board['id'], '"', ($board['is_redirect'] && $board['redirect_target'] != '') ? ' target="' . $board['redirect_target'] . '"' : '' , '>', $board['name'], '</a></b><br />
]]></add>


Except I have a problem..

This is the code in Dilber MC:

<td class="windowbg2" style="padding-top:12px; padding-bottom:12px;">

So what would I need to do to change this part so it works without template errors?
Title: Re: Users Online Today Mod
Post by: DemonicInfluence on July 05, 2006, 06:17:12 AM
no. Just add the part below.
Title: Re: Users Online Today Mod
Post by: AbsolutelyFreeWeb on July 05, 2006, 09:33:07 AM
So there are two versions:

1.3.1 that shows online users to guests
1.4.0 beta that does not

but both work on 1.1 rc2 ?
Title: Re: Users Online Today Mod
Post by: Bigguy on July 05, 2006, 10:06:49 AM
Yes thats correct. I don`t think I would use the beta on a live site though.
Title: Re: Users Online Today Mod
Post by: L.G.S on July 05, 2006, 10:52:28 AM
Oops sorry I posted my problem in the wrong forum
Title: Re: Users Online Today Mod
Post by: Carceri on July 06, 2006, 07:55:09 AM
The beta version was meant to test out new features, and hence it should not be used for production systems. However, lack of time on my side has meant that I have not added new features to it in a long time, only fixed bugs as they appeared. This means that the current beta is actually the most bug-free version of this mod so far :)
Title: Re: Users Online Today Mod
Post by: PacificWx on July 20, 2006, 11:44:48 AM
I was told to post here with my query:

SMF Version: SMF 1.1 RC2
Not really causing any problems - just showing up a lot in my error log.

Undefined index: uot_users_online_today_title
File: /home/pacificw/public_html/forum/Themes/default/BoardIndex.template.php (eval?)
Line: 484

Any particular fix to this?
Title: Re: Users Online Today Mod
Post by: SpyDie on July 20, 2006, 11:49:46 AM
That would be caused by whatever user created that error, whatever theme he is using doesn't have the following strings in Modifications.english.php:

Quote// Users Online Today Mod
$txt['uot_users_online_today_title']='Users Logged In Today';
$txt['uot_total_users_online_today']='Users Logged In Today';
$txt['uot_yesterday']='Yesterday at ';
$txt['uot_total']='Total';
$txt['uot_visible']='Visible';
$txt['uot_hidden']='Hidden';

Make sure in each of your themes you have this in the Themes/*themename*/languages/Modifications.english.php file.
Title: Re: Users Online Today Mod
Post by: PacificWx on July 20, 2006, 11:53:28 AM
ok, I will look at that - thank you :)

Edited to add - fixed it up good and proper - thanks for that!
Title: Re: Users Online Today Mod
Post by: fiver on July 21, 2006, 03:59:24 AM
Hi Carceri,

1. The alt="Users Online Users Logged In Today" is still there when installed with 1.40beta2.
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], ' ', $txt['uot_users_online_today_title'], '" border="0" />

I've changed mine to alt="Users Logged In Today"
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['uot_users_online_today_title'], '" border="0" />

2. Since the Title and the Alt are using the same words "Users Logged In Today", there is no need to have 2 variables in Modifications.english.php
$txt['uot_users_online_today_title']='Users Logged In Today';
$txt['uot_total_users_online_today']='Users Logged In Today';


Maybe a $txt['uot_ulit'] will do?
$txt['uot_ulit']='Users Logged In Today';

SMF does it that way too for "Users Online", by using the same variable $txt[158] for Title and Alt.
// "Users online" - in order of activity.
echo '
<tr>
<td class="titlebg" colspan="2">', $txt[158], '</td>
</tr><tr>
<td rowspan="2" class="windowbg" width="20" valign="middle" align="center">
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', '<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], '" />', $context['show_who'] ? '</a>' : '', '
</td>
<td class="windowbg2" width="100%">';


;)
Title: Re: Users Online Today Mod
Post by: BMRMorph on July 21, 2006, 12:01:43 PM
*gruml*
seems that i'm some kind of stupid...
i c<nt get it to work with the babylon theme. i did a few code changes to support german
language and in default it works but in babylon...
so this is a request to Carceri:
maybe you could include the required changes to the babylon script in your next release?
(it seems a good idea in two ways for me 1. it solves my problem *g* 2. the babylon theme
is also like the default theme shiped with the smf download :) )
Title: Re: Users Online Today Mod
Post by: Carceri on July 21, 2006, 03:59:35 PM
Quote from: fivearts on July 21, 2006, 03:59:24 AM
1. The alt="Users Online Users Logged In Today" is still there when installed with 1.40beta2.

2. Since the Title and the Alt are using the same words "Users Logged In Today", there is no need to have 2 variables in Modifications.english.php

Yes, I know these two. I thought I fixed them ages ago, but apparently I only did it for the version here on my harddisk :)
Title: Re: Users Online Today Mod
Post by: Carceri on July 21, 2006, 04:01:18 PM
Quote from: BMRMorph on July 21, 2006, 12:01:43 PM
maybe you could include the required changes to the babylon script in your next release?

For the time being, I only make the required changes for the default theme, sorry. It's simply due to lack of time.
Title: Re: Users Online Today Mod
Post by: xxx on July 22, 2006, 04:24:43 PM
Is there a version who works with 1.0.7 ???
Title: Re: Users Online Today Mod
Post by: BMRMorph on July 23, 2006, 05:00:51 AM
Quote from: Carceri on July 21, 2006, 04:01:18 PM
For the time being, I only make the required changes for the default theme, sorry. It's simply due to lack of time.
Mhh, i can understand that, in some cases nothing other than me *g*
but in that case could someone post which changes exactly have to made to the babylon theme.
I know, there are some sugestions which should work to all themes
I paste that code above the "// If they are logged in, but SP1..." line but that does just an output like in that post (http://www.simplemachines.org/community/index.php?topic=55513.msg566981#msg566981) (and below).
Title: Re: Users Online Today Mod
Post by: BeoR on July 24, 2006, 03:54:45 PM
Is there a way to make it work at the "statistics center" instead of at the board index? I can't seem to make it "list" the users who logged in for the day.

http://www.istorya.net/forums/index.php?action=stats - I placed it just above the "Forum History"
Title: Re: Users Online Today Mod
Post by: Carceri on July 24, 2006, 07:10:50 PM
Quote from: BeoR on July 24, 2006, 03:54:45 PM
Is there a way to make it work at the "statistics center" instead of at the board index? I can't seem to make it "list" the users who logged in for the day.

That's because that list is only built in BoardIndex.php whereas Stats.php is loaded for the stats center. Stats.php only counts the total number of users logged in that day and does not build the list.

If you want to change this, take a look at the changes made in BoardIndex.php and apply them to Stats.php also.
Title: Re: Users Online Today Mod
Post by: BeoR on July 24, 2006, 11:47:36 PM
I did everything the mod does to BoardIndex.php to stats.template.php. It already displays the static texts but it doesn't display the dynamic data.
Title: Re: Users Online Today Mod
Post by: Joshsux on August 01, 2006, 01:37:34 AM
can anybody please explain what code i need to find and where i need to put it in my custom theme file? i'm lost and i keep getting board errors because im doing it wrong please help me do it
Title: Re: Users Online Today Mod
Post by: SpyDie on August 01, 2006, 06:33:02 AM
This explains it simple enough:

http://www.simplemachines.org/community/index.php?topic=55513.msg575925#msg575925

Just edit the BoardIndex.template.php file in each of your Themes folders like said there.
Title: Re: Users Online Today Mod
Post by: Joshsux on August 02, 2006, 01:47:43 AM
Thanks, i found it and it works fine now mate.

Edit: is there anyway to make the number of people number on the same line as the people? atm it looks like this:

4 :
NAME, NAME, NAME, NAME

Anyway to make it like

4 : NAME, NAME, NAME, NAME   

Would look better wouldn't it?
Title: Re: Users Online Today Mod
Post by: Joshsux on August 09, 2006, 01:48:53 AM
Quote from: rsj1 on May 20, 2006, 11:02:56 AM
;D Many thanks it worked a treat!

Quote from: Carceri on May 18, 2006, 07:20:56 AM
Quote from: rsj1 on May 17, 2006, 04:51:00 PM
Is there a way to make this hack (I'm using 1.4 beta) with the default skin show users online in the last 24 hours (IE keep cycling around instead of resetting at midnight)? Any help or suggestions would be most appreciated ;)

That should be easy. In BoardIndex.php find


$nowdate = @getdate(forum_time(false));
$midnight = mktime(0, 0, 0, $nowdate['mon'], $nowdate['mday'], $nowdate['year']) - ($modSettings['time_offset'] * 3600);


And replace with


$midnight = time() - 86400;


And in Stats.php find


$frag = explode('-', strftime('%Y-%m-%d', time()));
$midnight = forum_time(false, mktime(0, 0, 0, (int) $frag[1], (int) $frag[2], (int) $frag[0]));


and replace with


$midnight = time() - 86400;


Also edit Modifications.english.php to the appropriate text you want displayed

im using the Aa_New_Damage and i wanna do what he is doing with the 24 hour thing instead of midnight right, but i don't have a stats.php? i also can't find that code.
Title: Re: Users Online Today Mod
Post by: Carceri on August 09, 2006, 05:18:14 PM
Quote from: Joshsux on August 09, 2006, 01:48:53 AM
but i don't have a stats.php?

Yes you do. It's a part of SMF, not the themes.
Title: Re: Users Online Today Mod
Post by: Joshsux on August 09, 2006, 11:23:57 PM
oh ok lol, so any idea how to get it working with this theme? i got it working i mean to make it so its 24 hour loop, i dont have any of the file but maybe stats.php will that work?
Title: Re: Users Online Today Mod
Post by: Carceri on August 10, 2006, 02:21:42 AM
Quote from: Joshsux on August 09, 2006, 11:23:57 PM
oh ok lol, so any idea how to get it working with this theme? i got it working i mean to make it so its 24 hour loop, i dont have any of the file but maybe stats.php will that work?

No, you have to change BoardIndex.php for that as mentioned above. Note that this file is NOT the same as BoardIndex.template.php
Title: Re: Users Online Today Mod
Post by: Joshsux on August 11, 2006, 01:55:51 AM
mmmm hmmmm and where do i find this "BoardIndex.php" as i can't find it NO WHERE in my FTP....? why do people help but only give little replies thinking people know everything how the hell am i suppose to know where this file is?
Title: Re: Users Online Today Mod
Post by: Bigguy on August 11, 2006, 02:02:09 AM
umm, I do believe it is in the Sources folder, were you have installed your forum.
Title: Re: Users Online Today Mod
Post by: Carceri on August 12, 2006, 06:02:13 PM
Quote from: Joshsux on August 11, 2006, 01:55:51 AM
why do people help but only give little replies thinking people know everything how the hell am i suppose to know where this file is?

Well, it appears as if you found Stats.php. BoardIndex.php is in the same directory, so I assumed that would be equally easy to find :)
Title: Re: Users Online Today Mod
Post by: Joshsux on August 12, 2006, 10:37:18 PM
Yeeh hey i got it to work thanks you guys for helping me  8)
Title: Re: Users Online Today Mod
Post by: deadpoeticstar on August 14, 2006, 12:09:08 PM
could this be about ready for an RC3 update?
Title: Re: Users Online Today Mod
Post by: Carceri on August 15, 2006, 04:06:26 AM
Quote from: deadpoeticstar on August 14, 2006, 12:09:08 PM
could this be about ready for an RC3 update?

Sure, as soon as SMF RC3 is released I will make this mod compatible with it.
Title: Re: Users Online Today Mod
Post by: kittykatt on August 15, 2006, 01:28:18 PM
Sorry if I am missing something... but when will it be ready for SMF 1.0.7.?
Title: Re: Users Online Today Mod
Post by: Carceri on August 15, 2006, 01:42:12 PM
It will never be ready for 1.0. It will be ready for 1.1 when it is released.

I have also added a version for 1.1 RC3 now, but since there are no changes between RC2 and RC3 in the files that this mod affects, that version should also be compatible with RC2.
Title: Re: Users Online Today Mod
Post by: ckgb on August 24, 2006, 08:26:29 PM
Thank you very much for RC3 virsion of the mod.

I understand by default only registered users can see the names in the users today list.

Where can I change the permissions so that everybody is able to see the full list and not the number alone.
Title: Re: Users Online Today Mod
Post by: Carceri on August 25, 2006, 01:44:12 AM
Quote from: ckgb on August 24, 2006, 08:26:29 PM
Where can I change the permissions so that everybody is able to see the full list and not the number alone.

Edit BoardIndex.template and remove the line that says

if (!$context['user']['is_guest'])

Also, change the line

if (!empty($context['users_online_today']) && !$context['user']['is_guest'])

to

if (!empty($context['users_online_today']))

That should do it (although I have not tested)

Title: Re: Users Online Today Mod
Post by: ckgb on August 25, 2006, 03:21:35 AM
It did the trick. Thank you very much.
Title: Re: Users Online Today Mod
Post by: scottws on August 26, 2006, 12:08:56 AM
Quote from: Carceri on May 18, 2006, 07:20:56 AM
Quote from: rsj1 on May 17, 2006, 04:51:00 PM
Is there a way to make this hack (I'm using 1.4 beta) with the default skin show users online in the last 24 hours (IE keep cycling around instead of resetting at midnight)? Any help or suggestions would be most appreciated ;)

That should be easy. In BoardIndex.php find


$nowdate = @getdate(forum_time(false));
$midnight = mktime(0, 0, 0, $nowdate['mon'], $nowdate['mday'], $nowdate['year']) - ($modSettings['time_offset'] * 3600);


And replace with


$midnight = time() - 86400;


And in Stats.php find


$frag = explode('-', strftime('%Y-%m-%d', time()));
$midnight = forum_time(false, mktime(0, 0, 0, (int) $frag[1], (int) $frag[2], (int) $frag[0]));


and replace with


$midnight = time() - 86400;


Also edit Modifications.english.php to the appropriate text you want displayed

I am interested in also using this mod to represent the users online in the last 24 hours instead of the last day with a reset at 12:00am.

However, 'm not finding this code to edit mentioned in the files.  I searched ./Sources/BoardIndex.php by "nowdate" and it found nothing.  I also searched ./Sources/Stats.php by "frag" and by "explode" and found nothing. I just installed the newest version of this mod on 1.1 RC3 three days ago.

Here is what I am finding in ./Sources/BoardIndex.php that might be similar:

$date = @getdate(forum_time(false));
$midnight = mktime(0, 0, 0, $date['mon'], $date['mday'], $date['year']) - ($modSettings['time_offset'] * 3600);


As for ./Sources/Stats.php, I wasn't sure I could find what you were instructing, so I am posting all of what I found that seems to be related to this mod:

// Members online so far today.
$result = db_query("
SELECT mostOn
FROM {$db_prefix}log_activity
WHERE date = $date
LIMIT 1", __FILE__, __LINE__);
list ($context['online_today']) = mysql_fetch_row($result);
mysql_free_result($result);

$context['online_today'] = (int) $context['online_today'];

// Total members online today
$date = @getdate(forum_time(false));
$midnight = mktime(0, 0, 0, $date['mon'], $date['mday'], $date['year']) - ($modSettings['time_offset'] * 3600);
$result = db_query("
SELECT
COUNT(*)
FROM {$db_prefix}members
WHERE lastLogin >= $midnight", __FILE__, __LINE__);
list ($context['total_users_online_today']) = mysql_fetch_row($result);


Has the code used in the mod changed since the quoted post was made?  What do I have to change to get my idea to work?
Title: Re: Users Online Today Mod
Post by: Carceri on August 26, 2006, 05:57:30 AM
Quote from: scottws on August 26, 2006, 12:08:56 AM
Has the code used in the mod changed since the quoted post was made?  What do I have to change to get my idea to work?

Yes, the code has changed, but it should be even simpler. Just look for

$date = @getdate(forum_time(false));
$midnight = mktime(0, 0, 0, $date['mon'], $date['mday'], $date['year']) - ($modSettings['time_offset'] * 3600);

instead.
Title: Re: Users Online Today Mod
Post by: scottws on August 26, 2006, 04:41:34 PM
Quote from: Carceri on August 26, 2006, 05:57:30 AM
Quote from: scottws on August 26, 2006, 12:08:56 AM
Has the code used in the mod changed since the quoted post was made?  What do I have to change to get my idea to work?

Yes, the code has changed, but it should be even simpler. Just look for

$date = @getdate(forum_time(false));
$midnight = mktime(0, 0, 0, $date['mon'], $date['mday'], $date['year']) - ($modSettings['time_offset'] * 3600);

instead.

So, I'm just changing the midnight part, right?
Title: Re: Users Online Today Mod
Post by: Carceri on August 26, 2006, 07:23:26 PM
Quote from: scottws on August 26, 2006, 04:41:34 PM
So, I'm just changing the midnight part, right?

Yes, and you can remove the line above as well
Title: Re: Users Online Today Mod
Post by: scottws on August 27, 2006, 10:34:34 AM
Thanks.
Title: Re: Users Online Today Mod
Post by: Badelehrling on August 30, 2006, 01:46:17 PM
Hi,

will you make a version compatible with 1.0.8? I tried all versions to install on my testforum. But no one worked :(

Greetz,
Badelehrling
Title: Re: Users Online Today Mod
Post by: Carceri on September 02, 2006, 07:01:11 AM
Quote from: Badelehrling on August 30, 2006, 01:46:17 PM
will you make a version compatible with 1.0.8? I tried all versions to install on my testforum. But no one worked :(

No I won't. That question has been answered countless times before. Hopefully 1.1 will soon be released, and then I will support an official release of SMF :)
Title: Re: Users Online Today Mod
Post by: SpyDie on September 03, 2006, 01:41:28 PM
Any ideas why the Online List is no longer clickable after applying it into the Dilber Theme?

Screenshot: http://www.landzdown.com/UsersOnline.jpg

I expect it is something rather simple...
Title: Re: Users Online Today Mod
Post by: Fiery on September 12, 2006, 09:38:18 PM
Hello,

I looked through the posts and could not find a solution to this.

On one of my message boards it shows

6 :
user names

How do I change the 6, to "Users online today"?

---

Also, on another message board how to I change Users Seen Today, to Users online today?

Thank you,

Brian
Title: Re: Users Online Today Mod
Post by: Carceri on September 17, 2006, 06:09:18 AM
Quote from: pmp6nl on September 12, 2006, 09:38:18 PM
On one of my message boards it shows

6 :
user names

How do I change the 6, to "Users online today"?

Seems you are missing some language settings. What language are you using? If you are using something else than english, you need to make the changes manually.

Quote from: pmp6nl on September 12, 2006, 09:38:18 PM
Also, on another message board how to I change Users Seen Today, to Users online today?

Users Seen Today was the text in an earlier version of this mod. You can either change the same language file or upgrade to the latest version of this mod.
Title: Re: Users Online Today Mod
Post by: Fiery on September 18, 2006, 12:59:33 PM
Quote from: Carceri on September 17, 2006, 06:09:18 AM
Quote from: pmp6nl on September 12, 2006, 09:38:18 PM
On one of my message boards it shows

6 :
user names

How do I change the 6, to "Users online today"?

Seems you are missing some language settings. What language are you using? If you are using something else than english, you need to make the changes manually.

Quote from: pmp6nl on September 12, 2006, 09:38:18 PM
Also, on another message board how to I change Users Seen Today, to Users online today?

Users Seen Today was the text in an earlier version of this mod. You can either change the same language file or upgrade to the latest version of this mod.

I am using english, what do I need to do?
Title: Re: Users Online Today Mod
Post by: gianni77 on September 19, 2006, 01:18:33 PM
great mod !

But what i would like to see is the names of male and female in different color
or is this something beyond the mod?
Title: Re: Users Online Today Mod
Post by: Skipdawg on September 19, 2006, 01:46:58 PM
What you could do there to take advantage of this mod is create a group for male and female and make there color group what you want and the mod will pickup on that and show that.  ;)
Title: Re: Users Online Today Mod
Post by: gianni77 on September 19, 2006, 01:52:27 PM
lol ...simple but effective

thank's  :D
Title: Re: Users Online Today Mod
Post by: steve in houston on September 19, 2006, 08:21:07 PM
i made a mod that works for 1.0.8.

it shows all users active in last 24 hours and
also shows member group colors.

i havent packaged it up yet but i can.

you can see it in action at http://www.stucknut.com/jimrome (http://www.stucknut.com/jimrome)
Title: Re: Users Online Today Mod
Post by: Badelehrling on September 20, 2006, 08:52:19 AM
Quote from: steve in houston on September 19, 2006, 08:21:07 PM
i havent packaged it up yet but i can.

This would be very nice :) I'm using SMF 1.0.8 and I would really like to use this mod :)
Title: Re: Users Online Today Mod
Post by: haktanir2 on September 20, 2006, 05:27:20 PM
Excellent mod, tyvm!  :D
Title: Re: Users Online Today Mod
Post by: qd-race on September 23, 2006, 10:36:46 AM
I cannot find the file and and code where this package add in default theme. I want to mod to the other custom theme. Please help.
Title: Re: Users Online Today Mod
Post by: codenaught on September 23, 2006, 10:45:33 AM
Quote from: qd-race on September 23, 2006, 10:36:46 AM
I cannot find the file and and code where this package add in default theme. I want to mod to the other custom theme. Please help.
It's in "Users_Online_Today_Mod.xml".

Search for
<file name="$themedir/BoardIndex.template.php" error="fatal">
Title: Re: Users Online Today Mod
Post by: qd-race on September 23, 2006, 11:11:00 AM
If it call BoardIndex.template.php from theme directory, why no result with the other custom theme like Babylon Theme. Is this $themedir is default theme. How to add to other custom theme?
Title: Re: Users Online Today Mod
Post by: codenaught on September 23, 2006, 11:30:19 AM
You need to manually apply it. Look at the bit I pointed to, open a text editor and do the search and replace for the custom theme's BoardIndex.template.php file.

This might help: How to make mods work with themes? (http://www.simplemachines.org/community/index.php?topic=34526.0)
Title: Re: Users Online Today Mod
Post by: qd-race on September 23, 2006, 12:54:59 PM
Thanks. At last, already managed to custom mod the package in other theme.
Anybody want to add this mode to their Babylon and Classic YaBB Theme?
Title: Re: Users Online Today Mod
Post by: edi67 on September 24, 2006, 10:48:25 AM
one question, mod work perfectly but in my forum i see user online today not soerted for name , and i show than in random way, is possible see them sorted for name?

look
www.crazyzone.ws
Title: Re: Users Online Today Mod
Post by: codenaught on September 24, 2006, 10:57:01 AM
Quote from: edi67 on September 24, 2006, 10:48:25 AM
one question, mod work perfectly but in my forum i see user online today not soerted for name , and i show than in random way, is possible see them sorted for name?

look
www.crazyzone.ws
It is not random. It is by the time they last logged in.

This is untested, but you can try changing in Sources/BoardIndex.php

$context['users_online_today'][$row['lastLogin'] . $row['memberName']] = array(

to

$context['users_online_today'][$row['memberName']] = array(
Title: Re: Users Online Today Mod
Post by: edi67 on September 25, 2006, 05:38:43 PM
Quote from: akabugeyes on September 24, 2006, 10:57:01 AM
Quote from: edi67 on September 24, 2006, 10:48:25 AM
one question, mod work perfectly but in my forum i see user online today not soerted for name , and i show than in random way, is possible see them sorted for name?

look
www.crazyzone.ws
It is not random. It is by the time they last logged in.

This is untested, but you can try changing in Sources/BoardIndex.php

$context['users_online_today'][$row['lastLogin'] . $row['memberName']] = array(

to

$context['users_online_today'][$row['memberName']] = array(

i tried but nothing changed always the same
Title: Re: Users Online Today Mod
Post by: steve in houston on September 28, 2006, 12:12:46 AM
I packaged up a similar mod for 1.0.8.
I'm just waiting for approval.

http://mods.simplemachines.org/index.php?mod=479 (http://mods.simplemachines.org/index.php?mod=479)
Title: Re: Users Online Today Mod
Post by: AbsolutelyFreeWeb on October 08, 2006, 03:56:38 PM
Finexe Mod made for tech blue theme has been rejected since it contains code from an old version of your mod.  Could I have your permission to use your code in the tech blue theme mod ?
See http://mods.simplemachines.org/index.php?mod=375
Title: Re: Users Online Today Mod
Post by: MoreBloodWine on October 16, 2006, 12:12:01 AM
Users Logged In Today

The above is the default text one sees in the info center... how can one change it to say something else... like you can do with the MCL (Membergroup Color Legend) mod...
Title: Re: Users Online Today Mod
Post by: Vinspire on October 16, 2006, 10:02:23 AM
Quote from: MoreBloodWine on October 16, 2006, 12:12:01 AM
Users Logged In Today

The above is the default text one sees in the info center... how can one change it to say something else... like you can do with the MCL (Membergroup Color Legend) mod...

Look into ur Modifications.english.php under languages folder.
Title: Re: Users Online Today Mod
Post by: MoreBloodWine on October 16, 2006, 03:18:32 PM
Thx ill give that a shot here in a bit and post if it worked ;-)
Title: Re: Users Online Today Mod
Post by: danskmacabre on November 07, 2006, 03:22:52 AM
Just installed this mod on the default theme.
It installed and worked fine.

All I need to do is change my helios theme to include this mod, which I will do tonight.

Thanks for this mod, it's very nice.

Title: Re: Users Online Today Mod
Post by: danskmacabre on November 08, 2006, 03:20:44 PM
was very easy to manually add to the helios theme.
Works perfectly.
Title: Re: Users Online Today Mod
Post by: rockinaway on November 12, 2006, 08:06:23 AM
Can this shows number of guests and spiders which have visited?
Title: Re: Users Online Today Mod
Post by: ArkServer on November 14, 2006, 01:19:17 PM
Quote from: rockinaway on November 12, 2006, 08:06:23 AM
Can this shows number of guests and spiders which have visited?

That, and how do i make it so that guests can also see the users online today instead of only an integer.
Title: Re: Users Online Today Mod
Post by: Vinspire on November 17, 2006, 07:06:56 AM
Quote from: ArkServer on November 14, 2006, 01:19:17 PM
That, and how do i make it so that guests can also see the users online today instead of only an integer.

I second this statement.
Title: Re: Users Online Today Mod
Post by: Carceri on November 17, 2006, 07:25:40 AM
It has been mentioned before in this thread. Unfortunately I can't remember exactly where, by try using the search.
Title: Re: Users Online Today Mod
Post by: Vinspire on November 17, 2006, 07:39:17 AM
Quote from: Carceri on August 25, 2006, 01:44:12 AM
Edit BoardIndex.template and remove the line that says

if (!$context['user']['is_guest'])

Also, change the line

if (!empty($context['users_online_today']) && !$context['user']['is_guest'])

to

if (!empty($context['users_online_today']))

That should do it (although I have not tested)

Is this the one ?
Title: Re: Users Online Today Mod
Post by: Carceri on November 17, 2006, 07:41:50 AM
It looks like it, but I have still not tested it :)
Title: Re: Users Online Today Mod
Post by: Vinspire on November 17, 2006, 10:00:27 PM
Quote from: Carceri on November 17, 2006, 07:41:50 AM
It looks like it, but I have still not tested it :)

Just tested it and everything working smoothly. Thanks Carceri :)
Title: Re: Users Online Today Mod
Post by: L.G.S on December 01, 2006, 09:14:57 AM
what would I need to change to have this as "Users online this week" ?

(not just words, the actual recording as well)
Title: Re: Users Online Today Mod
Post by: sager on December 07, 2006, 01:37:34 PM
waiting for 1.1 compatible
Title: Re: Users Online Today Mod
Post by: Carceri on December 07, 2006, 01:39:43 PM
Quote from: sager on December 07, 2006, 01:37:34 PM
waiting for 1.1 compatible

What exactly are you waiting for?
Title: Re: Users Online Today Mod
Post by: sager on December 07, 2006, 01:44:39 PM
the text doesnt show up..... when i install it on my forums. as in "USERS ONLINE TODAY " i can see the names but not the saying user online today .texts and even the header
Title: Re: Users Online Today Mod
Post by: Carceri on December 07, 2006, 01:50:25 PM
It works fine for me on 1.1, so the mod is compatible with 1.1. Are you perhaps using a different language than english?
Title: Re: Users Online Today Mod
Post by: Gobo on December 07, 2006, 02:58:11 PM
add these language strings to your Modifications.english.php file in your themes Languages folder just before the ?> at the end


$txt['uot_users_online_today_title']='Users Seen Today';
$txt['uot_user_online_today']='user seen today';
$txt['uot_users_online_today']='users seen today';
$txt['uot_total_users_online_today']='Users Seen Today';
$txt['uot_yesterday']='Yesterday at ';
Title: Re: Users Online Today Mod
Post by: lupus on December 08, 2006, 05:40:26 AM
So that i don't try and spend hours doing this has anyone done the work for the Helios_multi theme and could tell me what i need to change and where??

Thanks folks...

Title: Re: Users Online Today Mod
Post by: sager on December 08, 2006, 07:28:52 AM
by by mistake installed english utf and english uk.... how can i change the language ??? maybe it will wrk tht time...
Title: Re: Users Online Today Mod
Post by: vipmoney on December 11, 2006, 12:33:22 AM

This MOD doesn't record on the database the Users Online today value for each days ? to be seen on the stats page ?
Title: Re: Users Online Today Mod
Post by: Carceri on December 11, 2006, 01:31:54 AM
Quote from: vipmoney on December 11, 2006, 12:33:22 AM

This MOD doesn't record on the database the Users Online today value for each days ? to be seen on the stats page ?

That's true
Title: Re: Users Online Today Mod
Post by: THE BRA1N on December 11, 2006, 11:43:15 PM
Quote from: danskmacabre on November 08, 2006, 03:20:44 PM
was very easy to manually add to the helios theme.
Works perfectly.

Can you give a step-by -step of what you did to make it work with helios?
Title: Re: Users Online Today Mod
Post by: vipmoney on December 12, 2006, 12:57:36 PM
Quote from: Carceri on December 11, 2006, 01:31:54 AM
Quote from: vipmoney on December 11, 2006, 12:33:22 AM

This MOD doesn't record on the database the Users Online today value for each days ? to be seen on the stats page ?

That's true

And anybody knows how to do that ?

Or is this part of the plans for the next versions of this MOD ? btw, this mod is awesome ;)
Title: Re: Users Online Today Mod
Post by: mcalan2001 on December 13, 2006, 02:39:52 PM
Quote from: akabugeyes on September 24, 2006, 10:57:01 AM
It is not random. It is by the time they last logged in.
This is untested, but you can try changing in Sources/BoardIndex.php

$context['users_online_today'][$row['lastLogin'] . $row['memberName']] = array(

to

$context['users_online_today'][$row['memberName']] = array(

I think that needs to be much the same edit, but about ten lines down. However I'm no expert and it put the members in reverse alphabetic order. I couldn't see why. So I'll leave it to somebody who knows what they are doing. Please.  :D
Title: Re: Users Online Today Mod
Post by: FoneBone on December 14, 2006, 06:39:56 AM
Thx for this mod. I've moddified it a little, so it works with german language and the YaBB SE Classic Theme.
Title: Re: Users Online Today Mod
Post by: Carceri on December 14, 2006, 07:06:02 AM
Quote from: vipmoney on December 12, 2006, 12:57:36 PM
And anybody knows how to do that ?

Or is this part of the plans for the next versions of this MOD ? btw, this mod is awesome ;)

I don't know how to do it, but I am sure that given the time I could figure it out :-) I will not rule out that it might be added to a future version of this mod, but I don't want to make any promises. We'll see what my time permits.
Title: Re: Users Online Today Mod
Post by: wickedstangs on December 14, 2006, 08:14:32 PM
Question I removed all my board threads from guest. But when I log in I see guest logged in too.  What is that?
Title: Re: Users Online Today Mod
Post by: vipmoney on December 15, 2006, 02:51:53 AM
Quote from: Carceri on December 14, 2006, 07:06:02 AM
Quote from: vipmoney on December 12, 2006, 12:57:36 PM
And anybody knows how to do that ?

Or is this part of the plans for the next versions of this MOD ? btw, this mod is awesome ;)

I don't know how to do it, but I am sure that given the time I could figure it out :-) I will not rule out that it might be added to a future version of this mod, but I don't want to make any promises. We'll see what my time permits.

Thanks a lot ;)
Title: Re: Users Online Today Mod
Post by: nitins60 on December 18, 2006, 06:41:02 PM
can you add a feature of displaying small icon next to username? That icon refers to the browser they used. It's already available in vB. So can you add it as an extra option. It looks cool with small browser icons!
Title: Re: Users Online Today Mod
Post by: Stuart on December 21, 2006, 06:56:07 AM
I'd rather have the users in alphabetic order instead of time. Anyone an idea what I've to change to get the users in that specific order?

Cheers!
Title: Re: Users Online Today Mod
Post by: kross on December 22, 2006, 10:26:48 AM
can anyone help me, I want to use this mode for multylanguage forum, so I need to know how to do that.

languages: english-ut8, serbian-utf8 and croatian-utf8

I'm usin SMF 1.1.1 and I managed only to point to english-utf8, so I can see:
Total: 56 (Visible: 53, Hidden: 3)

but, when I swich to other then english-utf8, I get this:      
: 56 (: 53, : 3)

I now it's something easy, but can't remeber how ::)

thanks.
Title: Re: Users Online Today Mod
Post by: Stuart on December 22, 2006, 11:40:10 AM
Quote from: kross on December 22, 2006, 10:26:48 AM
can anyone help me, I want to use this mode for multylanguage forum, so I need to know how to do that.

languages: english-ut8, serbian-utf8 and croatian-utf8

I'm usin SMF 1.1.1 and I managed only to point to english-utf8, so I can see:
Total: 56 (Visible: 53, Hidden: 3)

but, when I swich to other then english-utf8, I get this:      
: 56 (: 53, : 3)

I now it's something easy, but can't remeber how ::)

thanks.

Probably you have to add (translate first) the information (given below) into the Language Files (default theme) called Modifications.english.php (were it says English any language you have).

$txt['uot_users_online_today_title']='Users Seen Today';
$txt['uot_user_online_today']='user seen today';
$txt['uot_users_online_today']='users seen today';
$txt['uot_total_users_online_today']='Users Seen Today';
$txt['uot_yesterday']='Yesterday at ';
Title: Re: Users Online Today Mod
Post by: FoneBone on December 22, 2006, 11:54:22 AM
I think Stuart is right. The path to these files should be : Themes/default/languages/
And the names of them are maybe Modifications.serbian-utf8.php and Modifications.croatian-utf8.php.
Title: Re: Users Online Today Mod
Post by: sanax on December 22, 2006, 03:38:21 PM
Anyone has an idea how to add the 'Users online today' in the TPortal stats block? Thought it would be neat to add the list below the 'Users online' list in this block? Any ideas?
Title: Re: Users Online Today Mod
Post by: Vinspire on December 23, 2006, 02:50:29 AM
Is it compatible wif SMF 1.1.1 ?
Title: Re: Users Online Today Mod
Post by: Carceri on December 23, 2006, 05:09:31 AM
Quote from: Vinspire on December 23, 2006, 02:50:29 AM
Is it compatible wif SMF 1.1.1 ?

Yes it is
Title: Re: Users Online Today Mod
Post by: Vinspire on December 26, 2006, 12:41:45 AM
Quote from: Carceri on December 23, 2006, 05:09:31 AM
Quote from: Vinspire on December 23, 2006, 02:50:29 AM
Is it compatible wif SMF 1.1.1 ?

Yes it is

Thanks :)
Title: Re: Users Online Today Mod
Post by: efish on December 27, 2006, 04:17:48 PM
Hey. My site uses 1.1.1 and we installed the mod but we are using a custom theme (Mercury), so can someone please tell us how to edit the file, etc.... to get the mod running on our site? Thanks for this, it looks great...excited to add it to my site!
Title: Re: Users Online Today Mod
Post by: Webrunner on December 27, 2006, 05:31:55 PM
Quote from: mcalan2001 on December 13, 2006, 02:39:52 PM
Quote from: akabugeyes on September 24, 2006, 10:57:01 AM
It is not random. It is by the time they last logged in.
This is untested, but you can try changing in Sources/BoardIndex.php

$context['users_online_today'][$row['lastLogin'] . $row['memberName']] = array(

to

$context['users_online_today'][$row['memberName']] = array(

I think that needs to be much the same edit, but about ten lines down. However I'm no expert and it put the members in reverse alphabetic order. I couldn't see why. So I'll leave it to somebody who knows what they are doing. Please.  :D

Find:

krsort($context['users_online_today']);
krsort($context['list_users_online_today']);


change into:

ksort($context['users_online_today']);
ksort($context['list_users_online_today']);


and the reverse sorting is over ;)
Title: Re: Users Online Today Mod
Post by: mariz26 on December 28, 2006, 05:10:12 AM
Im using RC 3 1.1 here in my forum www.monetaryjournal.com
I have downloaded twice this mod and yet its giving a test failed on 2 files so I didn't continue to install.  Please help
Title: Re: Users Online Today Mod
Post by: veldfire on December 28, 2006, 10:25:49 AM
I am using a few other mods as well and am running into an issue as these two parts are duplicated but not identical

Other Mod:
// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';


Users Online Today Mod:
// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
echo '<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';


Any idea how I can rectify this ?

TIA,
Veldfire
Title: Re: Users Online Today Mod
Post by: njoker555 on December 29, 2006, 10:23:56 PM
well im trying to get this working with aa new damage by m3talc0re, and what do i have to edit to fix this?  http://www.gamers-forum.com is the link, and i cant read through 34 pages of posts to find out, i have no time for that right now :(
Title: Re: Users Online Today Mod
Post by: nitins60 on December 29, 2006, 11:30:47 PM
Quote from: nitins60 on December 18, 2006, 06:41:02 PM
can you add a feature of displaying small icon next to username? That icon refers to the browser they used. It's already available in vB. So can you add it as an extra option. It looks cool with small browser icons!
Title: Re: Users Online Today Mod
Post by: Lord_Haart on December 30, 2006, 08:02:17 AM
I've installed this mod and works fine on default Theme with version 1.1.1, but I want it works with dilbermc Theme... how can I make it if dilbermc doesn't have a stats.template.php file??

Thanks ;)
Title: Re: Users Online Today Mod
Post by: kriskd on December 30, 2006, 08:10:15 AM
Quote from: Lord_Haart on December 30, 2006, 08:02:17 AM
I've installed this mod and works fine on default Theme with version 1.1.1, but I want it works with dilbermc Theme... how can I make it if dilbermc doesn't have a stats.template.php file??

Thanks ;)

I don't have a stats.template.php file with my custom template (basically the classic template) and it works fine.  As far as I understand, you only need to edit what theme files you have for your custom theme.  In my case, that was only BoardIndex.template.php.
Title: Re: Users Online Today Mod
Post by: Carceri on December 30, 2006, 08:18:29 AM
Quote from: nitins60 on December 29, 2006, 11:30:47 PM
can you add a feature of displaying small icon next to username? That icon refers to the browser they used. It's already available in vB. So can you add it as an extra option. It looks cool with small browser icons!

I haven't seen it in vB, but it sounds like it will just clutter the user interface. I like things simple, and I also like to have the list looking exactly like the "currenly online" users list.
Title: Re: Users Online Today Mod
Post by: njoker555 on January 01, 2007, 07:55:25 PM
how do i make this to show on a custom template?  is there a read me for it so i can maybe configure the template files or something?
Title: Re: Users Online Today Mod
Post by: Gobo on January 01, 2007, 08:31:45 PM
AFTER you install the mod using package manager

boardindex.template.php file is to simply look for this line:

// If they are logged in, but SP1 style information is off... show a personal message bar.

it occurs in all the themes --- just place the code above it





// Users online today
echo '
<tr>
<td class="titlebg" colspan="2">', $txt['uot_users_online_today_title'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], ' ', $txt['uot_users_online_today_title'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';

echo '
<div class="smalltext">';

echo $context['num_users_online_today'], ' ', $context['num_users_online_today'] == 1 ? $txt['uot_user_online_today'] : $txt['uot_users_online_today'];

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']))
echo ':<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';




IF required then in Modifications.english.php right before the ?> place this code:



$txt['uot_users_online_today_title']='Users Seen Today';
$txt['uot_user_online_today']='user seen today';
$txt['uot_users_online_today']='users seen today';
$txt['uot_total_users_online_today']='Users Seen Today';
$txt['uot_yesterday']='Yesterday at ';

Title: Re: Users Online Today Mod
Post by: nitins60 on January 02, 2007, 12:10:31 AM
Quote from: Carceri on December 30, 2006, 08:18:29 AM
Quote from: nitins60 on December 29, 2006, 11:30:47 PM
can you add a feature of displaying small icon next to username? That icon refers to the browser they used. It's already available in vB. So can you add it as an extra option. It looks cool with small browser icons!

I haven't seen it in vB, but it sounds like it will just clutter the user interface. I like things simple, and I also like to have the list looking exactly like the "currenly online" users list.
it's not the basic feature! But a mod is available, many of them are using! Looks pretty good!
www.danya-mobile.com
you can see it, but it's non english site!
Title: Re: Users Online Today Mod
Post by: Gobo on January 02, 2007, 12:31:15 AM
well it may look good bur remember one thing - each extra icon, each extra line added is more queries for ur server.

Scripts which display a lot of things may 'look good' but they are usually very hard on the server
Title: Re: Users Online Today Mod
Post by: nitins60 on January 02, 2007, 03:11:28 AM
Atleast for ppl who are online, it's not gonna kill server! I always want to see the browsers ppl use mostly!
Title: Re: Users Online Today Mod
Post by: nitins60 on January 02, 2007, 03:11:57 AM
Atleast for ppl who are online, it's not gonna kill server! I always want to see the browsers ppl use mostly!
Title: Re: Users Online Today Mod
Post by: Gobo on January 02, 2007, 03:50:36 AM
try the k-description mod it shows the browsers on peoples posts

also u can use the custom who.template (posted somewhere around) which shows peoples browsers
Title: Re: Users Online Today Mod
Post by: Dejan on January 02, 2007, 07:51:40 AM
Is it possible to show a number of visitors online today, and not just number of users?

Title: Re: Users Online Today Mod
Post by: Webby on January 04, 2007, 09:15:07 AM
I saw there was a spider (Google bot) online on my board just now, but could these spiders / bots also be counted so you can see someting like :

total: 5 (Visible: 3, Hidden: 0, Spiders: 2)

Or something like that ??
Title: Re: Users Online Today Mod
Post by: Carceri on January 04, 2007, 09:18:35 AM
Quote from: Dejan on January 02, 2007, 07:51:40 AM
Is it possible to show a number of visitors online today, and not just number of users?

No. One could only do an approximation.
Title: Re: Users Online Today Mod
Post by: SvenJTD on January 07, 2007, 09:08:16 AM
I did what akulion wrote, and I altered all off my modification files for languages I use, and I just got a bar under the forum saying users seen today and nothing more. Am I missing something ???? Im using smf1.1.1 with the babilon theme
Thanks
Title: Re: Users Online Today Mod
Post by: Gobo on January 07, 2007, 09:46:17 AM
did u add the code for the board index template?

thats the most important part.

Also the mod MUST be installed before the modifications!
Title: Re: Users Online Today Mod
Post by: SvenJTD on January 07, 2007, 09:51:58 AM
I instaled the mod, even it told me it has an error, then I altered the board index file using your mentioned code above, then I altered the modificationd.language files I have - and nothing :(
Title: Re: Users Online Today Mod
Post by: Gobo on January 07, 2007, 09:54:32 AM
where did u get the error? in which file?

because it could be that an essential bit of code failed to be added to the SMf files
Title: Re: Users Online Today Mod
Post by: SvenJTD on January 07, 2007, 09:57:58 AM
ermmm, Im new at this - there is no error looking in the admin panel errors, it just gave me an error when I installed the package
Title: Re: Users Online Today Mod
Post by: Gobo on January 07, 2007, 10:15:28 AM
yup thats the error which needs to be known to be honest
without that there really isnt knowing which file wasnt edited.

And the mod not working for u is a pure indication that it wasnt installed properly.

Try and uninstall and see if it gives an error in a specific file
but dont proceed with the uninstall
Title: Re: Users Online Today Mod
Post by: SvenJTD on January 08, 2007, 02:17:26 AM
Sorry, had to go out.
The error that it gives me is "Modification parse error" on both of the files.

Cheers for the intrest in the problem.
Title: Re: Users Online Today Mod
Post by: Gobo on January 08, 2007, 04:28:39 AM
what are the names of the files?

can u just copy and paste the errors?
because it is essential to know which file the error occured on and then i can give u the mod instructions for this.

this mod applies changes to:
Stats.english.php
BoardIndex.php
Stats.php
BoardIndex.template.php
Stats.template.php
Modifications.english.php

so ull have to say which files are giving errors
Title: Re: Users Online Today Mod
Post by: SvenJTD on January 08, 2007, 05:51:46 AM
this is what errors I get:

SvenJTD    Today at 11:49:03 AM
83.131.167.96      01e132b498df2dd5a33227ee5d9a8758
h**p://www.fiatisti.hr/forum_smf/index.php?action=packages;sa=install2;package=Users_Online_Today_1.4.0.zip

2: file_get_contents(/mounted-storage/home13/sub006/sc10958/www.fiatisti.hr/forum_smf/Packages/temp/./Users_Online_Today_Mod.xml): failed to open stream: Success
File: /mounted-storage/home13/sub006/sc10958/www.fiatisti.hr/forum_smf/Sources/Packages.php
Line: 541
   
SvenJTD    Today at 11:49:03 AM
83.131.167.96      01e132b498df2dd5a33227ee5d9a8758
h**p://www.fiatisti.hr/forum_smf/index.php?action=packages;sa=install2;package=Users_Online_Today_1.4.0.zip

2: file_get_contents(): Unable to access /mounted-storage/home13/sub006/sc10958/www.fiatisti.hr/forum_smf/Packages/temp/./Users_Online_Today_Mod.xml
File: /mounted-storage/home13/sub006/sc10958/www.fiatisti.hr/forum_smf/Sources/Packages.php
Line: 541
Title: Re: Users Online Today Mod
Post by: Gobo on January 08, 2007, 06:58:36 AM
ur problem is related to permissions from what I can tell

Check that your Packages folder (in your forum root) is CHMODD to 777
Also inside check to see there is a folder called temp if not create one and chmod it to 777 as well.

To chmod a folder just right click the folder using your FTP manager and select 'properties' and click all the boxed and then OK
Title: Re: Users Online Today Mod
Post by: SvenJTD on January 08, 2007, 07:26:29 AM
The packages forler is set to 777 and I did not have the temp folder. After I created one it installed OK, deleted the temp folder and still nothing.

Once again thanks for the help.
Title: Re: Users Online Today Mod
Post by: Gobo on January 08, 2007, 07:58:02 AM
oh no keep the temp folder its required by almost all mods.

Did you get any errors on Install at all?

Also can you give a link to ur page so I can check itour what ur board index lookslike
Title: Re: Users Online Today Mod
Post by: SvenJTD on January 08, 2007, 09:43:47 AM
Heres the link: http://www.fiatisti.hr/forum_smf/index.php

and this is what he reported as an error
8: Undefined index: num_users_online_today
File: /mounted-storage/home13/sub006/sc10958/www.fiatisti.hr/forum_smf/Themes/default/BoardIndex.template.php (eval?)
Line: 413

: Undefined index: num_users_online_today
File: /mounted-storage/home13/sub006/sc10958/www.fiatisti.hr/forum_smf/Themes/default/BoardIndex.template.php (eval?)
Line: 413
Title: Re: Users Online Today Mod
Post by: SvenJTD on January 08, 2007, 09:59:00 AM
One other thing, I am now able to install all of the mods I want after I make a temp folder, but none of them is showing up :(

Can this and all others be related ?
Title: Re: Users Online Today Mod
Post by: Gobo on January 08, 2007, 10:46:52 AM
I think this could be related to your language strings, since your forum is set to use a different language.

But I dont know mush about languages to be honest since I only use English myself.

But its very strange this is not working for u, especially since it is the default template as well.

Title: Re: Users Online Today Mod
Post by: Mayhem30 on January 08, 2007, 04:22:09 PM
I am using SMF 1.1.1

Anyways I can get this mod to show guests who's been online today?

It works great for registered users but it comes up completely blank for guests.

Thanks!
Title: Re: Users Online Today Mod
Post by: Mayhem30 on January 08, 2007, 10:18:05 PM
bump
Title: Re: Users Online Today Mod
Post by: bigmohi on January 11, 2007, 03:07:49 PM
someone help plz to install this mod at other themes, i tried everything but nothing work, plz say which code we replace!!
Title: Re: Users Online Today Mod
Post by: shaka on January 11, 2007, 06:38:20 PM
hi guys i have just installed this mod and my board index has went crazy

www.coversplace.com/newforum   any ideas how to fix this i have uninstalled and deleted the mod
Title: Re: Users Online Today Mod
Post by: watchhorse on January 12, 2007, 07:39:11 AM
I want to put this:
Quote// Users online today

   echo '
   <tr>
      <td class="titlebg" colspan="2">', $txt['uot_users_online_today'], '</td>
   </tr><tr>
      <td class="windowbg" width="20" valign="middle" align="center">
         <img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['uot_users_online_today'], '" border="0" />
      </td>
      <td class="windowbg2" width="100%">';

   echo '
         <div class="smalltext">';

  echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
  if (!$context['user']['is_guest'])
     echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';

   // Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
   if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
      echo '<br />', implode(', ', $context['list_users_online_today']);

   echo '
            <br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
            <a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
         </div>
      </td>
   </tr>';

on the stats-page so the list is not on the index of the forum but on the stats-page.
It want work now , the list is empty but when i put the code on de index-template i see the members.

What is wrong ... how can i put it on the stats-page so i will see the members???


Btw: sorry when my english is bad.
Title: Re: Users Online Today Mod
Post by: auroramae on January 14, 2007, 11:50:47 AM
I am hoping that someone will be kind enough to tell me how to manually edit the slick_pro graphite theme to show
Users Logged In Today
When I apply the mod to that theme it doesn't apply all of the changes.
It displays 
Users Online
but not
Users Logged In Today

Any help would be greatly appreciated.

aurora
Title: Re: Users Online Today Mod
Post by: Bigguy on January 14, 2007, 02:05:41 PM
This should be the only edit you have to do. In your BoardIndex.template.php find:

</span>
</td>
</tr>';


Before that add:

// Users online today

echo '
<tr>
<td class="titlebg" colspan="2">', $txt['uot_users_online_today'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['uot_users_online_today'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';

echo '
<div class="smalltext">';

  echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
  if (!$context['user']['is_guest'])
  echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
echo '<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';


Title: Re: Users Online Today Mod
Post by: auroramae on January 14, 2007, 02:25:55 PM
QuoteThis should be the only edit you have to do. In your BoardIndex.template.php find:

A thousand thank yous!
Worked like a charm.
Title: Re: Users Online Today Mod
Post by: SvenJTD on January 15, 2007, 12:44:19 PM
Finaly got it working :), but is there a way to make it line the users in alfabetical order ????
Thanks
Title: Re: Users Online Today Mod
Post by: watchhorse on January 16, 2007, 03:55:51 AM
Is there now way to put it in de stats-page.
The list in my forum is too big to put it in the index so i will put it in de stats-page.


Any help would be greatly appreciated.

Thanks
Title: Re: Users Online Today Mod
Post by: thegpg on January 16, 2007, 09:42:03 PM
I installed this mod on my forums (1.1.1) and it doesn't seem to be working.  Currently using the default theme.  Help please?
Title: Re: Users Online Today Mod
Post by: GC on January 16, 2007, 11:50:25 PM
Quote from: auroramae on January 14, 2007, 11:50:47 AM
I am hoping that someone will be kind enough to tell me how to manually edit the slick_pro graphite theme to show
Users Logged In Today
When I apply the mod to that theme it doesn't apply all of the changes.
It displays 
Users Online
but not
Users Logged In Today

Any help would be greatly appreciated.

aurora

How come nobody ever reads the modification file?
Title: Re: Users Online Today Mod
Post by: auroramae on January 17, 2007, 12:53:13 AM
I tried.  I think I am too stupid to understand it.
Title: Re: Users Online Today Mod
Post by: auroramae on January 17, 2007, 12:24:40 PM
If I disable the SP1 style of stats I lose the list of users logged in today.
When I enable the SP1 stats I lose the
stats at the top of the page with welcome newest member.
Is there any way around this.
I want the users logged in today list
without the SP1 stats
Title: Re: Users Online Today Mod
Post by: txleo on January 18, 2007, 02:06:54 AM
I am using the default themes also. Is this what I need to edit, in my case?  Same thing. It is not displaying the users-online-today even though the mod was installed.



Quote from: Bigguy on January 14, 2007, 02:05:41 PM
This should be the only edit you have to do. In your BoardIndex.template.php find:

</span>
</td>
</tr>';


Before that add:

// Users online today

echo '
<tr>
<td class="titlebg" colspan="2">', $txt['uot_users_online_today'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['uot_users_online_today'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';

echo '
<div class="smalltext">';

  echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
  if (!$context['user']['is_guest'])
  echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
echo '<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';



Title: Re: Users Online Today Mod
Post by: vodkanestum on January 18, 2007, 08:19:01 AM
hi, i'm using smf 1.1.1 on my forum and the theme Dilber Multicolor and i'd like to use the users online today mod on that theme but i don't know how to do it, can someone help me? :/
Title: Re: Users Online Today Mod
Post by: webvision on January 18, 2007, 10:03:30 AM
Nice Mod
Title: Re: Users Online Today Mod
Post by: mohoganybrwn on January 19, 2007, 01:15:20 AM
Hi.  Installed this mod, now I have the following at the top of my forum:

Quote$txt['uot_users_online_today']='Users Logged In Today'; $txt['uot_yesterday']='Yesterday at '; $txt['uot_total']='Total'; $txt['uot_visible']='Visible'; $txt['uot_hidden']='Hidden';


Can anyone tell me how I can remove this please?
Title: Re: Users Online Today Mod
Post by: Croco on January 19, 2007, 01:24:00 AM
Quote from: mohoganybrwn on January 19, 2007, 01:15:20 AM
Hi.  Installed this mod, now I have the following at the top of my forum:

Quote$txt['uot_users_online_today']='Users Logged In Today'; $txt['uot_yesterday']='Yesterday at '; $txt['uot_total']='Total'; $txt['uot_visible']='Visible'; $txt['uot_hidden']='Hidden';


Can anyone tell me how I can remove this please?


read this :
http://www.simplemachines.org/community/index.php?topic=143769.0
Title: Re: Users Online Today Mod
Post by: watchhorse on January 20, 2007, 06:04:09 AM
I try again:

I want to but the list on the stats-page and not on the index-page.
How can i do this???


Please help....
Title: Re: Users Online Today Mod
Post by: xtremecruiser on January 26, 2007, 11:09:07 PM
How about adding the guest count for the day too, just the number like it does for Users Online

Thanks
Title: Re: Users Online Today Mod
Post by: Tick on January 28, 2007, 12:50:42 PM
I recently installed this mod , I am using smf 1.1.1 and the theme classic YaBB SE theme.  I know that you have to modify the boardindex.  templete.  The prob I am having is I have no idea how to do this.  I am a fish out of water here .  I someone could give me a step by step to do this I would appreciate it.  THanks
Title: Re: Users Online Today Mod
Post by: Tick on January 28, 2007, 10:07:18 PM
I finally got it on the page.  Is it supposed to have a users logged on today title above it?  Mine does  not .  If it is supposed to please someone tell me how to add it.   Thanks ahead of time.
Title: Re: Users Online Today Mod
Post by: Tick on January 29, 2007, 05:10:48 PM
Can anybody tell me why the title users logged in today above where it shows users logged in today
Title: Re: Users Online Today Mod
Post by: ludothegreat on February 08, 2007, 02:07:13 AM
Just installed this mod on SMF 1.1.1  using Dilbert MC theme. I am now getting a bunch of code at the top of my Forum. Even after uninstalling the mod it is still there. Here is the code.

$txt['uot_users_online_today']='Users Logged In Today'; $txt['uot_yesterday']='Yesterday at '; $txt['uot_total']='Total'; $txt['uot_visible']='Visible'; $txt['uot_hidden']='Hidden';

I also tried to reinstall the mod thinking maybe something installed wrong and it added a second line with the same exact thing at the top. So now I have two lines of code. Here is the site if you want to check it out for yourself.

http://ludothegreat.com/mallorngardens/forums/

I just want to get rid of the code. Thanks in advance.
Title: Re: Users Online Today Mod
Post by: Sir_Trout on February 13, 2007, 09:34:04 PM
Just installed this mod on SMF 1.1.2  using Dilbert MC theme and it did not work, but it does work on the default theme.  so I did some reading and found the following...

Quote from: Bigguy on January 14, 2007, 02:05:41 PM
This should be the only edit you have to do. In your BoardIndex.template.php find:

</span>
</td>
</tr>';


Before that add:

// Users online today

echo '
<tr>
<td class="titlebg" colspan="2">', $txt['uot_users_online_today'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['uot_users_online_today'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';

echo '
<div class="smalltext">';

  echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
  if (!$context['user']['is_guest'])
  echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
echo '<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';




:P But I get get this error when I try and install the above code.
The file you tried to save generated the following error:
Parse error: parse error, unexpected '>' in BoardIndex.template.php on line 223

Any ideas?


-ST
Title: Re: Users Online Today Mod
Post by: Bigguy on February 13, 2007, 09:48:42 PM
I am getting the same error and will try to figure this out tonight. When I do I will post something. (if I do)
Title: Re: Users Online Today Mod
Post by: Sir_Trout on February 13, 2007, 09:52:02 PM
One more question, you said to look for this...
                      </span>
      </td>
   </tr>';

Do I look for the first instance of this?  because I see it more then once....  In the Dilbert MC theme any ways.

-ST
Title: Re: Users Online Today Mod
Post by: archiebald on February 14, 2007, 01:52:32 AM
Sorry, I didn't read all 38 pages of this thread.

This mod did not work when attempting to install with the 1.1.2 default theme.
Title: Re: Users Online Today Mod
Post by: Carceri on February 14, 2007, 04:49:50 AM
Quote from: archiebald on February 14, 2007, 01:52:32 AM
Sorry, I didn't read all 38 pages of this thread.

This mod did not work when attempting to install with the 1.1.2 default theme.

Okay, I will look into that. It works if you have the mod applied to 1..1.1 when upgrading to 1.1.2, so I guess the changes required to make it work with 1.1.2 are minimal.

Could you please tell me what files it fails to apply the mod to?
Title: Re: Users Online Today Mod
Post by: archiebald on February 14, 2007, 10:13:39 AM
Surely,

3.    Execute Modification    C:\Inetpub\wwwroot\forum/Themes/default/BoardIndex.template.php    Test failed

All other pre-installation tests are successful
Title: Re: Users Online Today Mod
Post by: Bigguy on February 14, 2007, 12:08:43 PM
Ok I have just installed this and it works. If you install the mod with the error on BoardIndex.template.php you have to put the edit in manually for that file but it's hard to find. Look for this in the BoardIndex.template.php file:

echo $newmembul123 , ' New This Month: ' , $row['month'] , ' ' , $newmembul123 , ' New This Week: ' , $row['week'] , ' ' , $newmembul123 , ' New Today: ' , $row['today'];

After that add this:

  // Users online today

echo '
<tr>
<td class="titlebg" colspan="2">', $txt['uot_users_online_today'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['uot_users_online_today'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';

echo '
<div class="smalltext">';

  echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
  if (!$context['user']['is_guest'])
  echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
echo '<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';


and it should work for you. Back up first before trying this.
Title: Re: Users Online Today Mod
Post by: archiebald on February 14, 2007, 07:37:48 PM
Many Thanks
Title: Re: Users Online Today Mod
Post by: SaltedWeb on February 15, 2007, 09:54:13 AM
Hi Guys , with so many edits mentioned I am lost as to what to use  :'(

I installed the mod fine on. 1.1.1 ( now 1.1.2 ) I want to use the classic theme
when I switch of course the mod is no longer active.
But is installed.

Do I uninstall and try re-install it?
Or do I edit a PHP file if so what do I edit in?

What do I need to do to make it work in the classic mode?

Thanks you for this Mod I am hopeful to use it on the other Classic Theme.


Cozmo

Title: Re: Users Online Today Mod
Post by: Bigguy on February 15, 2007, 01:29:08 PM
Mods only work on the default theme so if you switch themes you will have to do a bit of editing. The only files that need to be edited seeing as its already installed is any template files it modifies. Obviously BoardIndex.template.php is one of the template files that need to be edited. You can find that edit a couple posts up. For any others you will have to look in the .xml file of the package to see if there are anymore template files to edit. (Not the Package-info.xml file)
Title: Re: Users Online Today Mod
Post by: SaltedWeb on February 15, 2007, 01:48:08 PM
Hi That,
was part of the question there are to may responses and edits described in this post to make heads or tales as to what are the edits and where  do they take place?


Cozmo
Title: Re: Users Online Today Mod
Post by: Bigguy on February 15, 2007, 02:05:54 PM
Stats.template.php
BoardIndex.template.php

Are the only template files. If you have a Stats.template.php in the default theme folder and NOT in the custom theme you are using it should not have to be done. In Stats.template.php find:

<td nowrap="nowrap">', $txt['users_online_today'], ':</td>
<td align="right">', $context['online_today'], '</td>';


And replace with:

<td nowrap="nowrap">', $txt['users_online_today'], ':</td>
<td align="right">', $context['online_today'], '</td>
</tr><tr>
<td nowrap="nowrap">', $txt['uot_users_online_today'], ':</td>
<td align="right">', $context['total_users_online_today'], '</td>';
Title: Re: Users Online Today Mod
Post by: Carceri on February 16, 2007, 02:46:38 PM
Well, BoardIndex.template is unchanged between 1.1.1 and 1.1.2, so there must be something else wrong.

Quote from: archiebald on February 14, 2007, 10:13:39 AM
Surely,

3.    Execute Modification    C:\Inetpub\wwwroot\forum/Themes/default/BoardIndex.template.php    Test failed

All other pre-installation tests are successful
Title: Re: Users Online Today Mod
Post by: Photoshocker on February 21, 2007, 03:24:53 PM
Hi, im using Aa New Damage Theme and i cant get this work.

What modifications should i do to get it work?

Thanks.
Title: Re: Users Online Today Mod
Post by: Inflame on February 21, 2007, 06:10:24 PM
Heya


I was wondering,

is there an option the have a code in a script box from TP to show it to all users online, so I don't need to modify all themes I use with the code's, and everyone can see it right away

Is this an option or just me talking weird?
Title: Re: Users Online Today Mod
Post by: Bigguy on February 23, 2007, 09:47:44 AM
I think code for that could be found at www.tinyprtal.net. I don't think this mod will do in a block.  
Title: Re: Users Online Today Mod
Post by: Grozzy on February 28, 2007, 11:34:24 AM
I accidentally installed this on a customized theme, and it didn't work.
Now I got a text on the top of the page saying:
$txt['uot_users_online_today']='Users Logged In Today'; $txt['uot_yesterday']='Yesterday at '; $txt['uot_total']='Total'; $txt['uot_visible']='Visible'; $txt['uot_hidden']='Hidden';


What can I do to remove it ?
Title: Re: Users Online Today Mod
Post by: Bigguy on February 28, 2007, 04:20:58 PM
In the modifications.english.php file make sure that the ?> is right at the very end of the file and not at the end of that code.
Title: Re: Users Online Today Mod
Post by: Grozzy on February 28, 2007, 05:38:59 PM
I want to remove it, I don't want the mod, just want to remove it.
Title: Re: Users Online Today Mod
Post by: Bigguy on February 28, 2007, 07:00:28 PM
In modifications.english.php search for these lines and take them out. ;)

$txt['uot_users_online_today']='Users Logged In Today'; $txt['uot_yesterday']='Yesterday at '; $txt['uot_total']='Total'; $txt['uot_visible']='Visible'; $txt['uot_hidden']='Hidden';
Title: Re: Users Online Today Mod
Post by: Grozzy on February 28, 2007, 07:06:54 PM
And where do I find modifications.english.php ?
Title: Re: Users Online Today Mod
Post by: Bigguy on February 28, 2007, 07:17:50 PM
In the langauge folder of the theme you are using. Or in the default theme's language folder.
Title: Re: Users Online Today Mod
Post by: Grozzy on February 28, 2007, 07:31:41 PM
How do I open PHP files ?

And I don't manually add them to the forum, I upload and install the ZIP file.
Title: Re: Users Online Today Mod
Post by: Bigguy on February 28, 2007, 10:51:55 PM
Download them to your desktop and open them with a php editor. Something like "Php Designer" although note pad will do. :)
Title: Re: Users Online Today Mod
Post by: Grozzy on March 01, 2007, 07:28:12 AM
How can I download the files from the site AND keep the changes I will make ?  ::)
Title: Re: Users Online Today Mod
Post by: Inflame on March 01, 2007, 10:46:42 AM
Quote from: Grozzy on March 01, 2007, 07:28:12 AM
How can I download the files from the site AND keep the changes I will make ?  ::)

Get into the site with the FTP
Find the file, and drag them to your desktop,
Open it with Note Path, and remove the lines given above.

Then save the file again, and drag the file back to your FTP folder,

It should be fixed now,

If you don't know how to access your FTP, contact the person or company which give syou the webhosting, and ask them for the log-in and any help you need
Title: Re: Users Online Today Mod
Post by: veldfire on March 01, 2007, 04:21:24 PM
Is there a way to hide the list from guests ?
Title: Re: Users Online Today Mod
Post by: smoothlab on March 07, 2007, 09:47:04 AM
i've seen this asked but don't think a definitive answer was ever posted.

is there a fix for this mod when running SMF 1.1.2 and the DilberMC theme?

thanks for your help
Title: Re: Users Online Today Mod
Post by: symon on March 07, 2007, 07:41:45 PM
Nowhere to edit the boardindex.template in Babylon :(

But it still shows the onlines wrong. I had nearly 100 of my members online today. Yet it shows 24! It seems to be the number that was online at the same time...not the whole day. Does anyone know why SMF does this?

Does anyone know a way to show a days total?

Ta :)
Title: Re: Users Online Today Mod
Post by: smoothlab on March 08, 2007, 02:08:49 PM
bump

dilber mc please???
Title: Re: Users Online Today Mod
Post by: symon on March 08, 2007, 05:46:16 PM
The Online Today stat in SMF is absolutely stupid. It's the most online at once...not over the whole day. Today mine says 27...when clearly I have had 300 people online.

It's showing me up.

How do I get rid of it?

Edit* Retracting stupid remark as I found how to use this mod in Babylon and it works sweeeet. After altering the previous language files to make the default stats clearer this mod shows the daily totals :D

See later post to how to install in Babylon
Title: Re: Users Online Today Mod
Post by: Tick on March 11, 2007, 12:40:59 AM
I got this mod installed fine. The only problem I am having is the words Users Logged In today does not show up.  I am using smf 1.1.2  .  Tiny portal is the only other mod I have installed.


It also doesnt say   (visible  ,  hidden)  just the numbers



Edit:  never mind I got it .
Title: Re: Users Online Today Mod
Post by: smoothlab on March 11, 2007, 09:51:56 AM
anyone get it working with DilberMC theme?
Title: Re: Users Online Today Mod
Post by: Tick on March 11, 2007, 10:47:08 AM
yes this is the theme I am using.  It works fine for me.  What kind of problems are you having?
Title: Re: Users Online Today Mod
Post by: smoothlab on March 11, 2007, 12:36:08 PM
it just doesn't appear.  it installs fine, but nothing appears in the forum index.
Title: Re: Users Online Today Mod
Post by: Tick on March 11, 2007, 01:18:19 PM
did you modify your board index template php.   if you didnt  first make a backup copy (incase you mess up)
go to you dilber mc board index template .php   find this code

', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ')
</span>
</td>
</tr>';


add after it.
// Users online today

echo '
<tr>
<td class="titlebg" colspan="2">', $txt['uot_users_online_today'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['uot_users_online_today'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';

echo '
<div class="smalltext">';

  echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
  if (!$context['user']['is_guest'])
  echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
echo '<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';
Title: Re: Users Online Today Mod
Post by: smoothlab on March 11, 2007, 02:31:54 PM
worked like a charm.  Thanks so much
Title: Re: Users Online Today Mod
Post by: Tick on March 11, 2007, 02:37:36 PM
sure thing.  I too am just learning how to really do things  .  One helpfull tip for you is do what I do.  I have spent many many hours on this site just reading and learning. I also have a test forum that I can learn on.  I try to take what I read here and appy it there.  It is real helpful.  Glad I could help you.
Title: Re: Users Online Today Mod
Post by: Peter_Roehlen on March 12, 2007, 12:14:16 AM
I installed this mod under 1.1.2 and it didn't work. I get the following line of code now at the top of every page in my forum:

$txt['uot_users_online_today']='Users Logged In Today'; $txt['uot_yesterday']='Yesterday at '; $txt['uot_total']='Total'; $txt['uot_visible']='Visible'; $txt['uot_hidden']='Hidden';

What's worst, is that the uninstall doesn't uninstall it.  Anyone got any tips on how I can get rid of this mod?

Title: Re: Users Online Today Mod
Post by: Bigguy on March 12, 2007, 12:17:44 AM
Those lines are from the modifications.english.php file and the problem probably is that the
?> is not at the end of the file or those lines are after the ?> open up that file and make sure that ?> is at the very end of the file. That should get rid of the text.

If it won't uninstall then you will have to manually remove the code. All the edits can be found in the .xml file of the package. (Not the package-info.xml the other .xml file)
Title: Re: Users Online Today Mod
Post by: Peter_Roehlen on March 12, 2007, 12:26:53 AM
Okay, thanks BG, I'll give it a shot.
Title: Re: Users Online Today Mod
Post by: veldfire on March 12, 2007, 02:29:21 PM
Quote from: veldfire on March 01, 2007, 04:21:24 PM
Is there a way to hide the list from guests ?
????
Title: Re: Users Online Today Mod
Post by: symon on March 12, 2007, 04:57:26 PM
Can anyone please answer me a few questions straight pweeeeeeze :)

1: I'm used to manually installing mods but there is nowhere to edit the boardindex.template in Babylon. This is surprising as the Babylon theme was the old default theme.

2: Will this show (including guests) the number of visitors online in 24 hours? NOT the most online together which they all seem to do?

Ta for your help in advance...

:)
Title: Re: Users Online Today Mod
Post by: symon on March 12, 2007, 07:00:38 PM
Added it to Babylon

Ok...I found this myself as it's not greatly difficult. ;) But rather than go "It's ok...I solved it" I thought I'd show you what I did ;)

I found this code in babylon/Boardindex.template.php:

// "Users online" - in order of activity.
echo '
<tr>
<td class="catbg" colspan="2">', $txt[158], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', '<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], '" border="0" />', $context['show_who'] ? '</a>' : '', '
</td>
<td class="windowbg2" width="100%">';

if ($context['show_who'])
echo '
<a href="', $scripturl, '?action=who">';

echo $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];


// Handle hidden users and buddies.
if (!empty($context['num_users_hidden']) || ($context['show_buddies'] && !empty($context['show_buddies'])))
{
echo ' (';

// Show the number of buddies online?
if ($context['show_buddies'])
echo $context['num_buddies'], ' ', $context['num_buddies'] == 1 ? $txt['buddy'] : $txt['buddies'];

// How about hidden users?
if (!empty($context['num_users_hidden']))
echo $context['show_buddies'] ? ', ' : '', $context['num_users_hidden'] . ' ' . $txt['hidden'];

echo ')';
}

if ($context['show_who'])
echo '</a>';

echo '
<div class="smalltext">';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>


And added after it:



<tr>
<td class="windowbg" width="20" valign="middle" align="center">
</td>
<td class="windowbg2" width="100%">
<div class="smalltext">', $txt['most_online_today'], ': <b>', $modSettings['mostOnlineToday'], '</b>.
', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ')
</div>
</td>
</tr>';

// Users online today

echo '
<tr>
<td class="titlebg" colspan="2">', $txt['uot_users_online_today'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['uot_users_online_today'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';

echo '
<div class="smalltext">';

  echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
  if (!$context['user']['is_guest'])
  echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
echo '<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';


In the added code I changed:

<td class="titlebg" colspan="2">', $txt['uot_users_online_today'], '</td>

To:

<td class="catbg" colspan="2">', $txt['uot_users_online_today'], '</td>

Does this look ok to you experienced coders? It works great now :)
Title: Re: Users Online Today Mod
Post by: symon on March 12, 2007, 07:13:34 PM
This works fantastically now.

But does anyone know how to make it show the 'total online today' number include guests also?

The reason I ask this is because I get about 2000 visitors a day and the amount of members online in a day is much less.

Is it possible? :)
Title: Re: Users Online Today Mod
Post by: symon on March 12, 2007, 08:37:38 PM
OK, to add guests to the stats at the foot of the page I have this so far...

Bearing in mind $context['num_total_guests'] is not the right function, nor real (I'm hoping you guys in the know will help), I've added it in the right places using $context[''num_guests''] in the produced site so it actually runs. But obviously $context[''num_guests''] just gives the guests on at that time.

So this is cosmetic until anyone can help :)

Modifications.English.php add to the end:

$txt['uot_guests']='Guests';

Add to BoardIndex.php:

$context['num_users_online_today'] = count($context['users_online_today']);
if (!$user_info['is_admin'])
{
$context['num_users_online_today'] = $context['num_users_online_today'] + $context['num_hidden_users_online_today'] + $context[''num_total_guests''];
}


Add to BoardIndex.template.php:

  echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
  if (!$context['user']['is_guest'])
  echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_guests'], ': ', $context['num_total_guests'], ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';


This all displays fine but I'm out of my depth for writing the fetch from database stuff and writing a real $context['num_total_guests'] function that returns the whole days guest numbers.

Does that make sense? Can anyone help with this?

:)
Title: Re: Users Online Today Mod
Post by: symon on March 15, 2007, 05:36:02 PM
Is there just a function and a DB table needed to make this work?

It would make this mod complete.  I'm suprised it's not considered :)
Title: Re: Users Online Today Mod
Post by: Vanterax on March 16, 2007, 08:13:13 AM
Quick question about the mod.

I got it installed and working.  It's beautiful!  However, it seems to build the list of user logged on today according to the server time.  I don't know where my server is located physically, but the list of user who logged on today starts at 8am EST for me.  So here's my question:

Is there a way for the list of user to be built according to my midnight and not the server's?  In other words, using the user's time offset?
Title: Re: Users Online Today Mod
Post by: Vanterax on March 16, 2007, 08:18:06 AM
Hmmm...  Maybe I should've read your code before making this request...

$midnight = mktime(0, 0, 0, $date['mon'], $date['mday'], $date['year']) - ($modSettings['time_offset'] * 3600);



You seem to be already doing this.  However, it doesn't seem to work on my end.  I hate dealing with time. :)

EDIT:  I removed the "- ($modSettings['time_offset'] * 3600);" part and now it's showing up the list fine.  It's very odd.

EDIT2: I think I know what was wrong.  The forum itself had an overall time offset for all users and the mod doesn't take that into account.  Unsetting it resolved it.  :)
Title: Re: Users Online Today Mod
Post by: farzad on March 16, 2007, 10:06:57 AM
any thought to add logged in users AND guest counts to this mod instead of just users that have logged in?

Title: Re: Users Online Today Mod
Post by: symon on March 19, 2007, 04:53:22 PM
I'll have a go if someone helps me write the correct DB table.

Or maybe the creator of this mod doesn't want it meddled with ;)
Title: Re: Users Online Today Mod
Post by: symon on March 22, 2007, 03:00:36 PM
Is offering to help make something better a bad thing on the SMF forum?

Just it's gone very quiet...even by busy standards :D
Title: Re: Users Online Today Mod
Post by: farzad on March 22, 2007, 03:04:23 PM
i have no skills to help, however  i doubt the open source nature of SMF and the mod would not prohibit you from enhancing or experimenting with it.
Title: Re: Users Online Today Mod
Post by: symon on March 22, 2007, 03:14:31 PM
Well I wrote the display side of things in previous posts but I too haven't the skills to write the function and DB table to make it work LOL.

It would make this mod complete rather than a bit open-ended and be an impressive stat to have on the sites.
Title: Re: Users Online Today Mod
Post by: symon on March 23, 2007, 05:06:23 PM
At what point is the uot_yesterday part used? It doesn't display anywhere and would be handy :)
Title: Re: Users Online Today Mod
Post by: Photoshocker on March 23, 2007, 05:54:54 PM
Edit. Found it.
Title: Re: Users Online Today Mod
Post by: alo on March 24, 2007, 05:19:06 AM
Quote from: symon on March 12, 2007, 07:00:38 PM
Added it to Babylon

Ok...I found this myself as it's not greatly difficult. ;) But rather than go "It's ok...I solved it" I thought I'd show you what I did ;)

I found this code in babylon/Boardindex.template.php:

// "Users online" - in order of activity.
echo '
<tr>
<td class="catbg" colspan="2">', $txt[158], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', '<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], '" border="0" />', $context['show_who'] ? '</a>' : '', '
</td>
<td class="windowbg2" width="100%">';

if ($context['show_who'])
echo '
<a href="', $scripturl, '?action=who">';

echo $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];


// Handle hidden users and buddies.
if (!empty($context['num_users_hidden']) || ($context['show_buddies'] && !empty($context['show_buddies'])))
{
echo ' (';

// Show the number of buddies online?
if ($context['show_buddies'])
echo $context['num_buddies'], ' ', $context['num_buddies'] == 1 ? $txt['buddy'] : $txt['buddies'];

// How about hidden users?
if (!empty($context['num_users_hidden']))
echo $context['show_buddies'] ? ', ' : '', $context['num_users_hidden'] . ' ' . $txt['hidden'];

echo ')';
}

if ($context['show_who'])
echo '</a>';

echo '
<div class="smalltext">';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>


And added after it:



<tr>
<td class="windowbg" width="20" valign="middle" align="center">
</td>
<td class="windowbg2" width="100%">
<div class="smalltext">', $txt['most_online_today'], ': <b>', $modSettings['mostOnlineToday'], '</b>.
', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ')
</div>
</td>
</tr>';

// Users online today

echo '
<tr>
<td class="titlebg" colspan="2">', $txt['uot_users_online_today'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['uot_users_online_today'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';

echo '
<div class="smalltext">';

  echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
  if (!$context['user']['is_guest'])
  echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
echo '<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';


In the added code I changed:

<td class="titlebg" colspan="2">', $txt['uot_users_online_today'], '</td>

To:

<td class="catbg" colspan="2">', $txt['uot_users_online_today'], '</td>

Does this look ok to you experienced coders? It works great now :)
how to show names of users online to guests? it shown number of user online only
Title: Re: Users Online Today Mod
Post by: symon on March 24, 2007, 11:48:02 AM
Quote from: alo on March 24, 2007, 05:19:06 AM
how to show names of users online to guests? it shown number of user online only

Hey,

Did you add all of the code to all of the files including the Boardindex.template.php in the default theme folder as well as the Babylon theme? The code I've done is ONLY for the babylon Boardindex.template.php. The code for the default theme is with the package. :)

I'll try and help as much as I can but my expertise is limited (it's not even expertise! lol)
Title: Re: Users Online Today Mod
Post by: alo on March 24, 2007, 06:01:34 PM
Quote from: symon on March 24, 2007, 11:48:02 AM
Quote from: alo on March 24, 2007, 05:19:06 AM
how to show names of users online to guests? it shown number of user online only

Hey,

Did you add all of the code to all of the files including the Boardindex.template.php in the default theme folder as well as the Babylon theme? The code I've done is ONLY for the babylon Boardindex.template.php. The code for the default theme is with the package. :)

I'll try and help as much as I can but my expertise is limited (it's not even expertise! lol)
i'm using another theme...not the babylon theme
Title: Re: Users Online Today Mod
Post by: symon on March 24, 2007, 07:21:50 PM
That code tweak was for it to work in the babylon theme :(
Title: Re: Users Online Today Mod
Post by: alo on March 26, 2007, 08:04:30 PM
Quote from: symon on March 24, 2007, 07:21:50 PM
That code tweak was for it to work in the babylon theme :(
i'm not good at php, can u help me?
Title: Re: Users Online Today Mod
Post by: mgaidia on March 27, 2007, 04:00:10 PM
how can i install this on SAF MC theme?
Title: Re: Users Online Today Mod
Post by: symon on March 27, 2007, 04:13:14 PM
Quote from: alo on March 26, 2007, 08:04:30 PM
i'm not good at php, can u help me?

I'm afraid I can't. I only know the Babylon theme as like you I'm not too good with PHP. Hopefully one of the creators here will be able to help with your theme but they seem to have all gone :(

If you're using Babylon I'll try to help ;)
Title: Re: Users Online Today Mod
Post by: Bigguy on March 27, 2007, 06:16:12 PM
The instructions are in the install.xml file of the zip package of this mod.Unpack the mod and open the zip andyou will see it.  
Title: Re: Users Online Today Mod
Post by: symon on March 27, 2007, 07:55:00 PM
This is true but they are only for the default theme.

I've posted the change needed for the Babylon theme :D

I suspect other themes may need a little bit digging.

Bigguy...would you know how to complete the function and do the database bits so this mod showed accumulative guests also? I posted a few pages back that I had it ready to go and posted the code. I just need help with the DB and function. I think people want it to enhance this great mod :)
Title: Re: Users Online Today Mod
Post by: Bigguy on March 27, 2007, 07:59:10 PM
I am really no good with databases. maybe another team member will see this and step in. You should ask the author first however if it is ok to modify his modification package.
Title: Re: Users Online Today Mod
Post by: symon on March 27, 2007, 08:01:59 PM
I never modified it...I just posted how to get it to work in a theme other than default. Surely that's ok?

Hope so :)
Title: Re: Users Online Today Mod
Post by: Bigguy on March 27, 2007, 08:10:05 PM
Yes it is ok. I thought you wanted to do bd changes thats all, my mistake if I am wrong. :)
Title: Re: Users Online Today Mod
Post by: alo on March 27, 2007, 09:49:36 PM
Quote from: alo on March 26, 2007, 08:04:30 PM
Quote from: symon on March 24, 2007, 07:21:50 PM
That code tweak was for it to work in the babylon theme :(
i'm not good at php, can u help me?
i need that work on another theme but thank you!
Title: Re: Users Online Today Mod
Post by: steve51184 on March 28, 2007, 06:01:37 AM
how do i install this on smf 1.1.2 with the default theme?
Title: Re: Users Online Today Mod
Post by: symon on March 28, 2007, 11:11:41 AM
Quote from: Bigguy on March 27, 2007, 08:10:05 PM
Yes it is ok. I thought you wanted to do bd changes thats all, my mistake if I am wrong. :)

Ah..sorry..yeh...the adding guests also?

Yeh...that would be altering it but is that not what a mod maker does to the original code?

Do we need certain permission to make mods? Or is the code open source but mods are not?

Cheers for any info...I know you're busy here :)
Title: Re: Users Online Today Mod
Post by: Bigguy on March 28, 2007, 04:39:09 PM
You can alter the code of SMF anyway you want really but you should always ask the mod authors permission if you are going to make changes to his mod and release what you do to the public. If it is only for personal then you can make changes to it.
Title: Re: Users Online Today Mod
Post by: symon on March 28, 2007, 04:56:24 PM
That makes sense :)

Love the avatar BTW. :D
Title: Re: Users Online Today Mod
Post by: Bigguy on March 28, 2007, 05:54:12 PM
Thanks, lol. :)
Title: Re: Users Online Today Mod
Post by: Jessondair on March 30, 2007, 03:58:56 PM
I regret to say I didn't read all 43 pages of this thread, so if my question is already answered here, I apologize.  Here's what I'd like to see this mod do...

First, I'd like it visible ONLY to admin and moderators.

Then, I'd like it to show me the membernames of those who've logged in, and the IP addresses of guests who've just lurked on the forum.

Is this possible?  I'm afraid I don't have the skills to modify this on my own and make it happen.  :P
Title: Re: Users Online Today Mod
Post by: edi67 on April 02, 2007, 01:59:14 PM
One simple question, i have this mod installed and all work perfectly with smf 1.1.1 but is possible show the list of users online today in Alphabetic Order?? i see the list in casual order and will be more clean have list in alphabetic order

thx  
Title: Re: Users Online Today Mod
Post by: klra on April 03, 2007, 12:59:12 PM
QuoteOne simple question, i have this mod installed and all work perfectly with smf 1.1.1 but is possible show the list of users online today in Alphabetic Order?? i see the list in casual order and will be more clean have list in alphabetic order

I too would like to know how to do this.

Great Mod BTW!

I tried this (SMF ver 1.1.2), still not alphabatizing the list.

link to thread discussion - http://www.simplemachines.org/community/index.php?topic=55513.msg616919#msg616919

Quote
           Re: Users Online Today Mod
« Reply #375 on: June 19, 2006, 10:11:46 AM »   Quote

thanks ceceri. I am still using 1.3.0 (afraid of betas..)...
Anyway, I found a way around the issue I mentioned above. All credits go to Ştefan Tălpălaru, actually.
To show Users online today in alphabetical order rather than login time, you have to do some minor modifications in the BoardIndex.php file (Sources folder), as follows:
Delete "$row['lastLogin'] . " from here

Code:
$context['users_online_today'][$row['lastLogin'] . $row['memberName']] = array(
         'id' => $row['ID_MEMBER'],
         'username' => $row['memberName'],
         'name' => $row['realName'],
         'group' => $row['ID_GROUP'],
         'href' => $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
         'link' => $link,
         'is_buddy' => $is_buddy,
         'hidden' => empty($row['showOnline']),
      );

      $context['list_users_online_today'][$row['lastLogin'] . $row['memberName']] = (empty($row['showOnline']) && allowedTo('moderate_forum')) ? '<i>' . $link . '</i>' : $link;

so it will look like

Code:
$context['users_online_today'][$row['memberName']] = array(
         'id' => $row['ID_MEMBER'],
         'username' => $row['memberName'],
         'name' => $row['realName'],
         'group' => $row['ID_GROUP'],
         'href' => $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
         'link' => $link,
         'is_buddy' => $is_buddy,
         'hidden' => empty($row['showOnline']),
      );

      $context['list_users_online_today'][$row['memberName']] = (empty($row['showOnline']) && allowedTo('moderate_forum')) ? '<i>' . $link . '</i>' : $link;

and change "krsort" with "ksort"
Code:
  mysql_free_result($result);

   krsort($context['users_online_today']);
   krsort($context['list_users_online_today']);

Remeber, in ASCII capital letters come before small letters (I didn't know..), so all usernames starting with a capital letter will come first.
This works great if  you want your users to be able to see who was online today (regardless hidden/unhidden), without figuring out who's online at the moment
Title: Re: Users Online Today Mod
Post by: ArkServer on April 04, 2007, 07:12:56 PM
Not sure if its asked before but is it possible to show the last _REAL_ 24 hour user online instead of resetting at 0.00AM?
Title: Re: Users Online Today Mod
Post by: Tucker2007 on April 05, 2007, 11:36:56 PM
Open BoardIndex.php

After:    
// Set the latest member.
$context['latest_member'] = &$context['common_stats']['latest_member'];


Add:
$date = strftime('%Y%m%d', forum_time(false));

// Members online so far today.
$result = db_query("
SELECT mostOn
FROM {$db_prefix}log_activity
WHERE date = $date
LIMIT 1", __FILE__, __LINE__);
list ($context['online_today']) = mysql_fetch_row($result);
mysql_free_result($result);

$context['online_today'] = (int) $context['online_today'];

// Total members online today
$date = @getdate(forum_time(false));
$midnight = mktime(0, 0, 0, $date['mon'], $date['mday'], $date['year']) - ($modSettings['time_offset'] * 3600);
$result = db_query("
SELECT
COUNT(*)
FROM {$db_prefix}members
WHERE lastLogin >= $midnight", __FILE__, __LINE__);
list ($context['total_users_online_today']) = mysql_fetch_row($result);


Open BoardIndex.template

Replace

  echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
  if (!$context['user']['is_guest'])
  echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';


With

  echo $txt['uot_total'], ': <b>', $context['online_today'], '</b>';
  if (!$context['user']['is_guest'])
  echo ' (Members: ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ' , Guests: ', ($context['online_today'] - $context['total_users_online_today']), ')';


This will I hope, I havnt 100% tested however it seems to be working so far. Anyways it will show the number of guests on the forum today, I beleive this is what people wanted, well its what I wanted Example:
Total: 3 (Members: 2, Hidden: 0 , Guests: 1)

Anyways I hope this will keep synmon quiet now hehe, He seems to have been wanting this alot. First post and i've posted something useful  :D (I hope)

Enjoy  ;D

(Sorry if im not very descriptive its 4:30am and I have been looking at code for 5 hours, it messes with your head lol, I feel like a vulcan will all this logic   ::))

Edit: Ok i dont think this works because it only records 1 guest... Bugger :( Well hopefully somone can find this usefull.


Edit2: Ok actually, It seems it is working however logs every 15 minutes which is set by board so I have lowered to refresh every 5 mins, Hey I think I have solved it :D
Title: Re: Users Online Today Mod
Post by: SA™ on April 06, 2007, 02:21:23 AM
hi i installed this mod on the default theme but i cant see any changes is there any where in paticular i should be lookin or has any one got a demo and i got this Execute Modification ./Sources/BoardIndex.php Test successful
2. Execute Modification ./Sources/Stats.php Test successful
3. Execute Modification ./Themes/default/BoardIndex.template.php Test failed
4. Execute Modification ./Themes/default/Stats.template.php Test successful
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
6. Execute Modification ./Themes/default/languages/Stats.english.php Test successful
as an error could this be why thanks for any help in advance


www.joyrider.web-space.ws/forum (http://www.joyrider.web-space.ws/forum)
Title: Re: Users Online Today Mod
Post by: Tucker2007 on April 06, 2007, 12:29:23 PM
Quote from: wdm2005 on April 06, 2007, 02:21:23 AM
hi i installed this mod on the default theme but i cant see any changes is there any where in paticular i should be lookin or has any one got a demo and i got this Execute Modification ./Sources/BoardIndex.php Test successful
2. Execute Modification ./Sources/Stats.php Test successful
3. Execute Modification ./Themes/default/BoardIndex.template.php Test failed
4. Execute Modification ./Themes/default/Stats.template.php Test successful
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
6. Execute Modification ./Themes/default/languages/Stats.english.php Test successful
as an error could this be why thanks for any help in advance


www.joyrider.web-space.ws/forum (http://www.joyrider.web-space.ws/forum)

Are you talking about my mod to this mod or just the mod itself, If my mod then you install the main mod first then modify the files I said and it will wont although when you uninstall you will get that error because your made your own modifcations so basically uninstall my mod first then uninstall the main mod :)

Also it should display something like this underneith who's online on the main index of the board.

Users Online Today
Total: 10 (Members: 3, Hidden: 0, Guests: 7)
User, User2, User3


I've made template modifcations to mine so it displays differently but you will get something like that under the Who's Online box on main index  :) Well with my mod to the mod, without you will get something like this.

Users Logged In Today
Total: 3 (Members: 3, Hidden: 0)
User, User2, User3


I visited your forum and it looks fine to me its where it is suppose to be  :)

Users Logged In Today
Total: 2


Is what I see, Because im a guest, as a member you will get to see what I mentioned above.
Title: Re: Users Online Today Mod
Post by: symon on April 06, 2007, 04:27:24 PM
Tucker...I'm so glad you're tackling this :)

But I get the following after editing the code:

QuoteTotal: 14 (Members: 96, Hidden: 0 , Guests: -82)

The guest is a negative  number!
Title: Re: Users Online Today Mod
Post by: Tucker2007 on April 06, 2007, 06:23:05 PM
Quote from: symon on April 06, 2007, 04:27:24 PM
Tucker...I'm so glad you're tackling this :)

But I get the following after editing the code:

QuoteTotal: 14 (Members: 96, Hidden: 0 , Guests: -82)

The guest is a negative  number!

Yeah I think I have buggered it up :(  I dont think there is a way really without logging guests no sums can be done with current data :(
Title: Re: Users Online Today Mod
Post by: symon on April 06, 2007, 06:32:52 PM
hehe.

At least you are trying ;)

I'm with ya :D

lol
Title: Re: Users Online Today Mod
Post by: symon on April 06, 2007, 06:57:49 PM
Quote from: Tucker2007 on April 06, 2007, 06:23:05 PM
I dont think there is a way really without logging guests no sums can be done with current data :(

Yeh...I think it would involve a new table in the DB to do that. It would be great though as visitors would look at it and be more impressed.

Nice try though :)
Title: Re: Users Online Today Mod
Post by: Tucker2007 on April 06, 2007, 07:30:43 PM
Dont worry I am still quite skilled at database's, Im going to look at my former phpbb one and see if I can devise a way to add logging of guests  :D

Although please anyone else if you can do this please do  ;)  
Title: Re: Users Online Today Mod
Post by: Shonick on April 10, 2007, 04:59:41 PM
I have this error when I install this mod
(http://i13.tinypic.com/4hrqjy1.jpg)

When I install this mod , It does not have any error,but after I install it. I see this error on the top of my site. above the banner as shown in the picture.Could you help me to fix this.Thanks
Title: Re: Users Online Today Mod
Post by: PixieWAttitude on April 11, 2007, 03:30:45 PM
I get the same thing Viet..and it made my board huge, font wise...

And also this at the bottom

: 1 (: 1, : 0)
Admin
Title: Re: Users Online Today Mod
Post by: Shonick on April 11, 2007, 04:14:35 PM
yeah, the font is become big, But I saw at the bottom of my forum, I think it shows everything correctly.Except those error.

Title: Re: Users Online Today Mod
Post by: AllMassive on April 12, 2007, 06:49:49 PM
I'm trying to install this Mod in my smf 1.1.2-utf8 forum.

I get this message:
Installation Readme
Users Online Today Mod (ver. 1.4.0).

Install Actions
Installations actions for "Users Online Today Mod":
Installing this package will perform the following actions:
Type Action Description
1. Execute Modification ./Sources/BoardIndex.php Test successful
2. Execute Modification ./Sources/Stats.php Test successful
3. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
4. Execute Modification ./Themes/default/Stats.template.php Test successful
5. Execute Modification ./Themes/default/languages/Modifications.english.php File not found
6. Execute Modification ./Themes/default/languages/Stats.english.php File not found


I only have 'Modifications.english-utf8.php' and 'Stats.english-utf8.php'

:'(
Title: Re: Users Online Today Mod
Post by: AllMassive on April 12, 2007, 11:02:28 PM
Well - i've read through the xml and did the Changes manually and BLING - Its working  :-X
Title: Re: Users Online Today Mod
Post by: Jumbobeef on April 16, 2007, 01:52:36 PM
Help!  I have just downloaded 1.1.2 and tried to add this to my default theme.  Everytime I try, I get the error message:

QuoteThe package you are trying to download or install is either corrupt or not compatible with this version of SMF.

I have read back the last ten pages or so of this thread but I can't seem to find the answer.  Can anyone help please?

Thanks in advance.
Title: Re: Users Online Today Mod
Post by: Shadow Queen on April 16, 2007, 02:30:19 PM
This mod work great for me.  Thanks for the awesome mod
Title: Re: Users Online Today Mod
Post by: eLeTe on April 16, 2007, 07:02:37 PM
ok, i tried to read allll 44 pages of this thread and i couldnt really find the answer for my question. Im a Total NOOB when it come with editing the files... i can do some but this one im completely lost on. im running 1.1.2 with the mesh theme. what group of codes do i have to put in and where. anybodys help would be really nice. usually i try not to ask for help and figure things out on my own, but this one there is no chance for me.

Thanks in advance.
Title: Re: Users Online Today Mod
Post by: Shadow Queen on April 16, 2007, 09:04:09 PM
You will have to edit some template files. I was merely suggesting looking at the .xml file to get the edits
Title: Re: Users Online Today Mod
Post by: - danny on April 20, 2007, 08:12:14 PM
This installed fine on the forum, but it doesn't display on the Dilber theme I'm using.

Can someone help?
Title: Re: Users Online Today Mod
Post by: rad1701 on April 21, 2007, 08:21:04 AM
Could someone post again what code to change and what to change it to for this mod to work with other themes?  I've looked through this thread, but the code seems to vary.  I'm using 1.1.2, and the Helios theme by Bloc.  But I think the code changes will be the same for any alternate theme.  Right??
Title: Re: Users Online Today Mod
Post by: Tick on April 21, 2007, 08:46:44 AM
Quote from: a.D on April 20, 2007, 08:12:14 PM
This installed fine on the forum, but it doesn't display on the Dilber theme I'm using.

Can someone help?


I posted this a few pages back.  This is how to make it work with dilber mc.     http://www.simplemachines.org/community/index.php?topic=55513.msg1001561#msg1001561
Title: Re: Users Online Today Mod
Post by: - danny on April 22, 2007, 04:49:08 PM
Quote from: tick on April 21, 2007, 08:46:44 AM
Quote from: a.D on April 20, 2007, 08:12:14 PM
This installed fine on the forum, but it doesn't display on the Dilber theme I'm using.

Can someone help?


I posted this a few pages back.  This is how to make it work with dilber mc.     http://www.simplemachines.org/community/index.php?topic=55513.msg1001561#msg1001561

That was perfect! Thank you!  :D
Title: Re: Users Online Today Mod
Post by: braveboy on April 27, 2007, 03:16:20 AM
any idea how to install it on "Scribbles" theme please help me thanks
Title: Re: Users Online Today Mod
Post by: uni on April 30, 2007, 05:30:30 AM
Quote from: Dud on April 28, 2007, 01:57:44 PM
Help Me...all mine says is   : 2 (: 2, : 0)
Yigal, GPGrieco

No picture no nothing Please Help

Im using 1.12

Same thing. I'm using the default theme and a fresh install.

EDIT: Found it. Open your Modifications.english-utf8.php in the language folder inside your default them and add this:
$txt['uot_users_online_today']='Users Logged In Today';
$txt['uot_yesterday']='Yesterday at ';
$txt['uot_total']='Total';
$txt['uot_visible']='Visible';
$txt['uot_hidden']='Hidden';
Title: Re: Users Online Today Mod
Post by: Sarrene on May 11, 2007, 05:37:27 AM
I appoligise ahead of time for any redundancy I am engaging in right now. I know you have all been asked a LOT on how to make this work on modified/custom themes. Though they are pretty much the more common ones.

I have attempted to try out all the fixes for this. From adding code befor the
</span>
</td>
</tr>';

And another post that said to add code after. Not to mention I have a few instances of this above code in my file. I am so confused now. Nothing new there, eh? :)

I am using a (heavely) modified custom theme, based off of Blocs " Cerberus" Theme. I am not sure what is left from that now, to tell the truth. Befor adding this I am not getting any errors reported. I just cannot get it to work. I have however had an error each time I have tried one of the fixes that was posted. I think its because something in my code is just a bit of kilter from the rest. I presume some form of conflict here.

Any help would be MORE then appreciated.
Attached is the BoardIndex.template.php for my site.

Peace and thank you in advance!
Sarrene'

function template_main()
{
        global $context, $settings, $options, $txt, $scripturl, $modSettings;

        // Show some statistics next to the link tree if SP1 info is off.
        echo '
<table width="100%" cellpadding="3" cellspacing="0">
        <tr>
                <td valign="bottom">', theme_linktree(), '</td>
                <td align="right">';
        if (!$settings['show_sp1_info'])
                echo '
         ', $txt[19], ': ', $context['common_stats']['total_members'], ' &nbsp;&#8226;&nbsp; ', $txt[95], ': ', $context['common_stats']['total_posts'], ' &nbsp;&#8226;&nbsp; ', $txt[64], ': ', $context['common_stats']['total_topics'], '
         ', ($settings['show_latest_member'] ? '<br />' . $txt[201] . ' <b>' . $context['common_stats']['latest_member']['link'] . '</b>' . $txt[581] : '');
        echo '
                </td>
        </tr>
</table>';

        // Show the news fader?  (assuming there are things to show...)
        if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
        {
                echo '
<div class="tborder" style="margin-bottom: 2ex;">
        <table border="0" width="100%" cellspacing="1" cellpadding="4">
                <tr class="titlebg" align="center">
                        <td>', $txt[102], '</td>
                </tr>
                <tr>
                        <td valign="middle" align="center" height="60">';

                // Prepare all the javascript settings.
                echo '
                                <div id="smfFadeScroller" style="width: 90%; padding: 2px; "><b>', $context['news_lines'][0], '</b></div>
            <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
                                        // The fading delay (in ms.)
                                        var smfFadeDelay = ', empty($settings['newsfader_time']) ? 5000 : $settings['newsfader_time'], ';
                                        // Fade from... what text color?  To which background color?
                                        var smfFadeFrom = {"r": 250, "g": 250, "b": 250}, smfFadeTo = {"r": 40, "g": 40, "b": 40};
                                        // Surround each item with... anything special?
                                        var smfFadeBefore = "<b>", smfFadeAfter = "</b>";

               var foreColor, backEl, backColor;

               if (typeof(document.getElementById(\'smfFadeScroller\').currentStyle) != "undefined")
               {
                  foreColor = document.getElementById(\'smfFadeScroller\').currentStyle.color.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
                  smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

                  backEl = document.getElementById(\'smfFadeScroller\');
                  while (backEl.currentStyle.backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined")
                     backEl = backEl.parentNode;

                  backColor = backEl.currentStyle.backgroundColor.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
                  smfFadeTo = {"r": eval("0x" + backColor[1]), "g": eval("0x" + backColor[2]), "b": eval("0x" + backColor[3])};
               }
               else if (typeof(window.opera) == "undefined" && typeof(document.defaultView) != "undefined")
               {
                  foreColor = document.defaultView.getComputedStyle(document.getElementById(\'smfFadeScroller\'), null).color.match(/rgb\((\d+), (\d+), (\d+)\)/);
                  smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

                  backEl = document.getElementById(\'smfFadeScroller\');
                  while (document.defaultView.getComputedStyle(backEl, null).backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined" && typeof(backEl.parentNode.tagName) != "undefined")
                     backEl = backEl.parentNode;

                  backColor = document.defaultView.getComputedStyle(backEl, null).backgroundColor.match(/rgb\((\d+), (\d+), (\d+)\)/);
                  smfFadeTo = {"r": parseInt(backColor[1]), "g": parseInt(backColor[2]), "b": parseInt(backColor[3])};
               }

               // List all the lines of the news for display.
               var smfFadeContent = new Array(
                  "', implode('",
                  "', $context['fader_news_lines']), '"
               );
            // ]]></script>
            <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/fader.js"></script>
         </td>
      </tr>
   </table>
</div>';
        }

        /* Each category in categories is made up of:
                id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
                new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down iamge),
                and boards. (see below.) */
        foreach ($context['categories'] as $category)
        {
                echo '
<div class="tborder"><table border="0" width="100%" cellspacing="0" cellpadding="5">
        <tr>
                <td colspan="4" class="titlebg', $category['new'] ? '2' : '', '" height="18">';

                // If this category even can collapse, show a link to collapse it.
                if ($category['can_collapse'])
                        echo '
                        <a href="', $category['collapse_href'], '">', $category['collapse_image'], '</a>';

                echo '
                        ', $category['link'], '
                </td>
        </tr>';

                // Assuming the category hasn't been collapsed...
                if (!$category['is_collapsed'])
                {
                        /* Each board in each category's boards has:
                                new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
                                children (see below.), link_children (easier to use.), children_new (are they new?),
                                topics (# of), posts (# of), link, href, and last_post. (see below.) */
                        foreach ($category['boards'] as $board)
                        {
                                echo '
        <tr>
      <td class="windowbg" width="6%" align="center" valign="top"><a href="', $scripturl, '?action=unread;board=', $board['id'], '.0">';

                                // If the board is new, show a strong indicator.
                                if ($board['new'])
                                        echo '<img src="', $settings['images_url'], '/on.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
                                // This board doesn't have new posts, but its children do.
                                elseif ($board['children_new'])
                                        echo '<img src="', $settings['images_url'], '/on2.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
                                // No new posts at all!  The agony!!
                                else
                                        echo '<img src="', $settings['images_url'], '/off.gif" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';

            echo '</a></td>
                <td align="left" class="windowbg2">
                        <b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
                        ', $board['description'];

                                // Show the "Moderators: ".  Each has name, href, link, and id. (but we're gonna use link_moderators.)
                                if (!empty($board['moderators']))
                                        echo '
                        <div style="padding-top: 1px;" class="smalltext"><i>', count($board['moderators']) == 1 ? $txt[298] : $txt[299], ': ', implode(', ', $board['link_moderators']), '</i></div>';

                                // Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
                                if (!empty($board['children']))
                                {
                                        // Sort the links into an array with new boards bold so it can be imploded.
                                        $children = array();
                                        /* Each child in each board's children has:
                                                id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
                                        foreach ($board['children'] as $child)
                                        {
                                                $child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
                                                $children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
                                        }

                                        echo '
                        <div style="padding-top: 1px;" class="smalltext"><i>', $txt['parent_boards'], ': ', implode(', ', $children), '</i></div>';
                                }

                                // Show some basic information about the number of posts, etc.
                                echo '
                </td>
                <td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">
                        ', $board['posts'], ' ', $txt[21], ' ', $txt['smf88'], '<br />
                        ', $board['topics'],' ', $txt[330], '
                </span></td>
                <td class="windowbg2" valign="middle" width="22%"><span class="smalltext">';

                                /* The board's and children's 'last_post's have:
                                        time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
                                        link, href, subject, start (where they should go for the first unread post.),
                                        and member. (which has id, name, link, href, username in it.) */
                                if (!empty($board['last_post']['id']))
                                        echo '
                        ', $txt[22], ' ', $txt[30], ' ', $board['last_post']['time'], '<br />
                        ', $txt['smf88'], ' ', $board['last_post']['link'], ' ', $txt[525], ' ', $board['last_post']['member']['link'];

                                echo '
                </span></td>
        </tr>';
                        }
                }

                echo '
</table></div>
<br />';
        }

        if ($context['user']['is_logged'])
        {
                echo '
<div class="tborder" style="padding: 3px;"><table border="0" width="100%" cellspacing="0" cellpadding="5">
        <tr class="titlebg">
      <td align="', !$context['right_to_left'] ? 'left' : 'right', '" class="smalltext">
                        <img src="' . $settings['images_url'] . '/new_some.gif" alt="" border="0" align="middle" /> ', $txt[333], '
                        <img src="' . $settings['images_url'] . '/new_none.gif" alt="" border="0" align="middle" style="margin-left: 4ex;" /> ', $txt[334], '
                </td>
      <td align="', !$context['right_to_left'] ? 'right' : 'left', '" class="smalltext">';
                // Show the mark all as read button?
                if ($settings['show_mark_read'])
                        echo '
         <a href="', $scripturl, '?action=markasread;sa=all;sesc=' . $context['session_id'] . '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/markread.gif" alt="' . $txt[452] . '" border="0" />' : $txt[452]), '</a>';
                echo '
                </td>
        </tr>
</table></div>';
        }

        // Here's where the "Info Center" starts...
        echo '
<br />
<div class="tborder"><table border="0" width="100%" cellspacing="1" cellpadding="4">
        <tr class="titlebg">
                <td align="center" colspan="2">', $txt[685], '</td>
        </tr>';

        // This is the "Recent Posts" bar.
        if (!empty($settings['number_recent_posts']))
        {
                echo '
        <tr>
                <td class="catbg" colspan="2">', $txt[214], '</td>
        </tr>
        <tr>
                <td class="windowbg" width="20" valign="middle" align="center">
                        <a href="', $scripturl, '?action=recent">
                                <img src="', $settings['images_url'], '/post/xx.gif" alt="', $txt[214], '" border="0" /></a>
                </td>
                <td class="windowbg2">';

                // Only show one post.
                if ($settings['number_recent_posts'] == 1)
                {
                        // latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)
                        echo '
                        <b><a href="', $scripturl, '?action=recent">', $txt[214], '</a></b>
                        <div class="smalltext">
                                ', $txt[234], ' &quot;', $context['latest_post']['link'], '&quot; ', $txt[235], ' (', $context['latest_post']['time'], ')<br />
                        </div>';
                }
                // Show lots of posts.
                elseif (!empty($context['latest_posts']))
                {
                        echo '
                        <table width="100%" border="0">';
                        /* Each post in latest_posts has:
                                board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
                                subject, short_subject (shortened with...), time, link, and href. */
                        foreach ($context['latest_posts'] as $post)
                                echo '
                                <tr>
                                        <td align="right" valign="top" nowrap="nowrap">[', $post['board']['link'], ']</td>
                                        <td valign="top">', $post['link'], ' ', $txt[525], ' ', $post['poster']['link'], '</td>
                                        <td align="right" valign="top" nowrap="nowrap">', $post['time'], '</td>
                                </tr>';
                        echo '
                        </table>';
                }
                echo '
                </td>
        </tr>';
        }

        // Show information about events, birthdays, and holidays on the calendar.
        if ($context['show_calendar'])
        {
                echo '
        <tr>
                <td class="catbg" colspan="2">', $context['calendar_only_today'] ? $txt['calendar47b'] : $txt['calendar47'], '</td>
        </tr><tr>
                <td class="windowbg" width="20" valign="middle" align="center">
                        <a href="', $scripturl, '?action=calendar">
                                <img src="', $settings['images_url'], '/icons/calendar.gif" width="20" alt="', $txt['calendar24'], '" border="0" /></a>
                </td>
                <td class="windowbg2" width="100%">
                        <span class="smalltext">';

                // Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.
                if (!empty($context['calendar_holidays']))
                        echo '
                                <span style="color: #', $modSettings['cal_holidaycolor'], ';">', $txt['calendar5'], ' ', implode(', ', $context['calendar_holidays']), '</span><br />';

                // People's birthdays.  Like mine.  And yours, I guess.  Kidding.
                if (!empty($context['calendar_birthdays']))
                {
                        echo '
                                <span style="color: #', $modSettings['cal_bdaycolor'], ';">', $context['calendar_only_today'] ? $txt['calendar3'] : $txt['calendar3b'], '</span> ';
                        /* Each member in calendar_birthdays has:
                                id, name (person), age (if they have one set?), is_last. (last in list?), and is_today (birthday is today?) */
                        foreach ($context['calendar_birthdays'] as $member)
                                echo '
                                <a href="', $scripturl, '?action=profile;u=', $member['id'], '">', $member['is_today'] ? '<b>' : '', $member['name'], $member['is_today'] ? '</b>' : '', isset($member['age']) ? ' (' . $member['age'] . ')' : '', '</a>', $member['is_last'] ? '<br />' : ', ';
                }
                // Events like community get-togethers.
                if (!empty($context['calendar_events']))
                {
                        echo '
                                <span style="color: #', $modSettings['cal_eventcolor'], ';">', $context['calendar_only_today'] ? $txt['calendar4'] : $txt['calendar4b'], '</span> ';
                        /* Each event in calendar_events should have:
                                title, href, is_last, can_edit (are they allowed?), modify_href, and is_today. */
                        foreach ($context['calendar_events'] as $event)
                                echo '
            ', $event['can_edit'] ? '<a href="' . $event['modify_href'] . '" style="color: #FF0000;">*</a> ' : '', $event['href'] == '' ? '' : '<a href="' . $event['href'] . '">', $event['is_today'] ? '<b>' . $event['title'] . '</b>' : $event['title'], $event['href'] == '' ? '' : '</a>', $event['is_last'] ? '<br />' : ', ';

                        // Show a little help text to help them along ;).
                        if ($context['calendar_can_edit'])
                                echo '
                                (<a href="', $scripturl, '?action=helpadmin;help=calendar_how_edit" onclick="return reqWin(this.href);">', $txt['calendar_how_edit'], '</a>)';
                }
                echo '
                        </span>
                </td>
        </tr>';
        }
// Users online today

   echo '
   <tr>
      <td class="titlebg" colspan="2">', $txt['uot_users_online_today'], '</td>
   </tr><tr>
      <td class="windowbg" width="20" valign="middle" align="center">
         <img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['uot_users_online_today'], '" border="0" />
      </td>
      <td class="windowbg2" width="100%">';

   echo '
         <div class="smalltext">';

  echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
  if (!$context['user']['is_guest'])
     echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';

   // Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
   if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
      echo '<br />', implode(', ', $context['list_users_online_today']);

   echo '
            <br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
            <a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
         </div>
      </td>
   </tr>';

        // Show a member bar.  Not heavily ornate, but functional at least.
        if ($settings['show_member_bar'])
        {
                echo '
        <tr>
                <td class="catbg" colspan="2">', $txt[331], '</td>
        </tr>
        <tr>
      <td class="windowbg" width="20" valign="middle" align="center">
         ', $context['show_member_list'] ? '<a href="' . $scripturl . '?action=mlist">' : '', '<img src="', $settings['images_url'], '/icons/members.gif" alt="', $txt[332], '" border="0" />', $context['show_member_list'] ? '</a>' : '', '
      </td>
      <td class="windowbg2" width="100%">
         <b>', $context['show_member_list'] ? '<a href="' . $scripturl . '?action=mlist">' . $txt[332] . '</a>' : $txt[332], '</b>
         <div class="smalltext">', $txt[200], '</div>
      </td>
   </tr>';
        }

        // Show YaBB SP1 style information...
        if ($settings['show_sp1_info'])
        {
                echo '
        <tr>
                <td class="catbg" colspan="2">', $txt[645], '</td>
        </tr>
        <tr>
                <td class="windowbg" width="20" valign="middle" align="center">
                        <a href="', $scripturl, '?action=stats">
                                <img src="', $settings['images_url'], '/icons/info.gif" alt="', $txt[645], '" border="0" /></a>
                </td>
                <td class="windowbg2" width="100%">
                        <table border="0" width="90%"><tr>
                                <td class="smalltext">
               <div style="float: ', !$context['right_to_left'] ? 'left' : 'right', '; width: 50%;">', $txt[490], ': <b>', $context['common_stats']['total_topics'], '</b></div>', $txt[489], ': <b>', $context['common_stats']['total_posts'], '</b><br />', !empty($context['latest_post']) ? '
                                        ' . $txt[659] . ': &quot;' . $context['latest_post']['link'] . '&quot;  (' . $context['latest_post']['time'] . ')<br />' : '', '
                                        <a href="', $scripturl, '?action=recent">', $txt[234], '</a>', $context['show_stats'] ? '<br />
                                        <a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
                                </td>
                                <td width="32%" class="smalltext" valign="top">
               ', $txt[488], ': <b><a href="', $scripturl, '?action=mlist">', $context['common_stats']['total_members'], '</a></b><br />
               ', $txt[656], ': <b>', $context['common_stats']['latest_member']['link'], '</b><br />';
                // If they are logged in, show their unread message count, etc..
                if ($context['user']['is_logged'])
                        echo '
                                        ', $txt['smf199'], ': <b><a href="', $scripturl, '?action=pm">', $context['user']['messages'], '</a></b> ', $txt['newmessages3'], ': <b><a href="', $scripturl, '?action=pm">', $context['user']['unread_messages'], '</a></b>';
                echo '
                                </td>
                        </tr></table>
                </td>
        </tr>';
        }

        // "Users online" - in order of activity.
        echo '
        <tr>
                <td class="catbg" colspan="2">', $txt[158], '</td>
   </tr><tr>
      <td class="windowbg" width="20" valign="middle" align="center">
         ', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', '<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], '" border="0" />', $context['show_who'] ? '</a>' : '', '
      </td>
      <td class="windowbg2" width="100%">';

   if ($context['show_who'])
      echo '
         <a href="', $scripturl, '?action=who">';

   echo $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];

   // Handle hidden users and buddies.
   if (!empty($context['num_users_hidden']) || ($context['show_buddies'] && !empty($context['show_buddies'])))
   {
      echo ' (';

      // Show the number of buddies online?
      if ($context['show_buddies'])
         echo $context['num_buddies'], ' ', $context['num_buddies'] == 1 ? $txt['buddy'] : $txt['buddies'];

      // How about hidden users?
      if (!empty($context['num_users_hidden']))
         echo $context['show_buddies'] ? ', ' : '', $context['num_users_hidden'] . ' ' . $txt['hidden'];

      echo ')';
   }

   if ($context['show_who'])
      echo '</a>';

   echo '
         <div class="smalltext">';

        // Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
        if (!empty($context['users_online']))
                echo '
                                ', $txt[140], ':<br />', implode(', ', $context['list_users_online']);

        echo '
                                <br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
                                <a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
         </div>
                </td>
        </tr>';

        // If they are logged in, but SP1 style information is off... show a personal message bar.
        if ($context['user']['is_logged'] && !$settings['show_sp1_info'])
        {
                echo '
        <tr>
                <td class="catbg" colspan="2">', $txt[159], '</td>
        </tr><tr>
      <td class="windowbg" width="20" valign="middle" align="center">
         ', $context['allow_pm'] ? '<a href="' . $scripturl . '?action=pm">' : '', '<img src="', $settings['images_url'], '/message_sm.gif" alt="', $txt[159], '" border="0" />', $context['allow_pm'] ? '</a>' : '', '
      </td>
                <td class="windowbg2" valign="top">
                        <b><a href="', $scripturl, '?action=pm">', $txt[159], '</a></b>
                        <div class="smalltext">
                                ', $txt[660], ' ', $context['user']['messages'], ' ', $context['user']['messages'] == 1 ? $txt[471] : $txt[153], '.... ', $txt[661], ' <a href="', $scripturl, '?action=pm">', $txt[662], '</a> ', $txt[663], '
                        </div>
                </td>
        </tr>';
        }

        // Show the login bar. (it's only true if they are logged out anyway.)
        if ($context['show_login_bar'])
        {
                echo '
        <tr>
                <td class="catbg" colspan="2">', $txt[34], ' <a href="', $scripturl, '?action=reminder" class="smalltext">(' . $txt[315] . ')</a></td>
        </tr>
        <tr>
                <td class="windowbg" width="20" align="center">
                        <a href="', $scripturl, '?action=login">
                                <img src="', $settings['images_url'], '/icons/login.gif" alt="', $txt[34], '" border="0" /></a>
                </td>
                <td class="windowbg2" valign="middle">
                        <form action="', $scripturl, '?action=login2" method="post" style="margin: 0;">
                                <table border="0" cellpadding="2" cellspacing="0" align="center" width="100%"><tr>
                                        <td valign="middle" align="left">
                                                <label for="user"><b>', $txt[35], ':</b><br /><input type="text" name="user" id="user" size="15" /></label>
                                        </td>
                                        <td valign="middle" align="left">
                                                <label for="passwrd"><b>', $txt[36], ':</b><br /><input type="password" name="passwrd" id="passwrd" size="15" /></label>
                                        </td>
                                        <td valign="middle" align="left">
                                                <label for="cookielength"><b>', $txt[497], ':</b><br /><input type="text" name="cookielength" id="cookielength" size="4" maxlength="4" value="', $modSettings['cookieTime'], '" /></label>
                                        </td>
                                        <td valign="middle" align="left">
                                                <label for="cookieneverexp"><b>', $txt[508], ':</b><br /><input type="checkbox" name="cookieneverexp" id="cookieneverexp" checked="checked" class="check" /></label>
                                        </td>
                                        <td valign="middle" align="left">
                                                <input type="submit" value="', $txt[34], '" />
                                        </td>
                                </tr></table>
                        </form>
                </td>
        </tr>';
        }

        echo '
</table></div>';
}

?>
Title: Re: Users Online Today Mod
Post by: 1MileCrash on May 12, 2007, 08:18:21 PM
any chance we can get an SSI function for this?
Title: Re: Users Online Today Mod
Post by: Joshsux on May 14, 2007, 10:14:46 AM
when i go to install it on my Powered by SMF 1.1.2 i get this:

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

I ain't going continue with the install till i know how to fix this, thanks guys.
Title: Re: Users Online Today Mod
Post by: alo on May 14, 2007, 09:15:02 PM
anyone can help me to make the user online list appeared to guests? it's shown to members only....only the number is shown to guests.
Thanks so much!
Title: Re: Users Online Today Mod
Post by: symon on May 16, 2007, 08:50:17 AM
Has anyone also worked out how to log guests yet? Tucker? ;) hehe

It would make the stats look far more impressive. Afterall, this mod is supposed to be a way to convince visitors it's an active forum :)
Title: Re: Users Online Today Mod
Post by: symon on May 17, 2007, 07:53:19 PM
My forum says a maximum of 23 visited today. But a total of 2350 visited.

How much to have someone sort out the guest logging? SMF is currently the only forum that can't do it...yet. And it's the best!

Pleeeeeeeeeeeeeeeease  :D lol
Title: Re: Users Online Today Mod
Post by: edi67 on May 18, 2007, 06:50:54 PM
Quote from: edi67 on April 02, 2007, 01:59:14 PM
One simple question, i have this mod installed and all work perfectly with smf 1.1.1 but is possible show the list of users online today in Alphabetic Order?? i see the list in casual order and will be more clean have list in alphabetic order

thx &nbsp;


anyone have the solution ? i tried everything posted here but with not result.  :(
Title: Re: Users Online Today Mod
Post by: icman on May 20, 2007, 03:00:00 PM
thank i like it ..
Title: Re: Users Online Today Mod
Post by: trackman on May 24, 2007, 05:56:30 PM
my Users Logged In Today box is currently showing on my custom theme, but it isn't displaying the members names that have been online today

u/n = test
p/w = test 1

http://cdcoverhideout.com/forum

Any help :D
Title: Re: Users Online Today Mod
Post by: dirtylaundry on May 27, 2007, 12:22:32 PM
can some on please tell me how to fix it on a custom theme i cant figure it out

i use aa damage
Title: Re: Users Online Today Mod
Post by: CHwebby on May 27, 2007, 06:52:07 PM
Quote from: braveboy on April 27, 2007, 03:16:20 AM
any idea how to install it on "Scribbles" theme please help me thanks

I'm trying to figure this out also
Title: Re: Users Online Today Mod
Post by: LunyMarcus on May 28, 2007, 07:54:29 PM
Just recently modified the who.english.php file so I can see what page ppl are looking at on the main website.  Got that working good.

I noticed if ppl goto the website and not the forum they dont show up on the online today list.  But they are logged into the forum using ssi.  If they goto the forum then they show up on the online today list.

What code do i need to put on my website pages so that they show up on the online today list?
Title: Re: Users Online Today Mod
Post by: Pierre29200 on June 01, 2007, 10:07:14 AM
Add in mod&nbsp; version 1.4.0 joined :
french language and
dilbermc Theme
modifications included.

You can have dilbermc Theme only or French language only and the mod works with that you have.

You can use : http://modparser.dev.dansoftaustralia.net/
to see what i add for french language and dilbermc theme and to do these modifications manually if you prefer...

Hope it helps !

Pierre
Title: Re: Users Online Today Mod
Post by: askepott on June 07, 2007, 02:48:19 PM
Quote from: uni on April 30, 2007, 05:30:30 AM
Quote from: Dud on April 28, 2007, 01:57:44 PM
Help Me...all mine says is   : 2 (: 2, : 0)
Yigal, GPGrieco

No picture no nothing Please Help

Im using 1.12

Same thing. I'm using the default theme and a fresh install.

EDIT: Found it. Open your Modifications.english-utf8.php in the language folder inside your default them and add this:
$txt['uot_users_online_today']='Users Logged In Today';
$txt['uot_yesterday']='Yesterday at ';
$txt['uot_total']='Total';
$txt['uot_visible']='Visible';
$txt['uot_hidden']='Hidden';

hey thanks! it worked ;D HAHA
Title: Re: Users Online Today Mod
Post by: dazlia on June 08, 2007, 07:16:35 AM
guys need some help please.

Ive installed it (on 1.1.2) and everythihng appeared to be ok. However, I cant actually find the 'info centre' to find the information that this mod is supposed to give you.

Any ideas please?

Sorry......im a new to SMF :)

could someone pl4ease mail me at [email protected] as im at work at the moment.

cheers
Title: Re: Users Online Today Mod
Post by: HOCBOT on June 25, 2007, 07:08:48 AM
i have installed the mod and below i get the txt before the logo right at very top of page.

$txt['uot_users_online_today']='Users Logged In Today'; $txt['uot_yesterday']='Yesterday at '; $txt['uot_total']='Total'; $txt['uot_visible']='Visible'; $txt['uot_hidden']='Hidden';

www.houseofcommodores.com/forum1

running the dark red theme

if anyone can help would be great
Title: Re: Users Online Today Mod
Post by: InsaneMustang on June 25, 2007, 02:47:17 PM
This has to be the most confusingly written mod ever.  I've read all 34 pages of this thread, and I am extremely confused.

I realize that the mod.xml file displays the changes that need to be made in each file, but what the crap is this stuff?

<file name="$sourcedir/BoardIndex.php">

There isn't a file called that in my theme or in the default theme.  Does that mean boardindex.template.php ?

Same with this
<file name="$sourcedir/Stats.php">
does this mean stats.template.php and should all of these edits be done in the theme im using or the default.

Title: Re: Users Online Today Mod
Post by: symon on June 25, 2007, 04:55:07 PM
Quote from: InsaneMustang on June 25, 2007, 02:47:17 PM
This has to be the most confusingly written mod ever.  I've read all 34 pages of this thread, and I am extremely confused.

I realize that the mod.xml file displays the changes that need to be made in each file, but what the crap is this stuff?

<file name="$sourcedir/BoardIndex.php">

There isn't a file called that in my theme or in the default theme.  Does that mean boardindex.template.php ?

Same with this
<file name="$sourcedir/Stats.php">
does this mean stats.template.php and should all of these edits be done in the theme im using or the default.



They're in your sources directory :)
Title: Re: Users Online Today Mod
Post by: InsaneMustang on June 25, 2007, 08:25:05 PM
Dang, no wonder I couldn't find them.  That little bit of info should be made into the mod's stuff so you can find it.
Title: Re: Users Online Today Mod
Post by: Viceroy on June 26, 2007, 02:37:38 AM
Please let me know when this mod is available for 1.1.3 :)
Title: Re: Users Online Today Mod
Post by: Photoshocker on June 26, 2007, 05:25:01 AM
Quote from: symon on May 16, 2007, 08:50:17 AM
Has anyone also worked out how to log guests yet? Tucker? ;) hehe

It would make the stats look far more impressive. Afterall, this mod is supposed to be a way to convince visitors it's an active forum :)

Im also trying to find this out..anyone knows how?
Title: Re: Users Online Today Mod
Post by: qubbah on June 29, 2007, 09:21:56 AM
How can i made user ONLINE in two days or 48 hours?
Title: Re: Users Online Today Mod
Post by: kamili34 on July 01, 2007, 08:29:40 PM
Thanks for mod. :)
Title: Re: Users Online Today Mod
Post by: Pranav on July 01, 2007, 10:19:35 PM
Is this mod available for smf 1.1.3 ?
Title: Re: Users Online Today Mod
Post by: kamili34 on July 02, 2007, 12:44:46 AM
Yes and it works correct.   ;)
Title: Re: Users Online Today Mod
Post by: Pranav on July 02, 2007, 01:22:58 AM
Quote from: Photoshocker on June 26, 2007, 05:25:01 AM
Quote from: symon on May 16, 2007, 08:50:17 AM
Has anyone also worked out how to log guests yet? Tucker? ;) hehe

It would make the stats look far more impressive. Afterall, this mod is supposed to be a way to convince visitors it's an active forum :)

Im also trying to find this out..anyone knows how?

Me too i am trying to find the same thing..Actually some users think that we got less visitors daily but if we can log guests then it would be better because users get attracted more. :D
Title: Re: Users Online Today Mod
Post by: Chris369 on July 08, 2007, 06:35:12 AM
Hi guys

Why do I get this at the top of every page when I install this mod? I'm using 1.1.2 and default theme.

(http://img255.imageshack.us/img255/1619/untitledij9.th.jpg) (http://img255.imageshack.us/my.php?image=untitledij9.jpg)
Title: Re: Users Online Today Mod
Post by: Chris369 on July 08, 2007, 10:43:06 AM
Anyone? I'm sure this is a general problem because I get it with other mods too.
Title: Re: Users Online Today Mod
Post by: Chris369 on July 08, 2007, 12:10:27 PM
Ok ignore that, someone else helped me in another thread.

For anyone else with this problem read this post - http://www.simplemachines.org/community/index.php?topic=114701.msg1154351#msg1154351
Title: Re: Users Online Today Mod
Post by: souljaa on July 08, 2007, 08:49:58 PM
Quote from: Tick on April 21, 2007, 08:46:44 AM
Quote from: a.D on April 20, 2007, 08:12:14 PM
This installed fine on the forum, but it doesn't display on the Dilber theme I'm using.

Can someone help?


I posted this a few pages back.  This is how to make it work with dilber mc.     http://www.simplemachines.org/community/index.php?topic=55513.msg1001561#msg1001561

Would it be the same for other themes?
Thanks
Souljaa
Title: Re: Users Online Today Mod
Post by: Haruah on July 11, 2007, 08:37:47 AM
Thanx for the great MOD!  :)
Title: Re: Users Online Today Mod
Post by: Bigguy on July 11, 2007, 11:10:34 AM
Have you asked Carceri if you can release his mod like this Haruah ??? The mod author should be asked first before this is done. You could submit the language translations to him.
Title: Re: Users Online Today Mod
Post by: Haruah on July 11, 2007, 11:13:50 AM
Ok, I didn't know that. I'll remove it. Sorry.
I didn't mean to ... infringe on anything.
Title: Re: Users Online Today Mod
Post by: Bigguy on July 11, 2007, 11:15:02 AM
Oh your not and it was nice of you to go to all that work with the mod. The author should be asked first though. I would think sending him a PM to ask would be ok. ;)
Title: Re: Users Online Today Mod
Post by: Haruah on July 11, 2007, 11:19:45 AM
Yeah, I'll try that a bit later, don't have time right now.
I know the author should be asked first, but it's just that I'm so used to Joomla and it's GPL, so I have completely forgotten that SMF is not released under GPL license, therefore neither it's mods.
Sorry once again.
Title: Re: Users Online Today Mod
Post by: Bigguy on July 11, 2007, 11:21:18 AM
No problem at all I understand. :)
Title: Re: Users Online Today Mod
Post by: eminent on July 12, 2007, 08:36:03 PM
Hello,

I was looking at your mod, and I was wondering if it can keep history and view the users that logged in for "Today"/last 24 hours/ yesterday/   month-day-year logs..

So I am wondering if I can/this is:
a mod/block/script that will make a thread in the forum(for history).. at the end of the day, of the people who logged in..

for example in the forum:

A thread is made:

Monday, July 9th 2007(clicked)

post says>

USER 1 (time) of the last active
USER 2 (time) etc..

Then Locks the thread..

Then the next day.. etc..(so that there is a log of the people login in everyday, and also what time they were last active/last logged in)Something of this sort..


I know Im asking too much.. but i must be  ???

===
Is this even possible?!?!

It dont even have to be posted on the forum, it can also just keep history for admins/moderators to view, and admins/moderators can post it on thread..

Thanks in advance..
-Eminent
Title: Re: Users Online Today Mod
Post by: souljaa on July 15, 2007, 04:33:54 PM
Hey, the mod works great! Just installed it, but I'm having a little problem.
At the bottom, it says,
Quote: 5 (: 5, : 0)
5 meaning the number of users logged in, but I'm wondering what the rest is? And how would I change that, so that before the : , I could put "Users Online Today".
Thanks in advance!
- Souljaa
Title: Re: Users Online Today Mod
Post by: Stargater59 on July 17, 2007, 12:32:35 PM
You need to add the text strings into the modifications.english.php file.

Find that file in your forums directory
Themes/default/languages/Modifications.english.php

And paste this code at the bottom before the ending ?>

<![CDATA[$txt['uot_users_online_today']='Users Logged In Today';
$txt['uot_yesterday']='Yesterday at ';
$txt['uot_total']='Total';
$txt['uot_visible']='Visible';
$txt['uot_hidden']='Hidden';]]>


Is this mod going to be updated for 1.1.3?
Title: Re: Users Online Today Mod
Post by: Cool999 on July 20, 2007, 09:51:28 AM
Hello Everyone.

I want that in the members list it should show the users who r online in last 2 or 3 or 4 days................................

BUt the text "Users Logged In Today" Should Remain Same.

Hope u got it.

Thanks
Title: Re: Users Online Today Mod
Post by: Cool999 on July 27, 2007, 12:48:47 PM
Will Anyone Help Me.

Quote from: Cool999 on July 20, 2007, 09:51:28 AM
Hello Everyone.

I want that in the members list it should show the users who r online in last 2 or 3 or 4 days................................

BUt the text "Users Logged In Today" Should Remain Same.

Hope u got it.

Thanks
Title: Re: Users Online Today Mod
Post by: pirat3 on July 30, 2007, 11:20:03 PM
hi can anyone tell me what files i need to edit for aa new daamage?
Title: Re: Users Online Today Mod
Post by: t0AsD on August 01, 2007, 09:44:38 AM
Quote from: Stargater59 on July 17, 2007, 12:32:35 PM
Is this mod going to be updated for 1.1.3?

Works fine, just installed it on my 1.1.3.
Title: Re: Users Online Today Mod
Post by: Cool999 on August 01, 2007, 09:58:54 AM
When a will get a reply. Hope so this year

Quote from: Cool999 on July 27, 2007, 12:48:47 PM
Will Anyone Help Me.

Quote from: Cool999 on July 20, 2007, 09:51:28 AM
Hello Everyone.

I want that in the members list it should show the users who r online in last 2 or 3 or 4 days................................

BUt the text "Users Logged In Today" Should Remain Same.

Hope u got it.

Thanks
Title: Re: Users Online Today Mod
Post by: mikeandike on August 04, 2007, 11:27:47 PM
This mod is installed on my forum, and i edited the Board.Index.Template.php file accordingly, but it doesn't change at all. Here's the php code...


function template_main()
{
   global $context, $settings, $options, $txt, $scripturl, $modSettings;

   // Show some statistics next to the link tree if SP1 info is off.
   echo '
<table width="100%" cellpadding="3" cellspacing="0">
   <tr>
      <td valign="bottom">', theme_linktree(), '</td>
      <td align="right">';
   if (!$settings['show_sp1_info'])
      echo '
         ', $txt[19], ': ', $context['common_stats']['total_members'], ' &nbsp;&#8226;&nbsp; ', $txt[95], ': ', $context['common_stats']['total_posts'], ' &nbsp;&#8226;&nbsp; ', $txt[64], ': ', $context['common_stats']['total_topics'], '
         ', ($settings['show_latest_member'] ? '<br />' . $txt[201] . ' <b>' . $context['common_stats']['latest_member']['link'] . '</b>' . $txt[581] : '');
   echo '
      </td>
   </tr>
</table>';

   // Show the news fader?  (assuming there are things to show...)
   if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
   {
      echo '
<div class="tborder" style="margin-bottom: 2ex;">
   <table border="0" width="100%" cellspacing="1" cellpadding="4">
      <tr class="titlebg" align="center">
         <td>', $txt[102], '</td>
      </tr>
      <tr>
         <td valign="middle" align="center" style="height: 60px;">';

      // Prepare all the javascript settings.
      echo '
            <div id="smfFadeScroller" style="width: 90%; padding: 2px;"><b>', $context['news_lines'][0], '</b></div>
            <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
               // The fading delay (in ms.)
               var smfFadeDelay = ', empty($settings['newsfader_time']) ? 5000 : $settings['newsfader_time'], ';
               // Fade from... what text color?  To which background color?
               var smfFadeFrom = {"r": 0, "g": 0, "b": 0}, smfFadeTo = {"r": 255, "g": 255, "b": 255};
               // Surround each item with... anything special?
               var smfFadeBefore = "<b>", smfFadeAfter = "</b>";

               var foreColor, backEl, backColor;

               if (typeof(document.getElementById(\'smfFadeScroller\').currentStyle) != "undefined")
               {
                  foreColor = document.getElementById(\'smfFadeScroller\').currentStyle.color.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
                  smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

                  backEl = document.getElementById(\'smfFadeScroller\');
                  while (backEl.currentStyle.backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined")
                     backEl = backEl.parentNode;

                  backColor = backEl.currentStyle.backgroundColor.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
                  smfFadeTo = {"r": eval("0x" + backColor[1]), "g": eval("0x" + backColor[2]), "b": eval("0x" + backColor[3])};
               }
               else if (typeof(window.opera) == "undefined" && typeof(document.defaultView) != "undefined")
               {
                  foreColor = document.defaultView.getComputedStyle(document.getElementById(\'smfFadeScroller\'), null).color.match(/rgb\((\d+), (\d+), (\d+)\)/);
                  smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

                  backEl = document.getElementById(\'smfFadeScroller\');
                  while (document.defaultView.getComputedStyle(backEl, null).backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined" && typeof(backEl.parentNode.tagName) != "undefined")
                     backEl = backEl.parentNode;

                  backColor = document.defaultView.getComputedStyle(backEl, null).backgroundColor.match(/rgb\((\d+), (\d+), (\d+)\)/);
                  smfFadeTo = {"r": parseInt(backColor[1]), "g": parseInt(backColor[2]), "b": parseInt(backColor[3])};
               }

               // List all the lines of the news for display.
               var smfFadeContent = new Array(
                  "', implode('",
                  "', $context['fader_news_lines']), '"
               );
            // ]]></script>
            <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/fader.js"></script>
         </td>
      </tr>
   </table>
</div>';
   }

   /* Each category in categories is made up of:
      id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
      new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down iamge),
      and boards. (see below.) */
   foreach ($context['categories'] as $category)
   {
      echo '
<div class="tborder"><table border="0" width="100%" cellspacing="1" cellpadding="5">
   <tr>
      <td colspan="4" class="catbg', $category['new'] ? '2' : '', '" height="18">';
      echo '
         ', $category['link'], '
      </td>
   </tr>';

      // Assuming the category hasn't been collapsed...
      if (!$category['is_collapsed'])
      {
         /* Each board in each category's boards has:
            new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
            children (see below.), link_children (easier to use.), children_new (are they new?),
            topics (# of), posts (# of), link, href, and last_post. (see below.) */
         foreach ($category['boards'] as $board)
         {
            echo '
   <tr class="windowbg2">
      <td class="windowbg" width="6%" align="center" valign="top"><a href="', $scripturl, '?action=unread;board=', $board['id'], '.0">';

            // If the board is new, show a strong indicator.
            if ($board['new'])
               echo '<img src="', $settings['images_url'], '/on.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
            // This board doesn't have new posts, but its children do.
            elseif ($board['children_new'])
               echo '<img src="', $settings['images_url'], '/on.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
            // No new posts at all!  The agony!!
            else
               echo '<img src="', $settings['images_url'], '/off.gif" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';

            echo '</a></td>
      <td class="windowbg">
         <b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
         ', $board['description'];

            // Show the "Moderators: ".  Each has name, href, link, and id. (but we're gonna use link_moderators.)
            if (!empty($board['moderators']))
               echo '
         <div style="padding-top: 1px;" class="smalltext2"><i>', count($board['moderators']) == 1 ? $txt[298] : $txt[299], ': ', implode(', ', $board['link_moderators']), '</i></div>';

            // Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
            if (!empty($board['children']))
            {
               // Sort the links into an array with new boards bold so it can be imploded.
               $children = array();
               /* Each child in each board's children has:
                  id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
               foreach ($board['children'] as $child)
               {
                  $child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
                  $children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
               }

               echo '
         <div style="padding-top: 1px;" class="smalltext2"><i>', $txt['parent_boards'], ': ', implode(', ', $children), '</i></div>';
            }

            // Show some basic information about the number of posts, etc.
            echo '
      </td>
      <td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext2">
         ', $board['posts'], ' ', $txt[21], ' ', $txt['smf88'], '<br />
         ', $board['topics'], ' ', $txt[330], '
      </span></td>
      <td class="smalltext" valign="middle" width="22%">';

            /* The board's and children's 'last_post's have:
               time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
               link, href, subject, start (where they should go for the first unread post.),
               and member. (which has id, name, link, href, username in it.) */
            if (!empty($board['last_post']['id']))
               echo '
         ', $txt[22], ' ', $txt[30], ' ', $board['last_post']['time'], '<br />
         ', $txt['smf88'], ' ', $board['last_post']['link'], ' ', $txt[525], ' ', $board['last_post']['member']['link'];

            echo '
      </td>
   </tr>';
         }
      }

      echo '
</table></div>
<br />';
   }

   if ($context['user']['is_logged'])
   {
      echo '
<div class="tborder" style="padding: 3px;"><table border="0" width="100%" cellspacing="0" cellpadding="5">
   <tr class="titlebg">
      <td align="', !$context['right_to_left'] ? 'left' : 'right', '" class="smalltext">
         <img src="' . $settings['images_url'] . '/on.gif" alt="" border="0" align="middle" /> ', $txt[333], '
         <img src="' . $settings['images_url'] . '/off.gif" alt="" border="0" align="middle" style="margin-left: 4ex;" /> ', $txt[334], '
      </td>
      <td align="', !$context['right_to_left'] ? 'right' : 'left', '" class="smalltext">';
      // Show the mark all as read button?
      if ($settings['show_mark_read'])
         echo '
         <a href="', $scripturl, '?action=markasread;sa=all;sesc=' . $context['session_id'] . '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/markread.gif" alt="' . $txt[452] . '" border="0" />' : $txt[452]), '</a>';
      echo '
      </td>
   </tr>
</table></div>';
   }

   // Here's where the "Info Center" starts...
   echo '
<br />
<div class="tborder"><table border="0" width="100%" cellspacing="1" cellpadding="4">
   <tr class="titlebg">
      <td align="center" colspan="2">', $txt[685], '</td>
   </tr>';

   // This is the "Recent Posts" bar.
   if (!empty($settings['number_recent_posts']))
   {
      echo '
   <tr>
      <td class="catbg" colspan="2">', $txt[214], '</td>
   </tr>
   <tr>
      <td class="windowbg" width="20" valign="middle" align="center">
         <a href="', $scripturl, '?action=recent">
            <img src="', $settings['images_url'], '/post/xx.gif" alt="', $txt[214], '" border="0" /></a>
      </td>
      <td class="windowbg2">';

      // Only show one post.
      if ($settings['number_recent_posts'] == 1)
      {
         // latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)
         echo '
         <b><a href="', $scripturl, '?action=recent">', $txt[214], '</a></b>
         <div class="smalltext">
            ', $txt[234], ' &quot;', $context['latest_post']['link'], '&quot; ', $txt[235], ' (', $context['latest_post']['time'], ')<br />
         </div>';
      }
      // Show lots of posts.
      elseif (!empty($context['latest_posts']))
      {
         echo '
         <table width="100%" border="0">';
         /* Each post in latest_posts has:
            board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
            subject, short_subject (shortened with...), time, link, and href. */
         foreach ($context['latest_posts'] as $post)
            echo '
            <tr>
               <td align="right" valign="top" nowrap="nowrap">[', $post['board']['link'], ']</td>
               <td valign="top">', $post['link'], ' ', $txt[525], ' ', $post['poster']['link'], '</td>
               <td align="right" valign="top" nowrap="nowrap">', $post['time'], '</td>
            </tr>';
         echo '
         </table>';
      }
      echo '
      </td>
   </tr>';
   }

   // Show information about events, birthdays, and holidays on the calendar.
   if ($context['show_calendar'])
   {
      echo '
   <tr>
      <td class="catbg" colspan="2">', $context['calendar_only_today'] ? $txt['calendar47b'] : $txt['calendar47'], '</td>
   </tr><tr>
      <td class="windowbg" width="20" valign="middle" align="center">
         <a href="', $scripturl, '?action=calendar">
            <img src="', $settings['images_url'], '/icons/calendar.gif" alt="', $txt['calendar24'], '" border="0" /></a>
      </td>
      <td class="windowbg2" width="100%">
         <span class="smalltext2">';

      // Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.
      if (!empty($context['calendar_holidays']))
         echo '
            <span style="color: #', $modSettings['cal_holidaycolor'], ';">', $txt['calendar5'], ' ', implode(', ', $context['calendar_holidays']), '</span><br />';

      // People's birthdays.  Like mine.  And yours, I guess.  Kidding.
      if (!empty($context['calendar_birthdays']))
      {
         echo '
            <span style="color: #', $modSettings['cal_bdaycolor'], ';">', $context['calendar_only_today'] ? $txt['calendar3'] : $txt['calendar3b'], '</span> ';
         /* Each member in calendar_birthdays has:
            id, name (person), age (if they have one set?), is_last. (last in list?), and is_today (birthday is today?) */
         foreach ($context['calendar_birthdays'] as $member)
            echo '
            <a href="', $scripturl, '?action=profile;u=', $member['id'], '">', $member['is_today'] ? '<b>' : '', $member['name'], $member['is_today'] ? '</b>' : '', isset($member['age']) ? ' (' . $member['age'] . ')' : '', '</a>', $member['is_last'] ? '<br />' : ', ';
      }
      // Events like community get-togethers.
      if (!empty($context['calendar_events']))
      {
         echo '
            <span style="color: #', $modSettings['cal_eventcolor'], ';">', $context['calendar_only_today'] ? $txt['calendar4'] : $txt['calendar4b'], '</span> ';
         /* Each event in calendar_events should have:
            title, href, is_last, can_edit (are they allowed?), modify_href, and is_today. */
         foreach ($context['calendar_events'] as $event)
            echo '
            ', $event['can_edit'] ? '<a href="' . $event['modify_href'] . '" style="color: #FF0000;">*</a> ' : '', $event['href'] == '' ? '' : '<a href="' . $event['href'] . '">', $event['is_today'] ? '<b>' . $event['title'] . '</b>' : $event['title'], $event['href'] == '' ? '' : '</a>', $event['is_last'] ? '<br />' : ', ';

         // Show a little help text to help them along ;).
         if ($context['calendar_can_edit'])
            echo '
            (<a href="', $scripturl, '?action=helpadmin;help=calendar_how_edit" onclick="return reqWin(this.href);">', $txt['calendar_how_edit'], '</a>)';
      }
      echo '
         </span>
      </td>
   </tr>';
// Users online today

   echo '
   <tr>
      <td class="titlebg" colspan="2">', $txt['uot_users_online_today'], '</td>
   </tr><tr>
      <td class="windowbg" width="20" valign="middle" align="center">
         <img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['uot_users_online_today'], '" border="0" />
      </td>
      <td class="windowbg2" width="100%">';

   echo '
         <div class="smalltext">';

  echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
  if (!$context['user']['is_guest'])
     echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';

   // Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
   if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
      echo '<br />', implode(', ', $context['list_users_online_today']);

   echo '
            <br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
            <a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
         </div>
      </td>
   </tr>';
   }

   // Show a member bar.  Not heavily ornate, but functional at least.
   if ($settings['show_member_bar'])
   {
      echo '
   <tr>
      <td class="catbg" colspan="2">', $txt[331], '</td>
   </tr>
   <tr>
      <td class="windowbg" width="20" valign="middle" align="center">
         ', $context['show_member_list'] ? '<a href="' . $scripturl . '?action=mlist">' : '', '<img src="', $settings['images_url'], '/icons/members.gif" alt="', $txt[332], '" border="0" />', $context['show_member_list'] ? '</a>' : '', '
      </td>
      <td class="windowbg2" width="100%">
         <b>', $context['show_member_list'] ? '<a href="' . $scripturl . '?action=mlist">' . $txt[332] . '</a>' : $txt[332], '</b>
         <div class="smalltext2">', $txt[200], '</div>
      </td>
   </tr>';
   }

   // Show YaBB SP1 style information...
   if ($settings['show_sp1_info'])
   {
      echo '
   <tr>
      <td class="catbg" colspan="2">', $txt[645], '</td>
   </tr>
   <tr>
      <td class="windowbg" width="20" valign="middle" align="center">
         <a href="', $scripturl, '?action=stats">
            <img src="', $settings['images_url'], '/icons/info.gif" alt="', $txt[645], '" border="0" /></a>
      </td>
      <td class="windowbg2" width="100%">
         <table border="0" width="90%"><tr>
            <td class="smalltext2">
               <div style="float: ', !$context['right_to_left'] ? 'left' : 'right', '; width: 50%;">', $txt[490], ': <b>', $context['common_stats']['total_topics'], '</b></div>', $txt[489], ': <b>', $context['common_stats']['total_posts'], '</b><br />', !empty($context['latest_post']) ? '
               ' . $txt[659] . ': &quot;' . $context['latest_post']['link'] . '&quot;  (' . $context['latest_post']['time'] . ')<br />' : '', '
               <a href="', $scripturl, '?action=recent">', $txt[234], '</a>', $context['show_stats'] ? '<br />
               <a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
            </td>
            <td width="32%" class="smalltext2" valign="top">
               ', $txt[488], ': <b><a href="', $scripturl, '?action=mlist">', $context['common_stats']['total_members'], '</a></b><br />
               ', $txt[656], ': <b>', $context['common_stats']['latest_member']['link'], '</b><br />';
      // If they are logged in, show their unread message count, etc..
      if ($context['user']['is_logged'])
         echo '
               ', $txt['smf199'], ': <b><a href="', $scripturl, '?action=pm">', $context['user']['messages'], '</a></b> ', $txt['newmessages3'], ': <b><a href="', $scripturl, '?action=pm">', $context['user']['unread_messages'], '</a></b>';
      echo '
            </td>
         </tr></table>
      </td>
   </tr>';
   }

   // "Users online" - in order of activity.
   echo '

<tr>
      <td class="catbg" colspan="2">', $txt[158], '</td>
   </tr><tr>
      <td class="windowbg" width="20" valign="middle" align="center">
         ', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', '<img src="',
$settings['images_url'], '/icons/online.gif" alt="', $txt[158], '" border="0" />', $context['show_who'] ?
'</a>' : '', '     
</td>

      <td class="windowbg2" width="100%">';

   if ($context['show_who'])
      echo '
         <a href="', $scripturl, '?action=who">';

   echo $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];

   // Handle hidden users and buddies.
   if (!empty($context['num_users_hidden']) || ($context['show_buddies'] && !empty($context['show_buddies'])))
   {
      echo ' (';

      // Show the number of buddies online?
      if ($context['show_buddies'])
         echo $context['num_buddies'], ' ', $context['num_buddies'] == 1 ? $txt['buddy'] : $txt['buddies'];

      // How about hidden users?
      if (!empty($context['num_users_hidden']))
         echo $context['show_buddies'] ? ', ' : '', $context['num_users_hidden'] . ' ' . $txt['hidden'];

      echo ')';
   }

   if ($context['show_who'])
      echo '</a>';

   echo '
         <div class="smalltext2">';

   // Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
   if (!empty($context['users_online']))
      echo '
            ', $txt[140], ':<br />', implode(', ', $context['list_users_online']);

   echo '
            <br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
            <a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
       
</div>
<hr />
Membergroup Legend- <font color="aquamarine">[Headmaster]</font> <font color="#FF9966">[Deputy Headmaster]</font> <font color="#FF0000">[Gryffindor]</font> <font color="#FFFF00">[Hufflepuff]</font> <font color="#0066FF">[Ravenclaw]</font> <font color="#00FF00">[Slytherin]</font> <font color="#3fb45e">[Death Eater]</font> <font color="#CC00CC">[Dark Wizard]</font> <font color=gray>[Creature]</font>
<br>

<font color="#CCCCFF">[Adult Wizard]</font> <font color="#339966">[Mediwizard]</font> <font color="#99FF33">[Ministry of Magic]</font> <font color="#FF9900">[Order of the Phoenix]</font> <font color="#0000FF">[Pro Quidditch Player]</font> <font color="#FF3399">[Professor]</font> <font color="#993333">[Shop Keeper]</font> <font color="#669900">[The Dark Lord]</font> <font color="#CC99CC">[Daily Prophet]</font>
<br>
<br>
      </td>
   </tr>';


   // If they are logged in, but SP1 style information is off... show a personal message bar.
   if ($context['user']['is_logged'] && !$settings['show_sp1_info'])
   {
      echo '
   <tr>
      <td class="catbg" colspan="2">', $txt[159], '</td>
   </tr><tr>
      <td class="windowbg" width="20" valign="middle" align="center">
         ', $context['allow_pm'] ? '<a href="' . $scripturl . '?action=pm">' : '', '<img src="', $settings['images_url'], '/message_sm.gif" alt="', $txt[159], '" border="0" />', $context['allow_pm'] ? '</a>' : '', '
      </td>
      <td class="windowbg2" valign="top">
         <b><a href="', $scripturl, '?action=pm">', $txt[159], '</a></b>
         <div class="smalltext">
            ', $txt[660], ' ', $context['user']['messages'], ' ', $context['user']['messages'] == 1 ? $txt[471] : $txt[153], '.... ', $txt[661], ' <a href="', $scripturl, '?action=pm">', $txt[662], '</a> ', $txt[663], '
         </div>
      </td>
   </tr>';
   }

   // Show the login bar. (it's only true if they are logged out anyway.)
   if ($context['show_login_bar'])
   {
      echo '
   <tr>
      <td class="catbg" colspan="2">', $txt[34], ' <a href="', $scripturl, '?action=reminder" class="smalltext">(' . $txt[315] . ')</a></td>
   </tr>
   <tr>
      <td class="windowbg" width="20" align="center">
         <a href="', $scripturl, '?action=login">
            <img src="', $settings['images_url'], '/icons/login.gif" alt="', $txt[34], '" border="0" /></a>
      </td>
      <td class="windowbg2" valign="middle">
         <form action="', $scripturl, '?action=login2" method="post" style="margin: 0;">
            <table border="0" cellpadding="2" cellspacing="0" width="100%"><tr>
               <td valign="middle" align="left">
                  <label for="user"><b>', $txt[35], ':</b><br /><input type="text" name="user" id="user" size="15" /></label>
               </td>
               <td valign="middle" align="left">
                  <label for="passwrd"><b>', $txt[36], ':</b><br /><input type="password" name="passwrd" id="passwrd" size="15" /></label>
               </td>
               <td valign="middle" align="left">
                  <label for="cookielength"><b>', $txt[497], ':</b><br /><input type="text" name="cookielength" id="cookielength" size="4" maxlength="4" value="', $modSettings['cookieTime'], '" /></label>
               </td>
               <td valign="middle" align="left">
                  <label for="cookieneverexp"><b>', $txt[508], ':</b><br /><input type="checkbox" name="cookieneverexp" id="cookieneverexp" checked="checked" class="check" /></label>
               </td>
               <td valign="middle" align="left">
                  <input type="submit" value="', $txt[34], '" />
               </td>
            </tr></table>
         </form>
      </td>
   </tr>';
   }

   echo '
</table></div>';
}


I'm not getting any parse or template errors, just no change. The mod is installed and applied. Ideas?
Title: Re: Users Online Today Mod
Post by: Paracelsus on August 05, 2007, 03:29:21 PM
Quote from: Webrunner on December 27, 2006, 05:31:55 PM
Quote from: mcalan2001 on December 13, 2006, 02:39:52 PM
Quote from: akabugeyes on September 24, 2006, 10:57:01 AM
It is not random. It is by the time they last logged in.
This is untested, but you can try changing in Sources/BoardIndex.php

$context['users_online_today'][$row['lastLogin'] . $row['memberName']] = array(

to

$context['users_online_today'][$row['memberName']] = array(

I think that needs to be much the same edit, but about ten lines down. However I'm no expert and it put the members in reverse alphabetic order. I couldn't see why. So I'll leave it to somebody who knows what they are doing. Please.  :D

Find:

krsort($context['users_online_today']);
krsort($context['list_users_online_today']);


change into:

ksort($context['users_online_today']);
ksort($context['list_users_online_today']);


and the reverse sorting is over ;)


Sorry to get back on this...

I installed the MOD which works perfectly (congrats to the author!) and then used this little modification to put the users in alphabetical order. The problem is that they are ordered based on ASCII principles, in which the uppercase alphabet comes first and only then the lowercase (and the numbers come somewhat randomly I guess).

How can I fix this in order that it doesn't matter if its upper or lower case? (I've read something before about ORDER BY UPPER but have no idea how to do it)
Title: Re: Users Online Today Mod
Post by: pirat3 on August 13, 2007, 01:03:01 AM
Can anyone please tell me how to allow GUESTS to see this?
Title: Re: Users Online Today Mod
Post by: SA™ on August 13, 2007, 02:10:19 AM
admin permisions guest look for Googlebot & Spiders   
View Googlebot & Spiders and tick the box hope this helps
Title: Re: Users Online Today Mod
Post by: vipmoney on August 19, 2007, 05:13:04 PM

Heres a SSI function for this mod
(I'm no expert, please test it at your own risk)


function ssi_usersonlinetoday($output_method = 'echo')
{
global $txt, $scripturl, $db_prefix, $ID_MEMBER, $user_info, $sourcedir;
global $modSettings, $context, $settings, $options;
// Users online today
// Load the users online today.
$date = @getdate(forum_time(false));
$midnight = mktime(0, 0, 0, $date['mon'], $date['mday'], $date['year']) - ($modSettings['time_offset'] * 3600);

$s = strpos($user_info['time_format'], '%S') === false ? '' : ':%S';
if (strpos($user_info['time_format'], '%H') === false && strpos($user_info['time_format'], '%T') === false)
$time_fmt = '%I:%M' . $s . ' %p';
else
$time_fmt = '%H:%M' . $s;

$result = db_query("
SELECT
mem.ID_MEMBER, mem.lastLogin, mem.realName, mem.memberName, mem.showOnline,
mg.onlineColor, mg.ID_GROUP, mg.groupName
FROM {$db_prefix}members AS mem
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP)) WHERE mem.lastLogin >= $midnight", __FILE__, __LINE__);

$context['num_hidden_users_online_today'] = 0;
$context['users_online_today'] = array();
$context['list_users_online_today'] = array();
//$context['num_users_online_today'] = array();


while ($row = mysql_fetch_assoc($result))
{
if (empty($row['showOnline']))
{
$context['num_hidden_users_online_today'] = $context['num_hidden_users_online_today'] + 1;
if (!$user_info['is_admin']) continue;
}

$userday = strftime('%d', forum_time(true));
$loginday = strftime('%d', forum_time(true, $row['lastLogin']));
$yesterday = $userday == $loginday ? '' : $txt['uot_yesterday'];

$lastLogin = $yesterday . strftime($time_fmt, forum_time(true, $row['lastLogin']));
$title = ' title="' . $lastLogin . '"';

// Some basic color coding...
if (!empty($row['onlineColor']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '"' . $title . ' style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '"' . $title . '>' . $row['realName'] . '</a>';

$is_buddy = in_array($row['ID_MEMBER'], $user_info['buddies']);
if ($is_buddy)
{
$link = '<b>' . $link . '</b>';
}

$context['users_online_today'][$row['lastLogin'] . $row['memberName']] = array(
'id' => $row['ID_MEMBER'],
'username' => $row['memberName'],
'name' => $row['realName'],
'group' => $row['ID_GROUP'],
'href' => $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
'link' => $link,
'is_buddy' => $is_buddy,
'hidden' => empty($row['showOnline']),
);

$context['list_users_online_today'][$row['lastLogin'] . $row['memberName']] = empty($row['showOnline']) ? '<i>' . $link . '</i>' : $link;
}
mysql_free_result($result);

krsort($context['users_online_today']);
krsort($context['list_users_online_today']);

$context['num_users_online_today'] = count($context['users_online_today']);
if (!$user_info['is_admin'])
{
$context['num_users_online_today'] = $context['num_users_online_today'] + $context['num_hidden_users_online_today'];
}

//////////////// Showing the users:

echo '
<div class="smalltext">';

  echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
  //if (!$context['user']['is_guest'])
  echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']))
echo '<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>';
}


Usage:
Put this code on the SSI.php and test it by calling it:
function ssi_usersonlinetoday()
Title: Re: Users Online Today Mod
Post by: Malek on August 21, 2007, 12:40:00 PM
Question - did anyone manage to install this on BlackDay theme? I tried but it seems that BoardIndex.template.php is missing the part that the modifications should be added before, and I dared not to proceed further.
Title: Re: Users Online Today Mod
Post by: TrueSatan on August 21, 2007, 02:07:15 PM
Where a file is not included in a theme the file of the same name from the SMF Default theme is automatically used...

If you set up a spare test forum and make your edits on that first and rename the original files  to, for instance, .phpold as you go and keep them in place in case you need to revert to them you need have no fear of making such changes. Once you get it working you can transfer the edited files to your main/live/production forum.
Title: Re: Users Online Today Mod
Post by: Malek on August 21, 2007, 02:14:33 PM
The problem is that the file exists but doesn't have needed part - the mod works correctly under default SMF theme, but not under BlackDay, so it seems it doesn't use default theme's file in any way.
Title: Re: Users Online Today Mod
Post by: TrueSatan on August 21, 2007, 03:06:07 PM
You can attempt to recode the BlackDay theme file to include the missing part and test it on a test forum or post on the topic in the themes forum here that reletes to that theme and see if the author of it or other users can help or switch to another theme or not use this mod...as I see it these are the choices before you.
Title: Re: Users Online Today Mod
Post by: L.G.S on August 21, 2007, 03:29:09 PM
Quote from: Malek on August 21, 2007, 12:40:00 PM
Question - did anyone manage to install this on BlackDay theme? I tried but it seems that BoardIndex.template.php is missing the part that the modifications should be added before, and I dared not to proceed further.

To add the mod is very easy to custom themes.
Title: Re: Users Online Today Mod
Post by: noaneo on August 26, 2007, 03:01:34 PM
Quote from: Stargater59 on July 17, 2007, 12:32:35 PM
You need to add the text strings into the modifications.english.php file.

Find that file in your forums directory
Themes/default/languages/Modifications.english.php

And paste this code at the bottom before the ending ?>

<![CDATA[$txt['uot_users_online_today']='Users Logged In Today';
$txt['uot_yesterday']='Yesterday at ';
$txt['uot_total']='Total';
$txt['uot_visible']='Visible';
$txt['uot_hidden']='Hidden';]]>


Is this mod going to be updated for 1.1.3?

Bonsoir,

Je viens d'installer ce mod mais je n'utilise pas le thème par défaut alors que faut-il modifier pour que le mod fonctionne dans mon thème?
Merci
Title: Re: Users Online Today Mod
Post by: Powerbob on August 29, 2007, 02:37:59 AM
Tell me, is this mod Dead? ie no more updates? The author hasn't posted since February 17, 2007, 02:46:38 AM, and has not been online since 31 July!
Title: Re: Users Online Today Mod
Post by: noaneo on August 29, 2007, 07:31:26 AM
Bonjour,

Il n'y a pas un mod equivalent ??
here is not an equivalent MOD??
Title: Re: Users Online Today Mod
Post by: Paracelsus on August 29, 2007, 08:10:57 AM
Quote from: Powerbob on August 29, 2007, 02:37:59 AM
Tell me, is this mod Dead? ie no more updates? The author hasn't posted since February 17, 2007, 02:46:38 AM, and has not been online since 31 July!

It doesn't need any more updates... it works perfectly as it is (well, I would personally put an update to get the list in alphabetical order... but that's me :P)
Title: Re: Users Online Today Mod
Post by: noaneo on August 29, 2007, 08:51:24 AM
But how to install it when one does not use the template by defect ??
Thank you
Title: Re: Users Online Today Mod
Post by: Paracelsus on August 29, 2007, 11:13:21 AM
You just look at the changes by opening the xml file (you can use the modifications parser to do it or just simply explore the file using the forum system after you installed the mod)... it states there all the changes made in every file...

... you just have to reproduce those changes which are made on files under the default theme directory tree in your own custom theme files. So if, for example, there's a change in BoardIndex.template.php - which exists in both default AND custom theme directory, then you MUST change the file in your custom directory with the exact changes that were made in the default directory file. If the file exists just in the default theme directory and NOT in the custom theme directory, then you have to do absolutely nothing, since the custom theme will "push/use" the file in the default directory... got it? ;)

BTW, I fixed the ordering problem  ;D ;D
uksort($myArray, "strnatcasecmp"); instead of ksort instruction.
Title: Re: Users Online Today Mod
Post by: noaneo on August 29, 2007, 11:57:32 AM
Thank you.

For this MOD what to reproduce in the other topics?

Thank you
Title: Re: Users Online Today Mod
Post by: Paracelsus on August 29, 2007, 12:18:36 PM
Damn it... can't you just read it?

In my case, I had to edit BoardIndex.Template.php and the language files (since mine are xxxxxx.portuguese-utf8.php). Since I don't have any Stats.Template.php in my own custom theme, I didn't had to edit that one.

If you read the file, even though it's in code, it's very understandable... so just read it and you'll figure it out for sure.
Title: Re: Users Online Today Mod
Post by: dxyy on August 30, 2007, 03:48:53 PM
Does this mod work for SMF1.1.3?
Title: Re: Users Online Today Mod
Post by: kamili34 on August 30, 2007, 08:16:15 PM
Quote from: hugodiaz on August 30, 2007, 03:48:53 PM
Does this mod work for SMF1.1.3?

Yes it works  :P
Title: Re: Users Online Today Mod
Post by: dxyy on September 01, 2007, 02:33:41 AM
Ok, I have some questions:

I want this to also be visible to guests, how can I do that?

Also, how can I make the entire list of users online today be displayed in alphabetical order?

After reading through a few pages of this thread I saw something about changing the order, but I didn't quite understand it. Any help would be greatly appreciated.

Thanks! :)
Title: Re: Users Online Today Mod
Post by: Paracelsus on September 01, 2007, 05:11:20 AM
Quote from: hugodiaz on September 01, 2007, 02:33:41 AM
Ok, I have some questions:

I want this to also be visible to guests, how can I do that?

Also, how can I make the entire list of users online today be displayed in alphabetical order?

After reading through a few pages of this thread I saw something about changing the order, but I didn't quite understand it. Any help would be greatly appreciated.

Thanks! :)


1. Visible to guests - have no idea :-[

2.
Quote from: Paracelsus on August 05, 2007, 03:29:21 PM
(...) changing in Sources/BoardIndex.php

$context['users_online_today'][$row['lastLogin'] . $row['memberName']] = array(

to

$context['users_online_today'][$row['memberName']] = array(

(...) that needs to be much the same edit, but about ten lines down.

Find:

krsort($context['users_online_today']);
krsort($context['list_users_online_today']);


change boyh the lines using this instruction instead:
uksort($myArray, "strnatcasecmp");


And that's it!
Title: Re: Users Online Today Mod
Post by: ApplianceJunk on September 09, 2007, 06:04:55 PM
Hi,

I have this mod installed and it works great, thanks!
Does anyone know how I can us it in a TP block?

Thanks,
Title: Re: Users Online Today Mod
Post by: JiGs013 on September 16, 2007, 01:19:31 AM


i already installed the " Users_Online_Today_1.4.0.zip " and it works fine with the default theme but on my TP - Custom Themes it doesnt work.. can anyone tell me what will i do to make it work on my TP-Themes? i need manual install

thanks for advance
Title: Re: Users Online Today Mod
Post by: kamili34 on September 16, 2007, 05:17:10 AM
Yes you must manually some changes.
Title: Re: Users Online Today Mod
Post by: webou on September 19, 2007, 11:00:52 AM
Quote from: Pierre29200 on June 01, 2007, 10:07:14 AM
Add in mod&nbsp; version 1.4.0 joined :
french language and
dilbermc Theme
modifications included.

You can have dilbermc Theme only or French language only and the mod works with that you have.

You can use : http://modparser.dev.dansoftaustralia.net/
to see what i add for french language and dilbermc theme and to do these modifications manually if you prefer...

Hope it helps !

Pierre
Thank you, it helped very much :)
Title: Re: Users Online Today Mod
Post by: ~Kikoish~ on October 04, 2007, 04:50:49 AM
When will the update for 1.1.4 be release?
Title: Re: Users Online Today Mod
Post by: dxyy on October 04, 2007, 02:18:40 PM
Does anyone know how I can make this visible to guests?

I would really appreciate some help in that regard.

Thanks in advance. :)
Title: Re: Users Online Today Mod
Post by: Rica on October 06, 2007, 12:00:04 AM
Is it working on 1.1.4 ?
Title: Re: Users Online Today Mod
Post by: ramapoughnative1 on October 06, 2007, 02:38:12 AM
yes it does work on 1.1.4
Title: Re: Users Online Today Mod
Post by: christicehurst on October 09, 2007, 07:34:25 AM
This mod will be a problem with SMF 2.0. Anyone going to take over this mod soon?
Title: Re: Users Online Today Mod
Post by: symon on October 09, 2007, 06:42:10 PM
Another case of the user not being listened to.

I'm not surprised Vbulletin is so popular. Fantastic functionality.

This mod got done and the maker disappeared.

Typical smf support.  :o
Title: Re: Users Online Today Mod
Post by: Paracelsus on October 10, 2007, 03:00:00 AM
Quote from: symon on October 09, 2007, 06:42:10 PM
Another case of the user not being listened to.

I'm not surprised Vbulletin is so popular. Fantastic functionality.

This mod got done and the maker disappeared.

Typical smf support.  :o

What do you mean? Have you already asked if this feature will be available or not in SMF 2.0? Because if it is, there's no point in proceeding with the MOD development, right?
Title: Re: Users Online Today Mod
Post by: symon on October 10, 2007, 05:21:10 AM
Who knows...the point is this mod has been deserted! And it's very popular. But the functionality is never going to get better when the attitude is "it works...now get on with it".

This is one of the most popular mods and it's development is not going to grow.

Mods that don't/can't evolve aren't much use.
Title: Re: Users Online Today Mod
Post by: christicehurst on October 10, 2007, 06:24:30 AM
Well, I'm sure I can find someone who would take over this mod.
Title: Re: Users Online Today Mod
Post by: Paracelsus on October 10, 2007, 06:40:26 AM
Quote from: symon on October 10, 2007, 05:21:10 AM
Who knows...the point is this mod has been deserted! And it's very popular. But the functionality is never going to get better when the attitude is "it works...now get on with it".

This is one of the most popular mods and it's development is not going to grow.

Mods that don't/can't evolve aren't much use.

Jesus, why are you being so dramatic? I'm pretty sure that someone will take it, since it's so popular.
Title: Re: Users Online Today Mod
Post by: Herman's Mixen on October 10, 2007, 06:46:06 AM
@symon

what whould you like to see then,... it's just a little bar wich shows who where online that day... nothing more nothning less....
Title: Re: Users Online Today Mod
Post by: symon on October 10, 2007, 06:51:58 AM
QuoteJesus, why are you being so dramatic? I'm pretty sure that someone will take it, since it's so popular.

How's that dramatic? Your responses are harsh and dramatic! Response 742 I may add!

Stop insulting people who post for help...I'm sure it's not the SMF way.

Quote from: The Burglar! on October 10, 2007, 06:46:06 AM
@symon

what whould you like to see then,... it's just a little bar wich shows who where online that day... nothing more nothning less....

See...you don't even know the mod. It's not just a little bar and why is progression so wrong? Showing a total of all guests online that day in addition to most online at once would be great. Why does suggestions pi$$ SMF off so much?

People just want help sorting this mod on other themes. What kind of crerten post here just to insult "why don't you just read it" cr@p.
Title: Re: Users Online Today Mod
Post by: Herman's Mixen on October 10, 2007, 07:33:18 AM
well i have rewrite this mod for use on different skins or themes.... for the dutch community here at smf.... so i am beware of the mod and how it works.... i have here a little link for ya.... this one i have modified for default theme (standard) plus the classic theme......

if ya have an other theme you want it working on just tell so i can take a look at it....

http://www.yabb.nl/forum/index.php?topic=44820.msg75067#msg75067

or look at my own site here

http://www.teczone.nl/downloads/category.php?id=2
Title: Re: Users Online Today Mod
Post by: Paracelsus on October 10, 2007, 08:03:03 AM
Quote from: symon on October 10, 2007, 06:51:58 AM
QuoteJesus, why are you being so dramatic? I'm pretty sure that someone will take it, since it's so popular.

How's that dramatic? Your responses are harsh and dramatic! Response 742 I may add!

Stop insulting people who post for help...I'm sure it's not the SMF way.

Quote from: The Burglar! on October 10, 2007, 06:46:06 AM
@symon

what whould you like to see then,... it's just a little bar wich shows who where online that day... nothing more nothning less....

See...you don't even know the mod. It's not just a little bar and why is progression so wrong? Showing a total of all guests online that day in addition to most online at once would be great. Why does suggestions pi$$ SMF off so much?

People just want help sorting this mod on other themes. What kind of crerten post here just to insult "why don't you just read it" cr@p.


I don't understand all this aggressive stance... nobody here is pissed off and nobody is insulting you, just take it easy man...

Don't worry, someone will eventually follow this mod, since it's popular and lot's of people have it! (now, this isn't that hard to understand). As it is, this MOD serves its purpose 100% and doesn't need any more development right now.

Why don't we just wait a little longer for 2.0 and then people "upgrade" the MOD and add some new features to it? ;)
Title: Re: Users Online Today Mod
Post by: symon on October 10, 2007, 08:38:33 AM
Thanks Burglar...your a star. However I wasn't too clear as I have this working fine...I was just referring to other's treatment by some.

Paracelsus  ...saying "Jesus, why are you being so dramatic?" and patronizing people is out of order and I'm not going to take your bate. Because I comment on that does not give you right to condescend.

All I'm saying as far as development...why can't it be better and why does it have to stand still because you say so? Yes it works...but it could be even better. Nothing wrong with that fella :)

With all due respect ...you need to spend less time patronizing and more time helping. I've tried my best way back near the beginning of this thread. Telling people it's easy when they come to a support forum for help is disrespectful.
Title: Re: Users Online Today Mod
Post by: Herman's Mixen on October 10, 2007, 08:52:14 AM
we are all here to help others with their problems or extend his/her needs for their forum ....
also everybody is an Volunteer so it can be take some time if your question is not answered...
and not everybody is an smf pro.... and i am not the original dev of the mod... i'll do things  like remodding just coz some dutch people... are afraid to ruine some stuff on there forums or even don't speak english at all....  ;D

cheers!
Title: Re: Users Online Today Mod
Post by: symon on October 10, 2007, 09:06:29 AM
What you do is impressive and way beyond my skills. It's very much appreciated from everyone...however much the help is :D

ps. My comments where not meant to cause issues   O:) :-*
Title: Re: Users Online Today Mod
Post by: Herman's Mixen on October 10, 2007, 09:18:43 AM
youre welcome.... just ask if ya need someting  ;D
Title: Re: Users Online Today Mod
Post by: Paracelsus on October 10, 2007, 04:30:21 PM
Quote from: symon on October 10, 2007, 08:38:33 AM
Paracelsus  ...saying "Jesus, why are you being so dramatic?" and patronizing people is out of order and I'm not going to take your bate. Because I comment on that does not give you right to condescend.

(...)

With all due respect ...you need to spend less time patronizing and more time helping. I've tried my best way back near the beginning of this thread. Telling people it's easy when they come to a support forum for help is disrespectful.

You can keep on your borderline speech as long as you want... it doesn't affect me, I'm well vaccinated against it ;)

As for the MOD, I'm sure whoever has the chance to develop it, will absolutely do it. If nobody wants to do it, relax, it's not the end of the world. ;D
Title: Re: Users Online Today Mod
Post by: dxyy on October 10, 2007, 04:35:52 PM
I asked this before, but I still haven't received an answer. Is there a way to make this mod visible to guests? Seeing a long list of member names is a lot more effective than a simple number that I assume many guests do not even notice. :(

Also, I saw that someone else was interested in also having this mod keep track of how many guests accessed the forum in any given day. I'm also very interested in such functionality, and if anyone could offer some help in that area I would greatly appreciate it.

Thank you! :D
Title: Re: Users Online Today Mod
Post by: Herman's Mixen on October 11, 2007, 09:20:05 AM
@Paracelsus

please don't be offensive here he said before
QuoteMy comments where not meant to cause issues

@hugodiaz

i'll look into it when i have a little spare time over....
Title: Re: Users Online Today Mod
Post by: Paracelsus on October 11, 2007, 09:58:17 AM
I wasn't being offensive... and my comments were not meant to cause any issues either.
Title: Re: Users Online Today Mod
Post by: dxyy on October 11, 2007, 10:17:02 PM
Quote from: The Burglar! on October 11, 2007, 09:20:05 AM
@hugodiaz

i'll look into it when i have a little spare time over....
Thanks, please let me know what you discover. :)

I really think it should be visible to guests, and I can't understand why it is not. :(
Title: Re: Users Online Today Mod
Post by: sunnyslp on October 13, 2007, 11:49:35 PM
superb mod :)  thnx for this

Title: Re: Users Online Today Mod
Post by: Jade Elizabeth on October 14, 2007, 12:15:20 AM
*butts into argument* <or is it over? lol
is there a way we can keep some sort of log on hand of the people who were online on such and such a day?
it would be good to check if people logged in on days i was away.

lol
Title: Re: Users Online Today Mod
Post by: cheesenub on October 16, 2007, 02:04:36 AM
Quote from: pirat3 on July 30, 2007, 11:20:03 PM
hi can anyone tell me what files i need to edit for aa new daamage?

I can't get this to work with AA New Damage either.

I made the changes to BoardIndex.template.php and there is no Stats.template.php for this theme.

Has anyone gotten it to work with AA New Damage? Any advice on fixing the code?
Title: Re: Users Online Today Mod
Post by: pibe86 on October 16, 2007, 11:12:45 PM
Quote from: snork13 on November 06, 2005, 05:54:53 PM
works great in 1.1rc1, thanks for sharing


-snork

sir, your signature helps me a lot, thanks
Title: Re: Users Online Today Mod
Post by: Jade Elizabeth on October 16, 2007, 11:20:58 PM
can someone answer my question too?
Title: Re: Users Online Today Mod
Post by: cheesenub on October 16, 2007, 11:31:18 PM
Quote from: pibe86 on October 16, 2007, 11:12:45 PM
Quote from: snork13 on November 06, 2005, 05:54:53 PM
works great in 1.1rc1, thanks for sharing


-snork

sir, your signature helps me a lot, thanks

Hmm, yeah. Too bad it doesn't help for the AA New Damage theme.

Does anyone have it working for this theme yet?
Title: Re: Users Online Today Mod
Post by: Bigguy on October 17, 2007, 01:19:26 AM
reading the .xml file that comes with the mod will enable you to put the edits into that theme so it will work.
Title: Re: Users Online Today Mod
Post by: Bigguy on October 17, 2007, 01:20:39 AM
@ Alundra: Do you mean about keeping a log file of logged on users. ???
Title: Re: Users Online Today Mod
Post by: cheesenub on October 17, 2007, 02:37:25 AM
Quote from: Bigguy on October 17, 2007, 01:19:26 AM
reading the .xml file that comes with the mod will enable you to put the edits into that theme so it will work.

I read the xml file and edited the code manually but I still get errors.

Can anyone confirm that the edits work for AA New Damage?
Title: Re: Users Online Today Mod
Post by: dxyy on October 17, 2007, 08:10:25 AM
Quote from: hugodiaz on October 10, 2007, 04:35:52 PM
I asked this before, but I still haven't received an answer. Is there a way to make this mod visible to guests? Seeing a long list of member names is a lot more effective than a simple number that I assume many guests do not even notice. :(

Also, I saw that someone else was interested in also having this mod keep track of how many guests accessed the forum in any given day. I'm also very interested in such functionality, and if anyone could offer some help in that area I would greatly appreciate it.

Thank you! :D
Ok, since I haven't really heard anything about this as yet:

If I pay can someone make this mod visible to guests and also possibly keep track of the number of guests who visited?

I can only use paypal, and I prefer to deal with trusted and established members. What I mean is members who have been on this forum for some time already etc. :)

Thanks for your time.

PS: I am still using 1.1.3 and if you do a good job on this you can expect future work to help me move to 2.0 eventually. ;)
Title: Re: Users Online Today Mod
Post by: sunnyslp on October 17, 2007, 01:11:14 PM
hi all

i have a small problem,the mod installed fine without needing a manual edit

but it doesn't show the text "users logged in today",it just displays the users who logged in today without the title :(

i installed this on another theme via manual edit and got the exact same problem i resolved this by placing Modifications.english.php with the code required by mod in the languages folder.

but now i am using theme "mystic jade" ,in which there isn't a language folder(tried creating folder and copy file,no luck) kindly help me out
Title: Re: Users Online Today Mod
Post by: Jade Elizabeth on October 17, 2007, 05:21:14 PM
Quote from: Bigguy on October 17, 2007, 01:20:39 AM
@ Alundra: Do you mean about keeping a log file of logged on users. ???

i wanna log, kinda like the moderation log in how it works, that updates each night when the online today mod resets.
so i can view it, and keep as many days as i want and clean it out, or just clean certain days out and leave the rest (like if suddenly the online totals broken i know who helped make it happen and could give them some sort of reward or award).
so basically i just want it recorded somewhere in an editable log lol
Title: Re: Users Online Today Mod
Post by: Jade Elizabeth on October 17, 2007, 09:40:16 PM
it would be great if it could show average logins vs average logins that posted per day too

(i have enhanced forum stats lol)
Title: Re: Users Online Today Mod
Post by: PNatal on October 20, 2007, 04:26:55 PM
I just tried this mod for SMF 1.1.4 and I keep getting this error in the admin error log:


8: Undefined index: uot_users_online_today
File: /afs/ist.utl.pt/users/5/0/ist146950/web/forums/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 407


The error also occurs on line 410.
It seems that 'uot_users_online_today' is not recognized in this file...

Help anyone?
Thanx
Title: Re: Users Online Today Mod
Post by: Carceri on October 24, 2007, 05:32:20 AM
Quote from: symon on October 10, 2007, 05:21:10 AM
Who knows...the point is this mod has been deserted! And it's very popular. But the functionality is never going to get better when the attitude is "it works...now get on with it".

This is one of the most popular mods and it's development is not going to grow.

Mods that don't/can't evolve aren't much use.

Let me answer this one.

This is a small mod that does not alter the database, and only affects a few files. It shows a list of users online during the day... no more, no less. This is the feature I was missing, and hence I created this mod. Yes, some people would like to have additional features, but some of the features people request (e.g. make the list available to guests) are possible with a small code edit, and it is described in this thread.

The mod is not deserted. If bugs are discovered I'll try to fix them, but from my point of view, this mod does what it is supposed to, and I have no current interest (or time) in adding a bunch of other features.

Just because there isn't a new version out every second day, doesn't mean that the mod doesn't work or is full of bugs. I actually appreciate software that I can just install and have it working, without having to look for a new version that fixes bugs every week or so.

Actually I am surprised that so many people have assumed that since I don't visit this forum, I have left this mod alone, yet I have not received a single PM asking me that question. PM's are forwarded to my e-mail address, so I do read them :)

But yes... if SMF 2.0 does not have this feature built in, I will make this mod compatible with 2.0 as well.
Title: Re: Users Online Today Mod
Post by: cheesenub on October 24, 2007, 10:10:59 AM
How about helping me get this working for the AA New Damage template that I'm working with?
Title: Re: Users Online Today Mod
Post by: Herman's Mixen on October 24, 2007, 01:05:57 PM
search in your boardindex.template.php for the following code


echo '
<br />
', $context['show_stats'] && !$settings['show_sp1_info'] ? '<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>
<tr>
<td class="windowbg2" width="100%">
<span class="middletext">
', $txt['most_online_today'], ': <b>', $modSettings['mostOnlineToday'], '</b>.
', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ')
</span>
</td>
</tr>';


right after it place the following code
before this line // If they are logged in, but SP1 style information is off... show a personal message bar.


// Users online today

echo '
<tr>
<td class="titlebg" colspan="2">', $txt['uot_users_online_today'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['uot_users_online_today'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';

echo '
<div class="smalltext">';

  echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
  if (!$context['user']['is_guest'])
  echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
echo '<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';


that's for AA Damage !!
Title: Re: Users Online Today Mod
Post by: cheesenub on October 24, 2007, 02:04:08 PM
Thank you so much!

That finally worked.
Title: Re: Users Online Today Mod
Post by: Herman's Mixen on October 24, 2007, 02:31:45 PM
 ;D you're welcome....
Title: Re: Users Online Today Mod
Post by: camaroman1203 on October 24, 2007, 07:06:51 PM
I am using Slickpro: Graphite theme.  I have a problem with my "users online today" mod.

I am not getting the top bar that says "Users Online Today"  it is just showing the numbers and names without the text. 

Anyone have any ideas of why?  I have tried it on a fresh install and it works, shows the divider bar,  but not on my site.  the only mods i have are BBC google video, BBC youtube video, and flashchat integration.  I can't figure out why the little header above it won't show up.
Title: Re: Users Online Today Mod
Post by: Jade Elizabeth on October 24, 2007, 07:50:31 PM
still want a log


can we remove the visible/hidden thing, so users dont know hidden users were online?
Title: Re: Users Online Today Mod
Post by: camaroman1203 on October 24, 2007, 08:12:45 PM
it won't show the title "Users Online Today"  even in the default theme--no header.
Title: Re: Users Online Today Mod
Post by: camaroman1203 on October 24, 2007, 08:45:31 PM
It appears that it may be due to FlashChat integration. 

Has anyone else had this problem that has FlashChat integrated.  Where it doesn't show the header for the Users Online Today above the box.  It just makes a box after Users Online with the members in it.
Title: Re: Users Online Today Mod
Post by: camaroman1203 on October 24, 2007, 09:46:00 PM
FOUND THE PROBLEM!!

It was in  Modifications.english.php

<?php
// Version: 1.1; Modifications

$txt['googlevid'] = 'Googlevideo';

$txt['youtube'] = 'YouTube';


// --- Begin FlashChat Integration ---
$txt['fc_chat'] = 'Chat';
$txt['fc_flashchat'] = 'FlashChat';
$txt['fc_flashchat_settings'] = 'FlashChat Integration Settings';
$txt['fc_in_chat'] = 'in Chat';
$txt['fc_not_found'] = 'FlashChat does not appear to be installed!';
$txt['fc_no_guests'] = 'Sorry, guests aren\'t allowed to use the chat!';
$txt['fc_private_room'] = '<i>private room</i>';
$txt['fc_users_online'] = 'Users currently in chat';
// For 'Who's Online' page
$txt['whoall_chat'] = 'In the <a href="' $boardurl '?action=chat">Chatroom</a>';

// Settings for admin panel
$txt['fc_height2'] = 'Height';
$txt['fc_inForum'] = 'Display chat window "inside" forum?';
$txt['fc_newWindow'] = 'Open chat in new window?';
$txt['fc_showUsers'] = 'Display Users in Chat at top of forum?';
$txt['fc_showUserCount'] = 'Show number of users on Chat button?';
$txt['fc_size_desc'] = 'The height and width may be an integer (eg. 600 for 600 pixels) or a percentage (eg. a width of 100% will fill the whole screen horizontally)<br /><strong>Note:</strong> If "' $txt['fc_inForum'] . '" is turned on, please do not use a percentage for the height. It will not work correctly!';
$txt['fc_width'] = 'Width';
// --- End FlashChat Integration ---$txt['uot_users_online_today']='Users Logged In Today';
$txt['uot_yesterday']='Yesterday at ';
$txt['uot_total']='Total';
$txt['uot_visible']='Visible';
$txt['uot_hidden']='Hidden';

?>



As you can see when you have FlashChat Integrated in your "Modifications.english.php" file you will see that code, if you install this mod after integrating the chat.

So if you are installing this after FlashChat
Change this// --- End FlashChat Integration ---$txt['uot_users_online_today']='Users Logged In Today';
$txt['uot_yesterday']='Yesterday at ';
$txt['uot_total']='Total';
$txt['uot_visible']='Visible';
$txt['uot_hidden']='Hidden';


To This
// --- End FlashChat Integration ---
$txt['uot_users_online_today']='Users Logged In Today';
$txt['uot_yesterday']='Yesterday at ';
$txt['uot_total']='Total';
$txt['uot_visible']='Visible';
$txt['uot_hidden']='Hidden';


As you can see it adds the variable after the //End FlashChat Integration--- line which makes it seem like it's not there.  Very simple fix, just took me a while to find it.
Title: Re: Users Online Today Mod
Post by: spanishsilver on October 25, 2007, 12:15:05 PM
I keep getting this problem when I install this mod. The top of the forum just has a bunch of code and the font size changes. here is a screen shot.
Title: Re: Users Online Today Mod
Post by: SA™ on October 29, 2007, 09:55:41 PM
in your theme directory languages find Modifications.english.php find ?>
near the bottom and cut and past it right at the bottom
Title: Re: Users Online Today Mod
Post by: eleven0 on November 03, 2007, 10:29:43 PM
How can I change 24 hours to something else?
Title: Re: Users Online Today Mod
Post by: dxyy on November 04, 2007, 01:35:54 AM
Quote from: Eleven0 on November 03, 2007, 10:29:43 PM
How can I change 24 hours to something else?
Yes, and is it possible to have it be the 'last 24 hours' instead of just from 12AM of the day. For example, if you go to the forum at 1AM, it will only show the users who were active between 12 and 1AM.

Personally I think it would be better if it could be the last 24 hour period, instead of 'today'

Does anyone know how to achieve this?

Thank you in advance! :)
Title: Re: Users Online Today Mod
Post by: SA™ on November 04, 2007, 04:56:36 AM
there is a mod users online in the last tweny four hours its old tho i have it on my forum i had to mauly install it tho


http://custom.simplemachines.org/mods/index.php?mod=479
Title: Re: Users Online Today Mod
Post by: VegaTheChosen on November 05, 2007, 10:08:13 PM
ive added this mod to my forum
and it worked with everything but  B l a c k - R a i n V.2 by C r i p ~ theme
can anyone point me in the direction of getting this to show on this particular theme?
thanks
Title: Re: Users Online Today Mod
Post by: VegaTheChosen on November 07, 2007, 02:47:45 PM
Quote from: VegaTheChosen on November 05, 2007, 10:08:13 PM
ive added this mod to my forum
and it worked with everything but  B l a c k - R a i n V.2 by C r i p ~ theme
can anyone point me in the direction of getting this to show on this particular theme?
thanks

any help?
Title: Re: Users Online Today Mod
Post by: Herman's Mixen on November 07, 2007, 04:53:20 PM
BoardIndex.template.php search for this

', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ')
</span>
</td>
</tr>';


not every theme has that inside it don't know if you theme does

add after that code


// Users online today

echo '
<tr>
<td class="titlebg" colspan="2">', $txt['uot_users_online_today'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['uot_users_online_today'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';

echo '
<div class="smalltext">';

  echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
  if (!$context['user']['is_guest'])
  echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
echo '<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';


success  ;D
Title: Re: Users Online Today Mod
Post by: Jade Elizabeth on November 07, 2007, 05:49:45 PM
how do we hide the hidden users from being "counted"
Title: Re: Users Online Today Mod
Post by: VegaTheChosen on November 07, 2007, 11:00:25 PM
Quote from: The Burglar! on November 07, 2007, 04:53:20 PM
BoardIndex.template.php search for this

', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ')
</span>
</td>
</tr>';


not every theme has that inside it don't know if you theme does

add after that code


// Users online today

echo '
<tr>
<td class="titlebg" colspan="2">', $txt['uot_users_online_today'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['uot_users_online_today'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';

echo '
<div class="smalltext">';

  echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
  if (!$context['user']['is_guest'])
  echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
echo '<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';


success  ;D


the code you gave worked!
thank you!
I didnt have the script that you posted in the boardindex but i found the spot
thanks again
Title: Re: Users Online Today Mod
Post by: Herman's Mixen on November 07, 2007, 11:10:32 PM
you're welcome  ;D
Title: Re: Users Online Today Mod
Post by: elliatt on December 03, 2007, 09:39:26 AM
I've installed this mod on 1.1.4 but it does not show up.

It installed with no problem or errors.

I'm using the default theme/skin and no other mods are installed.

Any suggestions?
Title: Re: Users Online Today Mod
Post by: Kimmie on December 04, 2007, 02:30:12 PM
Quote from: The Burglar! on November 07, 2007, 04:53:20 PM
BoardIndex.template.php search for this

', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ')
</span>
</td>
</tr>';


not every theme has that inside it don't know if you theme does

add after that code


// Users online today

echo '
<tr>
<td class="titlebg" colspan="2">', $txt['uot_users_online_today'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['uot_users_online_today'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';

echo '
<div class="smalltext">';

  echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
  if (!$context['user']['is_guest'])
  echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
echo '<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';


success  ;D


I added this to that template and for the most part it works great. Is there a code I can add so that it will also show the heading " Users Logged In Today" (like the mod does on the default theme)? Or just show that heading instead of the ":2 ( :2 :0)" part?

(http://www.fileupyours.com/files/138165/usersonline.jpg)

Thanks in advance. :)
Title: Re: Users Online Today Mod
Post by: Stargater59 on December 04, 2007, 02:55:13 PM
Kimmie, in the default theme directory go to

languages/Modifications.english.php

and add:

$txt['uot_users_online_today']='Users Logged In Today';
$txt['uot_yesterday']='Yesterday at ';
$txt['uot_total']='Total';
$txt['uot_visible']='Visible';
$txt['uot_hidden']='Hidden';


And in stats.english.php add (unless it was added already):


$txt['users_online_today'] = 'Online Today';
$txt['num_hits'] = 'Total page views';
$txt['average_hits'] = 'Average page views per day';


That should work for any theme. Unless the theme uses it's own language files. 
Title: Re: Users Online Today Mod
Post by: Kimmie on December 04, 2007, 04:13:23 PM
In the languages/Modifications.english.php in the default theme, this is what was already there:

<?php
// Version: 1.1; Modifications
$txt['uot_users_online_today']='Users Logged In Today';
$txt['uot_yesterday']='Yesterday at ';
$txt['uot_total']='Total';
$txt['uot_visible']='Visible';
$txt['uot_hidden']='Hidden';

?>


(looks the same so I didnt change anything there).

In the stats.english.php file, I have this

<?php
// Version: 1.1; Stats

$txt[888] = 'Most Online';

$txt['smf_stats_1'] = 'Statistics Center';
$txt['smf_stats_2'] = 'General Statistics';
$txt['smf_stats_3'] = 'Top 10 Posters';
$txt['smf_stats_4'] = 'Top 10 Boards';
$txt['smf_stats_5'] = 'Forum History (using forum time offset)';
$txt['smf_stats_6'] = 'Date (yyyy/mm/dd)';
$txt['smf_stats_7'] = 'New Topics';
$txt['smf_stats_8'] = 'New Posts';
$txt['smf_stats_9'] = 'New Members';
$txt['smf_stats_10'] = 'Page views';
$txt['smf_stats_11'] = 'Top 10 Topics (by Replies)';
$txt['smf_stats_12'] = 'Top 10 Topics (by Views)';
$txt['smf_stats_13'] = 'Monthly Summary';
$txt['smf_stats_14'] = 'Most Online';
$txt['smf_stats_15'] = 'Top Topic Starters';
$txt['smf_stats_16'] = 'Most Time Online';
$txt['smf_stats_17'] = 'Best Karma';
$txt['smf_stats_18'] = 'Worst Karma';
$txt['stats_more_detailed'] = 'more detailed &raquo;';

$txt['average_members'] = 'Average registrations per day';
$txt['average_posts'] = 'Average posts per day';
$txt['average_topics'] = 'Average topics per day';
$txt['average_online'] = 'Average online per day';
$txt['users_online'] = 'Users Online';
$txt['gender_ratio'] = 'Male to Female Ratio';
$txt['users_online_today'] = 'Online Today';
$txt['num_hits'] = 'Total page views';
$txt['average_hits'] = 'Average page views per day';

$txt['smf_news_1'] = 'comment';
$txt['smf_news_2'] = 'comments';
$txt['smf_news_3'] = 'Write Comment';
$txt['smf_news_error2'] = 'You cannot specify a board that doesn\'t allow guests.  Please check the board ID before trying again.';
$txt['xml_rss_desc'] = 'Live information from ' $context['forum_name'];

?>




All those files seem to be there. Does anything look incorrect in those? I had originally added the user online mod while I still had the default theme up but when I changed the theme to a new one, that feature no longer worked so I added that code to the board template.
Title: Re: Users Online Today Mod
Post by: Stargater59 on December 04, 2007, 04:32:35 PM
Well.. if the text strings are in Modifications.english.php, and you've made the appropriate edits to the theme you're using. The text should show up..
Title: Re: Users Online Today Mod
Post by: Kimmie on December 04, 2007, 05:08:09 PM
When I changed to the new theme, that info didnt appear - so I added this code, which allows it to work, It just has the #'s (:2 (:2 :0) instead of the "Users Logged In Today" text.


// Users online today

echo '
<tr>
<td class="titlebg" colspan="2">', $txt['uot_users_online_today'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['uot_users_online_today'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';

echo '
<div class="smalltext">';

  echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
  if (!$context['user']['is_guest'])
  echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
echo '<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';


Is there a way to just adjust the above code to add the Users Logged In Today text as well? Or perhaps change the code to where it says that "instead" of the numbers?
Title: Re: Users Online Today Mod
Post by: TrueSatan on December 04, 2007, 09:09:29 PM
Quote from: wdm2005 on November 04, 2007, 04:56:36 AM
there is a mod users online in the last tweny four hours its old tho i have it on my forum i had to mauly install it tho


http://custom.simplemachines.org/mods/index.php?mod=479

If you look at the support topic for that mod you'll find I've updated it and added two derivative mods with different time periods.
Title: Re: Users Online Today Mod
Post by: Stargater59 on December 04, 2007, 09:39:42 PM
Quote from: Kimmie on December 04, 2007, 05:08:09 PM
When I changed to the new theme, that info didnt appear - so I added this code, which allows it to work, It just has the #'s (:2 (:2 :0) instead of the "Users Logged In Today" text.


// Users online today

echo '
<tr>
<td class="titlebg" colspan="2">', $txt['uot_users_online_today'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['uot_users_online_today'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';

echo '
<div class="smalltext">';

  echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
  if (!$context['user']['is_guest'])
  echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
echo '<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';


Is there a way to just adjust the above code to add the Users Logged In Today text as well? Or perhaps change the code to where it says that "instead" of the numbers?

You could. But I believe it's better to do it the other way. What theme are you using?
Title: Re: Users Online Today Mod
Post by: Kimmie on December 05, 2007, 12:18:03 AM
Right now I am using this one:

http://custom.simplemachines.org/themes/index.php?lemma=411

EDIT- I changed themes to a different one and it works fine. Must be something wrong with the compatability of it with that other theme.
Title: Re: Users Online Today Mod
Post by: Stargater59 on December 05, 2007, 01:45:02 AM
There's your problem.

That theme uses its own language files. Meaning, instead of having to edit the default theme's Modifications.english.php, you needed to add the text strings to blue_lt/languages/Modifications.english.php
Title: Re: Users Online Today Mod
Post by: Kimmie on December 05, 2007, 12:36:46 PM
Thanks very much for all your help!  :)
Title: Re: Users Online Today Mod
Post by: chrishicks on December 06, 2007, 09:08:55 AM
is there a way to remove all of the "hidden" references in this or is it possible that this could be set for only admin/mods to view? I have myself and a few mods who have hidden accounts so we can watch what goes on at the board but seeing the hidden references I think is killing our snooping.
Title: Re: Users Online Today Mod
Post by: Jade Elizabeth on December 06, 2007, 12:01:34 PM
http://www.simplemachines.org/community/index.php?topic=201301


see johnyb's post (it hides admin only i think, havent tested it for others yet lol)
Title: Re: Users Online Today Mod
Post by: NewPie on December 15, 2007, 07:12:08 PM
Quote from: tick on April 21, 2007, 08:46:44 AM
Quote from: a.D on April 20, 2007, 08:12:14 PM
This installed fine on the forum, but it doesn't display on the Dilber theme I'm using.

Can someone help?


I posted this a few pages back.  This is how to make it work with dilber mc.     http://www.simplemachines.org/community/index.php?topic=55513.msg1001561#msg1001561

Unfortunately, I have the same problem: this great mod isn't working on DilberMC theme.
But this advice doesn't work: I can't find the needed code in index.template.php. :-[ (not even a part, "like modsettings") and modparser won't help.

Using SMF 1.1.4
Title: Re: Users Online Today Mod
Post by: growwl on December 30, 2007, 03:35:12 AM
I am using the Usersonpinetoday mod on my external site via ssi, but it won't count the users correctly. it looks like they appear only hours after visiting the site or some users do completely fail to be counted although they have been there.
is that a logincookie problem or something else?
Title: Re: Users Online Today Mod
Post by: octap on December 31, 2007, 12:27:35 PM
Quote from: The Burglar! on November 07, 2007, 04:53:20 PM
BoardIndex.template.php search for this

', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ')
</span>
</td>
</tr>';


not every theme has that inside it don't know if you theme does

add after that code


// Users online today

echo '
<tr>
<td class="titlebg" colspan="2">', $txt['uot_users_online_today'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['uot_users_online_today'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';

echo '
<div class="smalltext">';

  echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
  if (!$context['user']['is_guest'])
  echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
echo '<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';


success  ;D


This worked for me also.
Theme: ApolloBB

Thank you!

EDIT: I was quick to say that it worked. The problem I have is strange I think. The text "     
Total: 59 (Visible: 59, Hidden: 0)" is only vewed by me (admin). Global Mods and members see this: ": 59 (: 59, : 0)"

Any help/idea ?

EDIT2: We ask from our members to search before open new posts and ask things...I should have looked more arround before posting.
Everything is ok for me now...I added the extra lines in the Modifications.english.php
Title: Re: Users Online Today Mod
Post by: Muhammad Asad on January 04, 2008, 01:20:19 AM
I have outline theme installed...What code modifications are needed to make this mod functional for that theme too?

I am attaching my BoardIndex.template.php, so if someone can tell me where to insert or just edit it and upload back?
Title: Re: Users Online Today Mod
Post by: Herman's Mixen on January 05, 2008, 02:20:56 AM
well did make the edit for ya look if this works for ya
maybe you need to edit the language file modifications.yourlanguage.php compare it with modifications.english.php
Title: Re: Users Online Today Mod
Post by: Looking on January 07, 2008, 11:29:03 AM
Great mod. What about a record of unique guests that have visited the site in 24 hours?
Title: Re: Users Online Today Mod
Post by: gtron on January 27, 2008, 09:11:46 AM
is there a way to display to guests?

im sorry i dont have time to read this entire thread because im so busy today. :(
Title: Re: Users Online Today Mod
Post by: Kirok on February 09, 2008, 05:38:17 PM
Hi there!

I just installed this great mod (thank you), and was wondering how to properly display the text "Users Logged In Today" in the 'Info Center'.  All it shows now is a semi-colon, the number of users, and that's it.  It doesn't specify what it is exactly... just all the user's names.

Any ideas or suggestions on how to edit that area in the 'Info Center'?

Thanks!
Kirok  :)

Title: Re: Users Online Today Mod
Post by: crustybum on February 13, 2008, 07:48:08 AM
Cant seem to get this mod to work on the "classic" theme, have tried using the parsar, but it asks me to find code that isnt there on the classic boardindex.
Anyone?

Chris
Title: Re: Users Online Today Mod
Post by: Herman's Mixen on February 13, 2008, 11:06:15 AM
try this http://www.simplemachines.org/community/index.php?topic=123350.msg886740#msg886740
Title: Re: Users Online Today Mod
Post by: Powerbob on February 20, 2008, 04:08:31 AM
Quote from: Carceri on October 24, 2007, 05:32:20 AM
Quote from: symon on October 10, 2007, 05:21:10 AM
Who knows...the point is this mod has been deserted! And it's very popular. But the functionality is never going to get better when the attitude is "it works...now get on with it".

This is one of the most popular mods and it's development is not going to grow.

Mods that don't/can't evolve aren't much use.

Let me answer this one.

This is a small mod that does not alter the database, and only affects a few files. It shows a list of users online during the day... no more, no less. This is the feature I was missing, and hence I created this mod. Yes, some people would like to have additional features, but some of the features people request (e.g. make the list available to guests) are possible with a small code edit, and it is described in this thread.

The mod is not deserted. If bugs are discovered I'll try to fix them, but from my point of view, this mod does what it is supposed to, and I have no current interest (or time) in adding a bunch of other features.

Just because there isn't a new version out every second day, doesn't mean that the mod doesn't work or is full of bugs. I actually appreciate software that I can just install and have it working, without having to look for a new version that fixes bugs every week or so.

Actually I am surprised that so many people have assumed that since I don't visit this forum, I have left this mod alone, yet I have not received a single PM asking me that question. PM's are forwarded to my e-mail address, so I do read them :)

But yes... if SMF 2.0 does not have this feature built in, I will make this mod compatible with 2.0 as well.

Up to now it does not, and I'm sure all charter members would welcome and use it :)

Thanks

Bob
Title: Re: Users Online Today Mod
Post by: Sabre™ on February 24, 2008, 03:46:22 PM
Quote from: The Burglar! on November 07, 2007, 04:53:20 PM
BoardIndex.template.php search for this

', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ')
</span>
</td>
</tr>';


not every theme has that inside it don't know if you theme does

add after that code


// Users online today

echo '
<tr>
<td class="titlebg" colspan="2">', $txt['uot_users_online_today'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['uot_users_online_today'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';

echo '
<div class="smalltext">';

  echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
  if (!$context['user']['is_guest'])
  echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
echo '<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';


success  ;D

Hello.
I tried the above code.
And it works with the theme invazion.
But it has pushed everything to the right of the screen
(http://img91.imageshack.us/img91/8417/pushedml0.png)

Any ideas peeps?
My board index template is attached if you would like to have a look.

Thank You in advance :)
Title: Re: Users Online Today Mod
Post by: ranKoto on February 27, 2008, 02:41:12 AM
Hi all,

I just installed this mod, and was wondering how to display the Most Logged In User recorded for a day, you know, some thing like Most Online Ever, but its The Most Logged User Ever

Thanks!
Title: Re: Users Online Today Mod
Post by: Trulyana on February 29, 2008, 07:08:44 PM
I have this mod installed, and notice that it only shows Users Logged In Today, when I log in. It is not viewable to guests, and I would like to make it so. How would you go on about making that happen?
Title: Re: Users Online Today Mod
Post by: Herman's Mixen on February 29, 2008, 08:40:28 PM
sabre take a look at this line

<td class="windowbg" width="20" valign="middle" align="center">


and play a little with the aligments valign="middle|left|right"  ;)
or try just one of the package parsers and then only the theme edits !!

one can be found in my sig
Title: Re: Users Online Today Mod
Post by: Sabre™ on March 02, 2008, 12:08:30 AM
Thanks for the response Burglar.
I tried playin with the alignment..   No glory.
Was tired when I typed the above comment, and forgot to mention that I had earlier tried installing with the Package parser.
Its the same installation as above, with the added changes to the themes stats template.
My theme doesnt have this template.
Theme = invazion.
I had a similar prob with another mod a while ago, but have forgotten what I had changed :-\
Hopefully someone will enlighten me :)

Cheers
Title: Re: Users Online Today Mod
Post by: Sabre™ on March 02, 2008, 05:04:14 PM
SOLVED. :D

Thanks to nokonium for his assistance.
This is for people that are also using the invazion theme.

Quote from:  nokoniumThe primary problem is that the code for Users online today has already been added to the Boardindex.template but to be able to use the code it has to be enabled in the theme support for different mods, unfortunately this is missing so the correct code (different to that inserted into the default/boardindex.template) does not show. All I have done is comment out the 'if' (including closing '}' ) that checks for this mod being enabled in the settings.

This is what I altered

Find

// Users online today
if(!empty($settings['use_usersonlinetoday']))
{
echo '
<tr>
<td class="catbg" colspan="2">', $txt['uot_users_online_today'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['uot_users_online_today'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';

echo '
<div class="smalltext">';

  echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';

  if (!$context['user']['is_guest'])
  echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
echo '<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';
}


Replace with

// Users online today
//if(!empty($settings['use_usersonlinetoday']))
//{
echo '
<tr>
<td class="catbg" colspan="2">', $txt['uot_users_online_today'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['uot_users_online_today'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';

echo '
<div class="smalltext">';

  echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';

  if (!$context['user']['is_guest'])
  echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
echo '<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';
//}


Enjoy :)

Title: Re: Users Online Today Mod
Post by: ranKoto on March 04, 2008, 09:21:24 AM
sorry for bumping my question

is this mod could be configured to show The Most Logged User Ever ?
i really need this one,..

thanks
Title: Re: Users Online Today Mod
Post by: 2n2kas on March 18, 2008, 07:56:34 AM
why Users Online Today Mod instaling with defauld theme ?
or not my theme ? FerryTema ?
Pliz help me
Title: Re: Users Online Today Mod
Post by: Jade Elizabeth on March 18, 2008, 08:10:13 AM
You have to manually install ALL mods onto custom themes.
You can use a parser > www.sleepycode.com
and this doc may help > http://docs.simplemachines.org/index.php?topic=402
Title: Re: Users Online Today Mod
Post by: Carceri on March 18, 2008, 08:48:02 AM
SMF 2.0 beta 3 is out, and so is the first version of this mod for the 2.0 series. Enjoy :)
Title: Re: Users Online Today Mod
Post by: Basie on March 18, 2008, 06:37:27 PM
Shold 1.1.4 users still upgrade?
Title: Re: Users Online Today Mod
Post by: Carceri on March 18, 2008, 07:22:40 PM
Quote from: seek2501 on March 18, 2008, 06:37:27 PM
Shold 1.1.4 users still upgrade?

Nope. To quote the page for this mod:

Quote
Version 1.4.0 is the latest version that supports SMF 1.1.x
Title: Re: Users Online Today Mod
Post by: simon36 on March 18, 2008, 07:40:08 PM
This is a great mod. I am using it on smf 2 beta and it works fine.

How can I change the reporting period from logged in today to logged in the last 24 hours?

Also how do I change the text from 'Users Logged in Today'?

I did try to search but could not find this.

Many thanks.
Title: Re: Users Online Today Mod
Post by: Carceri on March 19, 2008, 02:40:55 AM
Quote from: simon36 on March 18, 2008, 07:40:08 PM
How can I change the reporting period from logged in today to logged in the last 24 hours?

Also how do I change the text from 'Users Logged in Today'?

The answer to the first question can be found in the included readme.txt file. You just need to edit a single line in BoardIndex.php

For the second question, you can change the text strings in UsersOnlineToday.english.php and UsersOnlineToday.english-utf8.php. They are found in the language dir under the default theme.
Title: Re: Users Online Today Mod
Post by: simon36 on March 19, 2008, 05:44:32 AM
Thanks, I did try to edit the boardindex but could not get it to work. Can anyone tell me what I should be changing the code to so I can display users in the last 24 hours?

Thanks.
Title: Re: Users Online Today Mod
Post by: simon36 on March 19, 2008, 06:37:16 AM
Hi, have it working now. Many thanks.
Title: Re: Users Online Today Mod
Post by: JoshieDaMan on March 19, 2008, 09:21:03 PM
It isn't saying any thing at bottom?
Title: Re: Users Online Today Mod
Post by: Sabre™ on March 19, 2008, 10:05:42 PM
Quote from: JoshieDaMan on March 19, 2008, 09:21:03 PM
It isn't saying any thing at bottom?

More info please :)
Did it install without errors?                  Are there any errors in your log?
Are you using the default theme or another etc?

As much info as you could provide, would help your problem be resolved asap. :-)

Looks like I gotta strip the code again, and see if I can install 1.5 into this invazion theme now.. lol
Thats if 1.5 supports SMF 1.1.4 also??
I read the description on the mod page stating that 1.4 is the latest for 1.1.4.
But Im thinking you may not have updated that yet??
You wouldnt leave all of those new options out, to those that are sitting with 1.1.4 until smf 2 is outta beta would you??
Which would roughly be 90% of people using it.            <--not a statistician so dont be raw!!  lol

The mods comin along great now Carceri..
Great work (http://www.postsmile.net/img/19/1942.gif)                And thank you :)
Title: Re: Users Online Today Mod
Post by: JoshieDaMan on March 19, 2008, 11:16:35 PM
1.1.4 SMF.
Custom theme - Phobos.
It installed no errors, and I did edit custom theme and added as said on SMF Package Parser. I edit boardindex, and added modification on there too, still not showing. Is it a option somewhere in admin section or something?

I tried Users_Online_Today_1.5.0.zip it isn't compible with 1.1.4 version as it stated in install package.
So I use 1.4.0.

I am sticking with 1.1.4 forever.
Title: Re: Users Online Today Mod
Post by: perplexed on March 21, 2008, 12:04:12 PM
Quote from: JoshieDaMan on March 19, 2008, 11:16:35 PM
1.1.4 SMF.
Custom theme - Phobos.
It installed no errors, and I did edit custom theme and added as said on SMF Package Parser. I edit boardindex, and added modification on there too, still not showing. Is it a option somewhere in admin section or something?

I tried Users_Online_Today_1.5.0.zip it isn't compible with 1.1.4 version as it stated in install package.
So I use 1.4.0.

I am sticking with 1.1.4 forever.

it's showing at the bottom of your killyourboredom site if that's the one you're referring to
Title: Re: Users Online Today Mod
Post by: Carceri on March 21, 2008, 02:53:09 PM
I am using some new stuff in SMF 2.0 to easily set the options, so that's why the "new" features are not available on earlier versions of this mod. It would be fairly trivial to add this to SMF 1.1 as well - although in a less cleaner way - which is the reason I have refrained from doing it so far. However, since the final of SMF 2.0 is probably years away, I might create a version 1.4.1 with these changes backported.

Until then, almost all of these new options are also available on version 1.4 of this mod. What you need to chance, is already posted in this thread... somewhere :)
Title: Re: Users Online Today Mod
Post by: Powerbob on March 24, 2008, 01:25:48 PM
Thanks installed easily :)

Bob
Title: Re: Users Online Today Mod
Post by: Sabre™ on March 24, 2008, 04:43:37 PM
Quote from: Carceri on March 21, 2008, 02:53:09 PM
since the final of SMF 2.0 is probably years away, I might create a version 1.4.1 with these changes backported.
Makes sense. :)

Quote from: Carceri on March 21, 2008, 02:53:09 PM
Until then, almost all of these new options are also available on version 1.4 of this mod. What you need to chance, is already posted in this thread... somewhere :)
Indeed true.     And already done :)
I was speaking for those with no experience with coding, and/or no time to keep going into their templates, to alter the coding to turn one thing on, or off..
eg.
- Can show users online during the current day, last 24 hours or last 7 days.
- User list can be shown only to admin, only to registered users, or to everyone.
- User list can be sorted by last seen or alphabetically.

Anyways..  Im fine with your decision :)   As stated, I have manually made these edits.

Thanks for your brilliant work :)
Title: Re: Users Online Today Mod
Post by: Basie on March 25, 2008, 08:27:47 PM
Nice update. :)

Shame it's only compatable with the 2.0 beta though - I won't be switching my live site until 2.0 final.

Are there any plans to make 1.5.0 compatible with SMF 1.1.4? It's probably going to be a long time until 2.0 final is out... :(
Title: Re: Users Online Today Mod
Post by: Jade Elizabeth on March 25, 2008, 08:33:17 PM
Quote from: seek2501 on March 25, 2008, 08:27:47 PM
Nice update. :)

Shame it's only compatable with the 2.0 beta though - I won't be switching my live site until 2.0 final.

Are there any plans to make 1.5.0 compatible with SMF 1.1.4? It's probably going to be a long time until 2.0 final is out... :(

Well the older version isn't quite as advanced, but I used it on my old 1.1.4 forum, and it served me well :D. You could easily tweak the 1.1.4 version to show what you wanted, I'm sure, I've seen it before :D.
Title: Re: Users Online Today Mod
Post by: Basie on March 25, 2008, 08:37:38 PM
Quote from: Zygomaticus on March 25, 2008, 08:33:17 PM
Well the older version isn't quite as advanced

I know... I already use 1.4.0. That wasn't the question.
Title: Re: Users Online Today Mod
Post by: Jade Elizabeth on March 25, 2008, 08:39:29 PM
Well what do you want from the new version if the author doesn't upgrade the older version?
Title: Re: Users Online Today Mod
Post by: Sabre™ on March 25, 2008, 08:46:55 PM
Quote from: Zygomaticus on March 25, 2008, 08:39:29 PM
Well what do you want from the new version if the author doesn't upgrade the older version?
A cup of tea and a hot donut would be nice :D

LOL..  Sorry, was just browsing the forum and had a looksie in here.
As you were :D
lol
:P
Title: Re: Users Online Today Mod
Post by: Jade Elizabeth on March 25, 2008, 08:58:58 PM
Lol like Beauty and the beast?
Well if we know what you want Seek, we may be able to code it for you....I've seen this mod set for weekly, on a 1.1.4 forum.
Title: Re: Users Online Today Mod
Post by: Basie on March 25, 2008, 11:41:46 PM
It's not the timeframe, it's just that the current version (for 1.1.4) doesnt allow guests to view who has visited. For guests it only displays the total number of visitors.
Title: Re: Users Online Today Mod
Post by: Jade Elizabeth on March 26, 2008, 12:07:14 AM
Quote from: seek2501 on March 25, 2008, 11:41:46 PM
It's not the timeframe, it's just that the current version (for 1.1.4) doesnt allow guests to view who has visited. For guests it only displays the total number of visitors.

You can put the one you have inside an "if user is logged" thing. If this hasnt been done by someone tomorrow, I'll do it for you and give you the code here :D.
Title: Re: Users Online Today Mod
Post by: Jade Elizabeth on March 26, 2008, 05:15:23 PM
Okay, I reread, you wanted guests to see it.

Themes > [theme name] > BoardIndex.template.php

Find:
// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && !$context['user']['is_guest'])


Replace:
// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']))


I tested it via localhost, it seems to work :D
Title: Re: Users Online Today Mod
Post by: Basie on March 28, 2008, 02:04:31 AM
Thanks.

Also I noticed an issue with this mod... If a user is banned and tries to access the forum then they still get listed as having logged in.

Banned users should not be listed?
Title: Re: Users Online Today Mod
Post by: Carceri on March 28, 2008, 02:36:35 AM
Quote from: seek2501 on March 28, 2008, 02:04:31 AM
Thanks.

Also I noticed an issue with this mod... If a user is banned and tries to access the forum then they still get listed as having logged in.

Banned users should not be listed?

I have not yet tested this myself, but the mod pulls the data from the user database, and if the user is listed as having logged in there, the mod lists him as so. If this is the case, and there is not some other bug, I will not change this, as I want this mod to be consistent with the "last login" time shown in the users profile.
Title: Re: Users Online Today Mod
Post by: Jade Elizabeth on March 28, 2008, 12:01:56 PM
Quote from: seek2501 on March 28, 2008, 02:04:31 AM
Thanks.

Also I noticed an issue with this mod... If a user is banned and tries to access the forum then they still get listed as having logged in.

Banned users should not be listed?

Now that one I don't know how to fix lol

Quote from: Carceri on March 28, 2008, 02:36:35 AM
Quote from: seek2501 on March 28, 2008, 02:04:31 AM
Thanks.

Also I noticed an issue with this mod... If a user is banned and tries to access the forum then they still get listed as having logged in.

Banned users should not be listed?

I have not yet tested this myself, but the mod pulls the data from the user database, and if the user is listed as having logged in there, the mod lists him as so. If this is the case, and there is not some other bug, I will not change this, as I want this mod to be consistent with the "last login" time shown in the users profile.

Well without knowing, I'd assume it was pulled from the database.
When a banned user tries to login I guess the database logs that, I cannot test it as I have no banned users :P
I had one banned for a few days a while ago, and he claimed he got a blank screen with his "ban message" lol.
Title: Re: Users Online Today Mod
Post by: Carceri on March 28, 2008, 10:13:41 PM
I just checked... banned users trying to log in still updates their last login time, and hence this mod should also display them as logged in to be consistent with the information found elsewhere on the forum.
Title: Re: Users Online Today Mod
Post by: stefanmih123 on March 30, 2008, 01:34:05 PM
I have SMF 1.1.4 with non-standard theme....Just installed "Users Online Today" and i don't see that anything changed....I know that i have to change something in "BoardIndex.template.php" but i don't know what and where to put it (i want "Users Online Today" to be after or befor standard "Users Online" )

I tried to put this code:

// Load the users online today.
$date = @getdate(forum_time(false));
$midnight = mktime(0, 0, 0, $date['mon'], $date['mday'], $date['year']) - ($modSettings['time_offset'] * 3600);

$s = strpos($user_info['time_format'], '%S') === false ? '' : ':%S';
if (strpos($user_info['time_format'], '%H') === false && strpos($user_info['time_format'], '%T') === false)
$time_fmt = '%I:%M' . $s . ' %p';
else
$time_fmt = '%H:%M' . $s;

$result = db_query("
SELECT
mem.ID_MEMBER, mem.lastLogin, mem.realName, mem.memberName, mem.showOnline,
mg.onlineColor, mg.ID_GROUP, mg.groupName
FROM {$db_prefix}members AS mem
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP)) WHERE mem.lastLogin >= $midnight", __FILE__, __LINE__);

$context['num_hidden_users_online_today'] = 0;
$context['users_online_today'] = array();
$context['list_users_online_today'] = array();

while ($row = mysql_fetch_assoc($result))
{
if (empty($row['showOnline']))
{
$context['num_hidden_users_online_today'] = $context['num_hidden_users_online_today'] + 1;
if (!$user_info['is_admin']) continue;
}

$userday = strftime('%d', forum_time(true));
$loginday = strftime('%d', forum_time(true, $row['lastLogin']));
$yesterday = $userday == $loginday ? '' : $txt['uot_yesterday'];

$lastLogin = $yesterday . strftime($time_fmt, forum_time(true, $row['lastLogin']));
$title = ' title="' . $lastLogin . '"';

// Some basic color coding...
if (!empty($row['onlineColor']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '"' . $title . ' style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '"' . $title . '>' . $row['realName'] . '</a>';

$is_buddy = in_array($row['ID_MEMBER'], $user_info['buddies']);
if ($is_buddy)
{
$link = '<b>' . $link . '</b>';
}

$context['users_online_today'][$row['lastLogin'] . $row['memberName']] = array(
'id' => $row['ID_MEMBER'],
'username' => $row['memberName'],
'name' => $row['realName'],
'group' => $row['ID_GROUP'],
'href' => $scripturl . '?action=profile;u=' . $row['ID_MEMBER'],
'link' => $link,
'is_buddy' => $is_buddy,
'hidden' => empty($row['showOnline']),
);

$context['list_users_online_today'][$row['lastLogin'] . $row['memberName']] = empty($row['showOnline']) ? '<i>' . $link . '</i>' : $link;
}
mysql_free_result($result);

krsort($context['users_online_today']);
krsort($context['list_users_online_today']);

$context['num_users_online_today'] = count($context['users_online_today']);
if (!$user_info['is_admin'])
{
$context['num_users_online_today'] = $context['num_users_online_today'] + $context['num_hidden_users_online_today'];


but it says:
Quote
The file you tried to save generated the following error:
Parse error: syntax error, unexpected $end in BoardIndex.template.php on line 531


Please HELP ! Appriciate that...
Sorry for my bad English...
Title: Re: Users Online Today Mod
Post by: perplexed on March 30, 2008, 01:51:53 PM
use the package parser in my signature and upload the zipped mod file to it, then select theme edits.  you can then scroll down and see what edits you need to make to your theme to make it appear :)
Title: Re: Users Online Today Mod
Post by: stefanmih123 on March 30, 2008, 02:15:07 PM
Thanks !!!
Title: Re: Users Online Today Mod
Post by: perplexed on March 30, 2008, 02:22:59 PM
no problem :)
Title: Re: Users Online Today Mod
Post by: FragaCampos on April 03, 2008, 02:44:44 PM
Quote from: Jumbobeef on April 16, 2007, 01:52:36 PM
Help!  I have just downloaded 1.1.2 and tried to add this to my default theme.  Everytime I try, I get the error message:

QuoteThe package you are trying to download or install is either corrupt or not compatible with this version of SMF.

I have read back the last ten pages or so of this thread but I can't seem to find the answer.  Can anyone help please?

Thanks in advance.

Hello there.
Tried to install the mod and got the same error. Any suggestion? Thanks.
Title: Re: Users Online Today Mod
Post by: Poor_Knight on April 04, 2008, 08:32:52 PM
Quote from: FragaCampos on April 03, 2008, 02:44:44 PM
Quote from: Jumbobeef on April 16, 2007, 01:52:36 PM
Help!  I have just downloaded 1.1.2 and tried to add this to my default theme.  Everytime I try, I get the error message:

QuoteThe package you are trying to download or install is either corrupt or not compatible with this version of SMF.

I have read back the last ten pages or so of this thread but I can't seem to find the answer.  Can anyone help please?

Thanks in advance.

Hello there.
Tried to install the mod and got the same error. Any suggestion? Thanks.

I got this error too. Using 1.1.4. Safe to manual install still - I usually have to anyways.
Title: Re: Users Online Today Mod
Post by: gxpgreg on April 05, 2008, 08:45:23 PM
Hi, just installed users online today. Using SMF 1.1.4 and the default theme. Installed fine except I am missing the header bar that normally says "Users Logged In Today".  I am also missing the words Total, Visible and Hidden. Anybody have any ideas? Thanks.
Title: Re: Users Online Today Mod
Post by: -SyN- on April 07, 2008, 12:31:18 AM
Are guest not supposed to see the mod, I can see it when its logged in on my site, but as a guest, it just shows the total.

See for yourself.

http://club-syndicate.net/v3.2
Title: Re: Users Online Today Mod
Post by: gxpgreg on April 07, 2008, 08:40:15 PM
Quote from: gxpgreg on April 05, 2008, 08:45:23 PM
Hi, just installed users online today. Using SMF 1.1.4 and the default theme. Installed fine except I am missing the header bar that normally says "Users Logged In Today".  I am also missing the words Total, Visible and Hidden. Anybody have any ideas? Thanks.

After running through previous posts I checked my modifications.english.php and the stats.english.php and I have the required lines of code in there that were previously mentioned.  Still just getting the : 7 (: 7, : 0)  without the words Total, Visible and Hidden.

Any ideas would really be appreciated thanks.
Title: Re: Users Online Today Mod
Post by: SpyDie on April 08, 2008, 05:40:05 AM
gxpgreg,

Post the contents of the default's theme Modifications.english.php file. It can be found in /Themes/default/languages/Modifications.english.php.
Title: Re: Users Online Today Mod
Post by: gxpgreg on April 08, 2008, 11:39:26 AM
Quote from: SpyDie on April 08, 2008, 05:40:05 AM
gxpgreg,

Post the contents of the default's theme Modifications.english.php file. It can be found in /Themes/default/languages/Modifications.english.php.

Here it is, and thanks SpyDie...


<?php
// Version: 1.1; Modifications
$txt['uot_users_online_today']='Users Logged In Today';
$txt['uot_yesterday']='Yesterday at ';
$txt['uot_total']='Total';
$txt['uot_visible']='Visible';
$txt['uot_hidden']='Hidden';
         
?>

Title: Re: Users Online Today Mod
Post by: gxpgreg on April 08, 2008, 08:11:46 PM
Okay, in doing some more checking when I do a track IP for a user I get this listed...

8: Undefined index: uot_hidden
File: /home/jumbo/public_html/brandnewroadsters.org/forum/Themes/default/BoardIndex.template.php (eval?)
Line: 419

April 07, 2008, 08:23:51 PM
8: Undefined index: uot_visible
File: /home/jumbo/public_html/brandnewroadsters.org/forum/Themes/default/BoardIndex.template.php (eval?)
Line: 419

April 07, 2008, 08:23:51 PM
8: Undefined index: uot_total
File: /home/jumbo/public_html/brandnewroadsters.org/forum/Themes/default/BoardIndex.template.php (eval?)
Line: 417

April 07, 2008, 08:23:51 PM
8: Undefined index: uot_users_online_today
File: /home/jumbo/public_html/brandnewroadsters.org/forum/Themes/default/BoardIndex.template.php (eval?)
Line: 410

April 07, 2008, 08:23:51 PM
8: Undefined index: uot_users_online_today
File: /home/jumbo/public_html/brandnewroadsters.org/forum/Themes/default/BoardIndex.template.php (eval?)
Line: 407


So I went to the BoardIndex.template.php but I am not seeing anything. Hopefully someone else will. Here is the Users Online Today section from the BoardIndex.Template.php

   // Users online today   
echo '   
<tr>      
<td class="titlebg" colspan="2">', $txt['uot_users_online_today'], '</td>   
</tr><tr>
      <td class="windowbg" width="20" valign="middle" align="center">   
      <img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['uot_users_online_today'], '" border="0" />      
</td>   
   <td class="windowbg2" width="100%">';   
echo '   
      <div class="smalltext">';

  echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
  if (!$context['user']['is_guest'])
   echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';   

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.   

if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
      echo '<br />', implode(', ', $context['list_users_online_today']);
   echo '
            <br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '            <a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
         </div>   
   </td>   
</tr>';      


      // If they are logged in, but SP1 style information is off... show a personal message bar.   if ($context['user']['is_logged'] && !$settings['show_sp1_info'])   {
Title: Re: Users Online Today Mod
Post by: razorblitz07 on April 09, 2008, 04:12:22 AM
I am using SMF 1.1.4 using the default theme and I can't get the mod to work.  The error:

QuoteThe package you are trying to download or install is either corrupt or not compatible with this version of SMF.

pops up.  I have no idea how to manually install it.  The SMF Package Parser says: Error: This package is not Installable on SMF 1.1.3!

The Parser will only go up to 1.1.3....has no 1.1.4 parser.
Title: Re: Users Online Today Mod
Post by: FragaCampos on April 09, 2008, 01:02:57 PM
Same here.  :(
Can anyone tell me exactly what i have to do to manually install it? I mean, where do i put the directory that comes with the mod?
Or simply make it functional fot the 1.1.4...

Title: Re: Users Online Today Mod
Post by: razorblitz07 on April 09, 2008, 02:46:02 PM
could someone help please?
Title: Re: Users Online Today Mod
Post by: metallica48423 on April 09, 2008, 04:40:50 PM
Are you using the right version?  the 1.4 version is for SMF 1.1.4, the other is for 2.0
Title: Re: Users Online Today Mod
Post by: razorblitz07 on April 09, 2008, 05:42:57 PM
Quote from: metallica48423 on April 09, 2008, 04:40:50 PM
Are you using the right version?  the 1.4 version is for SMF 1.1.4, the other is for 2.0

Ohhh, so that's why.  Well, then is there anything special about the 1.5.0 version?  The only reason why I don't want to upgrade to 2.0 is because it is still beta and I see nothing special about the upgrade.
Title: Re: Users Online Today Mod
Post by: metallica48423 on April 09, 2008, 06:35:44 PM
i don't use the mod, so i don't know if theres major differences.  But the 1.4 is the one for SMF 1.1.4
Title: Re: Users Online Today Mod
Post by: razorblitz07 on April 10, 2008, 02:03:55 AM
Well I downgraded to the 1.4.0 version and everytime I go to my forum as a guest, I can only see the Member count in the panel.  How can I make it so that it shows the Members' names that were online on that day?
Title: Re: Users Online Today Mod
Post by: -SyN- on April 12, 2008, 07:46:35 AM
Quote from: razorblitz07 on April 10, 2008, 02:03:55 AM
everytime I go to my forum as a guest, I can only see the Member count in the panel.  How can I make it so that it shows the Members' names that were online on that day?

Thats my question as well. IS there a way to fix that? They only way I can see the entire mod at work if im logged in. Its useless as a guest.
Title: Re: Users Online Today Mod
Post by: FragaCampos on April 14, 2008, 12:22:21 PM
Quote from: metallica48423 on April 09, 2008, 06:35:44 PM
i don't use the mod, so i don't know if theres major differences.  But the 1.4 is the one for SMF 1.1.4

Thanks. That was the mistake. Installed and working like a charm.
Great mod, btw.

I translated it to portuguese and brazilian, if anyone is interested.
Title: Re: Users Online Today Mod
Post by: FragaCampos on April 16, 2008, 10:44:50 AM
Is there any chance to make it visible only to admins or other specific groups?
Title: Re: Users Online Today Mod
Post by: perplexed on April 25, 2008, 06:56:08 AM
Quote from: FragaCampos on April 16, 2008, 10:44:50 AM
Is there any chance to make it visible only to admins or other specific groups?

read this post http://www.simplemachines.org/community/index.php?topic=55513.msg597993#msg597993 and the one after it :)
Title: Re: Users Online Today Mod
Post by: FragaCampos on April 25, 2008, 11:57:50 AM
Worked like a charm! Thanks (again) :)

Btw, i set it to admins only, using the "is_admin" string, or whatever (:P). How can i use it also to moderators? Which "string" shall i use?
Title: Re: Users Online Today Mod
Post by: Black Knight Cro on April 25, 2008, 05:01:18 PM
Can you tell me how to rename it?
I have like this:
: 10 (: 10, : 0)
and then names of members.
Title: Re: Users Online Today Mod
Post by: LiteSpeed on April 26, 2008, 12:42:39 PM
im having the same problem as gxpgreg on my default theme , any ideas on whats causing it ?
Title: Re: Users Online Today Mod
Post by: Jade Elizabeth on May 11, 2008, 08:32:16 PM
I keep getting this in my error log:
8: Undefined index: uot_yesterday
File: /home/jade/public_html/forums/Sources/Subs-MembersOnlineToday.php
Line: 137


the line is:
$yesterday = $userday == $loginday ? '' : $txt['uot_yesterday'];

I'm on beta 3.1 public :)
I also checked for text strings, and even tried putting them inside modifications.english.php but had ho success.
Title: Re: Users Online Today Mod
Post by: THE BRA1N on May 12, 2008, 01:38:20 AM
Is there something I can do to show all the hidden members on the list to everyone? Im on 2.0 Beta 3.1
Title: Re: Users Online Today Mod
Post by: metallica48423 on May 12, 2008, 03:13:41 AM
why not disallow non administrators to hide their online status?

Admin => Features and Options => Options
Title: Re: Users Online Today Mod
Post by: Kirsty on May 20, 2008, 08:09:02 AM
I have downloaded this mod and tried to install today but when I do try I get this...

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Yet it clearly says that it's okay for 1.1.5.

Can someone help please?
Title: Re: Users Online Today Mod
Post by: Kirsty on May 24, 2008, 11:47:02 PM
no one?
Title: Re: Users Online Today Mod
Post by: Jade Elizabeth on May 25, 2008, 12:33:13 AM
Try redownloading and trying again?
Title: Re: Users Online Today Mod
Post by: Kirsty on May 25, 2008, 05:34:58 PM
I just tried again and it came up with the same error.
Title: Re: Users Online Today Mod
Post by: metallica48423 on May 25, 2008, 09:00:45 PM
how are you downloading?  through the package manager or manually?
Title: Re: Users Online Today Mod
Post by: Kirsty on May 25, 2008, 09:03:27 PM
through the package manager.
Title: Re: Users Online Today Mod
Post by: metallica48423 on May 25, 2008, 09:05:34 PM
try it the other way.  Certain server configurations or restrictions wont allow you to connect to download the file through the package manager. 

You can either download it to your computer and use FTP to put it in /Packages of your install, or you can use the form at the bottom of the 'download packages' tab to upload a mod that way as well.
Title: Re: Users Online Today Mod
Post by: Kirsty on May 25, 2008, 09:43:26 PM
I have tried it both ways and it still will not work.
Title: Re: Users Online Today Mod
Post by: Jade Elizabeth on May 26, 2008, 01:55:59 PM
1.5.1 = 2.0 Beta 3 Public
1.5.2 = 2.0 Beta 3.1 Public
14.0 = doesnt specify

Are you using the right package?
Title: Re: Users Online Today Mod
Post by: reap on May 27, 2008, 09:14:42 AM
Quote from: Kirsty on May 20, 2008, 08:09:02 AM
I have downloaded this mod and tried to install today but when I do try I get this...

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Yet it clearly says that it's okay for 1.1.5.

Can someone help please?
I had the same problem. Try Users_Online_Today_1.4.0.zip. This works for me.
Title: Re: Users Online Today Mod
Post by: Kirsty on May 27, 2008, 09:03:39 PM
thanks for that :)

Just curious, but is there a way to bold the names in the list?

Thanks
Kirsty
Title: Re: Users Online Today Mod
Post by: Kirsty on May 30, 2008, 05:53:37 AM
Anyone at all?

Kirsty
Title: Re: Users Online Today Mod
Post by: kai920 on May 30, 2008, 06:15:31 AM
Got a link?
Title: Re: Users Online Today Mod
Post by: Kirsty on May 30, 2008, 06:35:31 AM
to my site? if so you can't actually see the users visited list, it's hidden from guests....
Title: Re: Users Online Today Mod
Post by: Kirsty on May 31, 2008, 05:26:01 AM
anyone at all?
Title: Re: Users Online Today Mod
Post by: kai920 on May 31, 2008, 11:01:58 AM
If you PM me with a test account, I wouldn't mind taking a look...
Title: Re: Users Online Today Mod
Post by: .Azaria on May 31, 2008, 02:47:12 PM
I tried installing this mod but it won't show up. Help please.
Title: Re: Users Online Today Mod
Post by: c a g a t a y on June 02, 2008, 02:36:59 PM
I have already installed UOT mode

But user names on this field are not JUSTIFIED but left aligned

How can I make it Justify

regards
Title: Re: Users Online Today Mod
Post by: ghof on June 03, 2008, 06:14:28 AM
I have a problem,  i use a custom theme, so i need to install manualy, but i have problem, im using another language than english, i have created a language file for my language,  all is working in default theme, but not in the theme im using
The mod shows up at the right place in custom theme,and another language than english.
but this is all :     Total: 3
It only stands total,
What is the problem?
Title: Re: Users Online Today Mod
Post by: razorblitz07 on June 05, 2008, 04:16:12 AM
Ummm, I'm using the v1.4.0 on my SMF 1.1.5 site and it seems that when I log off, I am unable to view who has been online on the current day.  I can only see it when I am logged in.

Here's the code I use in that area:

// "Users online" - in order of activity.
echo '
<tr>
<td class="titlebg" colspan="2">Currently Active Users: ', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', '', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];
// Handle hidden users and buddies.
if (!empty($context['num_users_hidden']) || ($context['show_buddies'] && !empty($context['show_buddies'])))
{
echo ' (';

// Show the number of buddies online?
if ($context['show_buddies'])
echo $context['num_buddies'], ' ', $context['num_buddies'] == 1 ? $txt['buddy'] : $txt['buddies'];

// How about hidden users?
if (!empty($context['num_users_hidden']))
echo $context['show_buddies'] ? ', ' : '', $context['num_users_hidden'] . ' ' . $txt['hidden'];

echo ')';
}
echo $context['show_who'] ? '</a>' : '', '</td>
</tr>
<tr>
<td class="windowbg2">', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', '<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], '" border="0" />', $context['show_who'] ? '</a>' : '', '</td>
<td class="windowbg" width="100%">
<div class="smalltext">
<div style="white-space: nowrap">', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ')</div>
<div>';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && $context['viewing_allowed'])
{
echo '<br />', implode(', ', $context['list_users_online_today']);
// Showing membergroups?
if (!empty($settings['show_group_key']) && !empty($context['membergroups']))
echo '<br />[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']';
}
echo '</div>';
echo '</td>';
echo '</tr>';


// Show YaBB SP1 style information...
if ($settings['show_sp1_info'])
{
echo '
<tr>
<td class="titlebg" colspan="2">', $txt[645], '</td>
</tr>
<tr>
<td class="windowbg2"><a href="', $scripturl, '?action=stats"><img src="', $settings['images_url'], '/icons/info.gif" alt="', $txt[645], '" border="0" /></a></td>
<td class="windowbg" width="100%">
<div class="smalltext">
<div>', $txt[64], ': ', $context['common_stats']['total_topics'], ', ', $txt[21], ': ', $context['common_stats']['total_posts'], ', ', $txt[19], ': ', $context['common_stats']['total_members'], '
</div>
<div>', $txt[656], ': <b> ', $context['common_stats']['latest_member']['link'], '</b></div>
</div>
</td>
</tr>';
}

echo '
</table>';



Here's what it looks like:

(http://img129.imageshack.us/img129/2087/activeusersor3.jpg)

And finally, here's the url to my forum: http://www.fiestahq.sparkonline.net/forum/index.php
Title: Re: Users Online Today Mod
Post by: leet8845 on June 07, 2008, 11:35:08 PM
I am using a custom theme, Can someone tell me how to add this mod to custom theme. First the file I need to edit plus the code I need to enter. Please keep it simple as I am dumb :)

I have added the mod in the package manger and it has sucessfully installed it doesnt appear though, im using a custom theme and could not find instructions on how to install it to a custom theme

Am I missing something? ythis is from the instructions page;

'It modifies files in the default theme, so if you are using a custom theme, you will need to make changes to your theme files.
You can customise a few options. See the included readme.txt file for details.

Version 1.4.0 is the latest version that supports SMF 1.1.x

NOTE: Always uninstall any previous version of this mod before installing a newer version.'

Ok so what changes do I need to make? why dont you tell me? it dont say in the read me file or at least not clearley.

I'm running SMF version 1.5, no other mods, help me please!!
Title: Re: Users Online Today Mod
Post by: grunfic on June 09, 2008, 03:39:54 AM
can somebody explain how to install this mod on dilber multicolour theme?
Title: Re: Users Online Today Mod
Post by: SA™ on June 10, 2008, 02:49:16 AM
all instuction to manulay install are here (http://custom.simplemachines.org/mods/index.php?action=parse;mod=217;attach=21629;smf_version=1.1.5)
Title: Re: Users Online Today Mod
Post by: grunfic on June 10, 2008, 05:18:09 AM
i know that but it can not be done like that on this theme

try it
Title: Re: Users Online Today Mod
Post by: SA™ on June 10, 2008, 05:21:46 AM
yes it can if ytou cant find the whole code try searching for just a bit of it

post up you boardindex.template,php and il have a look for you
Title: Re: Users Online Today Mod
Post by: grunfic on June 10, 2008, 07:18:49 AM


<?php

// Version: 1.1; BoardIndex



function template_main()

{

global $context$settings$options$txt$scripturl$modSettings;



// Show some statistics next to the link tree if SP1 info is off.

echo '

<table width="100%" cellpadding="0" cellspacing="0">

<tr>

<td valign="bottom">'
theme_linktree(), '</td>

<td align="right">'
;

if (!$settings['show_sp1_info'])

echo '

'
$txt[19], ': '$context['common_stats']['total_members'], ' &nbsp;&#38;#8226;&nbsp; '$txt[95], ': '$context['common_stats']['total_posts'], ' &nbsp;&#38;#8226;&nbsp; '$txt[64], ': '$context['common_stats']['total_topics'], '

'
, ($settings['show_latest_member'] ? '<br />' $txt[201] . ' <b>' $context['common_stats']['latest_member']['link'] . '</b>' $txt[581] : '');

echo '

</td>

</tr>

</table>'
;



// Show the news fader?  (assuming there are things to show...)

if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))

{

echo '

<table border="0" width="100%" class="tborder" cellspacing="' 
, ($context['browser']['is_ie'] || $context['browser']['is_opera6']) ? '1' '0' '" cellpadding="4" style="margin-bottom: 2ex;">

<tr>

<td valign="middle" align="center" height="60" class="windowbg2">'
;



// Prepare all the javascript settings.

echo '

<div id="smfFadeScroller" style="width: 90%; padding: 2px;"><b>'
$context['news_lines'][0], '</b></div>

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[

// The fading delay (in ms.)

var smfFadeDelay = '
, empty($settings['newsfader_time']) ? 5000 $settings['newsfader_time'], ';

// Fade from... what text color? To which background color?

var smfFadeFrom = {"r": 0, "g": 0, "b": 0}, smfFadeTo = {"r": 255, "g": 255, "b": 255};

// Surround each item with... anything special?

var smfFadeBefore = "<b>", smfFadeAfter = "</b>";



var foreColor, backEl, backColor;



if (typeof(document.getElementById(\'smfFadeScroller\').currentStyle) != "undefined")

{

foreColor = document.getElementById(\'smfFadeScroller\').currentStyle.color.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);

smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};



backEl = document.getElementById(\'smfFadeScroller\');

while (backEl.currentStyle.backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined")

backEl = backEl.parentNode;



backColor = backEl.currentStyle.backgroundColor.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);

smfFadeTo = {"r": eval("0x" + backColor[1]), "g": eval("0x" + backColor[2]), "b": eval("0x" + backColor[3])};

}

else if (typeof(window.opera) == "undefined" && typeof(document.defaultView) != "undefined")

{

foreColor = document.defaultView.getComputedStyle(document.getElementById(\'smfFadeScroller\'), null).color.match(/rgb\((\d+), (\d+), (\d+)\)/);

smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};



backEl = document.getElementById(\'smfFadeScroller\');

while (document.defaultView.getComputedStyle(backEl, null).backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined" && typeof(backEl.parentNode.tagName) != "undefined")

backEl = backEl.parentNode;



backColor = document.defaultView.getComputedStyle(backEl, null).backgroundColor.match(/rgb\((\d+), (\d+), (\d+)\)/);

smfFadeTo = {"r": parseInt(backColor[1]), "g": parseInt(backColor[2]), "b": parseInt(backColor[3])};

}



// List all the lines of the news for display.

var smfFadeContent = new Array(

"'
implode('",

"'
$context['fader_news_lines']), '"

);

// ]]></script>

<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/fader.js"></script>

</td>

</tr>

</table>'
;

}



/* Each category in categories is made up of:

id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),

new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down iamge),

and boards. (see below.) */

$first true;

foreach ($context['categories'] as $category)

{

echo '

<div class="tborder" style="margin-top: ' 
$first '0;' '1ex;' '' $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'width: 100%;' '''">

<div class="catbg'
$category['new'] ? '2' '''" style="padding: 5px 5px 5px 10px;">';

$first false;



// If this category even can collapse, show a link to collapse it.

if ($category['can_collapse'])

echo '

<span style="float:right; margin-right:15px;"><a href="'
$category['collapse_href'], '"><img src="'$settings['images_url'] . '/'$settings['theme_main_color'], '/', !$category['is_collapsed'] ? 'collapse.gif' 'expand.gif''" alt="*" /></a></span>';



echo '

<span style="margin-left:80px;">'
$category['link'], '</span>

</div>'
;









// Assuming the category hasn't been collapsed...

if (!$category['is_collapsed'])

{

echo '

<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor" style="margin-top: 0px;">



'
,

empty($settings['boardname_posts_lastposts_nodisplay']) ? '<tr>

<td class="titlebg3" width="51" align="center" valign="middle">



</td>

<td class="titlebg3">

'
$txt[20].'

</td>

<td class="titlebg3" valign="middle" align="center" style="width: 12ex;">

'
$txt[21].'

</td>

<td class="titlebg3" valign="middle" align="center" width="22%">

'
$txt[22].'

</td>

</tr>' 
'' ;



/* Each board in each category's boards has:

new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),

children (see below.), link_children (easier to use.), children_new (are they new?),

topics (# of), posts (# of), link, href, and last_post. (see below.) */

foreach ($category['boards'] as $board)

{

echo '

<tr>

<td class="windowbg" width="51" align="center" valign="middle"><a href="'
$scripturl'?action=unread;board='$board['id'], '.0">';



// If the board is new, show a strong indicator.

if ($board['new'])

echo '<img src="'$settings['images_url'] . '/'$settings['theme_main_color'], '/on.gif" alt="'$txt[333], '" title="'$txt[333], '" />';

// This board doesn't have new posts, but its children do.

elseif ($board['children_new'])

echo '<img src="'$settings['images_url'] . '/'$settings['theme_main_color'], '/on2.gif" alt="'$txt[333], '" title="'$txt[333], '" />';

// No new posts at all! The agony!!

else

echo '<img src="'$settings['images_url'] . '/'$settings['theme_main_color'], '/off.gif" alt="'$txt[334], '" title="'$txt[334], '" />';



echo '</a>

</td>

<td class="windowbg2" style="padding-top:12px; padding-bottom:12px;">

<b><a href="'
$board['href'], '" name="b'$board['id'], '">'$board['name'], '</a></b><br />

'
$board['description'];



// Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)

if (!empty($board['moderators']))

echo '

<div style="padding-top: 1px;" class="smalltext"><br/><i>'
count($board['moderators']) == $txt[298] : $txt[299], ': 'implode(', '$board['link_moderators']), '</i></div>';



// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)

if (!empty($board['children']))

{

// Sort the links into an array with new boards bold so it can be imploded.

$children = array();

/* Each child in each board's children has:

id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */

foreach ($board['children'] as $child)

{

$child['link'] = '<a href="' $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' $txt[330] . ': ' $child['topics'] . ', ' $txt[21] . ': ' $child['posts'] . ')">' $child['name'] . '</a>';

$children[] = $child['new'] ? '<img style="margin-right:5px;" src="' $settings['images_url'] . '/' $settings['theme_main_color'] . '/onk.gif" alt="' $txt[333] . '"/><b>' $child['link'] . '</b>' '<img style="margin-right:5px;" src="' $settings['images_url'] . '/' $settings['theme_main_color'] . '/offk.gif" alt="' $txt[334] . '"/>' $child['link'];

}



echo '

<table style="float:right; margin-top: 15px;" width="100%" cellspacing="0" cellpadding="3" border="0">

<tr>

<td class="middletext" valign="middle" align="center" width="30%">

<b>'
$txt['parent_boards'], ':</b>

'
;



$child_counter 0;



if(empty($settings['child_boards_rows']))

{

echo '

</td>

<td class="middletext" valign="top">'
;



for(; $child_counter ceil(count($children)/2); $child_counter++)

echo $children[$child_counter], '<br/>';

}



echo '

</td>

<td class="middletext" valign="top">'
;

for(; $child_counter count($children); $child_counter++)

echo $children[$child_counter], '<br/>';

echo '

</td>

</tr>

</table>'
;

}

// Show some basic information about the number of posts, etc.

echo '

</td>

<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">

'
$board['posts'], ' '$txt[21], ' <br />

'
$board['topics'],' '$txt[330], '

</span></td>

<td class="windowbg2" valign="middle" width="22%">

<span class="smalltext">'
;



/* The board's and children's 'last_post's have:

time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),

link, href, subject, start (where they should go for the first unread post.),

and member. (which has id, name, link, href, username in it.) */

if (!empty($board['last_post']['id']))

echo '

<b>'
$txt[22], '</b>  '$txt[525], ' '$board['last_post']['member']['link'] , '<br />

'
$txt['smf88'], ' '$board['last_post']['link'], '<br />

'
$txt[30], ' '$board['last_post']['time'];

echo '

</span>

</td>

</tr>'
;

}

echo '

</table>'
;

}

echo '

</div>'
;

}



if ($context['user']['is_logged'])

{

echo '

<table border="0" width="100%" cellspacing="0" cellpadding="5">

<tr>

<td align="'
, !$context['right_to_left'] ? 'left' 'right''" class="smalltext">

<img src="' 
$settings['images_url'] . '/'$settings['theme_main_color'] . '/new_some.gif" alt="" align="middle" /> '$txt[333], '

<img src="' 
$settings['images_url'] . '/'$settings['theme_main_color'] . '/new_none.gif" alt="" align="middle" style="margin-left: 4ex;" /> '$txt[334], '

</td>

<td align="'
, !$context['right_to_left'] ? 'right' 'left''">';



// Mark read button.

$mark_read_button = array('markread' => array('text' => 452'image' => 'markread.gif''lang' => true'url' => $scripturl '?action=markasread;sa=all;sesc=' $context['session_id']));



// Show the mark all as read button?

if ($settings['show_mark_read'] && !empty($context['categories']))

echo '

<table cellpadding="0" cellspacing="0" border="0" style="position: relative; top: 0px;">

<tr>

 '
template_button_strip($mark_read_button'top'), '

</tr>

</table>'
;

echo '

</td>

</tr>

</table>'
;

}



// Here's where the "Info Center" starts...

echo '<br />

<div class="tborder" '
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' '''>

<div class="catbg" style="padding: 6px; vertical-align: middle; text-align: center; ">

<a href="#" onclick="shrinkHeaderIC(!current_header_ic); return false;"><img id="upshrink_ic" src="'
$settings['images_url'] . '/'$settings['theme_main_color'], '/', empty($options['collapse_header_ic']) ? 'collapse.gif' 'expand.gif''" alt="*" title="'$txt['upshrink_description'], '" style="margin-right: 2ex;" align="right" /></a>

'
$txt[685], '

</div>

<div id="upshrinkHeaderIC"'
, empty($options['collapse_header_ic']) ? '' ' style="display: none;"''>

<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">'
;



// This is the "Recent Posts" bar.

if (!empty($settings['number_recent_posts']))

{

echo '

<tr>

<td class="titlebg" colspan="2">'
$txt[214], '</td>

</tr>

<tr>

<td class="windowbg" width="20" valign="middle" align="center">

<a href="'
$scripturl'?action=recent"><img src="'$settings['images_url'], '/post/xx.gif" alt="'$txt[214], '" /></a>

</td>

<td class="windowbg2">'
;



// Only show one post.

if ($settings['number_recent_posts'] == 1)

{

// latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)

echo '

<b><a href="'
$scripturl'?action=recent">'$txt[214], '</a></b>

<div class="smalltext">

'
$txt[234], ' &quot;'$context['latest_post']['link'], '&quot; '$txt[235], ' ('$context['latest_post']['time'], ')<br />

</div>'
;

}

// Show lots of posts.

elseif (!empty($context['latest_posts']))

{

echo '

<table cellpadding="0" cellspacing="0" width="100%">'
;



/* Each post in latest_posts has:

board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),

subject, short_subject (shortened with...), time, link, and href. */

foreach ($context['latest_posts'] as $post)

echo '

<tr>

<td class="windowbg" valign="middle" width="40%" style="padding-left: 10px; font-size:85%">'
$post['link'], '</td>

<td class="windowbg" valign="middle" width="15%" style="padding-left: 10px; font-size:85%" nowrap="nowrap">'
$post['poster']['link'], '</td>

<td class="windowbg" valign="middle" width="25%" style="padding-left: 10px; font-size:85%" nowrap="nowrap">'
$post['board']['link'], '</td>

<td class="windowbg" valign="middle" width="20%" style="padding-left: 10px; font-size:85%" nowrap="nowrap">'
$post['time'], '</td>



</tr>'
;

echo '

</table>'
;

}

echo '

</td>

</tr>'
;

}



// Show information about events, birthdays, and holidays on the calendar.

if ($context['show_calendar'])

{

echo '

<tr>

<td class="titlebg" colspan="2">'
$context['calendar_only_today'] ? $txt['calendar47b'] : $txt['calendar47'], '</td>

</tr><tr>

<td class="windowbg" width="20" valign="middle" align="center">

<a href="'
$scripturl'?action=calendar"><img src="'$settings['images_url'], '/icons/calendar.gif" alt="'$txt['calendar24'], '" /></a>

</td>

<td class="windowbg2" width="100%">

<span class="smalltext">'
;



// Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.

if (!empty($context['calendar_holidays']))

echo '

<span style="color: #'
$modSettings['cal_holidaycolor'], ';">'$txt['calendar5'], ' 'implode(', '$context['calendar_holidays']), '</span><br />';



// People's birthdays. Like mine. And yours, I guess. Kidding.

if (!empty($context['calendar_birthdays']))

{

echo '

<span style="color: #'
$modSettings['cal_bdaycolor'], ';">'$context['calendar_only_today'] ? $txt['calendar3'] : $txt['calendar3b'], '</span> ';

/* Each member in calendar_birthdays has:

id, name (person), age (if they have one set?), is_last. (last in list?), and is_today (birthday is today?) */

foreach ($context['calendar_birthdays'] as $member)

echo '

<a href="'
$scripturl'?action=profile;u='$member['id'], '">'$member['is_today'] ? '<b>' ''$member['name'], $member['is_today'] ? '</b>' '', isset($member['age']) ? ' (' $member['age'] . ')' '''</a>'$member['is_last'] ? '<br />' ', ';

}

// Events like community get-togethers.

if (!empty($context['calendar_events']))

{

echo '

<span style="color: #'
$modSettings['cal_eventcolor'], ';">'$context['calendar_only_today'] ? $txt['calendar4'] : $txt['calendar4b'], '</span> ';

/* Each event in calendar_events should have:

title, href, is_last, can_edit (are they allowed?), modify_href, and is_today. */

foreach ($context['calendar_events'] as $event)

echo '

'
$event['can_edit'] ? '<a href="' $event['modify_href'] . '" style="color: #FF0000;">*</a> ' ''$event['href'] == '' '' '<a href="' $event['href'] . '">'$event['is_today'] ? '<b>' $event['title'] . '</b>' $event['title'], $event['href'] == '' '' '</a>'$event['is_last'] ? '<br />' ', ';



// Show a little help text to help them along ;).

if ($context['calendar_can_edit'])

echo '

(<a href="'
$scripturl'?action=helpadmin;help=calendar_how_edit" onclick="return reqWin(this.href);">'$txt['calendar_how_edit'], '</a>)';

}

echo '

</span>

</td>

</tr>'
;

}





// Show YaBB SP1 style information...

if ($settings['show_sp1_info'])

{

echo '

<tr>

<td class="titlebg" colspan="2">'
$txt[645], '</td>

</tr>

<tr>

<td class="windowbg" width="20" valign="middle" align="center">

<a href="'
$scripturl'?action=stats"><img src="'$settings['images_url'], '/icons/info.gif" alt="'$txt[645], '" /></a>

</td>

<td class="windowbg2" width="100%">

<span class="middletext">

'
$context['common_stats']['total_posts'], ' '$txt[95], ' '$txt['smf88'], ' '$context['common_stats']['total_topics'], ' '$txt[64], ' '$txt[525], ' '$context['common_stats']['total_members'], ' '$txt[19], '. '$txt[656], ': <b> '$context['common_stats']['latest_member']['link'], '</b>

<br /> ' 
$txt[659] . ': <b>&quot;' $context['latest_post']['link'] . '&quot;</b>  ( ' $context['latest_post']['time'] . ' )<br />

<a href="'
$scripturl'?action=recent">'$txt[234], '</a>'$context['show_stats'] ? '<br />

<a href="' 
$scripturl '?action=stats">' $txt['smf223'] . '</a>' '''

</span>

</td>

</tr>'
;

}



// "Users online" - in order of activity.

echo '

<tr>

<td class="titlebg" colspan="2">'
$txt[158], '</td>

</tr><tr>

<td rowspan="2" class="windowbg" width="20" valign="middle" align="center">

'
$context['show_who'] ? '<a href="' $scripturl '?action=who">' '''<img src="'$settings['images_url'], '/icons/online.gif" alt="'$txt[158], '" />'$context['show_who'] ? '</a>' '''

</td>

<td class="windowbg2" width="100%">'
;



echo '

'
$context['show_who'] ? '<a href="' $scripturl '?action=who">' ''$context['num_guests'], ' '$context['num_guests'] == $txt['guest'] : $txt['guests'], ', ' $context['num_users_online'], ' '$context['num_users_online'] == $txt['user'] : $txt['users'];



// Handle hidden users and buddies.

if (!empty($context['num_users_hidden']) || ($context['show_buddies'] && !empty($context['show_buddies'])))

{

echo ' (';



// Show the number of buddies online?

if ($context['show_buddies'])

echo $context['num_buddies'], ' '$context['num_buddies'] == $txt['buddy'] : $txt['buddies'];



// How about hidden users?

if (!empty($context['num_users_hidden']))

echo $context['show_buddies'] ? ', ' ''$context['num_users_hidden'] . ' ' $txt['hidden'];



echo ')';

}



echo $context['show_who'] ? '</a>' '''

<div class="smalltext">'
;



// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.

if (!empty($context['users_online']))

echo '

'
$txt[140], ':<br />'implode(', '$context['list_users_online']);



echo '

<br />

'
$context['show_stats'] && !$settings['show_sp1_info'] ? '<a href="' $scripturl '?action=stats">' $txt['smf223'] . '</a>' '''

</div>

</td>

</tr>

<tr>

<td class="windowbg2" width="100%">

<span class="middletext">

'
$txt['most_online_today'], ': <b>'$modSettings['mostOnlineToday'], '</b>.

'
$txt['most_online_ever'], ': '$modSettings['mostOnline'], ' (' timeformat($modSettings['mostDate']), ')

</span>

</td>

</tr>'
;



// If they are logged in, but SP1 style information is off... show a personal message bar.

if ($context['user']['is_logged'] && !$settings['show_sp1_info'])

{

 echo '

<tr>

<td class="titlebg" colspan="2">'
$txt[159], '</td>

</tr><tr>

<td class="windowbg" width="20" valign="middle" align="center">

'
$context['allow_pm'] ? '<a href="' $scripturl '?action=pm">' '''<img src="'$settings['images_url'], '/message_sm.gif" alt="'$txt[159], '" />'$context['allow_pm'] ? '</a>' '''

</td>

<td class="windowbg2" valign="top">

<b><a href="'
$scripturl'?action=pm">'$txt[159], '</a></b>

<div class="smalltext">

'
$txt[660], ' '$context['user']['messages'], ' '$context['user']['messages'] == $txt[471] : $txt[153], '.... '$txt[661], ' <a href="'$scripturl'?action=pm">'$txt[662], '</a> '$txt[663], '

</div>

</td>

</tr>'
;

}



// Show the login bar. (it's only true if they are logged out anyway.)

if ($context['show_login_bar'])

{

echo '

<tr>

<td class="titlebg" colspan="2">'
$txt[34], ' <a href="'$scripturl'?action=reminder" class="smalltext">(' $txt[315] . ')</a></td>

</tr>

<tr>

<td class="windowbg" width="20" align="center">

<a href="'
$scripturl'?action=login"><img src="'$settings['images_url'], '/icons/login.gif" alt="'$txt[34], '" /></a>

</td>

<td class="windowbg2" valign="middle">

<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" style="margin: 0;">

<table border="0" cellpadding="2" cellspacing="0" align="center" width="100%"><tr>

<td valign="middle" align="left">

<label for="user"><b>'
$txt[35], ':</b><br />

<input type="text" name="user" id="user" size="15" /></label>

</td>

<td valign="middle" align="left">

<label for="passwrd"><b>'
$txt[36], ':</b><br />

<input type="password" name="passwrd" id="passwrd" size="15" /></label>

</td>

<td valign="middle" align="left">

<label for="cookielength"><b>'
$txt[497], ':</b><br />

<input type="text" name="cookielength" id="cookielength" size="4" maxlength="4" value="'
$modSettings['cookieTime'], '" /></label>

</td>

<td valign="middle" align="left">

<label for="cookieneverexp"><b>'
$txt[508], ':</b><br />

<input type="checkbox" name="cookieneverexp" id="cookieneverexp" checked="checked" class="check" /></label>

</td>

<td valign="middle" align="left">

<input type="submit" value="'
$txt[34], '" />

</td>

</tr></table>

</form>

</td>

</tr>'
;

}



echo '

</table>

</div>

</div>'
;

}



?>








There you are
Title: Re: Users Online Today Mod
Post by: SA™ on June 10, 2008, 08:06:33 PM
try this

<?php

// Version: 1.1; BoardIndex



function template_main()

{

   global 
$context$settings$options$txt$scripturl$modSettings;

   

   
// Show some statistics next to the link tree if SP1 info is off.

   
echo '

   <table width="100%" cellpadding="0" cellspacing="0">

      <tr>

         <td valign="bottom">'
theme_linktree(), '</td>

         <td align="right">'
;

   if (!
$settings['show_sp1_info'])

      echo 
'

            '
$txt[19], ': '$context['common_stats']['total_members'], ' &nbsp;&#38;#8226;&nbsp; '$txt[95], ': '$context['common_stats']['total_posts'], ' &nbsp;&#38;#8226;&nbsp; '$txt[64], ': '$context['common_stats']['total_topics'], '

            '
, ($settings['show_latest_member'] ? '<br />' $txt[201] . ' <b>' $context['common_stats']['latest_member']['link'] . '</b>' $txt[581] : '');

   echo 
'

         </td>

      </tr>

   </table>'
;



   
// Show the news fader?  (assuming there are things to show...)

   
if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))

   {

      echo 
'

   <table border="0" width="100%" class="tborder" cellspacing="' 
, ($context['browser']['is_ie'] || $context['browser']['is_opera6']) ? '1' '0' '" cellpadding="4" style="margin-bottom: 2ex;">

      <tr>

         <td valign="middle" align="center" height="60" class="windowbg2">'
;



      
// Prepare all the javascript settings.

      
echo '

            <div id="smfFadeScroller" style="width: 90%; padding: 2px;"><b>'
$context['news_lines'][0], '</b></div>

            <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[

               // The fading delay (in ms.)

               var smfFadeDelay = '
, empty($settings['newsfader_time']) ? 5000 $settings['newsfader_time'], ';

               // Fade from... what text color? To which background color?

               var smfFadeFrom = {"r": 0, "g": 0, "b": 0}, smfFadeTo = {"r": 255, "g": 255, "b": 255};

               // Surround each item with... anything special?

               var smfFadeBefore = "<b>", smfFadeAfter = "</b>";



               var foreColor, backEl, backColor;



               if (typeof(document.getElementById(\'smfFadeScroller\').currentStyle) != "undefined")

               {

                  foreColor = document.getElementById(\'smfFadeScroller\').currentStyle.color.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);

                  smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};



                  backEl = document.getElementById(\'smfFadeScroller\');

                  while (backEl.currentStyle.backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined")

                     backEl = backEl.parentNode;



                  backColor = backEl.currentStyle.backgroundColor.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);

                  smfFadeTo = {"r": eval("0x" + backColor[1]), "g": eval("0x" + backColor[2]), "b": eval("0x" + backColor[3])};

               }

               else if (typeof(window.opera) == "undefined" && typeof(document.defaultView) != "undefined")

               {

                  foreColor = document.defaultView.getComputedStyle(document.getElementById(\'smfFadeScroller\'), null).color.match(/rgb\((\d+), (\d+), (\d+)\)/);

                  smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};



                  backEl = document.getElementById(\'smfFadeScroller\');

                  while (document.defaultView.getComputedStyle(backEl, null).backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined" && typeof(backEl.parentNode.tagName) != "undefined")

                     backEl = backEl.parentNode;



                  backColor = document.defaultView.getComputedStyle(backEl, null).backgroundColor.match(/rgb\((\d+), (\d+), (\d+)\)/);

                  smfFadeTo = {"r": parseInt(backColor[1]), "g": parseInt(backColor[2]), "b": parseInt(backColor[3])};

               }



               // List all the lines of the news for display.

               var smfFadeContent = new Array(

                  "'
implode('",

                  "'
$context['fader_news_lines']), '"

               );

            // ]]></script>

            <script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/fader.js"></script>

         </td>

      </tr>

   </table>'
;

   }



   
/* Each category in categories is made up of:

   id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),

   new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down iamge),

   and boards. (see below.) */

   
$first true;

   foreach (
$context['categories'] as $category)

   {

      echo 
'

   <div class="tborder" style="margin-top: ' 
$first '0;' '1ex;' '' $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'width: 100%;' '''">

      <div class="catbg'
$category['new'] ? '2' '''" style="padding: 5px 5px 5px 10px;">';

      
$first false;



      
// If this category even can collapse, show a link to collapse it.

      
if ($category['can_collapse'])

         echo 
'

            <span style="float:right; margin-right:15px;"><a href="'
$category['collapse_href'], '"><img src="'$settings['images_url'] . '/'$settings['theme_main_color'], '/', !$category['is_collapsed'] ? 'collapse.gif' 'expand.gif''" alt="*" /></a></span>';



      echo 
'

            <span style="margin-left:80px;">'
$category['link'], '</span>

      </div>'
;

      



      



      
// Assuming the category hasn't been collapsed...

      
if (!$category['is_collapsed'])

      {

         echo 
'

      <table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor" style="margin-top: 0px;">

         

         '
,

         empty(
$settings['boardname_posts_lastposts_nodisplay']) ? '<tr>

            <td class="titlebg3" width="51" align="center" valign="middle">



            </td>

            <td class="titlebg3">

               '
$txt[20].'

            </td>

            <td class="titlebg3" valign="middle" align="center" style="width: 12ex;">

               '
$txt[21].'

            </td>

            <td class="titlebg3" valign="middle" align="center" width="22%">

               '
$txt[22].'

            </td>

         </tr>' 
''   ;

         

         
/* Each board in each category's boards has:

         new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),

         children (see below.), link_children (easier to use.), children_new (are they new?),

         topics (# of), posts (# of), link, href, and last_post. (see below.) */

         
foreach ($category['boards'] as $board)

         {

            echo 
'

         <tr>

            <td class="windowbg" width="51" align="center" valign="middle"><a href="'
$scripturl'?action=unread;board='$board['id'], '.0">';



            
// If the board is new, show a strong indicator.

            
if ($board['new'])

               echo 
'<img src="'$settings['images_url'] . '/'$settings['theme_main_color'], '/on.gif" alt="'$txt[333], '" title="'$txt[333], '" />';

            
// This board doesn't have new posts, but its children do.

            
elseif ($board['children_new'])

               echo 
'<img src="'$settings['images_url'] . '/'$settings['theme_main_color'], '/on2.gif" alt="'$txt[333], '" title="'$txt[333], '" />';

            
// No new posts at all! The agony!!

            
else

               echo 
'<img src="'$settings['images_url'] . '/'$settings['theme_main_color'], '/off.gif" alt="'$txt[334], '" title="'$txt[334], '" />';



            echo 
'</a>

            </td>

            <td class="windowbg2" style="padding-top:12px; padding-bottom:12px;">

               <b><a href="'
$board['href'], '" name="b'$board['id'], '">'$board['name'], '</a></b><br />

                  '
$board['description'];



            
// Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)

            
if (!empty($board['moderators']))

               echo 
'

               <div style="padding-top: 1px;" class="smalltext"><br/><i>'
count($board['moderators']) == $txt[298] : $txt[299], ': 'implode(', '$board['link_moderators']), '</i></div>';

            

            
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)

            
if (!empty($board['children']))

            {

               
// Sort the links into an array with new boards bold so it can be imploded.

               
$children = array();

               
/* Each child in each board's children has:

                     id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */

               
foreach ($board['children'] as $child)

               {

                     
$child['link'] = '<a href="' $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' $txt[330] . ': ' $child['topics'] . ', ' $txt[21] . ': ' $child['posts'] . ')">' $child['name'] . '</a>';

                     
$children[] = $child['new'] ? '<img style="margin-right:5px;" src="' $settings['images_url'] . '/' $settings['theme_main_color'] . '/onk.gif" alt="' $txt[333] . '"/><b>' $child['link'] . '</b>' '<img style="margin-right:5px;" src="' $settings['images_url'] . '/' $settings['theme_main_color'] . '/offk.gif" alt="' $txt[334] . '"/>' $child['link'];                     

               }



               echo 
'

               <table style="float:right; margin-top: 15px;" width="100%" cellspacing="0" cellpadding="3" border="0">

                  <tr>

                     <td class="middletext" valign="middle" align="center" width="30%">

                        <b>'
$txt['parent_boards'], ':</b>

                     '
;



               
$child_counter 0;

               

               if(empty(
$settings['child_boards_rows']))

               {

                  echo 
'   

                     </td>

                     <td class="middletext" valign="top">'
;

                        

                        for(; 
$child_counter ceil(count($children)/2); $child_counter++)

                              echo 
$children[$child_counter], '<br/>';

               }

               

               echo 
'

                     </td>

                     <td class="middletext" valign="top">'
;   

                        for(; 
$child_counter count($children); $child_counter++)

                              echo 
$children[$child_counter], '<br/>';

               echo 
'

                     </td>

                  </tr>

               </table>'
;

            }

            
// Show some basic information about the number of posts, etc.

               
echo '

            </td>

            <td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">

               '
$board['posts'], ' '$txt[21], ' <br />

               '
$board['topics'],' '$txt[330], '

            </span></td>

            <td class="windowbg2" valign="middle" width="22%">

               <span class="smalltext">'
;



            
/* The board's and children's 'last_post's have:

            time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),

            link, href, subject, start (where they should go for the first unread post.),

            and member. (which has id, name, link, href, username in it.) */

            
if (!empty($board['last_post']['id']))

               echo 
'

                  <b>'
$txt[22], '</b>  '$txt[525], ' '$board['last_post']['member']['link'] , '<br />

                  '
$txt['smf88'], ' '$board['last_post']['link'], '<br />

                  '
$txt[30], ' '$board['last_post']['time'];

            echo 
'

               </span>

            </td>

         </tr>'
;

         }

         echo 
'

      </table>'
;

      }

      echo 
'

   </div>'
;

   }



   if (
$context['user']['is_logged'])

   {

      echo 
'

   <table border="0" width="100%" cellspacing="0" cellpadding="5">

      <tr>

         <td align="'
, !$context['right_to_left'] ? 'left' 'right''" class="smalltext">

            <img src="' 
$settings['images_url'] . '/'$settings['theme_main_color'] . '/new_some.gif" alt="" align="middle" /> '$txt[333], '

            <img src="' 
$settings['images_url'] . '/'$settings['theme_main_color'] . '/new_none.gif" alt="" align="middle" style="margin-left: 4ex;" /> '$txt[334], '

         </td>

         <td align="'
, !$context['right_to_left'] ? 'right' 'left''">';



      
// Mark read button.

      
$mark_read_button = array('markread' => array('text' => 452'image' => 'markread.gif''lang' => true'url' => $scripturl '?action=markasread;sa=all;sesc=' $context['session_id']));



      
// Show the mark all as read button?

      
if ($settings['show_mark_read'] && !empty($context['categories']))

            echo 
'

            <table cellpadding="0" cellspacing="0" border="0" style="position: relative; top: 0px;">

               <tr>

                      '
template_button_strip($mark_read_button'top'), '

               </tr>

            </table>'
;

      echo 
'

         </td>

      </tr>

   </table>'
;

   }



   
// Here's where the "Info Center" starts...

   
echo '<br />

   <div class="tborder" '
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' '''>

      <div class="catbg" style="padding: 6px; vertical-align: middle; text-align: center; ">

         <a href="#" onclick="shrinkHeaderIC(!current_header_ic); return false;"><img id="upshrink_ic" src="'
$settings['images_url'] . '/'$settings['theme_main_color'], '/', empty($options['collapse_header_ic']) ? 'collapse.gif' 'expand.gif''" alt="*" title="'$txt['upshrink_description'], '" style="margin-right: 2ex;" align="right" /></a>

         '
$txt[685], '

      </div>

      <div id="upshrinkHeaderIC"'
, empty($options['collapse_header_ic']) ? '' ' style="display: none;"''>

         <table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">'
;



   
// This is the "Recent Posts" bar.

   
if (!empty($settings['number_recent_posts']))

   {

      echo 
'

            <tr>

               <td class="titlebg" colspan="2">'
$txt[214], '</td>

            </tr>

            <tr>

               <td class="windowbg" width="20" valign="middle" align="center">

                  <a href="'
$scripturl'?action=recent"><img src="'$settings['images_url'], '/post/xx.gif" alt="'$txt[214], '" /></a>

               </td>

               <td class="windowbg2">'
;



      
// Only show one post.

      
if ($settings['number_recent_posts'] == 1)

      {

         
// latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)

         
echo '

                  <b><a href="'
$scripturl'?action=recent">'$txt[214], '</a></b>

                  <div class="smalltext">

                        '
$txt[234], ' &quot;'$context['latest_post']['link'], '&quot; '$txt[235], ' ('$context['latest_post']['time'], ')<br />

                  </div>'
;

      }

      
// Show lots of posts.

      
elseif (!empty($context['latest_posts']))

      {

         echo 
'

                  <table cellpadding="0" cellspacing="0" width="100%">'
;



         
/* Each post in latest_posts has:

               board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),

               subject, short_subject (shortened with...), time, link, and href. */

         
foreach ($context['latest_posts'] as $post)

            echo 
'

                     <tr>

                        <td class="windowbg" valign="middle" width="40%" style="padding-left: 10px; font-size:85%">'
$post['link'], '</td>

                        <td class="windowbg" valign="middle" width="15%" style="padding-left: 10px; font-size:85%" nowrap="nowrap">'
$post['poster']['link'], '</td>

                        <td class="windowbg" valign="middle" width="25%" style="padding-left: 10px; font-size:85%" nowrap="nowrap">'
$post['board']['link'], '</td>

                        <td class="windowbg" valign="middle" width="20%" style="padding-left: 10px; font-size:85%" nowrap="nowrap">'
$post['time'], '</td>



                     </tr>'
;

         echo 
'

                  </table>'
;

      }

      echo 
'

               </td>

            </tr>'
;

   }



   
// Show information about events, birthdays, and holidays on the calendar.

   
if ($context['show_calendar'])

   {

      echo 
'

            <tr>

               <td class="titlebg" colspan="2">'
$context['calendar_only_today'] ? $txt['calendar47b'] : $txt['calendar47'], '</td>

            </tr><tr>

               <td class="windowbg" width="20" valign="middle" align="center">

                  <a href="'
$scripturl'?action=calendar"><img src="'$settings['images_url'], '/icons/calendar.gif" alt="'$txt['calendar24'], '" /></a>

               </td>

               <td class="windowbg2" width="100%">

                  <span class="smalltext">'
;



      
// Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.

      
if (!empty($context['calendar_holidays']))

            echo 
'

                     <span style="color: #'
$modSettings['cal_holidaycolor'], ';">'$txt['calendar5'], ' 'implode(', '$context['calendar_holidays']), '</span><br />';



      
// People's birthdays. Like mine. And yours, I guess. Kidding.

      
if (!empty($context['calendar_birthdays']))

      {

            echo 
'

                     <span style="color: #'
$modSettings['cal_bdaycolor'], ';">'$context['calendar_only_today'] ? $txt['calendar3'] : $txt['calendar3b'], '</span> ';

      
/* Each member in calendar_birthdays has:

            id, name (person), age (if they have one set?), is_last. (last in list?), and is_today (birthday is today?) */

      
foreach ($context['calendar_birthdays'] as $member)

            echo 
'

                     <a href="'
$scripturl'?action=profile;u='$member['id'], '">'$member['is_today'] ? '<b>' ''$member['name'], $member['is_today'] ? '</b>' '', isset($member['age']) ? ' (' $member['age'] . ')' '''</a>'$member['is_last'] ? '<br />' ', ';

      }

      
// Events like community get-togethers.

      
if (!empty($context['calendar_events']))

      {

         echo 
'

                     <span style="color: #'
$modSettings['cal_eventcolor'], ';">'$context['calendar_only_today'] ? $txt['calendar4'] : $txt['calendar4b'], '</span> ';

         
/* Each event in calendar_events should have:

               title, href, is_last, can_edit (are they allowed?), modify_href, and is_today. */

         
foreach ($context['calendar_events'] as $event)

            echo 
'

                     '
$event['can_edit'] ? '<a href="' $event['modify_href'] . '" style="color: #FF0000;">*</a> ' ''$event['href'] == '' '' '<a href="' $event['href'] . '">'$event['is_today'] ? '<b>' $event['title'] . '</b>' $event['title'], $event['href'] == '' '' '</a>'$event['is_last'] ? '<br />' ', ';



         
// Show a little help text to help them along ;).

         
if ($context['calendar_can_edit'])

            echo 
'

                     (<a href="'
$scripturl'?action=helpadmin;help=calendar_how_edit" onclick="return reqWin(this.href);">'$txt['calendar_how_edit'], '</a>)';

      }

      echo 
'

                  </span>

               </td>

            </tr>'
;

   }





   
// Show YaBB SP1 style information...

   
if ($settings['show_sp1_info'])

   {

      echo 
'

            <tr>

               <td class="titlebg" colspan="2">'
$txt[645], '</td>

            </tr>

            <tr>

               <td class="windowbg" width="20" valign="middle" align="center">

                  <a href="'
$scripturl'?action=stats"><img src="'$settings['images_url'], '/icons/info.gif" alt="'$txt[645], '" /></a>

               </td>

               <td class="windowbg2" width="100%">

                  <span class="middletext">

                     '
$context['common_stats']['total_posts'], ' '$txt[95], ' '$txt['smf88'], ' '$context['common_stats']['total_topics'], ' '$txt[64], ' '$txt[525], ' '$context['common_stats']['total_members'], ' '$txt[19], '. '$txt[656], ': <b> '$context['common_stats']['latest_member']['link'], '</b>

                     <br /> ' 
$txt[659] . ': <b>&quot;' $context['latest_post']['link'] . '&quot;</b>  ( ' $context['latest_post']['time'] . ' )<br />

                     <a href="'
$scripturl'?action=recent">'$txt[234], '</a>'$context['show_stats'] ? '<br />

                     <a href="' 
$scripturl '?action=stats">' $txt['smf223'] . '</a>' '''

                  </span>

               </td>

            </tr>'
;

   }



   
// "Users online" - in order of activity.

   
echo '

            <tr>

               <td class="titlebg" colspan="2">'
$txt[158], '</td>

            </tr><tr>

               <td rowspan="2" class="windowbg" width="20" valign="middle" align="center">

                  '
$context['show_who'] ? '<a href="' $scripturl '?action=who">' '''<img src="'$settings['images_url'], '/icons/online.gif" alt="'$txt[158], '" />'$context['show_who'] ? '</a>' '''

               </td>

               <td class="windowbg2" width="100%">'
;



   echo 
'

                  '
$context['show_who'] ? '<a href="' $scripturl '?action=who">' ''$context['num_guests'], ' '$context['num_guests'] == $txt['guest'] : $txt['guests'], ', ' $context['num_users_online'], ' '$context['num_users_online'] == $txt['user'] : $txt['users'];



   
// Handle hidden users and buddies.

   
if (!empty($context['num_users_hidden']) || ($context['show_buddies'] && !empty($context['show_buddies'])))

   {

      echo 
' (';



      
// Show the number of buddies online?

      
if ($context['show_buddies'])

         echo 
$context['num_buddies'], ' '$context['num_buddies'] == $txt['buddy'] : $txt['buddies'];



      
// How about hidden users?

      
if (!empty($context['num_users_hidden']))

         echo 
$context['show_buddies'] ? ', ' ''$context['num_users_hidden'] . ' ' $txt['hidden'];



      echo 
')';

   }



   echo 
$context['show_who'] ? '</a>' '''

                  <div class="smalltext">'
;



   
// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.

   
if (!empty($context['users_online']))

      echo 
'

                     '
$txt[140], ':<br />'implode(', '$context['list_users_online']);



   echo 
'

                     <br />

                     '
$context['show_stats'] && !$settings['show_sp1_info'] ? '<a href="' $scripturl '?action=stats">' $txt['smf223'] . '</a>' '''

                  </div>

               </td>

            </tr>

            <tr>

               <td class="windowbg2" width="100%">

                  <span class="middletext">

                     '
$txt['most_online_today'], ': <b>'$modSettings['mostOnlineToday'], '</b>.

                     '
$txt['most_online_ever'], ': '$modSettings['mostOnline'], ' (' timeformat($modSettings['mostDate']), ')

                  </span>

               </td>

            </tr>'
;
// Users online today

echo '
<tr>
<td class="titlebg" colspan="2">'
$txt['uot_users_online_today'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="'
$settings['images_url'], '/icons/online.gif" alt="'$txt['uot_users_online_today'], '" border="0" />
</td>
<td class="windowbg2" width="100%">'
;

echo '
<div class="smalltext">'
;

  echo 
$txt['uot_total'], ': <b>'$context['num_users_online_today'], '</b>';
  if (!
$context['user']['is_guest'])
  
echo ' ('$txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', '$txt['uot_hidden'], ': '$context['num_hidden_users_online_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
echo '<br />'implode(', '$context['list_users_online_today']);

echo '
<br />'
$context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' 
$scripturl '?action=stats">' $txt['smf223'] . '</a>' '''
</div>
</td>
</tr>'
;



   
// If they are logged in, but SP1 style information is off... show a personal message bar.

   
if ($context['user']['is_logged'] && !$settings['show_sp1_info'])

   {

       echo 
'

            <tr>

               <td class="titlebg" colspan="2">'
$txt[159], '</td>

            </tr><tr>

               <td class="windowbg" width="20" valign="middle" align="center">

                  '
$context['allow_pm'] ? '<a href="' $scripturl '?action=pm">' '''<img src="'$settings['images_url'], '/message_sm.gif" alt="'$txt[159], '" />'$context['allow_pm'] ? '</a>' '''

               </td>

               <td class="windowbg2" valign="top">

                  <b><a href="'
$scripturl'?action=pm">'$txt[159], '</a></b>

                  <div class="smalltext">

                     '
$txt[660], ' '$context['user']['messages'], ' '$context['user']['messages'] == $txt[471] : $txt[153], '.... '$txt[661], ' <a href="'$scripturl'?action=pm">'$txt[662], '</a> '$txt[663], '

                  </div>

               </td>

            </tr>'
;

   }



   
// Show the login bar. (it's only true if they are logged out anyway.)

   
if ($context['show_login_bar'])

   {

      echo 
'

            <tr>

               <td class="titlebg" colspan="2">'
$txt[34], ' <a href="'$scripturl'?action=reminder" class="smalltext">(' $txt[315] . ')</a></td>

            </tr>

            <tr>

               <td class="windowbg" width="20" align="center">

                  <a href="'
$scripturl'?action=login"><img src="'$settings['images_url'], '/icons/login.gif" alt="'$txt[34], '" /></a>

               </td>

               <td class="windowbg2" valign="middle">

                  <form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" style="margin: 0;">

                     <table border="0" cellpadding="2" cellspacing="0" align="center" width="100%"><tr>

                        <td valign="middle" align="left">

                           <label for="user"><b>'
$txt[35], ':</b><br />

                           <input type="text" name="user" id="user" size="15" /></label>

                        </td>

                        <td valign="middle" align="left">

                           <label for="passwrd"><b>'
$txt[36], ':</b><br />

                           <input type="password" name="passwrd" id="passwrd" size="15" /></label>

                        </td>

                        <td valign="middle" align="left">

                           <label for="cookielength"><b>'
$txt[497], ':</b><br />

                           <input type="text" name="cookielength" id="cookielength" size="4" maxlength="4" value="'
$modSettings['cookieTime'], '" /></label>

                        </td>

                        <td valign="middle" align="left">

                           <label for="cookieneverexp"><b>'
$txt[508], ':</b><br />

                           <input type="checkbox" name="cookieneverexp" id="cookieneverexp" checked="checked" class="check" /></label>

                        </td>

                        <td valign="middle" align="left">

                           <input type="submit" value="'
$txt[34], '" />

                        </td>

                     </tr></table>

                  </form>

               </td>

            </tr>'
;

   }



   echo 
'

         </table>

      </div>

   </div>'
;

}



?>

Title: Re: Users Online Today Mod
Post by: grunfic on June 10, 2008, 10:22:46 PM
it did work, thank you very much

I did tried to insert the code in this file myself but it did not work for some reason, allways geting some error message "line such and such error ..."

thank you
Title: Re: Users Online Today Mod
Post by: GMCbris on June 11, 2008, 01:32:34 AM
I have searched this thread and i cant see if this has been answered (I am sure you will let me know if it has :) )

can i get some code that will add a line to the stats section here

(http://pix.nofrag.com/1/2/7/0ecc4fe7d70a27351e569e74e4975.jpg) (http://pix.nofrag.com/1/2/7/0ecc4fe7d70a27351e569e74e4975.html)

what i am looking for is "most users logged in today"

Thanks GMC
Title: Re: Users Online Today Mod
Post by: GMCbris on June 11, 2008, 01:34:45 AM
did I say thanks??

Guess not - how rude

Thanks for this mod... I like it

GMC
Title: Re: Users Online Today Mod
Post by: SA™ on June 11, 2008, 04:53:38 PM
is there any way to show this to guest cos as a guest it just shows 0
Title: Re: Users Online Today Mod
Post by: SgtMic on June 11, 2008, 06:38:30 PM
Error log is filling up with this one:

http://www.org/forums/index.php?wwwRedirect
8: Undefined index: uot_yesterday
File: /home/*******/public_html/forums/Sources/Subs-MembersOnlineToday.php
Line: 135


SMF 2.0 Beta 3.1 Public
Mods:
1.     More Spiders      1.1      
2.    Are You Human? Anti-Bot Registration Check    1.3    
3.    Add Domaintools to TrackIP    1.1    
4.    Auto Embed Video/Audio Clips    3.0    
5.    SMF Sitemap    1.3.0    
6.    Recount Posts Maintenance    1.1    
7.    Users Online Today    1.5.2    
8.    Treasury    2.23    
9.    Grouped Who's Online    1.0    
10.    Top 10 Posters Today And This Week Stats
Title: Re: Users Online Today Mod
Post by: jaccione on June 11, 2008, 11:18:48 PM
Is there any way to have this only display if you are logged in as admin? To hide the whole block of it from guests and regular users?

I have sucessfully coded it into a custom theme and tried playing around with it to hide it completely except for admins to see but only suceeded in breaking it.

// Users online today

echo '
<tr>
<td class="catbg" colspan="2">', $txt['uot_users_online_today'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['uot_users_online_today'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';

echo '
<div class="smalltext">';

  echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
  if (!$context['user']['is_guest'])
  echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
echo '<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';



by the way, great mod, thanks, i am loving it  :D
Title: Re: Users Online Today Mod
Post by: SgtMic on June 13, 2008, 08:36:21 PM
Here seems to be the culprit:

==>135:$yesterday = $userday == $loginday ? '' : $txt['uot_yesterday'];

Any ideas on the solution to the error log fill up?
Title: Re: Users Online Today Mod
Post by: 58tbird on June 14, 2008, 02:37:24 PM
So, if I have SMF 1.1.5 I should use Version 1.5.1, right (not 1.5.2)?  Thank you!
Title: Re: Users Online Today Mod
Post by: SgtMic on June 14, 2008, 04:13:57 PM
Version 1.4.0
My understanding is all versions 1.5.* are for SMF 2.0 beta *
Title: Re: Users Online Today Mod
Post by: 58tbird on June 14, 2008, 06:47:38 PM
Thank you SgtMic!  I think I see what you mean after reviewing the list of versions.  I'll give that one a try.
Title: Re: Users Online Today Mod
Post by: 58tbird on June 14, 2008, 08:31:27 PM
Yes - version 1.4.0 works for SMF 1.1.5.

I can't find the readme.txt file, however, to read about customizing options.  Does anyone know where that is, or how I can access custom options?
Title: Re: Users Online Today Mod
Post by: SgtMic on June 14, 2008, 08:36:52 PM
There is no Readme. I've not seen anything to customize this.
Title: Re: Users Online Today Mod
Post by: 58tbird on June 14, 2008, 09:05:34 PM
Oh, okay.  I was going by what it said on the link to the mod here (http://custom.simplemachines.org/mods/index.php?mod=217):
QuoteYou can customise a few options. See the included readme.txt file for details.

BTW - I just noticed your tagline - thank you for your service to our country SgtMic  ;)
Title: Re: Users Online Today Mod
Post by: SgtMic on June 15, 2008, 02:57:15 AM
I double checked, no Readme. It's quite possible there was one in an earlier version.

Thank you and Semper Fidelis.  ;)
Title: Re: Users Online Today Mod
Post by: tones_ie on June 17, 2008, 11:26:51 PM
Hi guys...running smf 1.1.5..black rain v2..no other mods...cant find where to add the code into the BoardIndex.template.php on the theme...tried a few places but get the following ": (: 0, : ) "  not sure wat that is....

heres my BoardIndex.template.php  if anyone can tell me how to get this to work id appreciate it...

<?php
// Version: 1.1.3; BoardIndex

function template_main()
{
   global 
$context$settings$options$txt$scripturl$modSettings;

   
// Show some statistics next to the link tree if SP1 info is off.
   
echo '
<table width="100%" cellpadding="3" cellspacing="0">
   <tr>
      <td valign="bottom">'
theme_linktree(), '</td>
      <td align="right">'
;
   if (!
$settings['show_sp1_info'])
      echo 
'
            '
$txt[19], ': '$context['common_stats']['total_members'], ' &nbsp;&#38;#8226;&nbsp; '$txt[95], ': '$context['common_stats']['total_posts'], ' &nbsp;&#38;#8226;&nbsp; '$txt[64], ': '$context['common_stats']['total_topics'], '
            '
, ($settings['show_latest_member'] ? '<br />' $txt[201] . ' <b>' $context['common_stats']['latest_member']['link'] . '</b>' $txt[581] : '');
   echo 
'
         </td>
      </tr>
   </table>'
;

   
// Show the news fader?  (assuming there are things to show...)
   
if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
   {
      echo 
'
<div class="tborder" style="margin-bottom: 2ex;">
   <table border="0" width="100%" cellspacing="1" cellpadding="4">
      <tr class="titlebg" align="center">
         <td>'
$txt[102], '</td>
      </tr>
      <tr>
         <td valign="middle" align="center" style="height: 60px;">'
;

      
// Prepare all the javascript settings.
      
echo '
            <div id="smfFadeScroller" style="width: 90%; padding: 2px;"><b>'
$context['news_lines'][0], '</b></div>
            <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
               // The fading delay (in ms.)
               var smfFadeDelay = '
, empty($settings['newsfader_time']) ? 5000 $settings['newsfader_time'], ';
               // Fade from... what text color?  To which background color?
               var smfFadeFrom = {"r": 0, "g": 0, "b": 0}, smfFadeTo = {"r": 255, "g": 255, "b": 255};
               // Surround each item with... anything special?
               var smfFadeBefore = "<b>", smfFadeAfter = "</b>";

               var foreColor, backEl, backColor;

               if (typeof(document.getElementById(\'smfFadeScroller\').currentStyle) != "undefined")
               {
                  foreColor = document.getElementById(\'smfFadeScroller\').currentStyle.color.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
                  smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

                  backEl = document.getElementById(\'smfFadeScroller\');
                  while (backEl.currentStyle.backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined")
                     backEl = backEl.parentNode;

                  backColor = backEl.currentStyle.backgroundColor.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
                  smfFadeTo = {"r": eval("0x" + backColor[1]), "g": eval("0x" + backColor[2]), "b": eval("0x" + backColor[3])};
               }
               else if (typeof(window.opera) == "undefined" && typeof(document.defaultView) != "undefined")
               {
                  foreColor = document.defaultView.getComputedStyle(document.getElementById(\'smfFadeScroller\'), null).color.match(/rgb\((\d+), (\d+), (\d+)\)/);
                  smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

                  backEl = document.getElementById(\'smfFadeScroller\');
                  while (document.defaultView.getComputedStyle(backEl, null).backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined" && typeof(backEl.parentNode.tagName) != "undefined")
                     backEl = backEl.parentNode;

                  backColor = document.defaultView.getComputedStyle(backEl, null).backgroundColor.match(/rgb\((\d+), (\d+), (\d+)\)/);
                  smfFadeTo = {"r": parseInt(backColor[1]), "g": parseInt(backColor[2]), "b": parseInt(backColor[3])};
               }

               // List all the lines of the news for display.
               var smfFadeContent = new Array(
                  "'
implode('",
                  "'
$context['fader_news_lines']), '"
               );
            // ]]></script>
            <script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/fader.js"></script>
         </td>
      </tr>
   </table>
</div>'
;
   }

   
/* Each category in categories is made up of:
      id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
      new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down iamge),
      and boards. (see below.) */
   
foreach ($context['categories'] as $category)
   {
      echo 
'
<div class="tborder"><table border="0" width="100%" cellspacing="1" cellpadding="5">
   <tr>
      <td colspan="2" class="catbg'
$category['new'] ? '2' '''" height="18">';

      
// If this category even can collapse, show a link to collapse it.
      
if ($category['can_collapse'])
         echo 
'
         <a href="'
$category['collapse_href'], '">'$category['collapse_image'], '</a>';

      echo 
'
         '
$category['link'], '
      </td>
                <td width="4%" class="catbg'
$category['new'] ? '2' '''"><b>' ,$txt[21], '</b></td>
                <td width="4%" class="catbg'
$category['new'] ? '2' '''"><b>' ,$txt[330], '</b></td>
                <td width="22%" align="center" class="catbg'
$category['new'] ? '2' '''"> '$txt[22], '</td>
   </tr>'
;

      
// Assuming the category hasn't been collapsed...
      
if (!$category['is_collapsed'])
      {
         
/* Each board in each category's boards has:
            new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
            children (see below.), link_children (easier to use.), children_new (are they new?),
            topics (# of), posts (# of), link, href, and last_post. (see below.) */
         
foreach ($category['boards'] as $board)
         {
            echo 
'
   <tr class="windowbg2">
      <td class="windowbg" width="6%" align="center" valign="top"><a href="'
$scripturl'?action=unread;board='$board['id'], '.0">';

            
// If the board is new, show a strong indicator.
            
if ($board['new'])
               echo 
'<img src="'$settings['images_url'], '/on.gif" alt="'$txt[333], '" title="'$txt[333], '" border="0" />';
            
// This board doesn't have new posts, but its children do.
            
elseif ($board['children_new'])
               echo 
'<img src="'$settings['images_url'], '/on2.gif" alt="'$txt[333], '" title="'$txt[333], '" border="0" />';
            
// No new posts at all!  The agony!!
            
else
               echo 
'<img src="'$settings['images_url'], '/off.gif" alt="'$txt[334], '" title="'$txt[334], '" border="0" />';

            echo 
'</a></td>
      <td>
         <b><a href="'
$board['href'], '" name="b'$board['id'], '">'$board['name'], '</a></b><br />
         '
$board['description'];

            
// Show the "Moderators: ".  Each has name, href, link, and id. (but we're gonna use link_moderators.)
            
if (!empty($board['moderators']))
               echo 
'
         <div style="padding-top: 1px;" class="smalltext"><i>'
count($board['moderators']) == $txt[298] : $txt[299], ': 'implode(', '$board['link_moderators']), '</i></div>';

            
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
            
if (!empty($board['children']))
            {
               
// Sort the links into an array with new boards bold so it can be imploded.
               
$children = array();
               
/* Each child in each board's children has:
                  id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
               
foreach ($board['children'] as $child)
               {
                  
$child['link'] = '<a href="' $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' $txt[330] . ': ' $child['topics'] . ', ' $txt[21] . ': ' $child['posts'] . ')">' $child['name'] . '</a>';
                  
$children[] = $child['new'] ? '<b>' $child['link'] . '</b>' $child['link'];
               }

               echo 
'
         <div style="padding-top: 1px;" class="smalltext"><i>'
$txt['parent_boards'], ': 'implode(', '$children), '</i></div>';
            }

            
// Show some basic information about the number of posts, etc.
            
echo '
      </td>
                <td class="small2text windowbg2" valign="middle" width="4%" align="center">
                 '
$board['posts'], '</td><td class="smalltext" valign="middle" width="4%" align="center">
                        '
$board['topics'],'</td><td class="smalltext" valign="middle" width="22%">';

                 if (!empty(
$board['last_post']['id']))
                                        echo 
'
                        <a href="'
$board['last_post']['href'], '"><img alt="go" src="'$settings['images_url'], '/icons/last_post.gif" align="right" hspace="3" border="0" /></a>
                        '
$board['last_post']['time'], '
                        '
$txt['smf88'], ' <b>'$board['last_post']['link'], '</b> '$txt[525], ' '$board['last_post']['member']['link'],
                        
' ' ;





            echo 
'
      </td>
   </tr>'
;
         }
      }

      echo 
'
</table></div>
<br />'
;
   }

   if (
$context['user']['is_logged'])
   {
      echo 
'
<div class="tborder" style="padding: 3px;"><table border="0" width="100%" cellspacing="0" cellpadding="5">
   <tr class="catbg">
      <td align="'
, !$context['right_to_left'] ? 'left' 'right''" class="smalltext">
         <img src="' 
$settings['images_url'] . '/new_some.gif" alt="" border="0" align="middle" /> '$txt[333], '
         <img src="' 
$settings['images_url'] . '/new_none.gif" alt="" border="0" align="middle" style="margin-left: 4ex;" /> '$txt[334], '
      </td>
      <td align="'
, !$context['right_to_left'] ? 'right' 'left''" class="smalltext">';
      
// Show the mark all as read button?
      
if ($settings['show_mark_read'] && !empty($context['categories']))
         echo 
'
         <a href="'
$scripturl'?action=markasread;sa=all;sesc=' $context['session_id'] . '">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/markread.gif" alt="' $txt[452] . '" border="0" />' $txt[452]), '</a>';
      echo 
'
      </td>
   </tr>
</table></div>'
;
   }

   
// Here's where the "Info Center" starts...
   
echo '
<br />
<div class="tborder"><table border="0" width="100%" cellspacing="1" cellpadding="4">
   <tr>
      <td class="blocktitle" align="center" colspan="2"><b>'
$txt[685], '</b></td>
   </tr>'
;

   
// This is the "Recent Posts" bar.
   
if (!empty($settings['number_recent_posts']))
   {
      echo 
'
   <tr>
      <td class="titlebg" colspan="2">'
$txt[214], '</td>
   </tr>
   <tr>
      <td class="windowbg" width="20" valign="middle" align="center">
         <a href="'
$scripturl'?action=recent">
            <img src="'
$settings['images_url'], '/post/xx.gif" alt="'$txt[214], '" border="0" /></a>
      </td>
      <td class="windowbg2">'
;

      
// Only show one post.
      
if ($settings['number_recent_posts'] == 1)
      {
         
// latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)
         
echo '
         <b><a href="'
$scripturl'?action=recent">'$txt[214], '</a></b>
         <div class="smalltext">
            '
$txt[234], ' &quot;'$context['latest_post']['link'], '&quot; '$txt[235], ' ('$context['latest_post']['time'], ')<br />
         </div>'
;
      }
      
// Show lots of posts.
      
elseif (!empty($context['latest_posts']))
      {
         echo 
'
         <table width="100%" border="0">'
;
         
/* Each post in latest_posts has:
            board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
            subject, short_subject (shortened with...), time, link, and href. */
         
foreach ($context['latest_posts'] as $post)
            echo 
'
            <tr>
               <td align="right" valign="top" nowrap="nowrap">['
$post['board']['link'], ']</td>
               <td valign="top">'
$post['link'], ' '$txt[525], ' '$post['poster']['link'], '</td>
               <td align="right" valign="top" nowrap="nowrap">'
$post['time'], '</td>
            </tr>'
;
         echo 
'
         </table>'
;
      }
      echo 
'
      </td>
   </tr>'
;
   }

   
// Show information about events, birthdays, and holidays on the calendar.
   
if ($context['show_calendar'])
   {
      echo 
'
   <tr>
      <td class="titlebg" colspan="2">'
$context['calendar_only_today'] ? $txt['calendar47b'] : $txt['calendar47'], '</td>
   </tr><tr>
      <td class="windowbg" width="20" valign="middle" align="center">
         <a href="'
$scripturl'?action=calendar">
            <img src="'
$settings['images_url'], '/icons/calendar.gif" alt="'$txt['calendar24'], '" border="0" /></a>
      </td>
      <td class="windowbg2" width="100%">
         <span class="smalltext">'
;

      
// Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.
      
if (!empty($context['calendar_holidays']))
         echo 
'
            <span style="color: #'
$modSettings['cal_holidaycolor'], ';">'$txt['calendar5'], ' 'implode(', '$context['calendar_holidays']), '</span><br />';

      
// People's birthdays.  Like mine.  And yours, I guess.  Kidding.
      
if (!empty($context['calendar_birthdays']))
      {
         echo 
'
            <span style="color: #'
$modSettings['cal_bdaycolor'], ';">'$context['calendar_only_today'] ? $txt['calendar3'] : $txt['calendar3b'], '</span> ';
         
/* Each member in calendar_birthdays has:
            id, name (person), age (if they have one set?), is_last. (last in list?), and is_today (birthday is today?) */
         
foreach ($context['calendar_birthdays'] as $member)
            echo 
'
            <a href="'
$scripturl'?action=profile;u='$member['id'], '">'$member['is_today'] ? '<b>' ''$member['name'], $member['is_today'] ? '</b>' '', isset($member['age']) ? ' (' $member['age'] . ')' '''</a>'$member['is_last'] ? '<br />' ', ';
      }
      
// Events like community get-togethers.
      
if (!empty($context['calendar_events']))
      {
         echo 
'
            <span style="color: #'
$modSettings['cal_eventcolor'], ';">'$context['calendar_only_today'] ? $txt['calendar4'] : $txt['calendar4b'], '</span> ';
         
/* Each event in calendar_events should have:
            title, href, is_last, can_edit (are they allowed?), modify_href, and is_today. */
         
foreach ($context['calendar_events'] as $event)
            echo 
'
            '
$event['can_edit'] ? '<a href="' $event['modify_href'] . '" style="color: #FF0000;">*</a> ' ''$event['href'] == '' '' '<a href="' $event['href'] . '">'$event['is_today'] ? '<b>' $event['title'] . '</b>' $event['title'], $event['href'] == '' '' '</a>'$event['is_last'] ? '<br />' ', ';

         
// Show a little help text to help them along ;).
         
if ($context['calendar_can_edit'])
            echo 
'
            (<a href="'
$scripturl'?action=helpadmin;help=calendar_how_edit" onclick="return reqWin(this.href);">'$txt['calendar_how_edit'], '</a>)';
      }
      echo 
'
         </span>
      </td>
   </tr>'
;
   }

   
// Show a member bar.  Not heavily ornate, but functional at least.
   
if ($settings['show_member_bar'])
   {
      echo 
'
   <tr>
      <td class="titlebg" colspan="2">'
$txt[331], '</td>
   </tr>
   <tr>
      <td class="windowbg" width="20" valign="middle" align="center">
         '
$context['show_member_list'] ? '<a href="' $scripturl '?action=mlist">' '''<img src="'$settings['images_url'], '/icons/members.gif" alt="'$txt[332], '" border="0" />'$context['show_member_list'] ? '</a>' '''
      </td>
      <td class="windowbg2" width="100%">
         <b>'
$context['show_member_list'] ? '<a href="' $scripturl '?action=mlist">' $txt[332] . '</a>' $txt[332], '</b>
         <div class="smalltext">'
$txt[200], '</div>
      </td>
   </tr>'
;
   }

   
// Show YaBB SP1 style information...
   
if ($settings['show_sp1_info'])
   {
      echo 
'
   <tr>
      <td class="titlebg" colspan="2">'
$txt[645], '</td>
   </tr>
   <tr>
      <td class="windowbg" width="20" valign="middle" align="center">
         <a href="'
$scripturl'?action=stats">
            <img src="'
$settings['images_url'], '/icons/info.gif" alt="'$txt[645], '" border="0" /></a>
      </td>
      <td class="windowbg2" width="100%">
         <table border="0" width="90%"><tr>
            <td class="smalltext">
               <div style="float: '
, !$context['right_to_left'] ? 'left' 'right''; width: 50%;">'$txt[490], ': <b>'$context['common_stats']['total_topics'], '</b></div>'$txt[489], ': <b>'$context['common_stats']['total_posts'], '</b><br />', !empty($context['latest_post']) ? '
               ' 
$txt[659] . ': &quot;' $context['latest_post']['link'] . '&quot;  (' $context['latest_post']['time'] . ')<br />' '''
               <a href="'
$scripturl'?action=recent">'$txt[234], '</a>'$context['show_stats'] ? '<br />
               <a href="' 
$scripturl '?action=stats">' $txt['smf223'] . '</a>' '''
            </td>
            <td width="32%" class="smalltext" valign="top">
               '
$txt[488], ': <b><a href="'$scripturl'?action=mlist">'$context['common_stats']['total_members'], '</a></b><br />
               '
$txt[656], ': <b>'$context['common_stats']['latest_member']['link'], '</b><br />';
      
// If they are logged in, show their unread message count, etc..
      
if ($context['user']['is_logged'])
         echo 
'
               '
$txt['smf199'], ': <b><a href="'$scripturl'?action=pm">'$context['user']['messages'], '</a></b> '$txt['newmessages3'], ': <b><a href="'$scripturl'?action=pm">'$context['user']['unread_messages'], '</a></b>';
      echo 
'
            </td>
         </tr></table>
      </td>
   </tr>'
;
   }

   
// "Users online" - in order of activity.
   
echo '
   <tr>
      <td class="titlebg" colspan="2">'
$txt[158], '</td>
   </tr><tr>
      <td class="windowbg" width="20" valign="middle" align="center">
         '
$context['show_who'] ? '<a href="' $scripturl '?action=who">' '''<img src="'$settings['images_url'], '/icons/online.gif" alt="'$txt[158], '" border="0" />'$context['show_who'] ? '</a>' '''
      </td>
      <td class="windowbg2" width="100%">'
;

   if (
$context['show_who'])
      echo 
'
         <a href="'
$scripturl'?action=who">';

   echo 
$context['num_guests'], ' '$context['num_guests'] == $txt['guest'] : $txt['guests'], ', ' $context['num_users_online'], ' '$context['num_users_online'] == $txt['user'] : $txt['users'];

   
// Handle hidden users and buddies.
   
if (!empty($context['num_users_hidden']) || ($context['show_buddies'] && !empty($context['show_buddies'])))
   {
      echo 
' (';

      
// Show the number of buddies online?
      
if ($context['show_buddies'])
         echo 
$context['num_buddies'], ' '$context['num_buddies'] == $txt['buddy'] : $txt['buddies'];

      
// How about hidden users?
      
if (!empty($context['num_users_hidden']))
         echo 
$context['show_buddies'] ? ', ' ''$context['num_users_hidden'] . ' ' $txt['hidden'];

      echo 
')';
   }

   if (
$context['show_who'])
      echo 
'</a>';

   echo 
'
         <div class="smalltext">'
;

   
// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
   
if (!empty($context['users_online']))
      echo 
'
            '
$txt[140], ':<br />'implode(', '$context['list_users_online']);

   echo 
'
            <br />'
$context['show_stats'] && !$settings['show_sp1_info'] ? '
            <a href="' 
$scripturl '?action=stats">' $txt['smf223'] . '</a>' '''
         </div>
      </td>
   </tr>'
;

   
// If they are logged in, but SP1 style information is off... show a personal message bar.
   
if ($context['user']['is_logged'] && !$settings['show_sp1_info'])
   {
      echo 
'
   <tr>
      <td class="titlebg" colspan="2">'
$txt[159], '</td>
   </tr><tr>
      <td class="windowbg" width="20" valign="middle" align="center">
         '
$context['allow_pm'] ? '<a href="' $scripturl '?action=pm">' '''<img src="'$settings['images_url'], '/message_sm.gif" alt="'$txt[159], '" border="0" />'$context['allow_pm'] ? '</a>' '''
      </td>
      <td class="windowbg2" valign="top">
         <b><a href="'
$scripturl'?action=pm">'$txt[159], '</a></b>
         <div class="smalltext">
            '
$txt[660], ' '$context['user']['messages'], ' '$context['user']['messages'] == $txt[471] : $txt[153], '.... '$txt[661], ' <a href="'$scripturl'?action=pm">'$txt[662], '</a> '$txt[663], '
         </div>
      </td>
   </tr>'
;
   }

   
// Show the login bar. (it's only true if they are logged out anyway.)
   
if ($context['show_login_bar'])
   {
      echo 
'
   <tr>
      <td class="titlebg" colspan="2">'
$txt[34], ' <a href="'$scripturl'?action=reminder" class="smalltext">(' $txt[315] . ')</a></td>
   </tr>
   <tr>
      <td class="windowbg" width="20" align="center">
         <a href="'
$scripturl'?action=login">
            <img src="'
$settings['images_url'], '/icons/login.gif" alt="'$txt[34], '" border="0" /></a>
      </td>
      <td class="windowbg2" valign="middle">
                  <form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" style="margin: 0;">
            <table border="0" cellpadding="2" cellspacing="0" width="100%"><tr>
               <td valign="middle" align="left">
                  <label for="user"><b>'
$txt[35], ':</b><br /><input type="text" name="user" id="user" size="15" /></label>
               </td>
               <td valign="middle" align="left">
                  <label for="passwrd"><b>'
$txt[36], ':</b><br /><input type="password" name="passwrd" id="passwrd" size="15" /></label>
               </td>
               <td valign="middle" align="left">
                  <label for="cookielength"><b>'
$txt[497], ':</b><br /><input type="text" name="cookielength" id="cookielength" size="4" maxlength="4" value="'$modSettings['cookieTime'], '" /></label>
               </td>
               <td valign="middle" align="left">
                  <label for="cookieneverexp"><b>'
$txt[508], ':</b><br /><input type="checkbox" name="cookieneverexp" id="cookieneverexp" checked="checked" class="check" /></label>
               </td>
               <td valign="middle" align="left">
                  <input type="submit" value="'
$txt[34], '" />
               </td>
            </tr></table>
         </form>
      </td>
   </tr>'
;
   }

   echo 
'
</table></div>'
;
}

?>




looking to add this bit ( i think )

<file name="$themedir/BoardIndex.template.php">
<operation>
<search position="before"><![CDATA[ ', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ')
</span>
</td>
</tr>';
]]></search>
<add><![CDATA[
// Users online today

echo '
<tr>
<td class="titlebg" colspan="2">', $txt['uot_users_online_today'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['uot_users_online_today'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';

echo '
<div class="smalltext">';

  echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
  if (!$context['user']['is_guest'])
  echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
echo '<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';]]>
</add>
</operation>
</file>


but cant find any reference to ', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ') in my template file...


thanks in advance
Title: Re: Users Online Today Mod
Post by: qubbah on June 17, 2008, 11:28:20 PM
how can i make the latest version can be run in 1.1.5

it is because i want to set it up for the last over 24 hours..
tq
Title: Re: Users Online Today Mod
Post by: Basie on June 18, 2008, 06:05:23 AM
/\ Yeah I need this too.

Please release a version compatible with 1.1.5?
Title: Re: Users Online Today Mod
Post by: SgtMic on June 18, 2008, 01:31:33 PM
Quote from: SgtMic on June 11, 2008, 06:38:30 PM
Error log is filling up with this one:

http://www.org/forums/index.php?wwwRedirect
8: Undefined index: uot_yesterday
File: /home/*******/public_html/forums/Sources/Subs-MembersOnlineToday.php
Line: 135


SMF 2.0 Beta 3.1 Public
Mods:
1.     More Spiders      1.1      
2.    Are You Human? Anti-Bot Registration Check    1.3    
3.    Add Domaintools to TrackIP    1.1    
4.    Auto Embed Video/Audio Clips    3.0    
5.    SMF Sitemap    1.3.0    
6.    Recount Posts Maintenance    1.1    
7.    Users Online Today    1.5.2    
8.    Treasury    2.23    
9.    Grouped Who's Online    1.0    
10.    Top 10 Posters Today And This Week Stats

Bump...
Title: Re: Users Online Today Mod
Post by: Cal O'Shaw on June 19, 2008, 03:58:23 PM
I'm also running 1.1.5 and my Admins and Global Moderators would like to see this up only for them, not the general membership.

So, can the version for 1.1.5 be told to show only for Admins (as the 2.0 version seems to allow) and for specific groups (either checkbox or type in the group numbers)?



I think 1.1.5 will be around for awhile after 2.0 gets released because a number of sites (like mine) will wait for the more subtle bugs to come out, be sure upgrading from 1.1.5 to 2.0 is smooth, and any MODs we have to remove before upgrading are updated to work under 2.0.  Just mentioning that so that you don't feel updating the 1.4 (for 1.1.5) version is wasted effort.  It will be greatly appreciated.

Grazie,

Cal
Title: Re: Users Online Today Mod
Post by: jaccione on June 21, 2008, 09:42:36 AM
I have figured how to set it for admins only to see, althoguh got no idea for global mods

just wrap your block of code in this

if ($context['user']['is_admin'])
{

the code for the mod here
}

and that should stop anyone but admin seeing it. Just checked it in my forums 1.1.5 and seems to be working fine
Title: Re: Users Online Today Mod
Post by: DirtRider on June 22, 2008, 04:19:00 AM
SMF 1.1.5
Users Online Today Mod 1.5.2

Forum Link - http://www.s247631067.onlinehome.us/index.php (http://www.s247631067.onlinehome.us/index.php)

When trying to install this mod I get the following error, any ideas on this?

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Title: Re: Users Online Today Mod
Post by: Basie on June 22, 2008, 08:51:28 AM
Seems like a lot of people would like to use 1.5.2 with SMF 1.1.5 :(
Title: Re: Users Online Today Mod
Post by: DirtRider on June 22, 2008, 10:53:52 AM
Well I hope we get to be able to do it as it is a real cool mod to have on your forum 
Title: Re: Users Online Today Mod
Post by: tones_ie on June 22, 2008, 05:23:51 PM
Quote from: DirtRider on June 22, 2008, 04:19:00 AM
SMF 1.1.5
Users Online Today Mod 1.5.2

Forum Link - http://www.s247631067.onlinehome.us/index.php (http://www.s247631067.onlinehome.us/index.php)

When trying to install this mod I get the following error, any ideas on this?

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

ure trying to use teh wrong version of the mod for the version of smf u have installed....

for 1.1.5 smf..u need Users_Online_Today_1.4.0.zip



Anyone figure out wats causing the error
8: Undefined index: uot_yesterday
File:............./Sources/Subs-MembersOnlineToday.php
Line: 135
Title: Re: Users Online Today Mod
Post by: Basie on June 22, 2008, 05:32:44 PM
Quote from: tones_ie on June 22, 2008, 05:23:51 PM
for 1.1.5 smf..u need Users_Online_Today_1.4.0.zip

Yes, we know that... But 1.4.0 has less features.  People are requesting a version of 1.5.2 which is compatible with SMF 1.1.5
Title: Re: Users Online Today Mod
Post by: tones_ie on June 22, 2008, 05:38:47 PM
Quote from: seek2501 on June 22, 2008, 05:32:44 PM
Quote from: tones_ie on June 22, 2008, 05:23:51 PM
for 1.1.5 smf..u need Users_Online_Today_1.4.0.zip

Yes, we know that... But 1.4.0 has less features.  People are requesting a version of 1.5.2 which is compatible with SMF 1.1.5

yes, i know that too :)
i quoted Dirtrider to try show why he got his error of incomatibilty.....
Title: Re: Users Online Today Mod
Post by: DirtRider on June 23, 2008, 11:57:54 PM
Ok I tried the version 1.4.0 and it installed. I get the following stats from my board     

Most Online Today: 16. Most Online Ever: 16 (Yesterday at 09:02:45 PM)

and these from the mod

Total: 40 (Visible: 40, Hidden: 0)

:o :o

If I disable this feature then it is correct

Enable "Today" feature
Title: Re: Users Online Today Mod
Post by: ccbtimewiz on June 24, 2008, 12:11:45 AM
I don't see the problem.

Most Online Today means the most users online at one time.

Most Online Ever means the most users online at one time ever.

Total means all the users online at all times.
Title: Re: Users Online Today Mod
Post by: Apllicmz on June 24, 2008, 01:20:41 AM
update to smf 2.0 beta 3.1

UsersOnlineToday.portuguese.php and UsersOnlineToday.portuguese-utf8.php
UsersOnlineToday.brazilian.php and UsersOnlineToday.brazilian-utf8

<?php

$txt
['uot_users_online_today']='Membros registrado hoje';
$txt['uot_yesterday']='Ontem em ';
$txt['uot_total']='Total';
$txt['uot_visible']='Visível';
$txt['uot_hidden']='Escondido';

?>


<?php

$txt
['uot_users_online_today']='Membros registrado hoje';
$txt['uot_yesterday']='Ontem em ';
$txt['uot_total']='Total';
$txt['uot_visible']='Vis&iacute;vel';
$txt['uot_hidden']='Escondido';

?>


for smf 1.1.x

<file name="$languagedir/Modifications.portuguese.php" error="skip">
<operation>
<search position="end"></search>
<add><![CDATA[$txt['uot_users_online_today']='Membros registrado hoje';
$txt['uot_yesterday']='Ontem em ';
$txt['uot_total']='Total';
$txt['uot_visible']='Vis&iacute;vel';
$txt['uot_hidden']='Escondido';]]>
</add>
</operation>
</file>
<file name="$languagedir/Modifications.brazilian.php" error="skip">
<operation>
<search position="end"></search>
<add><![CDATA[$txt['uot_users_online_today']='Membros registrado hoje';
$txt['uot_yesterday']='Ontem em ';
$txt['uot_total']='Total';
$txt['uot_visible']='Vis&iacute;vel';
$txt['uot_hidden']='Escondido';]]>
</add>
</operation>
</file>


<file name="$languagedir/Stats.portuguese.php" error="skip">
<operation>
<search position="replace"><![CDATA[$txt['users_online_today'] = 'Hoje On-line';
$txt['num_hits'] = 'Total de pagina vistas';
$txt['average_hits'] = 'Media de visitas por dia';
]]></search>
<add><![CDATA[$txt['users_online_today'] = 'Hoje On-line';
$txt['num_hits'] = 'Total de pagina vistas';
$txt['average_hits'] = 'Media de visitas por dia';]]>
</add>
</operation>
</file>
<file name="$languagedir/Stats.brazilian.php" error="skip">
<operation>
<search position="replace"><![CDATA[$txt['users_online_today'] = 'Hoje On-line';
$txt['num_hits'] = 'Total de pagina vistas';
$txt['average_hits'] = 'Media de visitas por dia';
]]></search>
<add><![CDATA[$txt['users_online_today'] = 'Hoje On-line';
$txt['num_hits'] = 'Total de pagina vistas';
$txt['average_hits'] = 'Media de visitas por dia';]]>
</add>
</operation>
</file>
Title: Re: Users Online Today Mod
Post by: DirtRider on June 27, 2008, 04:26:38 AM
I am running a few themes and this mod works with the all excepting Dilber Multicolor (1.1) Now I know there is most likely some code within this thread someplace that I need to add to my manually to my index.template.php file. However not really being one that is so familiar with coding it would be appreciated if someone here could please tell me how to do this.  :D

Not sure if my index.template.php is needed here so here we go


<?php
// Version: 1.1; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = true;

// Color changer
if(!$context['user']['is_guest'] && isset($_POST['options']['theme_color']))
{
   include_once($GLOBALS['sourcedir'] . '/Profile.php');
   makeThemeChanges($context['user']['id'], $settings['theme_id']);
   $options['theme_color'] = $_POST['options']['theme_color'];
}
elseif ($context['user']['is_guest'])
{
   if (isset($_POST['options']['theme_color']))
   {
  $_SESSION['theme_color'] = $_POST['options']['theme_color'];
  $options['theme_color'] = $_SESSION['theme_color'];
   }
   elseif (isset($_SESSION['theme_color']))
  $options['theme_color'] = $_SESSION['theme_color'];
}
}
// The main sub template above the content.
function template_main_above()
{
global $context$settings$options$scripturl$txt$modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title'], '" />', empty($context['robot_no_index']) ? '' '
<meta name="robots" content="noindex" />'
'
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?fin11"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";
// ]]></script>
<title>'
$context['page_title'], '</title>';
// Any color set by user?
if (isset($options['theme_color']))
$settings['theme_main_color'] = $options['theme_color'];

// If not set, or if not allowed to set
if(!isset($options['theme_color']) || (isset($settings['allow_color_change']) && $settings['allow_color_change'] == 'no'))
{
// Defaults.
$options['theme_color'] = isset($settings['theme_main_color']) ? $settings['theme_main_color'] : 'lightblue';
$settings['theme_main_color'] = $options['theme_color'];
}
// The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style_' $settings['theme_main_color'] , '.css?fin11" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?fin11" media="print" />';

/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" target="_blank" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';

// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
        <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
                var current_leftbar = '
, empty($options['collapse_leftbar']) ? 'false' 'true'';

                function shrinkHeaderLeftbar(mode)
                {'
;

        
// Guests don't have theme options!!
        
if ($context['user']['is_guest'])
                echo 
'
                        document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
        else
                echo 
'
                        smf_setThemeOption("collapse_leftbar", mode ? 1 : 0, null, "'
$context['session_id'], '");';
        echo 
'
                        document.getElementById("upshrinkLeftbar").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

                        document.getElementById("leftbarHeader").style.display = mode ? "none" : "";

                        current_leftbar = mode;
                }
          // ]]></script>
       <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
                var current_rightbar = '
, empty($options['collapse_rightbar']) ? 'false' 'true'';

                function shrinkHeaderRightbar(mode)
                {'
;

        
// Guests don't have theme options!!
        
if ($context['user']['is_guest'])
                echo 
'
                        document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
        else
                echo 
'
                        smf_setThemeOption("collapse_rightbar", mode ? 1 : 0, null, "'
$context['session_id'], '");';

        echo 
'
                        document.getElementById("upshrinkRightbar").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

                        document.getElementById("rightbarHeader").style.display = mode ? "none" : "";

                        current_rightbar = mode;
                }
        // ]]></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';

function shrinkHeader(mode)
{'
;

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink").src = smf_images_url + '  
'"/'$settings['theme_main_color'] . '" + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

current_header = mode;
}
// ]]></script>'
;

// the routine for the info center upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = '
, empty($options['collapse_header_ic']) ? 'false' 'true'';

function shrinkHeaderIC(mode)
{'
;

if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink_ic").src = smf_images_url + '  
'"/'$settings['theme_main_color'] . '" + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

current_header_ic = mode;
}
// ]]></script>
</head>
<body>'
;
// TinyPortal start
     
if($context['TPortal']['fixed_width']!=0)
             echo 
'<table align="center" width="'.$context['TPortal']['fixed_width'].'" cellpadding="0" cellspacing="0" border="0"><tr><td>';
// TinyPortal end
echo '
<div class="maindiv" style="width: ' 
, (isset($settings['page_div_width']) && !empty($settings['page_div_width'])) ? $settings['page_div_width'] : '99%' ,  ';">
<div width="100%" class="topbar"  id="upshrinkHeader"'
, empty($options['collapse_header']) ? '' ' style="display: none;"''>
<table cellspacing="0" cellpadding="0" border="0" style="width:100%;">
<tr>
<td style="padding:0;" width="1" height="120">'
;
/// my code here
if (empty($settings['header_logo_url']))
echo '
<a href="'
$scripturl'"><img src="'$settings['images_url'] . '/'$settings['theme_main_color'], '/logo.jpg" style="margin: 0px;" alt="'$context['forum_name'], '" title="'$context['forum_name'], '"/></a>';
else
echo '
<a href="'
$scripturl'"><img src="'$settings['header_logo_url'], '" style="margin: 0px;" alt="'$context['forum_name'], '" /></a>';
/// end my code

echo '
</td>'
;

if (!empty($settings['show_name_near_logo']))
echo '
<td>
<span style="font-family: \'Trebuchet MS\', Verdana, sans-serif; font-size: 200%; color: white; padding-top: 30px; padding-left: 30px; white-space: normal;"><strong>'
$context['forum_name'], '</strong></span>
</td>'
;
if (!empty($settings['top_right_html']))
echo '
<td valign="top" align="right">
<div style="color: white; padding-top: 10px; float:right;">'
$settings['top_right_html'], '</div>
</td>'
;

echo '
</tr>
</table>
</div>
<div style="width: 100%; padding-top: 4px;" class="topbar2">
<table border="0" cellspacing="0" cellpadding="0" style="width: 100%;">
<tr>'
;

// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '

<td valign="middle" height="30" class="smalltext" style="padding-left:10px; padding-top:0px; padding-bottom:0px;">
<b>'
$txt[102], '</b>: '$context['random_news_line'], '
</td>
'
;
echo '
<td valign="middle" height="30" style="padding-top:0px; padding-bottom:0px; padding-right:20px;" class="middletext" align="right">
<form action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '" style="margin: 0px;">
<a href="'
$scripturl'?action=search;advanced"><img src="'.$settings['images_url'].'/filter.gif" align="middle" style="margin: 0px;" alt="" /></a>
<input type="text" name="search" value="" style="width: 190px;" />&nbsp;
<input type="submit" name="submit" value="'
$txt[182], '" style="width: 11ex;" />
<input type="hidden" name="advanced" value="0" />'
;

// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="'
$context['current_topic'], '" />';

// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';

echo '
</form>

</td>
</tr>
</table>
</div>
<div class="menubar">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>'
;
// Show the menu here, according to the menu sub template.
template_menu();
echo '
</tr>
</table>
</div>'
;

// Here we start the main page, after the menu bar.
// Unfortunately, IE 6 couldn't handle a div here with a CSS background property, no matter how much I tried. So we use a table for IE here. I love Firefox ^_^ visit getfirefox.com for more info.
// It is time for Microsoft to get rid of IE and make Firefox their primary browser :P
// Ok, Opera can also display the div properly. I love both FF & Opera :)

echo '
'
$context['browser']['is_ie'] ? '<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr><td class="mainpage">' 
'<div class="mainpage">''
<a style="float:right;" href="#" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="'
$settings['images_url'], '/'$settings['theme_main_color'], '/', empty($options['collapse_header']) ? 'collapse.gif' 'expand.gif''" alt="*" title="'$txt['upshrink_description'], '" align="bottom" style="margin: 0 1ex;" /></a><br />';
//TinyPortal Hide user info/news start
if($context['TPortal']['showtop']==1)
{
echo '<div class="memberbardiv">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="20">
</td>
<td class="memberbar">'
;

if($context['user']['is_logged'])
echo '
'
$txt['hello_member_ndt'], ' <b>'$context['user']['name'] , '</b>';
else
echo $txt['welcome_guest'];

echo '
</td>

<td class="middletext" align="right" valign="top" style="padding-right:10px; padding-left:10px;">
$context['current_time'], '
<br/>
</td>

</tr>

<tr>
<td valign="middle" width="1" style="padding-right:10px; padding-left:10px;">'
, !empty($context['user']['avatar']) ? $context['user']['avatar']['image'] : '''</td>

<td class="memberbar">'
;

if($context['user']['is_logged'])
echo '
<br/>
<span class="middletext">'
$context['allow_pm'] ? '<b>' $txt[152] . ' <a href="' $scripturl '?action=pm">' $context['user']['messages'] . ' ' . ($context['user']['messages'] != $txt[153] : $txt[471]) . '</a>' $txt['newmessages4'] . ' ' $context['user']['unread_messages'] . ' ' . ($context['user']['unread_messages'] == $txt['newmessages0'] : $txt['newmessages1']).'</b>' '<br/>''.<br/><br/>
> <a href="'
$scripturl'?action=unread">'$txt['unread_since_visit'], '</a> <br />
> <a href="'
$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a><br />

</span>'
;

echo '
</td>
<td class="middletext" align="right" valign="top" style="padding-right:10px; padding-left:10px;">
<br/>'
;
// Are they logged in?
if ($context['user']['is_logged'])
{
// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in']))
{
echo '
'
$txt['totalTimeLogged1'];

// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<b>'
$txt[616], '</b><br />';

// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '
'
$context['unapproved_members'] == $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="'$scripturl'?action=viewmembers;sa=browse;type=approve">'$context['unapproved_members'] == $txt['approve_member'] : $context['unapproved_members'] . ' ' $txt['approve_members'], '</a> '$txt['approve_members_waiting'], '<br />';

}
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo '
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>

<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
<input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
<select name="cookielength">
<option value="60">'
$txt['smf53'], '</option>
<option value="1440">'
$txt['smf47'], '</option>
<option value="10080">'
$txt['smf48'], '</option>
<option value="43200">'
$txt['smf49'], '</option>
<option value="-1" selected="selected">'
$txt['smf50'], '</option>
</select>
<input type="submit" value="'
$txt[34], '" /><br />
<span class="middletext">'
$txt['smf52'], '</span>
<input type="hidden" name="hash_passwrd" value="" />
</form>
<br/><br/>'
;
}

echo '
</td>
</tr>
<tr id="upshrinkHeader2"'
, empty($options['collapse_header']) ? '' ' style="display: none;"''>
<td colspan="3" class="memberbardivbottom">'
;

// color selection box
if(isset($settings['allow_color_change']) && $settings['allow_color_change'] == 'box')
  echo '
   <div style="position: relative; bottom: 13px; right:15px; float:right; ">
<form action="'
$scripturl'" method="post" class="smalltext">
<select name="options[theme_color]">
<option value="lightblue" '
,$settings['theme_main_color'] == 'lightblue' 'selected="selected"''''>Light Blue</option>
<option value="lightnavy" '
,$settings['theme_main_color'] == 'lightnavy' 'selected="selected"''''>Light Navy</option>
<option value="lightsilver" '
,$settings['theme_main_color'] == 'lightsilver' 'selected="selected"''''>Light Silver</option>
<option value="lightturquoise" '
,$settings['theme_main_color'] == 'lightturquoise' 'selected="selected"''''>Light Turquoise</option>
<option value="lightgreen" '
,$settings['theme_main_color'] == 'lightgreen' 'selected="selected"''''>Light Green</option>
<option value="lightolive" '
,$settings['theme_main_color'] == 'lightolive' 'selected="selected"''''>Light Olive</option>
<option value="lightgolden" '
,$settings['theme_main_color'] == 'lightgolden' 'selected="selected"''''>Light Golden</option>
<option value="lightbrown" '
,$settings['theme_main_color'] == 'lightbrown' 'selected="selected"''''>Light Brown</option>
<option value="lightred" '
,$settings['theme_main_color'] == 'lightred' 'selected="selected"''''>Light Red</option>
<option value="lightrose" '
,$settings['theme_main_color'] == 'lightrose' 'selected="selected"''''>Light Rose</option>
<option value="lightlilac" '
,$settings['theme_main_color'] == 'lightlilac' 'selected="selected"''''>Light Lilac</option>
<option value="lightviolet" '
,$settings['theme_main_color'] == 'lightviolet' 'selected="selected"''''>Light Violet</option>
</select>
<input type="submit" name="submit" value="Change" style="width: 11ex;" />
</form>
</div>'
;
if(isset($settings['allow_color_change']) && $settings['allow_color_change'] == 'bars')
echo '
<div style="position: relative; bottom: 15px; right:15px; float:right; ">
<form action="'
$scripturl'" method="post" class="smalltext">
<input style="border: solid 2px #6699CC; background-color: #6699CC; color: #6699CC; width: 20px; font-size: 1px;" type="submit" value="lightblue" name="options[theme_color]"/>
<input style="border: solid 2px #5371AD; background-color: #5371AD; color: #5371AD; width: 20px; font-size: 1px;" type="submit" value="lightnavy" name="options[theme_color]"/>
<input style="border: solid 2px #6C7F93; background-color: #6C7F93; color: #6C7F93; width: 20px; font-size: 1px;" type="submit" value="lightsilver" name="options[theme_color]"/>
<input style="border: solid 2px #53ADAD; background-color: #53ADAD; color: #53ADAD; width: 20px; font-size: 1px;" type="submit" value="lightturquoise" name="options[theme_color]"/>
<input style="border: solid 2px #4DB45D; background-color: #4DB45D; color: #4DB45D; width: 20px; font-size: 1px;" type="submit" value="lightgreen" name="options[theme_color]"/>
<input style="border: solid 2px #93A659; background-color: #93A659; color: #93A659; width: 20px; font-size: 1px;" type="submit" value="lightolive" name="options[theme_color]"/>
<input style="border: solid 2px #D8A259; background-color: #D8A259; color: #D8A259; width: 20px; font-size: 1px;" type="submit" value="lightgolden" name="options[theme_color]"/>
<input style="border: solid 2px #a67259; background-color: #a67259; color: #a67259; width: 20px; font-size: 1px;" type="submit" value="lightbrown" name="options[theme_color]"/>
<input style="border: solid 2px #E15050; background-color: #E15050; color: #E15050; width: 20px; font-size: 1px;" type="submit" value="lightred" name="options[theme_color]"/>
<input style="border: solid 2px #D47BC5; background-color: #D47BC5; color: #D47BC5; width: 20px; font-size: 1px;" type="submit" value="lightrose" name="options[theme_color]"/>
<input style="border: solid 2px #A185D6; background-color: #A185D6; color: #A185D6; width: 20px; font-size: 1px;" type="submit" value="lightlilac" name="options[theme_color]"/>
<input style="border: solid 2px #7F88B2; background-color: #7F88B2; color: #7F88B2; width: 20px; font-size: 1px;" type="submit" value="lightviolet" name="options[theme_color]"/>
</form>
</div>'
;
echo '
</td>
</tr>

</table>
</div>'
;
// End TP user info/news section
}
if(!empty($settings['custom_global_html']))
echo '
<div align="center" style="width: 90%; margin-left: auto; margin-right: auto; margin-top: 10px; border: 0px solid;" class="middletext">
'
$settings['custom_global_html'], '
</div>'
;
// The main content should go here.  A table is used because IE 6 just can't handle a div.
        
echo '<div id="bodyarea" style="padding: 0px 8px 0px 8px;">
        <table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>'
;

// TinyPortal integrated bars
          
if($context['TPortal']['leftbar'])
          {
              echo 
'<td width="' ,$context['TPortal']['leftbar_width'], '" style="padding: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' 'px; background-color: transparent; padding-top: 4px;" valign="top">
                 <div id="leftbarHeader"'
, empty($options['collapse_leftbar']) ? '' ' style="display: none;"'' style="padding-top: 5px; width: ' ,$context['TPortal']['leftbar_width'], 'px;">';
                 
TPortal_sidebar('left');
              echo 
'</div></td>';

          }
        echo 
'<td width="100%" align="left" valign="top" style="padding-top: 10px; padding-bottom: 10px;">';
        if(
$context['TPortal']['centerbar'])
                     echo 
'<div>' TPortal_sidebar('center') , '</div>';
}
function 
template_main_below()
{
global $context$settings$options$scripturl$txt;

echo '</td>';

         
// TinyPortal integrated bars
          
if($context['TPortal']['rightbar']){
              echo 
'<td style="padding: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' 'px; background-color: transparent; padding-top: 4px;" valign="top" align="right">
                 <div id="rightbarHeader"'
, empty($options['collapse_rightbar']) ? '' ' style="display: none;"'' style="width: ' ,$context['TPortal']['rightbar_width'], 'px; text-align: left; padding-top: 5px;">';
              
TPortal_rightbar();
              echo 
'</div></td>';
          }
        echo 
'</tr></table></div>';

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '

<div id="footerarea" style="text-align: center; padding-bottom: 1ex;'
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' '''">
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function smfFooterHighlight(element, value)
{
element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
}
// ]]></script>
<table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
<tr>
<td width="28%" valign="middle" align="'
, !$context['right_to_left'] ? 'right' 'left''">
<a href="http://www.mysql.com/" target="_blank"><img id="powered-mysql" src="'
$settings['images_url'], '/powered-mysql.gif" alt="'$txt['powered_by_mysql'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://www.php.net/" target="_blank"><img id="powered-php" src="'
$settings['images_url'], '/powered-php.gif" alt="'$txt['powered_by_php'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
<td valign="middle" align="center" style="white-space: nowrap;">
'
theme_copyright(), ' <span class="smalltext">| 'tportal_version(), '</span>
<br/><br/>'
;
if(isset($settings['custom_copyright']))
echo '<span class="smalltext">'$settings['custom_copyright'],'</span>';
  echo'</td>
<td width="28%" valign="middle" align="'
, !$context['right_to_left'] ? 'left' 'right''">
<a href="http://validator.w3.org/check/referer" target="_blank"><img id="valid-xhtml10" src="'
$settings['images_url'], '/valid-xhtml10.gif" alt="'$txt['valid_xhtml'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img id="valid-css" src="'
$settings['images_url'], '/valid-css.gif" alt="'$txt['valid_css'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<span style="float:right; margin-right:10px; font-size:70%;"><b>Dilber MC</b> Theme by <b><a href="http://www.harzem.com/themes/themes.php?theme=dilbermc;color='
$settings['theme_main_color'], '" target="_blank">HarzeM</a></b></span>
</td>
</tr>
</table>'
;

// Show the load time?
if ($context['show_load_time'])
echo '
<span class="smalltext">'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';

// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'])
{
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;

// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}'
;
else
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}

if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}'
;

echo '
// ]]></script>'
;
}
// TinyPortal
         
echo '</div>';
     if(
$context['TPortal']['fixed_width']!=0)
             echo 
'</td></tr></table>';
// end
echo '
</div>
'
,($context['browser']['is_ie']) ? '</td></tr></table>' '</div>' '
</div>'
;
// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" class="ajax_in_progress" style="display: none;'
$context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' '''">'$txt['ajax_in_progress'], '</div>
</body></html>'
;
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context$settings$options;

echo '<div class="nav" style="font-size: 85%; margin-bottom: 2ex; margin-top: 2ex;">';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav">' $tree['name'] . '</a>' $tree['name'], '</b>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;>&nbsp;';
}

echo '</div>';
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context$settings$options$scripturl$txt;

// Work out where we currently are.
$current_action 'home';
if (in_array($context['current_action'], array('admin''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))
$current_action 'admin';
if (in_array($context['current_action'], array('search''admin''calendar''gallery''profile''mlist''register''login''help''pm''forum''tpadmin')))
$current_action $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action 'search';
if (isset($_GET['dl']))
$current_action 'dlmanager';
if (isset($_GET['board']) || isset($_GET['topic']))
$current_action 'forum';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';

// Dummy place holder, to set the height
echo'
<td align="center" class="menubg" height="30" width="20">
</td>'
;

// Show the [home] button.
echo'
<td align="center" class="menubg' 
$current_action == 'home' '2' '' '">
<a href="'
$scripturl'">' $txt[103] , '</a>
</td>'
;
       if(
$settings['TPortal_front_type']!='boardindex')
// Show the [forum] button.
echo'
<td align="center" class="menubg' 
$current_action == 'forum' '2' '' '">
<a href="'
$scripturl'?action=forum">'.$txt['tp-forum'].'</a>
</td>'
;
// Show the [help] button.
echo'
<td align="center" class="menubg' 
$current_action == 'help' '2' '' '">
<a href="'
$scripturl'?action=help">' $txt[119] , '</a>
</td>'
;
// How about the [search] button?
if ($context['allow_search'])
echo'
<td align="center" class="menubg' 
$current_action == 'search' '2' '' '">
<a href="'
$scripturl'?action=search">' $txt[182] , '</a>
</td>'
;
// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo'
<td align="center" class="menubg' 
$current_action == 'admin' '2' '' '">
<a href="'
$scripturl'?action=admin">' $txt[2] , '</a>
</td>'
;
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo'
<td align="center" class="menubg' 
$current_action == 'profile' '2' '' '">
<a href="'
$scripturl'?action=profile">' $txt[79] , '</a>
</td>'
;
// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo'
<td align="center" class="menubg' 
$current_action == 'pm' '2' '' '">
<a href="'
$scripturl'?action=pm">' $txt['pm_short'] , ' '$context['user']['unread_messages'] > '[<strong>'$context['user']['unread_messages'] . '</strong>]' '' '</a>
</td>'
;

// Show the [gallery] button.
echo'
<td align="center" class="menubg' 
$current_action == 'help' '2' '' '">
<a href="'
$scripturl'?action=gallery">' $txt['smfgallery_menu'] , '</a>
</td>'
;


// The [calendar]!
if ($context['allow_calendar'])
echo'
<td align="center" class="menubg' 
$current_action == 'calendar' '2' '' '">
<a href="'
$scripturl'?action=calendar">' $txt['calendar24'] , '</a>
</td>'
;
// the [member] list button
if ($context['allow_memberlist'])
echo'
<td align="center" class="menubg' 
$current_action == 'mlist' '2' '' '">
<a href="'
$scripturl'?action=mlist">' $txt[331] , '</a>
</td>'
;

// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo'
<td align="center" class="menubg' 
$current_action == 'login' '2' '' '">
<a href="'
$scripturl'?action=login">' $txt[34] , '</a>
</td>'
;
// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo'
<td align="center" class="menubg' 
$current_action == 'register' '2' '' '">
<a href="'
$scripturl'?action=register">' $txt[97] , '</a>
</td>'
;
// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo'
<td align="center" class="menubg' 
$current_action == 'logout' '2' '' '">
<a href="'
$scripturl'?action=logout;sesc='$context['session_id'], '">' $txt[108] , '</a>
</td>'
;

// Dummy place holder, to end things
echo'
<td align="center" class="menubg" width="20">
</td>'
;
// TinyPortal
 if($context['TPortal']['leftbar'])
             echo 
'<td style="padding-left: 1ex;"><a href="javascript:void(0);" onclick="shrinkHeaderLeftbar(!current_leftbar); return false;"><img id="upshrinkLeftbar" src="'$settings['images_url'], '/', empty($options['collapse_leftbar']) ? 'upshrink.gif' 'upshrink2.gif''" alt="*" title="'$txt['upshrink_description'], '" style="margin: 2px 0;" border="0" /></a><img id="upshrinkTempLeftbar" src="'$settings['images_url'], '/blank.gif" alt="" style="margin-right: 0ex;" /></td>';
         if(
$context['TPortal']['rightbar'])
             echo 
'<td style="padding-left: 1ex;"><a href="javascript:void(0);" onclick="shrinkHeaderRightbar(!current_rightbar); return false;"><img id="upshrinkRightbar" src="'$settings['images_url'], '/', empty($options['collapse_rightbar']) ? 'upshrink.gif' 'upshrink2.gif''" alt="*" title="'$txt['upshrink_description'], '" style="margin: 2px 0;" border="0" /></a><img id="upshrinkTempRightbar" src="'$settings['images_url'], '/blank.gif" alt="" style="margin-right: 0ex;" /></td>';
// TinyPortal end
echo '
</tr>
</table>'
;
}
// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
global $settings$buttons$context$txt$scripturl;

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td>&nbsp;</td>';

echo '
<td class="'
$direction == 'top' 'main' 'main''strip_first''">&nbsp;</td>
<td class="'
$direction == 'top' 'main' 'main''strip">'implode(' &nbsp;|&nbsp; '$button_strip) , '</td>
<td class="'
$direction == 'top' 'main' 'main''strip_last' '">&nbsp;</td>';
}

?>







   
Title: Re: Users Online Today Mod
Post by: Johno69 on June 27, 2008, 09:02:59 AM
I had a MOD like this about a year back, and it scrolled the usernames accross the bottom, rather than having them all there on display.

Does anyone know what that was?

I cant find it.

update: nevermind, I just used a marquee tag.
Title: Re: Users Online Today Mod
Post by: allymcbeal on July 01, 2008, 09:15:15 AM
I used 1.4 it works.

But I'd prefer that guest don't see how many people login today, what I have to modify for that?
Thanks.
Title: Re: Users Online Today Mod
Post by: jaccione on July 01, 2008, 09:35:26 AM
Posted this earlier up, this will hide it to only admin, you can probably change the permisson to whatever level you want.
just wrap your block of code in this

if ($context['user']['is_admin'])
{

the code for the mod here
}
Title: Re: Users Online Today Mod
Post by: allymcbeal on July 01, 2008, 10:51:02 AM
Hi, jaccione, thanks, but I need all the member log in see how many people login today. :)
Title: Re: Users Online Today Mod
Post by: jaccione on July 01, 2008, 10:56:31 AM
try replacing the 'is_admin'  with 'is_member' and see if that works
Title: Re: Users Online Today Mod
Post by: ccbtimewiz on July 01, 2008, 02:26:59 PM
Your best bet would be to use:

if ((!$context['user']['is_guest']) && $context['user']['is_logged'])

Title: Re: Users Online Today Mod
Post by: allymcbeal on July 02, 2008, 02:25:14 AM
First I put the code in a wrong line, now I fix it and now it works!!!

Thank you!!!
Title: Re: Users Online Today Mod
Post by: EugeneLoza on July 03, 2008, 06:55:26 AM
Probably I'll post this translation for the second time, but here's Russian UTF-8 for the mod I've made recently. These should be copied to Modifications.russian-utf8.php.
Title: Re: Users Online Today Mod
Post by: Rhyme on July 07, 2008, 07:32:29 AM
How do I make this work on other skins?
Title: Re: Users Online Today Mod
Post by: ccbtimewiz on July 07, 2008, 10:17:15 AM
You'll be needing to manually edit your files in your theme.  :)
Title: Re: Users Online Today Mod
Post by: Rhyme on July 07, 2008, 12:02:18 PM
Quote from: CTwiz on July 07, 2008, 10:17:15 AM
You'll be needing to manually edit your files in your theme.  :)

I figured that, but I wanted to know what I would need to add.  Do I do this in the FTP and place the files into each theme, or is there CSS I can add to the style sheets?
Title: Re: Users Online Today Mod
Post by: ccbtimewiz on July 07, 2008, 12:07:02 PM
mm, you'll be needing to edit the files (via FTP) in:

/Sources

and

/Themes/*your_theme*/

Look in the install.xml to find the files that the modification itself edits.
Title: Re: Users Online Today Mod
Post by: Rhyme on July 07, 2008, 12:25:02 PM
Quote from: CTwiz on July 07, 2008, 12:07:02 PM
mm, you'll be needing to edit the files (via FTP) in:

/Sources

and

/Themes/*your_theme*/

Look in the install.xml to find the files that the modification itself edits.

Thanks, I'll check that out when I get home later.  I'm at work right now I don't have an FTP set up here.
Title: Re: Users Online Today Mod
Post by: clanny on July 10, 2008, 02:35:10 AM
how to put it so it shows all the user/guest or only user online in the past 24 hours
i added the mod in the forum btw, easyfreezone.com/forum

it shows


Users Logged In Today
  Total: 1 (Visible: 1, Hidden: 0)
Mike 
Title: Re: Users Online Today Mod
Post by: stfox100 on July 14, 2008, 10:47:54 AM
Well, I went to install the new version , since it's now compatible with 1.1.5.
However, I get an error when I try to uninstall the old version:
5.     Execute Modification     ./Themes/default/languages/Modifications.english.php     Test failed
I installed the older version manualy. I also installed it to a custom theme, so maybe  the edits are missing in the default themes file. Should I proceed with the uninstall anyway? And them apply the new version? Or, should I wait for the manual edits files in the download section?
Title: Re: Users Online Today Mod
Post by: gtron on July 14, 2008, 08:18:13 PM
is there a way to let guests see the member names for users online today?
Title: Re: Users Online Today Mod
Post by: Johno69 on July 14, 2008, 08:37:25 PM
there is a line in Boardindex.Template.php

if (!empty($context['users_online_today']) && !$context['user']['is_guest'])

I would guess it changing this somehow?

maybe to:

if (!empty($context['users_online_today'])

I'm just guessing, so "BACKUP" if you do try that.
Title: Re: Users Online Today Mod
Post by: DareDevil1990 on July 18, 2008, 07:22:47 AM
i am using Users Online Today Mod can it be edited some how to show the users active it past48 hours and not in the past 24 hours ???....and then change the colour of user who were active 24hours a ago to some else color so there could be a sepration between todays members and yesterday members....l.. i hope u got it .... :)
Title: Re: Users Online Today Mod
Post by: ranKoto on July 19, 2008, 11:13:49 AM
Quote from: DirtRider on June 23, 2008, 11:57:54 PM
Ok I tried the version 1.4.0 and it installed. I get the following stats from my board     

Most Online Today: 16. Most Online Ever: 16 (Yesterday at 09:02:45 PM)


hi DirtRider

can you tell me where did you get that stat ? is that from the mod ?

i actually want to have that "Most Online Ever" in this mod

im using SMF 1.1.4 and users online today mod ver. 1.4.0
Title: Re: Users Online Today Mod
Post by: DirtRider on July 20, 2008, 05:53:23 AM
Quote from: ranKoto on July 19, 2008, 11:13:49 AM
Quote from: DirtRider on June 23, 2008, 11:57:54 PM
Ok I tried the version 1.4.0 and it installed. I get the following stats from my board     

Most Online Today: 16. Most Online Ever: 16 (Yesterday at 09:02:45 PM)


hi DirtRider

can you tell me where did you get that stat ? is that from the mod ?

i actually want to have that "Most Online Ever" in this mod

im using SMF 1.1.4 and users online today mod ver. 1.4.0

No that is just the normal SMF stats at the bottom of the forum         
Title: Re: Users Online Today Mod
Post by: atomico on July 26, 2008, 07:29:38 AM
i isntalled this mod and all work fine now but..

the normal smf option: user online , don't work anymore.

I log with admin, after i log with a normal member, and i log again as admin.

well in user online today it show admin and member normally but in user online in the last 15min it show only my user and not the other.

why?
ty
Title: Re: Users Online Today Mod
Post by: Adish - (F.L.A.M.E.R) on July 26, 2008, 02:15:54 PM
I got almost everything right...

There is special box which is created at the base but the name displays somewhere else...

chk yout this image:-
(http://img255.imageshack.us/img255/4157/onlinetodayff2.png)

Hmm.. So what maybe the problem..???

Please Help me out..

Thanks...
Title: Re: Users Online Today Mod
Post by: General_Naga on July 28, 2008, 08:50:16 AM
Quote from: jaccione on July 01, 2008, 09:35:26 AM
Posted this earlier up, this will hide it to only admin, you can probably change the permisson to whatever level you want.
just wrap your block of code in this

if ($context['user']['is_admin'])
{

the code for the mod here
}

I've tried using this method and I have successfully hidden the information. It still however displays the block with just a single colon inside. How can I hide this block when I hide the information?

EDIT:

Solved it, I had forgotten to add the code to the theme files as well.  ;)
Title: Re: Users Online Today Mod
Post by: Adish - (F.L.A.M.E.R) on July 28, 2008, 09:39:51 AM
sorry for the question but is there anyone who would help me with the problem shown in the image ??? Please help me out.

Thanks.
Title: Re: Users Online Today Mod
Post by: ccbtimewiz on July 28, 2008, 11:03:56 AM
Quote from: optimushunk on July 28, 2008, 09:39:51 AM
sorry for the question but is there anyone who would help me with the problem shown in the image ??? Please help me out.

Thanks.

Could you attach your boardindex.template.php please?
Title: Re: Users Online Today Mod
Post by: Adish - (F.L.A.M.E.R) on July 28, 2008, 11:55:19 AM
Sure. Please check the attached file. BoardIndex.template.php Attached.

Thanks.
Title: Re: Users Online Today Mod
Post by: ccbtimewiz on July 28, 2008, 11:59:55 AM
All fixed.
Title: Re: Users Online Today Mod
Post by: Adish - (F.L.A.M.E.R) on July 28, 2008, 12:15:46 PM
Can you tell me what the problem was ?
Title: Re: Users Online Today Mod
Post by: ccbtimewiz on July 28, 2008, 12:17:09 PM
The modification installed twice, Lol.
Title: Re: Users Online Today Mod
Post by: Adish - (F.L.A.M.E.R) on July 28, 2008, 12:17:43 PM
ehm.. its the same i think.. it is shown in the same place.
Title: Re: Users Online Today Mod
Post by: ccbtimewiz on July 28, 2008, 12:18:21 PM
Hmm? You're using the theme of the file I edited, right?
Title: Re: Users Online Today Mod
Post by: Adish - (F.L.A.M.E.R) on July 28, 2008, 12:23:38 PM
Woops...srry.. made a mistake..srry. Check the attachment now.

acctually the site is onto the WAMP on my pc.... it is the same thing.. the error still remains.. can you solve it please...

Thanks
Title: Re: Users Online Today Mod
Post by: stfox100 on July 29, 2008, 09:49:05 AM
HI,
I've installed this mod on SMF 1.1.5 with TP 1.0.5
I've been getting errors, so I've been uninstalling mods to track down the issue.
In the Board.index.php I show this code:
Quote// Load the users online right now.
   $result = db_query("
      SELECT
         lo.ID_MEMBER, lo.logTime, lo.url, mem.realName, mem.memberName, mem.showOnline,
         mg.onlineColor, mg.ID_GROUP, mg.groupName
      FROM {$db_prefix}log_online AS lo
         LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = lo.ID_MEMBER)
         LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))", __FILE__, __LINE__);

Which doesn't appear to fit my version of SMF, if I'm reading it right, and I am far from an experienced coder. Does it seem I have the wrong version installed? If so, how do I go about uninstalling, and reinstalling? I can't use the uninstall through the package manager as I get an error for file: ./Themes/default/languages/Modifications.english.php.
Thanks,
B-Lute
Title: Re: Users Online Today Mod
Post by: Adish - (F.L.A.M.E.R) on July 29, 2008, 07:48:46 PM
Please solve this problem:- http://www.simplemachines.org/community/index.php?topic=55513.msg1631641#msg1631641

BoardIndex.template.php attached in this post:- http://www.simplemachines.org/community/index.php?topic=55513.msg1634616#msg1634616

Please help me out, I am almost finished with my forum and just this tiny bits remaining. Kindly help me.

Thank you.
Title: Re: Users Online Today Mod
Post by: Adish - (F.L.A.M.E.R) on July 30, 2008, 09:08:56 PM
is bumping these topics allowed ? coz the mod maker isnt quite replying ? i mean other members are quite helpful but the mod maker has more experience about the mod rather then others.....

Please Help, see the above query.

Thank You.
Title: Re: Users Online Today Mod
Post by: General_Naga on July 31, 2008, 01:49:52 PM
I'm getting the following error in my logs.
QuoteError message '1024: Canview method for getMembersOnlineTodayStats() function is not allowed'

I have modified the original code to this: (to make the block visible to admins only)

Quoteif ($context['user']['is_admin'])
{
        // Users online today
    echo '
        <tr>
            <td class="titlebg" colspan="2">', $txt['uot_users_online_today'], '</td>
        </tr><tr>
            <td class="windowbg" width="20" valign="middle" align="center">
                ', '<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['uot_users_online_today'], '" />', '
            </td>
            <td class="windowbg2" width="100%">';
            echo '
                <div class="smalltext">';

            echo
                $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';

            if ($context['viewing_allowed'])
            echo '
                (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_users_hidden_today']), ', ', $txt['uot_hidden'], ': ', $context['num_users_hidden_today'], ')';
               
            // Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
            if (!empty($context['users_online_today']) && $context['viewing_allowed'])
            {
                echo '<br />', implode(', ', $context['list_users_online_today']);

                // Showing membergroups?
                if (!empty($settings['show_group_key']) && !empty($context['membergroups']))
                    echo '<br />[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']';
            }
            echo    '</div>';
    echo        '</td>';
    echo    '</tr>';
}

Does anyone know how to solve the problem behind the error? It's not vital but it's kinda clogging up my logs :)

Thanks in advance.
Title: Re: Users Online Today Mod
Post by: barler on July 31, 2008, 02:31:30 PM
first off im a noob,so this could be a stupid question lol

how to i install this mod on smf version 1.1.5 useing this theme http://custom.simplemachines.org/themes/index.php?lemma=116


and would i be better of usein this version of the theme
http://custom.simplemachines.org/themes/index.php?lemma=763

wat im basically lookin for is a step by step way of doin it.
thanks in advance.

any other info needed just ask
Title: Re: Users Online Today Mod
Post by: General_Naga on August 01, 2008, 06:08:40 AM
Firstly I'm going to do this step by step so sorry if you know some of this already.

To install a mod on a custom theme you need to make edits to the theme files via FTP (Might be another way but I've never found it)

NB. Remember to use a program such as notepad/notepad++/crimson editor NOT MS Word! for editing the files.

1. Download version 1.4 of the mod
2. Go to: http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/) and browse to the file you just downloaded. Select 1.1.3 as your SMF version.
3. Use the information which the parser gives you to edit the relevant files. Just copy and paste from the boxes.

Hope this helps, if you still need help PM me.

Title: Re: Users Online Today Mod
Post by: Basie on August 01, 2008, 06:41:13 AM
PLEASE can someone make the latest version of this compatible with 1.1.5?

I need "visitors in last 24 hours" not "visitors today".
Title: Re: Users Online Today Mod
Post by: metallica48423 on August 01, 2008, 08:48:42 AM
this mod already supports 1.1.5.  Read the description.
Title: Re: Users Online Today Mod
Post by: Basie on August 01, 2008, 09:22:15 AM
Only an older version of the hack works with 1.1.5 - not the latest version.

Quote
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

The 1.1.5 version only shows "online today", but I need it to show "online in last 24 hours", which is in the latest version of the hack.
Title: Re: Users Online Today Mod
Post by: Adish - (F.L.A.M.E.R) on August 02, 2008, 09:16:19 PM
Quote from: optimushunk on July 29, 2008, 07:48:46 PM
Please solve this problem:- http://www.simplemachines.org/community/index.php?topic=55513.msg1631641#msg1631641

BoardIndex.template.php attached in this post:- http://www.simplemachines.org/community/index.php?topic=55513.msg1634616#msg1634616

Please help me out, I am almost finished with my forum and just this tiny bits remaining. Kindly help me.

Thank you.

Ehm anyone who can solve them please. It has been many days since I am facing the problem.

Thank You.
Title: Re: Users Online Today Mod
Post by: lyer on August 04, 2008, 01:14:03 AM
hey guys...can you pls help me?....

IM using SMF 1.1.5 and tinyportal v.0.9.8, and using a babylon theme....could you please help me if what version of "USer Online Today Mod" should i use without manually modifying the php script?

thanks and more power....
Title: Re: Users Online Today Mod
Post by: memyselfandI on August 04, 2008, 02:48:53 AM
Is anyone supporting this mod? I have the same problem as someone else that was never answered

Undefined index: uot_users_online_today

8: Undefined index: uot_total

8: Undefined index: uot_total

8: Undefined index: uot_hidden
Title: Re: Users Online Today Mod
Post by: SgtMic on August 04, 2008, 11:53:59 AM
Quote from: memyselfandI on August 04, 2008, 02:48:53 AM
Is anyone supporting this mod? I have the same problem as someone else that was never answered

Undefined index: uot_users_online_today

8: Undefined index: uot_total

8: Undefined index: uot_total

8: Undefined index: uot_hidden

Unfortunately, I don't think so at this time.
Title: Re: Users Online Today Mod
Post by: Otterdam on August 04, 2008, 12:20:24 PM
If you want to fix it, open up Subs-MembersOnlineToday.php

Cut the line at the end of the file:

loadLanguage('UsersOnlineToday');

And paste it below the following code, near the start of the file:

// Retrieve a list and several other statistics of the users online during a specific period.
function getMembersOnlineTodayStats($membersOnlineTodayOptions)
{
global $smcFunc, $context, $scripturl, $user_info, $modSettings, $txt;
Title: Re: Users Online Today Mod
Post by: memyselfandI on August 04, 2008, 12:32:53 PM
Quote from: Otterdam on August 04, 2008, 12:20:24 PM
If you want to fix it, open up Subs-MembersOnlineToday.php

Cut the line at the end of the file:

loadLanguage('UsersOnlineToday');

And paste it below the following code, near the start of the file:

// Retrieve a list and several other statistics of the users online during a specific period.
function getMembersOnlineTodayStats($membersOnlineTodayOptions)
{
global $smcFunc, $context, $scripturl, $user_info, $modSettings, $txt;


I don't have a file called subs-MembersOnlineToday.php   
Title: Re: Users Online Today Mod
Post by: ccbtimewiz on August 04, 2008, 12:35:54 PM
Allow me to be of assistance.

Quote from: memyselfandI on August 04, 2008, 02:48:53 AM
Is anyone supporting this mod? I have the same problem as someone else that was never answered

Undefined index: uot_users_online_today

8: Undefined index: uot_total

8: Undefined index: uot_total

8: Undefined index: uot_hidden

This could be many reasons. Did your $txt[] strings get sotred correctly? Could you check modifications.english.php and make sure that $txt['uot_(whatever)'] strings exist? Make sure they're before the ?> and after the <?php tags.
Title: Re: Users Online Today Mod
Post by: memyselfandI on August 04, 2008, 01:00:43 PM
I think it's because alot of those are not even in the version for 1.1.5 I'll wait to add it till the latest version goes final
Title: Re: Users Online Today Mod
Post by: Phil Serna on August 10, 2008, 11:34:21 PM
Hi everyone, it says to modify the file yourself if we are using a custom theme..only thing is what file would I edit? what would i replace it with?
Title: Re: Users Online Today Mod
Post by: Sabre™ on August 10, 2008, 11:38:25 PM
Use the package Parser located [HERE] (http://sleepycode.com/PackageParser/index.php).
Once you are there...

*Click browse to find this mod in your computer.
*Then select which theme version you are using.
*And where it states show:, select only theme edits.

Good Luck :)
Title: Re: Users Online Today Mod
Post by: Zalvador on August 12, 2008, 02:50:54 PM
SMFv2 beta 3.1

User On Line Today Error
Quote8: Undefined index: uot_yesterday
File: /home/james2/public_html/forum/Sources/Subs-MembersOnlineToday.php
Line: 135

Rumbaar
Support Specialist
Simple Machines Hero


Figured out a working Solution to the issue.

Locate your Modifications.english.php in your Themes/deault/languages=> folder.

Any where in this file before ?> Add this script string.
$txt['uot_yesterday']='Yesterday at ';

I have been running it error free since editing the file.

Here is the URL where Rumbaar addressed this issue.

http://www.simplemachines.org/community/index.php?topic=252467.0
Title: Re: Users Online Today Mod
Post by: Adish - (F.L.A.M.E.R) on August 13, 2008, 09:42:26 AM
I am using 2.0 beta 3.1 version. I installed this package :- Users_Online_Today_1.5.2.zip

Now i get a different section but, i got 2 sections of the membergroups at the base. I dont know what exactly could be wrong.

Check the image.
Title: Re: Users Online Today Mod
Post by: Carceri on August 13, 2008, 03:21:31 PM
A new version has been released, where the "Undefined index: " bug is hopefully fixed.
Title: Re: Users Online Today Mod
Post by: selmiak on August 13, 2008, 05:04:07 PM
how do you translate the mod? If I chose another language for the whole forum I only the the stats but no language strings!
I you post the strings to translate I could translate this to german :)
Title: Re: Users Online Today Mod
Post by: neil h on August 15, 2008, 04:19:00 AM
Can anyone offer a demo link for this mod I could look at?

I'm trying to fing out if this mod removes the "Users active in the past  xx minutes"  line. That's what i want to do - show Users online today, but remove the Users Active info. Or better still, have the Active users an admin-only display.
Title: Re: Users Online Today Mod
Post by: Adish - (F.L.A.M.E.R) on August 15, 2008, 05:36:17 AM
http://syshacks.com

see at the base, it shows all the users who came online "Today".
Title: Re: Users Online Today Mod
Post by: Basie on August 15, 2008, 05:47:34 AM
Quote from: F.L.A.M.E.R on August 15, 2008, 05:36:17 AM
see at the base, it shows all the users who came online "Today".

Not to guests....

It only shows how many users, not which ones.
Title: Re: Users Online Today Mod
Post by: Adish - (F.L.A.M.E.R) on August 15, 2008, 06:17:08 AM
oh sorry, go via this test account.

URL:- http://syshacks.com
username:- storm
pass:- 124563

It is not shown to public actually. so u need to login. Have a look.
Title: Re: Users Online Today Mod
Post by: neil h on August 15, 2008, 06:38:39 AM
Thanks flamer. I suppose I could use this mod if i could figure out how to disable the " active in the past xx minutes" line.
Title: Re: Users Online Today Mod
Post by: Adish - (F.L.A.M.E.R) on August 15, 2008, 06:53:32 AM
well the difference in both of them is that.. in the

active in the past xx minutes - it shows you according to the user activity and the activeness.

While in this mod, it logs it according the users login, i mean if i login 1st and then u and then me again, yet it will show my name in the mid way rather than in the start. It is just like a log, But user's online would be better to see how many users stay active in which part of the day. In addition, you can use extreme tracker for it if you dont want that extra line. But it would be better to leave it as it is.

I just have to figure out how to show the guests, the list of the users visited today list, as that increases the popularity.

any help over that issue ?

Thank you.
Title: Re: Users Online Today Mod
Post by: Basie on August 15, 2008, 07:16:46 AM
Your site does not display the SMF copyright....
Title: Re: Users Online Today Mod
Post by: Adish - (F.L.A.M.E.R) on August 15, 2008, 07:33:27 AM
oh yea lolz.. didnt notice that, actually m just the mod there.. i will notify about it to the owner. He'll do the needful... good you noticed that.. ;)
Title: Re: Users Online Today Mod
Post by: selmiak on August 15, 2008, 10:42:39 AM
how do I translate this mod so that it shows up with the right strings when the forumlanguage is changed?
Title: Re: Users Online Today Mod
Post by: onel0ve on August 19, 2008, 11:21:39 AM
i install it in my forum but yet not show user online today

can u say me how to active it

i use defaul theme
Title: Re: Users Online Today Mod
Post by: tadi on August 19, 2008, 11:34:02 AM
Hello,

I want this mod in my forum.
I use fire theme in SMF 1.1.5
Can you please help me with the BoardIndex.template?
I can't make the changes because I don't find the

', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ') </span>  </td>  </tr>';

I attach the file.
Title: Re: Users Online Today Mod
Post by: stfox100 on August 19, 2008, 02:37:20 PM
Although ccbtimewiz seems to be trying to help out as best he can, I haven't seen the author reply to a post or help in any manner in a long time. Most posts just go unanswered. I consider this mod a dead end and not worth your time.
Title: Re: Users Online Today Mod
Post by: General_Naga on August 19, 2008, 04:39:01 PM
Quote from: stfox100 on August 19, 2008, 02:37:20 PM
Although ccbtimewiz seems to be trying to help out as best he can, I haven't seen the author reply to a post or help in any manner in a long time. Most posts just go unanswered. I consider this mod a dead end and not worth your time.

It's only dead when people stop talking about it :)

@ Tadi - here you go - Please back up your BoardIndex.template.php to a safe place before you upload my edited version. It should work but I guarantee nothing :)
Title: Re: Users Online Today Mod
Post by: tadi on August 20, 2008, 10:09:19 AM
Thank you !!!!!   ;D

I will try it!!!!  :)
Title: Re: Users Online Today Mod
Post by: searchgr on August 24, 2008, 01:26:06 AM
How can i remove the number of the hidden members?
Title: Re: Users Online Today Mod
Post by: Exterminator2006 on August 24, 2008, 03:42:44 AM
my problem

(http://i33.tinypic.com/34q4cn8.gif)

y error log

8: Undefined index: uot_hidden
Themes/default/BoardIndex.template.php (main sub template - eval?)
Línea: 425

template - eval?)
Línea: 423

template - eval?)
Línea: 416

Same FILE
Title: Re: Users Online Today Mod
Post by: Sickthing on August 24, 2008, 08:45:04 AM
I think I'm having the same problem as Exterminator2006..  What I see in his graphic is what I see on my forum.

I love this mod but I'm having trouble with it on one of my boards.  After installing it I started seeing this at the top of the page:

Quote$txt['uot_users_online_today']='Users Logged In Today'; $txt['uot_yesterday']='Yesterday at '; $txt['uot_total']='Total'; $txt['uot_visible']='Visible'; $txt['uot_hidden']='Hidden';

The numbers show in the mod display area as do the names but the captions don't.

The forum error logs show this:

QuoteApply Filter: Only show the error messages of this member  Expat       Today at 08:32:48 PM
Apply Filter: Only show the error messages of this IP address 203.177.74.137      Apply Filter: Only show the error messages of this session e59dbc688052e06413fb8fe8c8629bf1
Apply Filter: Only show the error messages of this URL http://expat.heyjoe.ph/index.php
Apply Filter: Only show the errors with the same message
8: Undefined index: uot_hidden
File: /home/heyjoe/public_html/philippine-expat-community/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 427
   
Apply Filter: Only show the error messages of this member Expat    Today at 08:32:48 PM
Apply Filter: Only show the error messages of this IP address 203.177.74.137      Apply Filter: Only show the error messages of this session e59dbc688052e06413fb8fe8c8629bf1
Apply Filter: Only show the error messages of this URL http://expat.heyjoe.ph/index.php
Apply Filter: Only show the errors with the same message
8: Undefined index: uot_visible
File: /home/heyjoe/public_html/philippine-expat-community/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 427
   
Apply Filter: Only show the error messages of this member Expat    Today at 08:32:48 PM
Apply Filter: Only show the error messages of this IP address 203.177.74.137      Apply Filter: Only show the error messages of this session e59dbc688052e06413fb8fe8c8629bf1
Apply Filter: Only show the error messages of this URL http://expat.heyjoe.ph/index.php
Apply Filter: Only show the errors with the same message
8: Undefined index: uot_total
File: /home/heyjoe/public_html/philippine-expat-community/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 425

I uninstalled it. Hope someone can help me fix it.

Thanks!
Title: Re: Users Online Today Mod
Post by: cubetgio on August 25, 2008, 04:42:03 AM
Is there somebody to tell me how to uninstall uot mod manually ?

The link "uninstall" is not displayed anymore in my package browser...

Thanks you!
Title: Re: Users Online Today Mod
Post by: searchgr on August 25, 2008, 04:47:36 AM
Quote from: cubetgio on August 25, 2008, 04:42:03 AM
Is there somebody to tell me how to uninstall uot mod manually ?

The link "uninstall" is not displayed anymore in my package browser...

Thanks you!

Go here, choose your version and see the changes.

http://custom.simplemachines.org/mods/?mod=217
Title: Re: Users Online Today Mod
Post by: searchgr on August 25, 2008, 04:48:03 AM
Quote from: searchgr on August 24, 2008, 01:26:06 AM
How can i remove the number of the hidden members?

Anyone?
Title: Re: Users Online Today Mod
Post by: Exterminator2006 on August 25, 2008, 12:43:22 PM

[/quote]

Go here, choose your version and see the changes.

http://custom.simplemachines.org/mods/?mod=217
[/quote]

yeah! all fine how that link and problem continue
Title: Re: Users Online Today Mod
Post by: Carceri on August 26, 2008, 09:10:49 AM
To all of you who have the "Undefined index: uot_hidden" error, does it still happen with version 1.5.3 of this mod? If yes, try switching your forum language to english to see if it disappears. I have a test forum here, in english, and I am unable to reproduce the error.
Title: Re: Users Online Today Mod
Post by: tk2012 on August 26, 2008, 01:52:28 PM
I read the replies around page 49-50 which talk about this error, but I have no idea what those solutions are... 

I'm running v2.0 b3.1

I just received about 40 errors in the last 24 hours that are all the same...(ok, I counted.  It was 48 errors.  Just wanted to make sure I wasn't exagerating!  Seems I was being conservative.)

see attached pics

what am I supposed to do to correct this?  very confused! :'(

I just tried the solution here: http://www.simplemachines.org/community/index.php?topic=252467.msg1655197#msg1655197   by Rumbaar, but not sure if that's all that is needed.
Title: Re: Users Online Today Mod
Post by: SgtMic on August 26, 2008, 10:41:21 PM
Quote from: Sickthing on August 24, 2008, 08:45:04 AM
I love this mod but I'm having trouble with it on one of my boards.  After installing it I started seeing this at the top of the page:

Quote$txt['uot_users_online_today']='Users Logged In Today'; $txt['uot_yesterday']='Yesterday at '; $txt['uot_total']='Total'; $txt['uot_visible']='Visible'; $txt['uot_hidden']='Hidden';


In your modifications.english.php (found in themes/default/languages) make sure that ?> is the last line item.
Title: Re: Users Online Today Mod
Post by: Carceri on August 27, 2008, 03:56:28 AM
Quote from: tk2012 on August 26, 2008, 01:52:28 PM
I'm running v2.0 b3.1

I just received about 40 errors in the last 24 hours that are all the same...(ok, I counted.  It was 48 errors.  Just wanted to make sure I wasn't exagerating!  Seems I was being conservative.)

What version of the mod are you using, because the line numbers are not the same as in the latest version I have here.
Title: Re: Users Online Today Mod
Post by: Michael Kopka on August 28, 2008, 04:38:55 AM
I want to update to 1.5.3 from 1.5.2 but I can't do this with the packet manager. How can I do it manually? What are the changes between this versions?

I always get the


http://www.autotrac.org/index.php??
8: Undefined index: uot_yesterday
Datei: /is/htdocs/wp1011687_JTLX5UFJV0/www/autotrac/Sources/Subs-MembersOnlineToday.php
Zeile: 135

error.

Or another possible way to fix it?
Title: Re: Users Online Today Mod
Post by: SgtMic on August 28, 2008, 01:44:22 PM
Why can't you uninstall it via package manager? If you are getting errors, then you will have to do a manual uninstall of the files with errors.

Title: Re: Users Online Today Mod
Post by: Michael Kopka on August 28, 2008, 02:19:00 PM
is says it couldnt change the boardindex and boardindex template back.


Title: Re: Users Online Today Mod
Post by: SgtMic on August 28, 2008, 02:50:02 PM
You will then have to manually remove the mod code from those 2 files.
I'm sure there is a quicker way than mine to do it, but this is how I do it.

I open the install.xml file in the mod. That tells me what code gets put where in each file.
I scroll down to the section dealing with the specific file.
I then open that file and find the code and delete it.

Then I go ahead and uninstall the mod via package manager. OK the removal with errors.
Then I upload via ftp, the files I manually removed the code from.

That's it.
Title: Re: Users Online Today Mod
Post by: xXTombstoneXx on August 29, 2008, 05:17:49 PM
Hello All,

I tried searching this topic to find what I was looking for and had no results.  (I couldn't possibly read 50+ pages)

I have installed this mod and it works just fine.  I only have one issue.

I am reasonably new to SMF and php in general, so please ignore my ignorance.  I tried looking at all the possible php files and couldn't find where this wording is found to hopefully edited it:

"Users Logged In Today"

Here is a screenshot of that area on my homepage:

(http://manetta.us/Hope/My-Temp/UsersLoggedInToday.jpg)

This is what I am running:

Forum version: SMF 2.0 Beta 3.1 Public

SMF Default Theme - Core

   Mod Name   Version
1.   Enhance Recent Post   1.0 
2.   Images On Board   1.1 
3.   PM Popup - Uses Active Window   1.3 
4.   Highlight Search Keywords   1.2 
5.   Order Stickied Topics   1.01 
6.   Bookmarks   2.1.2 
7.   Forum Epoch   1.0 
8.   Copy Topics   1.4 
9.   Help Linktree Fix   0.1 
10.   Topic_Locked_Message   2.0 
11.   nneonneo's AJAX ShoutBox   1.21 
12.   Leet Mod   1.0 
13.   YouTube BBCode   2.3 
14.   Super Admin   1.0 
15.   Pm_Informer   1.0 
16.   Users Online Today   1.5.3 
17.   Clickable Avatars   1.0.1 

I am sure you all are aware of this mods readme.txt and it's variables, but just to be clear here is the readme.txt:

Thank you for using the Users Online Today Modification,

This modification allows users to see who logged in during the day.

It is possible to chance a few options for by editing the BoardIndex.php
file. The default options found there, are the following:

$membersOnlineTodayOptions = array(
                'sort' => 'login_time',
                'reverse_sort' => true,
                'period' => 'current_day',
                'canview' => 'registered',
);

The following options are possible:

Option:          sort
Possible Values: 'login_time', 'member_name'
Description:     Sort the user list by either login time or their username

Option:          reverse_sort
Possible Values: true, false
Description:     Sort the user list in ordinary or reverse order

Option:          period
Possible Values: 'current_day', 'last_24_hours', 'last_7_days'
Description:     The period the user list covers


I set the variable to "last_7_days".   I would like to be able to edit whatever template or php file creates this lable in my forum to represent something like "Users Logged In This Week".

(http://manetta.us/Hope/My-Temp/UsersLoggedInToday.jpg)

If anyone can point me in the right direction, I would greatly appreciate it.   ;)

Sincerely,

xXTombstoneXx



Title: Re: Users Online Today Mod
Post by: tk2012 on August 30, 2008, 04:37:41 PM
Quote from: Carceri on August 27, 2008, 03:56:28 AM
Quote from: tk2012 on August 26, 2008, 01:52:28 PM
I'm running v2.0 b3.1

I just received about 40 errors in the last 24 hours that are all the same...(ok, I counted.  It was 48 errors.  Just wanted to make sure I wasn't exagerating!  Seems I was being conservative.)

1.5.2

What version of the mod are you using, because the line numbers are not the same as in the latest version I have here.
Title: Re: Users Online Today Mod
Post by: Carceri on August 30, 2008, 04:52:37 PM
Quote from: tk2012 on August 30, 2008, 04:37:41 PM
1.5.2

Try 1.5.3 then.
Title: Re: Users Online Today Mod
Post by: Exterminator2006 on August 31, 2008, 03:23:15 PM
i use this and perfect working :)

Title: Re: Users Online Today Mod
Post by: Geezer on September 04, 2008, 05:07:15 PM
hi I am running smf1.15 and installed uot 1.4, it installed ok but I am getting this at top of my board (see attachment), any idea why anyone please?
Title: Re: Users Online Today Mod
Post by: Adish - (F.L.A.M.E.R) on September 04, 2008, 05:48:09 PM
Quote from: Geezer on September 04, 2008, 05:07:15 PM
hi I am running smf1.15 and installed uot 1.4, it installed ok but I am getting this at top of my board (see attachment), any idea why anyone please?

Thats cause of the modifications.english.php as those codes are added before ?>

Just modify it and it will be removed.
Title: Re: Users Online Today Mod
Post by: Geezer on September 04, 2008, 06:07:39 PM
thanks flamer  :)
Title: Re: Users Online Today Mod
Post by: Adish - (F.L.A.M.E.R) on September 04, 2008, 06:32:34 PM
anytime.. :D
Title: Re: Users Online Today Mod
Post by: TroyG on September 11, 2008, 11:54:07 PM
Is there a option I can select to not show this feature to regular members, I want the admin's only to be able to see this.

You guys do a great job !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Thanks Troy
Title: Re: Users Online Today Mod
Post by: TheDel on September 12, 2008, 02:21:00 PM
Is there only way I can get this on my stats page?
Ya know next to in Monthly Summary where it says Most Online.
I would want that to say Most Online one time and Most Online Today like it does in the Board Index
Title: Re: Users Online Today Mod
Post by: feelingshehides on September 13, 2008, 12:03:42 PM
Hello, this mod still not compatible with 1.1.6 ?

I tried to install but just gives me an incompatible error :(

so i should go for 2.0 ?
Title: Re: Users Online Today Mod
Post by: Mystiquo on September 14, 2008, 06:20:41 AM
scuse me i want that spider see in user online today it's possible or no? thanks
Title: Re: Users Online Today Mod
Post by: Carceri on September 14, 2008, 06:29:32 PM
Quote from: feelingshehides on September 13, 2008, 12:03:42 PM
Hello, this mod still not compatible with 1.1.6 ?

I tried to install but just gives me an incompatible error :(

I have successfully installed it on 1.1.6. Is this a problem for other people as well?
Title: Re: Users Online Today Mod
Post by: Minare on September 16, 2008, 03:58:20 PM
Is it possible to make users online today collapsible ?
Title: Re: Users Online Today Mod
Post by: Powerbob on September 17, 2008, 08:24:07 AM
Hi Carceri, any chance you will be updating your mod to Beta 4 soon?
Great work by the way :)
Title: Re: Users Online Today Mod
Post by: Carceri on September 17, 2008, 03:05:00 PM
Quote from: Powerbob on September 17, 2008, 08:24:07 AM
Hi Carceri, any chance you will be updating your mod to Beta 4 soon?

Yes,  I would say there is a very good chance of that happening ;)
Title: Re: Users Online Today Mod
Post by: feelingshehides on September 17, 2008, 03:33:18 PM
Yay :D latest version works perfectly on SMF 2.0 Beta 4 Thanks for the update!
Title: Re: Users Online Today Mod
Post by: jeri on September 17, 2008, 06:50:39 PM
How do I remove this from the top of my forum?

$txt['uot_users_online_today']='Users Logged In Today'; $txt['uot_yesterday']='Yesterday at '; $txt['uot_total']='Total'; $txt['uot_visible']='Visible'; $txt['uot_hidden']='Hidden';
Title: Re: Users Online Today Mod
Post by: Adish - (F.L.A.M.E.R) on September 17, 2008, 07:07:50 PM
open Modifications.english.php

put those lines before the ?> and its done..
Title: Re: Users Online Today Mod
Post by: jeri on September 17, 2008, 07:14:04 PM
Thank you
Title: Re: Users Online Today Mod
Post by: TroyG on September 17, 2008, 07:22:16 PM
Quote from: TroyG on September 11, 2008, 11:54:07 PM
Is there a option I can select to not show this feature to regular members, I want the admin's only to be able to see this.

You guys do a great job !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Thanks Troy


bump
Title: Re: Users Online Today Mod
Post by: Adish - (F.L.A.M.E.R) on September 18, 2008, 10:23:10 AM
Quote from: TroyG on September 17, 2008, 07:22:16 PM
Quote from: TroyG on September 11, 2008, 11:54:07 PM
Is there a option I can select to not show this feature to regular members, I want the admin's only to be able to see this.

You guys do a great job !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Thanks Troy


bump

I think its not there.. but you may try to add some more permissions in there.. look:- http://www.simplemachines.org/community/index.php?topic=59366.0
Title: Re: Users Online Today Mod
Post by: xrunner on September 19, 2008, 08:11:29 AM
Quote from: gxpgreg on April 07, 2008, 08:40:15 PM
After running through previous posts I checked my modifications.english.php and the stats.english.php and I have the required lines of code in there that were previously mentioned.  Still just getting the : 7 (: 7, : 0)  without the words Total, Visible and Hidden.

Any ideas would really be appreciated thanks.


I am also having this problem. I am at SMF 1.1.6
Title: Re: Users Online Today Mod
Post by: quiz_modder on September 19, 2008, 05:13:25 PM
Quote from: Carceri on September 14, 2008, 06:29:32 PM
Quote from: feelingshehides on September 13, 2008, 12:03:42 PM
Hello, this mod still not compatible with 1.1.6 ?

I tried to install but just gives me an incompatible error :(

I have successfully installed it on 1.1.6. Is this a problem for other people as well?

Getting the following

1.     Execute Modification     ./Sources/BoardIndex.php     Test failed
2.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test failed
3.    Extract File    ./Sources/Subs-MembersOnlineToday.php    
4.    Extract File    ./Themes/default/languages/MembersOnlineToday.english.php
Title: Re: Users Online Today Mod
Post by: Exterminator2006 on September 19, 2008, 05:15:48 PM
Quote from: Exterminator2006 on August 31, 2008, 03:23:15 PM
i use this and perfect working :)



http://www.simplemachines.org/community/index.php?action=dlattach;topic=55513.0;attach=66773

Too in 1.1.6 Perfect :)
Title: Re: Users Online Today Mod
Post by: quiz_modder on September 19, 2008, 05:59:58 PM
Quote from: Exterminator2006 on September 19, 2008, 05:15:48 PM
Quote from: Exterminator2006 on August 31, 2008, 03:23:15 PM
i use this and perfect working :)



http://www.simplemachines.org/community/index.php?action=dlattach;topic=55513.0;attach=66773

Too in 1.1.6 Perfect :)

Ah, that works
Title: Re: Users Online Today Mod
Post by: W. Riker on September 20, 2008, 05:49:38 AM
How could i set things in way that under statistic who was online today there is also a statistic "Most members ever online in one day was ???, last accomplished on ???"

Help needed.
Title: Re: Users Online Today Mod
Post by: W. Riker on September 21, 2008, 08:57:33 AM
Please! O:)
Title: Re: Users Online Today Mod
Post by: Powerbob on September 21, 2008, 09:07:57 AM
Installed for beta 4, works great. Thanks :)
Title: Re: Users Online Today Mod
Post by: ruipedrola on September 22, 2008, 10:09:40 PM
Hi I have your mod working great in 3 boards. Now i need to change a little bit. I need change the list of last 24 hours users to 48 hours or 72 hours.... how it´s possible make this? Thanks in advance
Title: Re: Users Online Today Mod
Post by: F4r4Zm0In on September 23, 2008, 02:01:20 PM
I am using smf 1.1.6, using "classic" theme which comes with the default smf installation

while installing

Users Online Today       1.5.4

i have got this >>

QuoteType      Action      Description
1.     Execute Modification     ./Sources/BoardIndex.php     Test failed
2.     Execute Modification     ./Themes/classic/BoardIndex.template.php     Test failed
3.     Extract File     ./Sources/Subs-MembersOnlineToday.php   
4.     Extract File     ./Themes/classic/languages/MembersOnlineToday.english.php
Title: Re: Users Online Today Mod
Post by: Carceri on September 23, 2008, 06:40:22 PM
Quote from: ruipedrola on September 22, 2008, 10:09:40 PM
Hi I have your mod working great in 3 boards. Now i need to change a little bit. I need change the list of last 24 hours users to 48 hours or 72 hours.... how it´s possible make this? Thanks in advance

You need to set the variable $midnight to: time() - hours * 3600

Where you find this depends on what version of the mod you are using.
Title: Re: Users Online Today Mod
Post by: Carceri on September 23, 2008, 06:43:59 PM
Quote from: F4r4Zm0In on September 23, 2008, 02:01:20 PM
I am using smf 1.1.6, using "classic" theme which comes with the default smf installation

while installing

Users Online Today       1.5.4

i have got this

1) 1.5.4 is only for SMF 2.0 Beta 4
2) Only the default theme is supported out of the box. Not the classic theme.

For SMF 1.1.6 you might want to try version 1.4.0 of this mod. Still you need to do some manual editing to get it to work with the classic theme. How to do this have been mentioned a few times in this thread if I remember correctly.
Title: Re: Users Online Today Mod
Post by: W. Riker on September 24, 2008, 06:17:30 PM
Quote from: W. Riker on September 20, 2008, 05:49:38 AM
How could i set things in way that under statistic who was online today there is also a statistic "Most members ever online in one day was ???, last accomplished on ???"

Help needed.

Is it possible with this mod at all?
Title: Re: Users Online Today Mod
Post by: Carceri on September 24, 2008, 06:30:45 PM
Quote from: W. Riker on September 24, 2008, 06:17:30 PM
Quote from: W. Riker on September 20, 2008, 05:49:38 AM
How could i set things in way that under statistic who was online today there is also a statistic "Most members ever online in one day was ???, last accomplished on ???"

Help needed.

Is it possible with this mod at all?

No, you will have to code it yourself :)
Title: Re: Users Online Today Mod
Post by: W. Riker on September 25, 2008, 08:25:03 AM
If I knew solve this by myself i wouldn't ask for help. ;)
Title: Re: Users Online Today Mod
Post by: Frozt on October 02, 2008, 07:21:07 AM
I install the version 1.4.0 in smf 1.1.6 but after logoff I can´t see the list of users in "Users Logged In Today", I see only the number of users logged today:
     
Total: xx (Visible: xx, Hidden: xx)
but not the list of name of that users


I search in all the admin settings and I can´t find an option for allow see the users logged today for visitors, I dont know if there are this option or if visitors cant see the list of users. When I login I can see the list of users logged today.

Is there an option for active it to see the list the visitors too?


In the Users Online module I can see the users logged if I loged or not

I have the default theme in the forum

Title: Re: Users Online Today Mod
Post by: esber on October 02, 2008, 12:08:37 PM
UsersOnlineLast24_v1.1.5----ive installed this for 1.1.5 and it installed with no errors but it shows users online in 24 hours twice with 2 indenticle boxes on each other....how can i fix this?
Title: Re: Users Online Today Mod
Post by: Johno69 on October 02, 2008, 08:58:48 PM
Check your template file to see if it added the code twice.
Title: Re: Users Online Today Mod
Post by: binguyendl on October 08, 2008, 06:11:59 AM
Hi all!
I have  downloaded this mod just a moment, and begin to install for my smf forum (version 1.1.6) but It can not execute, so I planed to do manually, but can not find this line:
$context += getMembersOnlineStats($membersOnlineOptions);
in boardindex.php ?

Some one can help?

Many thanks!
Title: Re: Users Online Today Mod
Post by: rarach on October 09, 2008, 10:13:31 AM
I apologize if this has already been asked, but 50 some pages is a lot to sift through.. >.<

I have installed your mod, and it works great on one of the themes I have been tweaking myself for personal use, but it does not seem to work on the default. 
I tried doing the manual install as well, but I can not find $context += getMembersOnlineStats($membersOnlineOptions); in boardindex.php

What can I do?
Title: Re: Users Online Today Mod
Post by: mimo0o on October 10, 2008, 03:10:56 PM
hello rarach
did you choise the 1.4.0 type before submit the manul install..
try to check that
Title: Re: Users Online Today Mod
Post by: rarach on October 10, 2008, 04:30:39 PM
yes, i did.
Title: Re: Users Online Today Mod
Post by: Sabre™ on October 10, 2008, 07:38:06 PM
Quote from: rarach on October 09, 2008, 10:13:31 AM
I apologize if this has already been asked, but 50 some pages is a lot to sift through.. >.<

I have installed your mod, and it works great on one of the themes I have been tweaking myself for personal use, but it does not seem to work on the default. 
I tried doing the manual install as well, but I can not find $context += getMembersOnlineStats($membersOnlineOptions); in boardindex.php

What can I do?

Maybe look at the post above yours, and see that it was already asked, then wait for someone to figure it out.
Repeat posts and people not using the "search function" increase the clutter, increasing the amount of pages ;)
Also mention what smf version you have, custom theme etc etc..
The more info you offer, the easier the problem becomes to fix.

The 1.4.0 version of this mod is for SMF 1.1.6
And the 1.5.4 version is for SMF 2.0 Beta 4
Check you have the correct version, as that line is not installed in SMF 1.1.6
If you have done/checked these, then someone will be through to help. :)
Title: Re: Users Online Today Mod
Post by: rarach on October 10, 2008, 08:32:24 PM
I am running 1.1.6, and downloaded 1.4.0. My problem is different than the person above me, because the mod will execute on my forum, it just will not appear on the default theme. It does work on a different theme though. This is why I posted my specific issue apart from the previous one. It didn't seem like a repeat post, since they said theirs didn't work at all. We are using the helios multicolor theme. The theme that the mod works on is dark day.

Title: Re: Users Online Today Mod
Post by: Sabre™ on October 10, 2008, 11:02:06 PM
Ok mate.
So it is working ok on The Dark Day theme, but not the Helios Multi theme, and also not the SMF Default theme?
Can we have a link to your site please.
Title: Re: Users Online Today Mod
Post by: rarach on October 10, 2008, 11:54:52 PM
sure, officiallost.com
Title: Re: Users Online Today Mod
Post by: Sabre™ on October 11, 2008, 01:03:51 AM
You didnt answer the questions.
Are you calling Helios Your Default theme?
Quote from: rarach on October 10, 2008, 08:32:24 PM
....it just will not appear on the default theme........   
The theme that the mod works on is dark day.
Title: Re: Users Online Today Mod
Post by: rarach on October 11, 2008, 04:30:35 PM
Yes, when I said that we are using helios multicolour, I mean that is the default.

Quote from: rarach on October 10, 2008, 08:32:24 PM
We are using the helios multicolor theme. The theme that the mod works on is dark day.
Title: Re: Users Online Today Mod
Post by: JimM on October 12, 2008, 12:11:28 AM
@rarach - The line you are looking for is not in SMF version 1.1.6.  In fact it is the first edit in the version for 2.0 Beta 4.  If you are doing the manual edits, you will need to make sure you select the 1.4.0 version of the mod and then select 1.1.6 for your version of SMF.


This is a great mod.  I just installed it without error on the SMF default theme and easily added to DilberMC. I did edit out one line because I didn't need the "Visible:  Hidden:" breakdown for the total.
Title: Re: Users Online Today Mod
Post by: rarach on October 12, 2008, 03:52:35 PM
Thanks so much for your help! I finally got it to work after going through and re-doing the manual codes.  ;D
Title: Re: Users Online Today Mod
Post by: JimM on October 12, 2008, 09:11:18 PM
Glad you got it worked out rarach.
Title: Re: Users Online Today Mod
Post by: mcrat on October 14, 2008, 04:32:26 AM
Quote from: Frozt on October 02, 2008, 07:21:07 AM
I install the version 1.4.0 in smf 1.1.6 but after logoff I can´t see the list of users in "Users Logged In Today", I see only the number of users logged today:
     
Total: xx (Visible: xx, Hidden: xx)
but not the list of name of that users


I search in all the admin settings and I can´t find an option for allow see the users logged today for visitors, I dont know if there are this option or if visitors cant see the list of users. When I login I can see the list of users logged today.

Is there an option for active it to see the list the visitors too?


In the Users Online module I can see the users logged if I loged or not

I have the default theme in the forum

I've got this problem as well, (1.4.0 using 1.1.6 SMF) except using modified default theme.

Is this mod supposed to show the amount of members logged in today, as well as their names? Or have I got it confused and it is only supposed to show the number of people logging in that day?

At the moment, like Frozt, I only see

Total: xx (Visible: xx, Hidden: xx)

but not the list of users who have logged in.

I manually copy/pasted the code in, so is there a specific section that I could have messed up? Any help would be great.
Title: Re: Users Online Today Mod
Post by: Sabre™ on October 14, 2008, 05:24:10 AM
Quote from: rarach on October 12, 2008, 03:52:35 PM
Thanks so much for your help! I finally got it to work after going through and re-doing the manual codes.  ;D

Quote from: Sabre™ on October 10, 2008, 07:38:06 PM
Check you have the correct version, as that line is not installed in SMF 1.1.6

*sigh
Title: Re: Users Online Today Mod
Post by: JimM on October 14, 2008, 08:25:59 AM
@mcrat - For guest, they only see the number.  Registered members should see the list of users that have been online today.  Additionally if you mouseover the username, it will display the time that user logged on. 
Title: Re: Users Online Today Mod
Post by: mcrat on October 14, 2008, 09:18:50 AM
That's what I thought was supposed to happen JimM.

But when I log in (as admin) I only see the number of members, and not their names at all
Title: Re: Users Online Today Mod
Post by: JimM on October 14, 2008, 10:37:21 AM
It appears that you missed part of the edits.  Verify that you have made all of the edits for the BoardIndex.template.php file for you theme.  If you copied the box from the mod parser, that edit had a scroll bar and you seem to be missing the last part.
Title: Re: Users Online Today Mod
Post by: mcrat on October 14, 2008, 06:08:42 PM
Ok thanks for that, I'll recheck the edits.

I just wanted to make sure that it wasn't behaving correctly before looking over it all :P

I'll post how I go when I get home and fix it. Cheers.
Title: Re: Users Online Today Mod
Post by: mcrat on October 15, 2008, 07:55:19 AM
Sorry for double post, but it's been a day so shouldn't be too big of a crime.. plus if I edited, JimM wouldn't see the bump and my 'thank you' post :)

I was checking edits, got to BoardIndex.template and noticed that when I had copied the text over, the bottom half of it had lost the formatting and all went on one line. This was a bit of a problem because the start of the line was a comment so it stopped the rest of it from displaying...

I just moved everything to where it should be, and it's all sweet now. Cheers JimM, and Frozt if you haven't figured it out yet, this is probably what has happened with you as well.
Title: Re: Users Online Today Mod
Post by: JimM on October 15, 2008, 08:51:50 AM
@mcrat - Glad you got it worked out.  I've noticed that happening when I manually mod something also and copy the modified lines using the mod parser.  I've begun just doing one line at a time which is probably a better way in the long run.
Title: Re: Users Online Today Mod
Post by: Nibogo on October 23, 2008, 09:48:00 PM
Spanish Translation of v1.5.7
Title: Re: Users Online Today Mod
Post by: TroyG on October 25, 2008, 12:18:07 PM
OK every thing works great on my default theme.
On my SMF Gunge theme I am getting a error that I just can not figure out. The mod does show up and looks like everything is working except for the error.

I am running 1.1.6 and my download was 1.4.0

Here is the error I am getting

QuoteToday at 11:06:50 AM 
72.34.188.13     cf25edd15d333ba502f6d46ce19ef1cb 
http://www.oakbendnevada.com/forum/index.php 
8: Undefined index: uot_users_online_today
File: /home/content/o/a/k/oakbendnevada/html/forum/Themes/SMF_Grunge/BoardIndex.template.php (main sub template - eval?)
Line: 443

   Troy & Kristi   Today at 11:06:50 AM 
72.34.188.13     cf25edd15d333ba502f6d46ce19ef1cb 
http://www.oakbendnevada.com/forum/index.php 
8: Undefined index: uot_users_online_today
File: /home/content/o/a/k/oakbendnevada/html/forum/Themes/SMF_Grunge/BoardIndex.template.php (main sub template - eval?)
Line: 440


I have attached my BoardIndex.template.php

This is driving me crazy and I need someones help PLEASEEEEEEEEEEE.

Thanks in advance
Title: Re: Users Online Today Mod
Post by: TroyG on October 26, 2008, 10:35:11 AM
Found and fixed
Title: Re: Users Online Today Mod
Post by: DirtRider on October 28, 2008, 10:38:09 AM
Nope I cannot get this mod to work

SMF 1.1.6
Users_Online_Today_1.5.4.zip

I have added the two files as instructed
I have added the code to BoardIndex.template.php
However I cannot find where I need to add the code to ./Sources/BoardIndex.php

As below  :'(

Find:

// If they are logged in, but statistical information is off... show a personal message bar.

and replace with

// Users online today
echo '
<div class="infocenter_section">
<h4 class="headerpadding titlebg">', $txt['uot_users_online_today'], '</h4>
<div class="windowbg">
<p class="section">
<img src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['uot_users_online_today'], '" />
</p>
<div class="windowbg2 sectionbody">
<div class="smalltext">';
echo
$txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';

if ($context['viewing_allowed'])
echo
' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_users_hidden_today']), ', ', $txt['uot_hidden'], ': ', $context['num_users_hidden_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && $context['viewing_allowed'])
{
echo          '<br />', implode(', ', $context['list_users_online_today']);

// Showing membergroups?
if (!empty($settings['show_group_key']) && !empty($context['membergroups']))
echo          '<br />[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']';
}
echo '
</div>
</div>
</div>
</div>';





I have added my boardindex.php if someone would be so kind as to have a look at this for me  ;D
Title: Re: Users Online Today Mod
Post by: JimM on October 28, 2008, 10:55:37 AM
You are using the wrong file.  This is from the first page of the mod:

1.4.0: SMF 1.1.x
1.5.4: SMF 2.0 Beta 4

You should be installing 1.4.0, not 1.5.4.
Title: Re: Users Online Today Mod
Post by: TroyG on October 28, 2008, 10:56:21 AM
Jim you beat me to it.
Title: Re: Users Online Today Mod
Post by: DirtRider on October 28, 2008, 11:44:05 AM
Ok now using 1.4.0: SMF 1.1.x I get the following
Title: Re: Users Online Today Mod
Post by: JimM on October 28, 2008, 02:01:25 PM
That's what a guest would see.  A registered member would see a list of members that have logged in.
Title: Re: Users Online Today Mod
Post by: DirtRider on October 29, 2008, 02:39:36 AM
Yes I know but I got it working it was the theme that had it's own BoardIndex.template and did not use the default one
Title: Re: Users Online Today Mod
Post by: psynx on November 01, 2008, 07:05:44 AM
hello,

i like this mod and i want it in my dilber mc theme to work too.

i tried installing it but i got test failed error, please tell me what to edit if this mod is possible in my current theme. i tried the manual edit but sad to say i dont have a boardindex.php file in my theme.  thanks.

i have attached the errors.


Title: Re: Users Online Today Mod
Post by: DartaWeb on November 09, 2008, 10:14:29 AM
I have installed USERS ONLINE TODAY MOD and I would like that users not logged cannot see the list. Can you help me with code addiction?
Title: Re: Users Online Today Mod
Post by: Adish - (F.L.A.M.E.R) on November 09, 2008, 10:19:07 AM
@ psynx
Which package are you using, go on the download page, choose the SMF version for the pack you are using, and then check the manual edits in there.

@DartaWeb 
It is by default that the guests cannot see it. Its only the logged in users.
Title: Re: Users Online Today Mod
Post by: DartaWeb on November 09, 2008, 10:29:24 AM
Quote from: F.L.A.M.E.R on November 09, 2008, 10:19:07 AM


@DartaWeb 
It is by default that the guests cannot see it. Its only the logged in users.
thank you for the fast reply!
look at this: http://www.grilliromani.it/forum! online user are shown to visitors! :-(
Title: Re: Users Online Today Mod
Post by: Adish - (F.L.A.M.E.R) on November 09, 2008, 10:32:40 AM
Can you tell me which language is that, i am trying to translate the page to help you out. :)
Title: Re: Users Online Today Mod
Post by: DartaWeb on November 09, 2008, 10:42:06 AM
Quote from: F.L.A.M.E.R on November 09, 2008, 10:32:40 AM
Can you tell me which language is that, i am trying to translate the page to help you out. :)

italian! :-)
Title: Re: Users Online Today Mod
Post by: DartaWeb on November 09, 2008, 10:51:11 AM
Quote from: F.L.A.M.E.R on November 09, 2008, 10:32:40 AM
Can you tell me which language is that, i am trying to translate the page to help you out. :)

anyway I solved the problem here http://www.simplemachines.org/community/index.php?topic=273288.msg1789901#msg1789901

anyway if you find the code to modify only User Online Today it could be useful to leave some information on the info center without hidding all! ;-)
Title: Re: Users Online Today Mod
Post by: funcouldron on November 11, 2008, 05:43:37 AM
i have installed it on my forum

www.funcouldron.co.cc

and it got installed successfuly but its not worknig .. y?
Title: Re: Users Online Today Mod
Post by: psynx on November 12, 2008, 07:22:50 AM
Quote from: F.L.A.M.E.R on November 09, 2008, 10:19:07 AM
@ psynx
Which package are you using, go on the download page, choose the SMF version for the pack you are using, and then check the manual edits in there.

i have solved it. thanks.
Title: Re: Users Online Today Mod
Post by: happyfeet on November 12, 2008, 04:56:00 PM
Is there a way to adapt this mod so that the logged in today stats could be displayed in a php block for Tinyportal 0.98? What code snippet would be included in the php block?
Title: Re: Users Online Today Mod
Post by: psynx on November 13, 2008, 01:13:30 AM
hello,

i have installed this mod but why is it only tells the number of members who are logged in for today? their names are not going to be listed? i want their names to be listed too.

(http://d.imagehost.org/0510/untitled_9.jpg)

Title: Re: Users Online Today Mod
Post by: JimM on November 13, 2008, 08:10:33 AM
That is what a guest sees.  If a registered member logs in, they will see the names.  At least that is what the default installation does.
Title: Re: Users Online Today Mod
Post by: psynx on November 13, 2008, 10:22:46 AM
@JimM

no. i am logged in and i see only numbers not the names. i am using dilber mc.
Title: Re: Users Online Today Mod
Post by: JimM on November 13, 2008, 11:35:40 AM
Recheck all your edits in your BoardIndex.template.php file.  I also use the dilbermc theme and that is the only file you will need to edit if you already installed it on the default.

Also two pages back in this topic, here is someone that had the exact problem.

http://www.simplemachines.org/community/index.php?topic=55513.msg1751834#msg1751834 (http://www.simplemachines.org/community/index.php?topic=55513.msg1751834#msg1751834)
Title: Re: Users Online Today Mod
Post by: funcouldron on November 13, 2008, 12:37:02 PM
it is not worknig on my board

funcouldron.co.cc
Title: Re: Users Online Today Mod
Post by: psynx on November 13, 2008, 02:56:36 PM
@JimM

i have fixed it. but one more thing, how do i put it under 'user's online' or right after it? it is showing above the 'recent posts' look at my attached image. i tried editing it but the names and texts will mix inside the user's online' section. i don't know the right code to modify it  ::) im not really good in coding.

(http://d.imagehost.org/0714/untitled_16.jpg)
Title: Re: Users Online Today Mod
Post by: JimM on November 13, 2008, 03:18:01 PM
It looks like you didn't find the right spot in your BoardIndex.template.php file.  Sometimes when you search for the exact match to make the edits, they are hard to find.

In the dilbermc BoardIndex.template.php, look for "most_online_ever" and that will get you to the right spot to add the code.  Take a look at the parsed edits on the mod page for the exact location. 

If you have a problem finding it, you can attach your BoardIndex.template.php file to a post and I'll edit it for you.
Title: Re: Users Online Today Mod
Post by: psynx on November 13, 2008, 03:56:51 PM
thanks a lot. here is my boardIndext.template from my dilber theme
Title: Re: Users Online Today Mod
Post by: JimM on November 13, 2008, 04:30:56 PM
Ok, try this one.  You had the edits at the right place, however you had copied the edits for the 1.5.4 version instead of the 1.4.0.
Title: Re: Users Online Today Mod
Post by: psynx on November 13, 2008, 04:49:41 PM
oh great! haha. thank you so much JimM.
Title: Re: Users Online Today Mod
Post by: funcouldron on November 14, 2008, 02:27:05 AM
reply plz,,waiting
Title: Re: Users Online Today Mod
Post by: JimM on November 14, 2008, 08:27:10 AM
@funcouldron - "It's not working on my board" sure doesn't give us much to work with in order to help you.  You will have to provide a few more details.

How do I ask support questions the smart way? (http://docs.simplemachines.org/index.php?topic=494)
Title: Re: Users Online Today Mod
Post by: funcouldron on November 14, 2008, 08:48:41 AM
actuly i installed mod on my forum
i m using smf2.0b4 and it got installed successfully ,, but i can not see the results
Title: Re: Users Online Today Mod
Post by: JimM on November 14, 2008, 09:51:21 AM
Did you do the manual edits that are normally required for a custom theme?  Can you change to the default theme and see the results?  Get it working on the default and it's usually pretty easy to get it on the custom theme then.
Title: Re: Users Online Today Mod
Post by: funcouldron on November 14, 2008, 01:07:34 PM
yeh owrknig in default theme
so wht to do ?
Title: Re: Users Online Today Mod
Post by: JimM on November 14, 2008, 01:11:11 PM
You will need to do the manual edits in your themes BoardIndex.template.php file.  Use the mod parser on the mod site to see what and where to add it.
Title: Re: Users Online Today Mod
Post by: funcouldron on November 15, 2008, 01:30:39 AM
i have attched the file..check it ...plz
Title: Re: Users Online Today Mod
Post by: JimM on November 15, 2008, 02:10:11 AM
Ok here you go.  This should work just fine.
Title: Re: Users Online Today Mod
Post by: funcouldron on November 15, 2008, 03:26:19 AM
gr8,,, worknig fine...can you also add the count of guest visited the site,, we can difrentiate guest on the basis of ip ,,if you can do that then it will be gr8
Title: Re: Users Online Today Mod
Post by: darkon on November 16, 2008, 09:17:11 AM
I just wanted to install this mod, when i found out somethings missing...

In the install-instructions it says:
QuoteMove the included file "Subs-MembersOnlineToday.php" to "./Sources".
Move the included file "MembersOnlineToday.english.php" to "./Themes/default/languages".

But the zip-File Users_Online_Today_1.4.0.zip only contains these two files:
Users_Online_Today_Mod.xml
package-info.xml

Am i blind or are the php-files are really missing?
Title: Re: Users Online Today Mod
Post by: darkon on November 17, 2008, 04:53:31 PM
Nobody knows? :(
Title: Re: Users Online Today Mod
Post by: JimM on November 17, 2008, 07:43:18 PM
Those files are not required for 1.1.7 which uses version 1.4.0 of the mod.
Title: Re: Users Online Today Mod
Post by: darkon on November 18, 2008, 06:20:48 AM
Ahhh...

OK, i accidently opened the manual instructions for the 2.0RC4....


Works perfectly now. :D
Title: Re: Users Online Today Mod
Post by: katb on November 22, 2008, 08:43:08 AM
i am using smf  1.1.7 when i try to install package manager it is showing following error

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Type     Action     Description
1.    Execute Modification    ./Sources/BoardIndex.php    Test failed
2.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test failed


after this i tried manual installation i tried to $context += getMembersOnlineStats($membersOnlineOptions); in ./Sources/BoardIndex.php , but i am not able to see this , as per manual installation it is showing add some lines after this variable, but i can't . Any help appreciated . Thanks in advance .
Title: Re: Users Online Today Mod
Post by: JimM on November 22, 2008, 09:23:24 PM
@katb - you are using the wrong file.  Be sure when you use the parser you click the 1.4.0 file for 1.1.7.  If you are seeing those statements you are parsing 1.5.4 which is for 2.0 Beta 4.
Title: Re: Users Online Today Mod
Post by: Final60 on November 24, 2008, 04:19:12 AM
Hey

I've tried editing my custom themes boardindex.template but it doesn't contain the markup that the mod wants to find and then replace.

Quote

Find:

   // Users online today
   echo '
         <div class="infocenter_section">
            <h4 class="headerpadding titlebg">', $txt['uot_users_online_today'], '</h4>
            <div class="windowbg">
               <p class="section">
                  <img src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['uot_users_online_today'], '" />
               </p>
               <div class="windowbg2 sectionbody">
                  <div class="smalltext">';
   echo
                     $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';

                     if ($context['viewing_allowed'])
   echo
                     ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_users_hidden_today']), ', ', $txt['uot_hidden'], ': ', $context['num_users_hidden_today'], ')';

                     // Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
                     if (!empty($context['users_online_today']) && $context['viewing_allowed'])
                     {
   echo          '<br />', implode(', ', $context['list_users_online_today']);

                        // Showing membergroups?
                        if (!empty($settings['show_group_key']) && !empty($context['membergroups']))
   echo          '<br />[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']';
                     }
   echo '
                  </div>
               </div>
            </div>
         </div>';

         // If they are logged in, but statistical information is off... show a personal message bar.


Quote
Replace: // If they are logged in, but statistical information is off... show a personal message bar.



Would someone mind editing the attached custom theme boardindex.template file?

Just to add this mod works perfectly for the default theme!
Title: Re: Users Online Today Mod
Post by: JimM on November 24, 2008, 10:20:41 AM
Here you go, try this.
Title: Re: Users Online Today Mod
Post by: Final60 on November 24, 2008, 10:54:37 AM
Thanks JimM, that worked a treat. you can see it on my forum :)
Title: Re: Users Online Today Mod
Post by: smldmr on November 25, 2008, 09:02:25 AM
is it possible to add the number of daily online users in the site statistics? For example, if a new day is beginning, the number is 0 and i can't see how many people was online yesterday (or any day before).
Title: Re: Users Online Today Mod
Post by: -SyN- on November 25, 2008, 10:00:42 AM
is it possible to be able to view the users online as a guest?
Title: Re: Users Online Today Mod
Post by: JimM on November 25, 2008, 01:48:17 PM
@smldmr - The mod was designed to display users online today.  Maybe the mod author will address that as an option but it is not currently supported. 

@ -SyN- - Try this, in your ./Themes/default/BoardIndex.template.php.  Backup your file before making the changes.

Find
echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
  if (!$context['user']['is_guest'])
     echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';


Remove this line:
if (!$context['user']['is_guest'])
Title: Re: Users Online Today Mod
Post by: -SyN- on November 25, 2008, 07:00:56 PM
OK it went from this;

Total: 18


to this:

Total: 18 (Visible: 17, Hidden: 1)

Is there a way to get the names of the users to show as well?
Title: Re: Users Online Today Mod
Post by: JimM on November 25, 2008, 07:47:20 PM
Ok try this:

Find
// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
   if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
      echo '<br />', implode(', ', $context['list_users_online_today']);


Replace with this:

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
   if !empty($context['users_online_today'])
      echo '<br />', implode(', ', $context['list_users_online_today']);

Title: Re: Users Online Today Mod
Post by: -SyN- on November 25, 2008, 08:06:37 PM
it returned with an error,

QuoteParse error: syntax error, unexpected '!', expecting '(' in .../Themes/XDEquinoxG1/BoardIndex.template.php on line 750

741:       <td class="row111" width="100%">';
742:
743:    echo '
744:          <div class="smalltext">';
745:
746:   echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
747:      echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';
748:
749:    // Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.

750:    if !empty($context['users_online_today'])

751:       echo '<br />', implode(', ', $context['list_users_online_today']);
752: echo '
753:             <br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
754:             <a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
Title: Re: Users Online Today Mod
Post by: JimM on November 25, 2008, 08:17:14 PM
Delete that entire line.  Line 750 was where the check was to see it the user was a guest.
Title: Re: Users Online Today Mod
Post by: -SyN- on November 25, 2008, 08:33:52 PM
You Da Man! ;D
Title: Re: Users Online Today Mod
Post by: Cuko on November 25, 2008, 11:02:16 PM
Quote from: katb on November 22, 2008, 08:43:08 AM
i am using smf  1.1.7 when i try to install package manager it is showing following error

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Type     Action     Description
1.    Execute Modification    ./Sources/BoardIndex.php    Test failed
2.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test failed


after this i tried manual installation i tried to $context += getMembersOnlineStats($membersOnlineOptions); in ./Sources/BoardIndex.php , but i am not able to see this , as per manual installation it is showing add some lines after this variable, but i can't . Any help appreciated . Thanks in advance .

I'm having the same problem.

I know nothing about PHP coding but I've noticed that the line that me and katb are looking for starts with "$context +=" and nowhere in the file can be found code that has "+=" after "$context".

Maybe the tutorial we are using (http://modparser.dev.dansoftaustralia.net/index.php) is outdated and uses some older version of PHP?

As I said I know nothing about PHP.

Any pointers on what should I do?

Where to paste the code?
// Get the user online today list.
require_once($sourcedir . '/Subs-MembersOnlineToday.php');
$membersOnlineTodayOptions = array(
'sort' => 'login_time',
'reverse_sort' => true,
'period' => 'current_day',
'canview' => 'registered',
);
$context += getMembersOnlineTodayStats($membersOnlineTodayOptions);

Or maybe this code doesn't help anymore?

Anyone?
Title: Re: Users Online Today Mod
Post by: JimM on November 25, 2008, 11:30:46 PM
You quoted katb's post, but you didn't see my post right after it?

Quote from: JimM on November 22, 2008, 09:23:24 PM
@katb - you are using the wrong file.  Be sure when you use the parser you click the 1.4.0 file for 1.1.7.  If you are seeing those statements you are parsing 1.5.4 which is for 2.0 Beta 4.

You downloaded or are parsing the wrong file!
Title: Re: Users Online Today Mod
Post by: Cuko on November 25, 2008, 11:51:13 PM
Quote from: JimM on November 25, 2008, 11:30:46 PM
You quoted katb's post, but you didn't see my post right after it?

Quote from: JimM on November 22, 2008, 09:23:24 PM
@katb - you are using the wrong file.  Be sure when you use the parser you click the 1.4.0 file for 1.1.7.  If you are seeing those statements you are parsing 1.5.4 which is for 2.0 Beta 4.

You downloaded or are parsing the wrong file!

To be honest I saw your post after I posted :( Sorry

But a got another problem now...
I did everything as I should and now am getting an error:
Parse error: parse error, unexpected $ in .../Sources/BoardIndex.php on line 610

The 610 line is just the ending of the file (?>)

What went wrong?

Please someone :( My Live forum is now dead :(
Title: Re: Users Online Today Mod
Post by: JimM on November 26, 2008, 12:01:24 AM
Attach you ./Sources/BoardIndex.php file and I will take a quick look at it.
Title: Re: Users Online Today Mod
Post by: Cuko on November 26, 2008, 12:06:21 AM
here it is
Title: Re: Users Online Today Mod
Post by: JimM on November 26, 2008, 12:31:45 AM
I didn't find anything that looks wrong.  I added a blank line in front of the ?> as that was the only difference I could find in your file and mine other than I have a few other mods installed.  Try this file and see if you get anything different.

ETA:  I found the problem.  You left off a closing } on the last line of the edit.  The attached file should work now.
Title: Re: Users Online Today Mod
Post by: Cuko on November 26, 2008, 12:45:48 AM
I solved it :D

When I was coping the code I somehow missed out the list line which was "}".

I added this and the forum is live again :D

Thanks JimM for your replays

The space before ?> doesn't make difference it only shows the error in line 610 or 611.
Title: Re: Users Online Today Mod
Post by: katb on November 27, 2008, 08:51:01 AM
Quote from: JimM on November 22, 2008, 09:23:24 PM
@katb - you are using the wrong file.  Be sure when you use the parser you click the 1.4.0 file for 1.1.7.  If you are seeing those statements you are parsing 1.5.4 which is for 2.0 Beta 4.

Jim i am using 1.1.7 not 2 beta...when i run version check from my admin panel i got following output.

SMF File Your Version Current Version
SMF Package SMF 1.1.7 SMF 1.1.7
Sources 1.1.7 1.1.7
Admin.php 1.1.6 1.1.6
BoardIndex.php 1.1 1.1
Calendar.php 1.1.5 1.1.5
Display.old.php 1.1.4 ??
Display.php 1.1.4 1.1.4
DumpDatabase.php 1.1 1.1
Errors.php 1.1 1.1
Help.php 1.1 1.1
Karma.php 1.1.5 1.1.5
Load.php 1.1.6 1.1.6
LockTopic.php 1.1 1.1
LogInOut.php 1.1.6 1.1.6
ManageAttachments.php 1.1.4 1.1.4
ManageBans.php 1.1 1.1
ManageBoards.php 1.1.2 1.1.2
ManageCalendar.php 1.1 1.1
ManageErrors.php 1.1 1.1
ManageMembergroups.php 1.1.4 1.1.4
ManageMembers.php 1.1.6 1.1.6
ManageNews.php 1.1.5 1.1.5
ManagePermissions.php 1.1.5 1.1.2
ManagePosts.old.php 1.1 ??
ManagePosts.php 1.1 1.1
ManageRegistration.php 1.1.6 1.1.6
ManageSearch.php 1.1.2 1.1.2
ManageServer.php 1.1.5 1.1.5
ManageSmileys.php 1.1.1 1.1.1
Memberlist.php 1.1 1.1
MessageIndex.php 1.1 1.1
ModSettings.php 1.1 1.1
Modlog.php 1.1 1.1
MoveTopic.php 1.1 1.1
News.php 1.1 1.1
Notify.php 1.1 1.1
PackageGet.php 1.1.7 1.1.7
Packages.php 1.1.7 1.1.7
PersonalMessage.php 1.1.6 1.1.6
Poll.php 1.1 1.1
Post.php 1.1.5 1.1.5
Printpage.php 1.1 1.1
Profile.php 1.1.6 1.1.6
QueryString.php 1.1.7 1.1.7
Recent.php 1.1.5 1.1.5
Register.php 1.1.6 1.1.6
Reminder.php 1.1.6 1.1.6
RemoveTopic.php 1.1.5 1.1.5
RepairBoards.php 1.1 1.1
Reports.php 1.1 1.1
SSI.php 1.1.7 1.1.5
Search.php 1.1.5 1.1.5
Security.php 1.1.6 1.1.6
SendTopic.php 1.1 1.1
SplitTopics.php 1.1.6 1.1.6
Stats.php 1.1.6 1.1.6
Subs-Auth.php 1.1.6 1.1.6
Subs-Boards.php 1.1.5 1.1.5
Subs-Charset.php 1.1 1.1
Subs-Compat.php 1.1.6 1.1.6
Subs-Graphics.php 1.1.7 1.1.7
Subs-Members.php 1.1.6 1.1.6
Subs-Package.php 1.1.5 1.1.5
Subs-Post.php 1.1.5 1.1.5
Subs-Sound.php 1.1.6 1.1.6
Subs.php 1.1.6 1.1.6
Themes.php 1.1.7 1.1.7
ViewQuery.php 1.1 1.1
VisualWarning11.php ?? ??
Who.php 1.1 1.1
Default Templates 1.1.7 1.1.7
Admin.template.php 1.1.1 1.1.1
BoardIndex.template.php 1.1 1.1
Calendar.template.php 1.1 1.1
Combat.template.php 1.1 1.1
Display.template.php 1.1 1.1
Errors.template.php 1.1 1.1
Help.template.php 1.1 1.1
Login.template.php 1.1 1.1
ManageAttachments.template.php 1.1 1.1
ManageBans.template.php 1.1 1.1
ManageBoards.template.php 1.1 1.1
ManageCalendar.template.php 1.1 1.1
ManageMembergroups.template.php 1.1 1.1
ManageMembers.template.php 1.1 1.1
ManageNews.template.php 1.1 1.1
ManagePermissions.template.php 1.1 1.1
ManageSearch.template.php 1.1 1.1
ManageSmileys.template.php 1.1 1.1
Memberlist.template.php 1.1 1.1
MessageIndex.template.php 1.1 1.1
Modlog.template.php 1.1 1.1
MoveTopic.template.php 1.1 1.1
Notify.template.php 1.1 1.1
Packages.template.php 1.1.7 1.1.7
PersonalMessage.template.php 1.1 1.1
Poll.template.php 1.1.2 1.1.2
Post.template.php 1.1.5 1.1.5
Printpage.template.php 1.1 1.1
Profile.template.php 1.1.2 1.1.2
Recent.template.php 1.1.5 1.1.5
Register.template.php 1.1.5 1.1.5
Reminder.template.php 1.1 1.1
Reports.template.php 1.1 1.1
Search.template.php 1.1.1 1.1.1
SendTopic.template.php 1.1 1.1
Settings.template.php 1.1 1.1
SplitTopics.template.php 1.1 1.1
Stats.template.php 1.1 1.1
Themes.template.php 1.1 1.1
VisualWarning.template.php ?? ??
Who.template.php 1.1 1.1
Wireless.template.php 1.1 1.1
Xml.template.php 1.1 1.1
index.template.php 1.1.5 1.1.5
Language Files 1.1.5 1.1.5
Title: Re: Users Online Today Mod
Post by: JimM on November 27, 2008, 09:50:48 AM
Quote from: katb on November 22, 2008, 08:43:08 AM
after this i tried manual installation i tried to $context += getMembersOnlineStats($membersOnlineOptions); in ./Sources/BoardIndex.php , but i am not able to see this , as per manual installation it is showing add some lines after this variable, but i can't . Any help appreciated . Thanks in advance .

@ katb - The statement you stated you were looking for but couldn't find is in the version written for 2.0b4, that's why you can't find it in 1.1.7.  The version of the mod that you should be trying to install is 1.4.0.
Title: Re: Users Online Today Mod
Post by: Cerda on November 28, 2008, 09:59:18 PM
Can someone help me get this working with my theme. thanks
Title: Re: Users Online Today Mod
Post by: JimM on November 28, 2008, 10:44:31 PM
Ok try this one and let me know what you it looks like.
Title: Re: Users Online Today Mod
Post by: Cerda on November 28, 2008, 11:05:18 PM
Thanks alot!!!!!!!!!!!  ty  :D


oh and
I got this error now

(http://i432.photobucket.com/albums/qq47/Cerda14/wth-1.jpg)
Title: Re: Users Online Today Mod
Post by: JimM on November 28, 2008, 11:22:03 PM
What error?  A link to your forum would be good as I don't use that theme and need to see if the code is where it should be.  We may have to move it around some.
Title: Re: Users Online Today Mod
Post by: Cerda on November 28, 2008, 11:25:22 PM
http://rune-dayz.com/community/index.php?action=forum
Title: Re: Users Online Today Mod
Post by: JimM on November 28, 2008, 11:32:25 PM
That link takes me to the login page because you obviously don't allow guest.  Try this one and then give me a screenshot of what it looks like, just the info center portion.
Title: Re: Users Online Today Mod
Post by: Cerda on November 28, 2008, 11:37:36 PM
(http://i432.photobucket.com/albums/qq47/Cerda14/wtf.png)
Title: Re: Users Online Today Mod
Post by: JimM on November 28, 2008, 11:49:41 PM
I don't like where that ended up.  Let's try it here.  Should be right above the bar that says "Mark All Messages As Read"
Title: Re: Users Online Today Mod
Post by: Cerda on November 28, 2008, 11:54:37 PM
I got this

(http://i432.photobucket.com/albums/qq47/Cerda14/j-1.jpg)
Title: Re: Users Online Today Mod
Post by: JimM on November 29, 2008, 12:01:32 AM
I moved this one to the end.  It should show the Users Online Today just below the Forum Stats and that should be the last thing in the info center.  Take a screen shot of the entire info center so I can see what it looks like.  If this don't do it you may want to ask in the theme support topic.

Title: Re: Users Online Today Mod
Post by: Cerda on November 29, 2008, 12:04:40 AM
It works!!!!!!!!!!!!   :) Thanks man and do you still want to see the screenshot?
Title: Re: Users Online Today Mod
Post by: JimM on November 29, 2008, 12:07:00 AM
Nope if you are happy with it I am too.  Glad we could get it like you want it!
Title: Re: Users Online Today Mod
Post by: Cerda on November 29, 2008, 12:17:10 AM
thanks for the help most people aren't like this
Title: Re: Users Online Today Mod
Post by: KahneFan on December 04, 2008, 12:08:48 AM
On 2.0b4 it is above stats and (regular) online info. How can I get it below these like it was on 1.1.x?

Board Index (http://www.ipostyoupost.com)
(log in required to see info center)
username: smf
password: smftest
Title: Re: Users Online Today Mod
Post by: JimM on December 04, 2008, 08:20:51 AM
Attach your BoardIndex.template.php file and I will take a look at it today if you want.  The key is the placement of the code in the file and with some themes you may have to experiment.
Title: Re: Users Online Today Mod
Post by: KahneFan on December 04, 2008, 09:40:27 AM
See attached...
Title: Re: Users Online Today Mod
Post by: JimM on December 04, 2008, 04:04:24 PM
Try this, it should be the last thing displayed in the stat center, just under the users online.  This BoardIndex.template.php is 2.0B3 Public.
Title: Re: Users Online Today Mod
Post by: KahneFan on December 04, 2008, 05:46:16 PM
GREAT! Thanks!
Title: Re: Users Online Today Mod
Post by: KahneFan on December 04, 2008, 06:04:58 PM
Oops, I was looking at the regular users online, it's still above the stats.
Title: Re: Users Online Today Mod
Post by: JimM on December 04, 2008, 08:21:27 PM
It's something to do with your theme.  I compared it to the default 2.0B4 and the coding is a bit different.  You may want to contact the theme author.
Title: Re: Users Online Today Mod
Post by: KahneFan on December 04, 2008, 08:22:15 PM
Will do, thanks.
Title: Re: Users Online Today Mod
Post by: KahneFan on December 04, 2008, 09:33:35 PM
Attached is what I came up with to make it work in case it helps anyone else. You can see it running  on My Site (http://ipostyoupost.com/index.php)
Title: Re: Users Online Today Mod
Post by: JimM on December 04, 2008, 09:59:21 PM
Perfect, that looks good.  This is a popular mod so there are quite a few opportunities to help people do the manual edits.
Title: Re: Users Online Today Mod
Post by: KadirX on December 09, 2008, 02:35:14 PM
Okay, I have a problem with this too.
I installed the mod, and it seems it wont work for my theme.

Here is the board.index file.
Title: Re: Users Online Today Mod
Post by: JimM on December 09, 2008, 03:19:51 PM
@KadirX -  Here you go try this.
Title: Re: Users Online Today Mod
Post by: KadirX on December 09, 2008, 05:26:21 PM
Works great :)

Title: Re: Users Online Today Mod
Post by: GMCbris on December 22, 2008, 05:58:40 AM
Hi

is there a way to add all the guests that visit and add to the stats?

Cheers

GMC
Title: Re: Users Online Today Mod
Post by: fajw5 on December 22, 2008, 01:34:04 PM
where to get Subs-MembersOnlineToday.php and MembersOnlineToday.english.php?
After i click download i get instructions how to edit files but i dont get that 2 files i need to upload.

thx
Title: Re: Users Online Today Mod
Post by: JimM on December 22, 2008, 07:06:07 PM
@fajw5 - Those 2 files are included in the 1.5.4 zip which is for 2.0 Beta 4.  If you are running 1.1.7 you need to download and install 1.4.0 and those two files are not required.
Title: Re: Users Online Today Mod
Post by: fajw5 on December 23, 2008, 03:21:14 PM
thx
Title: Re: Users Online Today Mod
Post by: GMCbris on January 01, 2009, 08:05:46 AM
Quote from: GMCbris on December 22, 2008, 05:58:40 AM
Hi

is there a way to add all the guests that visit and add to the stats?

Cheers

GMC
I guess not

Happy New Year one and all
Title: Re: Users Online Today Mod
Post by: KahneFan on January 01, 2009, 11:42:24 AM
Quote from: GMCbris on January 01, 2009, 08:05:46 AM
Quote from: GMCbris on December 22, 2008, 05:58:40 AM
Hi

is there a way to add all the guests that visit and add to the stats?

Cheers

GMC
I guess not

Happy New Year one and all

What do you mean add all the guests? Do you want "Guests ###"? If so, just increase your regualr users online by 1440 minutes (24 hours) and it will retain how many guests AND members have been online all day.

1.1.7
ADMIN --> FEATURES AND OPTIONS --> "User online time threshold": _______

2.0b4
ADMIN --> FEATURES AND OPTIONS --> OPTIONS --> "User online time threshold": ______
Title: Re: Users Online Today Mod
Post by: tigas3000 on January 04, 2009, 12:34:49 PM
Hi. I installed that MOD but it doesn't apear at the end of my forum.
I saw that I should send my BoarIndex that is in my theme and not in the default.

My theme is the ClanWar. I don't know if it is important but my forum is in portuguese utf-8

There it go in attach.

Best regards
Title: Re: Users Online Today Mod
Post by: JimM on January 04, 2009, 06:45:15 PM
@tigas3000 - try this one.
Title: Re: Users Online Today Mod
Post by: tigas3000 on January 05, 2009, 04:26:24 PM
Hello!
Thanks, it worked but there are some problems.
First, the users online appear in the beginning of the center of informations (I think that the english name is this) and I want that appear at the end (after the users online at the moment).

And there are two things that I would want to translate:
"Users Logged In Today"
"(Visible: 140, Hidden: 0)"

There are any way that I can do this?


Best Regards
Title: Re: Users Online Today Mod
Post by: blondeamon on January 07, 2009, 07:55:42 PM
First of all congratulations for the mod , i have been using it for months and its perfect.


But you know what would be even more wonderful and make it 10 times better? If you could store that daily number of members somewhere. The perfect place would be in the stats as an extra column storing the number of members logged every day.

Can that be implemented? It would be awesome as it is actually the number of unique visitors our forums get every day. Let me know if it can be done or not.....many people would want that extra feat but we dont want to be a burden if u are busy.

Friendly , Jim
Title: Re: Users Online Today Mod
Post by: KahneFan on January 07, 2009, 10:42:46 PM
Have you had a look at the [MORE STATS] at the bottom of your page? It will give you the most online for the total day... not an all day total though.

You could also set your ADMIN --> FEATURES AND OPTIONS --> Help     User online time threshold: 1440  - which is 24 hours in minutes. This will display how many guests have visited in the past 24 hours.

I changed this on a forum previously and then went into the language file to change "Users active in the past _____ minutes" to simply read "Users Online:"
Title: Re: Users Online Today Mod
Post by: blondeamon on January 08, 2009, 10:23:33 AM
I am not interested in most online but in the feature "Users logged today" that this mod offers. Most online is the simultaneously logged users and its about 20 whereas the totally logged today is approximately 50 and thats the number i am looking for.

It would be great if there was another column with this number on the stats page , mod-author is it possible?
Title: Re: Users Online Today Mod
Post by: tigas3000 on January 08, 2009, 03:41:11 PM
The ideia of blond looks cool.

But did you see my message?
I asked this:
"First, the users online appear in the beginning of the "center of informations" (I think that the english name is this) and I want that appear at the end (after the users online at the moment).

And there are two things that I would want to translate:
"Users Logged In Today"
"(Visible: 140, Hidden: 0)"

There are any way that I can do this?
"

Well, I ask again, is there any possibility or is it impossible?


Best Regards
Title: Re: Users Online Today Mod
Post by: NHWD on January 11, 2009, 01:06:29 AM
Error in Package Installation

1.     Execute Modification     ./Sources/BoardIndex.php     Test failed
2.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test failed
Title: Re: Users Online Today Mod
Post by: Jed C on January 12, 2009, 04:26:22 PM
hi JimM
running this on local before i put it live
it is working perfect on default theme but not on custom
i cannot figure out were to put the code could you help please

Title: Re: Users Online Today Mod
Post by: JimM on January 12, 2009, 10:31:25 PM
@steve b - You already have some of the code added in that file.  Did you already try it or something?
Title: Re: Users Online Today Mod
Post by: Jed C on January 13, 2009, 01:44:48 AM
oops yes i have tried  :(
Title: Re: Users Online Today Mod
Post by: JimM on January 13, 2009, 01:06:36 PM
I had rather not try to edit a file that you have already edited.  If you still want me to take a look at it I will need an unedited BoardIndex.template.php file from your theme.  Also please provide the theme name.
Title: Re: Users Online Today Mod
Post by: Jed C on January 13, 2009, 03:01:49 PM
ok Jim i understand
it is the only file i have  ::) and it is a custom made theme
no probs i will get it sorted
thank you for looking anyway  8)
Title: Re: Users Online Today Mod
Post by: keng_113 on January 14, 2009, 08:33:11 AM
Hi everyone,

I just want to install this mod but when I tried to install it there was an error in the installation process.

QuoteInstalling this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Sources/BoardIndex.php    Test failed
2.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test failed
3.    Extract File    ./Sources/Subs-MembersOnlineToday.php    
4.    Extract File    ./Themes/default/languages/MembersOnlineToday.english.php    

here's a copy of my BoardIndex.php and BoardIndex.template.php

hope you can help me =) ,Thanks!



Title: Re: Users Online Today Mod
Post by: JimM on January 15, 2009, 09:32:47 PM
@keng_113 - Here you go.  Be sure and make a backup of your current files before using these.  Install the mod even though you have the fails, then replace your files with these that I have already manually installed the mod code.
Title: Re: Users Online Today Mod
Post by: aw06 on January 23, 2009, 10:45:42 AM
Is the latest version 1.5.4 for SMF 2.0 only, or can i use with 1.1.7 as well ???
Title: Re: Users Online Today Mod
Post by: JimM on January 23, 2009, 03:07:17 PM
If you are using this mod with 1.1.7, you want to download 1.4.0.  Version 1.5.4 is only for SMF 2.0.
Title: Re: Users Online Today Mod
Post by: aw06 on January 23, 2009, 03:40:05 PM
Quote from: JimM on January 23, 2009, 03:07:17 PM
If you are using this mod with 1.1.7, you want to download 1.4.0.  Version 1.5.4 is only for SMF 2.0.

kool, thanks .. installed and using 1.4.0
Title: Re: Users Online Today Mod
Post by: Douggy on January 25, 2009, 10:40:49 AM
I am using this theme:

http://custom.simplemachines.org/themes/index.php?lemma=510

How do I modify that theme so this mod works with it?
Title: Re: Users Online Today Mod
Post by: joojoohe on January 27, 2009, 11:13:18 AM
I'm using 1.1.7, and downloaded 1.4.0 .

Now i ever have this message in "who is online", when i check what they doing:


       8: Undefined index: users
File: /srv/www/xxxxx/xxxxxx/httpdocs/Themes/babylon/BoardIndex.template.php (main sub template - eval?)
Linea: 429

HELP!!!!!!!!!!!!
thanks


This is my BoardIndex.template
Title: Re: Users Online Today Mod
Post by: joojoohe on January 27, 2009, 11:14:59 AM
Where is the ERROR??
Title: Re: Users Online Today Mod
Post by: joojoohe on January 27, 2009, 02:23:54 PM
Nobody can help me?
Title: Re: Users Online Today Mod
Post by: aw06 on January 28, 2009, 01:19:20 AM
Is their a log i can see ? would like to see the users online for each day that has passed ?
Title: Re: Users Online Today Mod
Post by: joojoohe on January 28, 2009, 01:16:55 PM
Nobody can help me?
Quote from: aw06 on January 28, 2009, 01:19:20 AM
Is their a log i can see ? would like to see the users online for each day that has passed ?

Sorry, i deleted all the logs!

can u help me with some errors in my BoardIndex.template.php that i attached in my first post?
See up!

thanks
Title: Re: Users Online Today Mod
Post by: aw06 on January 28, 2009, 01:48:51 PM
hmm ,. sorry about the mix up .. my question was with regards to the mod
Title: Re: Users Online Today Mod
Post by: joojoohe on January 28, 2009, 02:15:16 PM
Quote from: aw06 on January 28, 2009, 01:48:51 PM
hmm ,. sorry about the mix up .. my question was with regards to the mod

I have this error in my BoardIndex.template.php (when i go to trace what users are doing, on the users ID in who is online):

File: /srv/www/xxxxxx/xxxxxx/Themes/igoh113/BoardIndex.template.php (main sub template - eval?)
Linea: 429




423 <td class="windowbg2" width="100%">';
424
425 if ($context['show_who'])
426 echo '
427 <a href="', $scripturl, '?action=who">';
428
429 echo$context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];




can somebody tells me what's wrong?
Title: Re: Users Online Today Mod
Post by: joojoohe on January 29, 2009, 06:17:19 AM
 ??? ???

Nobody? :(


There are 2 days i'm waitnig somebody to help. :(

It's very important for me.
Title: Re: Users Online Today Mod
Post by: joojoohe on January 31, 2009, 05:54:53 AM
This is the log of user: marcus

Quote
xx.xx.xxx.xxx       marcus
      8: Undefined index: users
File: /srv/www/xxxxx/xxxxxx/httpdocs/Themes/igoh113/BoardIndex.template.php (main sub template - eval?)
Linea: 429
   today at 11:45:37
xx.xx.xxx.xxx    marcus
   8: Undefined index: users
File: /srv/www/xxxxx/xxxxxx/httpdocs/Themes/igoh113/BoardIndex.template.php (main sub template - eval?)
Linea: 429
   today at 11:44:04
xx.xx.xxx.xxx    marcus
   8: Undefined index: users
File: /srv/www/xxxxx/xxxxxx/httpdocs/Themes/igoh113/BoardIndex.template.php (main sub template - eval?)
Linea: 429
   today at 09:32:57
xx.xx.xxx.xxx    marcus
   8: Undefined index: users
File: /srv/www/xxxxx/xxxxxx/httpdocs/Themes/igoh113/BoardIndex.template.php (main sub template - eval?)
Linea: 429
   today at 09:32:34
xx.xx.xxx.xxx    marcus
   8: Undefined index: users
File: /srv/www/xxxxx/xxxxxx/httpdocs/Themes/igoh113/BoardIndex.template.php (main sub template - eval?)
Linea: 429
   today at 09:15:18
xx.xx.xxx.xxx    marcus
   8: Undefined index: users
File: /srv/www/xxxxx/xxxxxx/httpdocs/Themes/igoh113/BoardIndex.template.php (main sub template - eval?)
Linea: 429
   today at 08:51:40
xx.xx.xxx.xxx    marcus
   8: Undefined index: users
File: /srv/www/xxxxx/xxxxxx/httpdocs/Themes/igoh113/BoardIndex.template.php (main sub template - eval?)
Linea: 429
   today at 08:51:11
xx.xx.xxx.xxx    marcus
   8: Undefined index: users
File: /srv/www/xxxxx/xxxxxx/httpdocs/Themes/igoh113/BoardIndex.template.php (main sub template - eval?)
Linea: 429
   today at 08:43:54
xx.xx.xxx.xxx    marcus
   8: Undefined index: users
File: /srv/www/xxxxx/xxxxxx/httpdocs/Themes/igoh113/BoardIndex.template.php (main sub template - eval?)
Linea: 429
   today at 08:43:38
xx.xx.xxx.xxx    marcus
   8: Undefined index: users
File: /srv/www/xxxxx/xxxxxx/httpdocs/Themes/igoh113/BoardIndex.template.php (main sub template - eval?)
Linea: 429
   today at 08:39:26
xx.xx.xxx.xxx    marcus
   8: Undefined index: users
File: /srv/www/xxxxx/xxxxxx/httpdocs/Themes/igoh113/BoardIndex.template.php (main sub template - eval?)
Linea: 429
   today at 08:37:55
xx.xx.xxx.xxx    marcus
   8: Undefined index: users
File: /srv/www/xxxxx/xxxxxx/httpdocs/Themes/igoh113/BoardIndex.template.php (main sub template - eval?)
Linea: 429
   today at 08:32:13
xx.xx.xxx.xxx    marcus
   8: Undefined index: users
File: /srv/www/xxxxx/xxxxxx/httpdocs/Themes/igoh113/BoardIndex.template.php (main sub template - eval?)
Linea: 429
   today at 08:27:54
xx.xx.xxx.xxx    marcus
   8: Undefined index: users
File: /srv/www/xxxxx/xxxxxx/httpdocs/Themes/igoh113/BoardIndex.template.php (main sub template - eval?)
Linea: 429
   today at 08:21:55
xx.xx.xxx.xxx    marcus
   8: Undefined index: users
File: /srv/www/xxxxx/xxxxxx/httpdocs/Themes/igoh113/BoardIndex.template.php (main sub template - eval?)
Linea: 429
   today at 08:21:32
xx.xx.xxx.xxx    marcus
   8: Undefined index: users
File: /srv/www/xxxxx/xxxxxx/httpdocs/Themes/igoh113/BoardIndex.template.php (main sub template - eval?)
Linea: 429
   today at 08:09:41
xx.xx.xxx.xxx    marcus
   8: Undefined index: users
File: /srv/www/xxxxx/xxxxxx/httpdocs/Themes/igoh113/BoardIndex.template.php (main sub template - eval?)
Linea: 429
   today at 08:08:46
xx.xx.xxx.xxx    marcus
   8: Undefined index: users
File: /srv/www/xxxxx/xxxxxx/httpdocs/Themes/igoh113/BoardIndex.template.php (main sub template - eval?)
Linea: 429
   today at 08:08:17
xx.xx.xxx.xxx    marcus
   8: Undefined index: users
File: /srv/www/xxxxx/xxxxxx/httpdocs/Themes/igoh113/BoardIndex.template.php (main sub template - eval?)
Linea: 429
   today at 07:50:25
xx.xx.xxx.xxx    marcus
   8: Undefined index: users
File: /srv/www/xxxxx/xxxxxx/httpdocs/Themes/igoh113/BoardIndex.template.php (main sub template - eval?)
Linea: 429


I send only an example of log, because all logs are same this one:


"   8: Undefined index: users
File: /srv/www/xxxxx/xxxxxx/httpdocs/Themes/igoh113/BoardIndex.template.php (main sub template - eval?)
Linea: 429[/quote]"
Title: Re: Users Online Today Mod
Post by: joojoohe on February 02, 2009, 01:09:59 PM
WHY nobody reply to me??   Am i invisible?

??? ??? :o
Title: Re: Users Online Today Mod
Post by: mcrat on February 03, 2009, 10:07:49 PM
Quote from: blondeamon on January 07, 2009, 07:55:42 PM
First of all congratulations for the mod , i have been using it for months and its perfect.


But you know what would be even more wonderful and make it 10 times better? If you could store that daily number of members somewhere. The perfect place would be in the stats as an extra column storing the number of members logged every day.

Can that be implemented? It would be awesome as it is actually the number of unique visitors our forums get every day. Let me know if it can be done or not.....many people would want that extra feat but we dont want to be a burden if u are busy.

Friendly , Jim

I too would love to see something like this added to the mod. Also for it show the highest number ever on the front page, just like it does for Most Online Today.

ie Users Logged in Today: 22. Most Users Logged in Ever: 53 (January 09, 2009)

If any keen developers want to step up to the plate...  ;)
Title: Re: Users Online Today Mod
Post by: Carceri on February 05, 2009, 10:49:36 AM
Quote from: mcrat on February 03, 2009, 10:07:49 PM
Quote from: blondeamon on January 07, 2009, 07:55:42 PM
First of all congratulations for the mod , i have been using it for months and its perfect.

But you know what would be even more wonderful and make it 10 times better? If you could store that daily number of members somewhere. The perfect place would be in the stats as an extra column storing the number of members logged every day.

Can that be implemented? It would be awesome as it is actually the number of unique visitors our forums get every day. Let me know if it can be done or not.....many people would want that extra feat but we dont want to be a burden if u are busy.

Friendly , Jim

I too would love to see something like this added to the mod. Also for it show the highest number ever on the front page, just like it does for Most Online Today.

ie Users Logged in Today: 22. Most Users Logged in Ever: 53 (January 09, 2009)

If any keen developers want to step up to the plate...  ;)

It is certainly possible to do, but I would need to spend a little time, learning how SMF works internally with these things. Unfortunately I currently don't have time for my hobby projects, so no new features are planned for the time being.

If someone wants to add this feature they are more than welcome to give me the code, and I will integrate it into this mod :)
Title: Re: Users Online Today Mod
Post by: ChaosEnergy on February 07, 2009, 04:57:36 AM
Yes, it would really be fine, to not loose those daily values
In "more stats" you can see all the daily values, but the really interesting value how much have been online today...gets lossed after 24h...
cant be that hard to save this value in a column and if before midnight, and value increased, to increase it in mysql, isnt it?
Title: Re: Users Online Today Mod
Post by: Roman on February 07, 2009, 07:25:41 AM
Is there a new version in the pipeline?

Compatible to 2.0 RC1

Thanks

Roman
Title: Re: Users Online Today Mod
Post by: Carceri on February 08, 2009, 05:31:23 PM
Quote from: Roman on February 07, 2009, 07:25:41 AM
Is there a new version in the pipeline?

Compatible to 2.0 RC1

Thanks

Roman

The latest version works fine with 2.0 RC1 (at least here on my computer)
Title: Re: Users Online Today Mod
Post by: SgtMic on February 09, 2009, 12:06:40 AM
It works, but you will need to manually change the code in themes/default/board.template.
Title: Re: Users Online Today Mod
Post by: Maxtor on February 09, 2009, 03:36:47 AM
here is mine boardindex. can you fix it?? thnks!!
Title: Re: Users Online Today Mod
Post by: Roman on February 09, 2009, 04:20:00 AM
Quote from: SgtMic on February 09, 2009, 12:06:40 AM
It works, but you will need to manually change the code in themes/default/board.template.

Could you post the code please?

Just in case


Thanks
Title: Re: Users Online Today Mod
Post by: gregahpoa on February 11, 2009, 10:08:26 AM
Updated my board to 1.1.18

Installed the users online today mod 1.5.4 and took a few recent files posted here (boardindex.php and boardindex.template.php). At the bottom of the page the Users Online Today banner is missing and then I just get   :4 (:4, :0) displayed below that, obviously missing the usernames.

Anyone have an idea?  Thanks...
Title: Re: Users Online Today Mod
Post by: JimM on February 11, 2009, 11:36:39 AM
@gregahpoa - You need to install 1.4.0.  From the mod information on 1st screen:

Quote1.4.0: SMF 1.1.x
1.5.4: SMF 2.0 series
Title: Re: Users Online Today Mod
Post by: gregahpoa on February 11, 2009, 12:24:46 PM
JimM,

From the Users Online Today mod page under the SMF Mod Site, it states...

Latest Version: 1.5.4
Compatible With: 1.1.5, 1.1.6, 1.1.8, 2.0 Beta 4, 2.0 RC1

It was updated just a couple days ago.
Title: Re: Users Online Today Mod
Post by: gregahpoa on February 11, 2009, 02:33:50 PM
Quote from: gregahpoa on February 11, 2009, 12:24:46 PM
JimM,

From the Users Online Today mod page under the SMF Mod Site, it states...

Latest Version: 1.5.4
Compatible With: 1.1.5, 1.1.6, 1.1.8, 2.0 Beta 4, 2.0 RC1

It was updated just a couple days ago.

Okay, that's just some bad formatting. When looking at the page is appears that everything listed below the latest version is compatible with that version. I took your suggestion Jim and installed 1.4 and it works fine. Thanks mate...
Title: Re: Users Online Today Mod
Post by: slyone on February 12, 2009, 02:29:21 PM
My hat is off to this mod and its developer, I have used it for awhile and love it!

I have come across one small issue: after installation it seems to work fine on the default theme and even installed on my custom theme (love the new option in 2.0 RC1) only problem is the location of it in the custom theme. In the default it is at the bottom of the info center but on the custom theme it is right above "recent posts"

How do I move this to the same position as the default?
Does it require a code rewrite, which I assume it does?
And can this be spelled out to a novice like me?

Any help would be greatly appreciated!!

I am using 2.0RC1 with the BlackRain V2 theme here (http://custom.simplemachines.org/themes/index.php?lemma=348)

Title: Re: Users Online Today Mod
Post by: tom333 on February 13, 2009, 12:25:53 AM
Quote from: psynx on November 13, 2008, 01:13:30 AM
hello,

i have installed this mod but why is it only tells the number of members who are logged in for today? their names are not going to be listed? i want their names to be listed too.

(http://d.imagehost.org/0510/untitled_9.jpg)
I have same problem like psynx on my theme (ferry theme), and on default theme the same problem.
Whay?
I attached for both thme boardindex.php
thanx in advance.
p.s.-boardindex is defoult theme, boardindex1 is my theme (ferry tema)
Title: Re: Users Online Today Mod
Post by: papabill on February 19, 2009, 10:26:22 AM
I'm getting this error:

!!Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Type Action Description
1. Execute Modification ./Sources/BoardIndex.php Test failed
2. Execute Modification ./Themes/default/BoardIndex.template.php Test failed


I'm running 1.1.8
Title: Re: Users Online Today Mod
Post by: HR on February 20, 2009, 09:25:05 AM
That would be because your trying to instal 5.2 which is 2x series compatible. Try 4.0
Title: Re: Users Online Today Mod
Post by: LadyC on February 20, 2009, 07:05:32 PM
i made a real booboo... i won't go into all the gory details but suffice it to say i had to reinstall my board. (2RC1). as a result, when i reinstalled, the who's online today area was there, but blank. so i reinstalled that mod, and now it's showing up twice... one is blank, one is not.

i've looked in phpmyadmin to find the duplicated tables but i'm not sure what tables i'm looking for. can someone please tell me what i need to do to get the empty info area out?
Title: Re: Users Online Today Mod
Post by: papabill on February 20, 2009, 07:09:59 PM
I had an incident like that with another mod, and I just deleted the mod and everything was fine after I reinstalled it ONE TIME.

I'm sure you have already tried that, but if not, it doesn't hurt to try.
Title: Re: Users Online Today Mod
Post by: LadyC on February 20, 2009, 07:32:44 PM
ok, i'll give the gory details. it's terribly embarrassing. just when my forum was almost exactly how i wanted it too.

see, i'd originally had 2 beta 4 installed in the root directory. but i did a fresh install of rc1 in the forum directory. well, i got home from having lunch with friends and thought "this is just too confusing" so in my ftp program, i selected all the files and folders and started deleting them, unaware that i was in the forum directory and not the root!

so see, once i reinstalled the forum (leaving the database intact), i had no mods in the package manager to delete. hence, my problem.... it's somewhere in the database, and i can't find it!

(boy, is my face red for having just explained how i made the most horrific mistake in my life!)
Title: Re: Users Online Today Mod
Post by: LadyC on February 20, 2009, 11:55:29 PM
found it!!! it wasn't in the database at all, it was in the board.index.template file! (i think that's the one). anyway, i found it and fixed it!
Title: Re: Users Online Today Mod
Post by: Paperclip on February 21, 2009, 11:43:23 AM
Quote from: tom333 on February 13, 2009, 12:25:53 AM
Quote from: psynx on November 13, 2008, 01:13:30 AM
hello,

i have installed this mod but why is it only tells the number of members who are logged in for today? their names are not going to be listed? i want their names to be listed too.

(http://d.imagehost.org/0510/untitled_9.jpg)
I have same problem like psynx on my theme (ferry theme), and on default theme the same problem.
Whay?
I attached for both thme boardindex.php
thanx in advance.
p.s.-boardindex is defoult theme, boardindex1 is my theme (ferry tema)

There are two files missing in the zip:
"Subs-MembersOnlineToday.php"
"MembersOnlineToday.english.php"
Title: Re: Users Online Today Mod
Post by: allymcbeal on February 23, 2009, 07:38:18 PM
Hi, I change my theme and now I have some problem.
I put this code
if ((!$context['user']['is_guest']) && $context['user']['is_logged'])

In boardindex.template.php first of the mod, and now when I'm not logged I see the write TOTAL:1 in my forum but I can't understand why, can I fix it?

This is my code:

<?php
// Version: 1.1; BoardIndex

function template_main()
{
global $context$settings$options$txt$scripturl$modSettings;

// Show some statistics next to the link tree if SP1 info is off.
echo '
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td valign="bottom">'
theme_linktree(), '</td>
<td align="right">'
;
if (!$settings['show_sp1_info'])
echo '
'
$txt[19], ': '$context['common_stats']['total_members'], ' &nbsp;&#38;#8226;&nbsp; '$txt[95], ': '$context['common_stats']['total_posts'], ' &nbsp;&#38;#8226;&nbsp; '$txt[64], ': '$context['common_stats']['total_topics'], '
'
, ($settings['show_latest_member'] ? '<br />' $txt[201] . ' <b>' $context['common_stats']['latest_member']['link'] . '</b>' $txt[581] : '');
echo '
</td>
</tr>
</table>'
;

// Show the news fader?  (assuming there are things to show...)
if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
{
echo '
<table border="0" width="100%" class="tborder" cellspacing="' 
, ($context['browser']['is_ie'] || $context['browser']['is_opera6']) ? '1' '0' '" cellpadding="4" style="margin-bottom: 2ex;">
<tr>
<td class="catbg"> &nbsp;'
$txt[102], '</td>
</tr>
<tr>
<td valign="middle" align="center" height="60">'
;

// Prepare all the javascript settings.
echo '
<div id="smfFadeScroller" style="width: 90%; padding: 2px;"><b>'
$context['news_lines'][0], '</b></div>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
// The fading delay (in ms.)
var smfFadeDelay = '
, empty($settings['newsfader_time']) ? 5000 $settings['newsfader_time'], ';
// Fade from... what text color? To which background color?
var smfFadeFrom = {"r": 0, "g": 0, "b": 0}, smfFadeTo = {"r": 255, "g": 255, "b": 255};
// Surround each item with... anything special?
var smfFadeBefore = "<b>", smfFadeAfter = "</b>";

var foreColor, backEl, backColor;

if (typeof(document.getElementById(\'smfFadeScroller\').currentStyle) != "undefined")
{
foreColor = document.getElementById(\'smfFadeScroller\').currentStyle.color.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

backEl = document.getElementById(\'smfFadeScroller\');
while (backEl.currentStyle.backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined")
backEl = backEl.parentNode;

backColor = backEl.currentStyle.backgroundColor.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
smfFadeTo = {"r": eval("0x" + backColor[1]), "g": eval("0x" + backColor[2]), "b": eval("0x" + backColor[3])};
}
else if (typeof(window.opera) == "undefined" && typeof(document.defaultView) != "undefined")
{
foreColor = document.defaultView.getComputedStyle(document.getElementById(\'smfFadeScroller\'), null).color.match(/rgb\((\d+), (\d+), (\d+)\)/);
smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

backEl = document.getElementById(\'smfFadeScroller\');
while (document.defaultView.getComputedStyle(backEl, null).backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined" && typeof(backEl.parentNode.tagName) != "undefined")
backEl = backEl.parentNode;

backColor = document.defaultView.getComputedStyle(backEl, null).backgroundColor.match(/rgb\((\d+), (\d+), (\d+)\)/);
smfFadeTo = {"r": parseInt(backColor[1]), "g": parseInt(backColor[2]), "b": parseInt(backColor[3])};
}

// List all the lines of the news for display.
var smfFadeContent = new Array(
"'
implode('",
"'
$context['fader_news_lines']), '"
);
// ]]></script>
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/fader.js"></script>
</td>
</tr>
</table>'
;
}

/* Each category in categories is made up of:
id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down image),
and boards. (see below.) */
$first true;
foreach ($context['categories'] as $category)
{
echo '
<div class="tborder" style="margin-top: ' 
$first '0;' '1ex;' '' $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'width: 100%;' '''">
<div class="catbg'
$category['new'] ? '2' '''" style="padding: 5px 5px 5px 10px;">';
$first false;

// If this category even can collapse, show a link to collapse it.
if ($category['can_collapse'])
echo '
<a href="'
$category['collapse_href'], '" class="collapse_expand">'$category['collapse_image'], '</a>';

echo '
'
$category['link'], '
</div>'
;

// Assuming the category hasn't been collapsed...
if (!$category['is_collapsed'])
{
echo '
<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor" style="margin-top: 1px;">'
;

/* Each board in each category's boards has:
new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
children (see below.), link_children (easier to use.), children_new (are they new?),
topics (# of), posts (# of), link, href, and last_post. (see below.) */
foreach ($category['boards'] as $board)
{
echo '
<tr>
<td ' 
, !empty($board['children']) ? 'rowspan="2"' '' ' class="windowbg" width="6%" align="center" valign="top"><a href="'$scripturl'?action=unread;board='$board['id'], '.0">';

// If the board is new, show a strong indicator.
if ($board['new'])
echo '<img src="'$settings['images_url'], '/on.gif" alt="'$txt[333], '" title="'$txt[333], '" />';
// This board doesn't have new posts, but its children do.
elseif ($board['children_new'])
echo '<img src="'$settings['images_url'], '/on2.gif" alt="'$txt[333], '" title="'$txt[333], '" />';
// No new posts at all! The agony!!
else
echo '<img src="'$settings['images_url'], '/off.gif" alt="'$txt[334], '" title="'$txt[334], '" />';

echo '</a>
</td>
<td class="windowbg2">
<b><a href="'
$board['href'], '" name="b'$board['id'], '">'$board['name'], '</a></b><br />
'
$board['description'];

// Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
if (!empty($board['moderators']))
echo '
<div style="padding-top: 1px;" class="smalltext"><i>'
count($board['moderators']) == $txt[298] : $txt[299], ': 'implode(', '$board['link_moderators']), '</i></div>';

// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">
'
$board['posts'], ' '$txt[21], ' <br />
'
$board['topics'],' '$txt[330], '
</span></td>
<td class="windowbg2" valign="middle" width="22%">
<span class="smalltext">'
;

/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))
echo '
<b>'
$txt[22], '</b>  '$txt[525], ' '$board['last_post']['member']['link'] , '<br />
'
$txt['smf88'], ' '$board['last_post']['link'], '<br />
'
$txt[30], ' '$board['last_post']['time'];
echo '
</span>
</td>
</tr>'
;
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
if (!empty($board['children']))
{
// Sort the links into an array with new boards bold so it can be imploded.
$children = array();
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' $txt[330] . ': ' $child['topics'] . ', ' $txt[21] . ': ' $child['posts'] . ')">' $child['name'] . '</a>';
$children[] = $child['new'] ? '<b>' $child['link'] . '</b>' $child['link'];
}

echo '
<tr>
<td colspan="3" class="windowbg'
, !empty($settings['seperate_sticky_lock']) ? '3' '''">
<span class="smalltext"><b>'
$txt['parent_boards'], '</b>: 'implode(', '$children), '</span>
</td>
</tr>'
;
}
}
echo '
</table>'
;
}
echo '
</div>'
;
}

if ($context['user']['is_logged'])
{
echo '
<table border="0" width="100%" cellspacing="0" cellpadding="5">
<tr>
<td align="'
, !$context['right_to_left'] ? 'left' 'right''" class="smalltext">
<img src="' 
$settings['images_url'] . '/new_some.gif" alt="" align="middle" /> '$txt[333], '
<img src="' 
$settings['images_url'] . '/new_none.gif" alt="" align="middle" style="margin-left: 4ex;" /> '$txt[334], '
</td>
<td align="'
, !$context['right_to_left'] ? 'right' 'left''">';

// Mark read button.
if ($settings['show_mark_read'] && !empty($context['categories']))
echo '
<a href="'
$scripturl'?action=markasread;sa=all;sesc=' $context['session_id'] . '">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/markread.gif" alt="' $txt[452] . '" border="0" />' $txt[452]), '</a>';
echo '
</td>
</tr>
</table>'
;
}

// Here's where the "Info Center" starts...
echo '<br />
<div class="tborder" '
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' '''>
<div class="catbg" style="padding: 6px; vertical-align: middle; ">
<a href="#" onclick="shrinkHeaderIC(!current_header_ic); return false;"><img id="upshrink_ic" src="'
$settings['images_url'], '/', empty($options['collapse_header_ic']) ? 'collapse.gif' 'expand.gif''" alt="*" title="'$txt['upshrink_description'], '" style="margin-right: 2ex;" align="left" /></a>
'
$txt[685], '
</div>
<div id="upshrinkHeaderIC"'
, empty($options['collapse_header_ic']) ? '' ' style="display: none;"''>
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">'
;

// This is the "Recent Posts" bar.
if (!empty($settings['number_recent_posts']))
{
echo '
<tr>
<td class="titlebg" colspan="2">'
$txt[214], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="'
$scripturl'?action=recent"><img src="'$settings['images_url'], '/post/xx.gif" alt="'$txt[214], '" /></a>
</td>
<td class="windowbg2">'
;

// Only show one post.
if ($settings['number_recent_posts'] == 1)
{
// latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)
echo '
<b><a href="'
$scripturl'?action=recent">'$txt[214], '</a></b>
<div class="smalltext">
'
$txt[234], ' &quot;'$context['latest_post']['link'], '&quot; '$txt[235], ' ('$context['latest_post']['time'], ')<br />
</div>'
;
}
// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
<table cellpadding="0" cellspacing="0" width="100%" border="0">'
;

/* Each post in latest_posts has:
board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
subject, short_subject (shortened with...), time, link, and href. */
foreach ($context['latest_posts'] as $post)
echo '
<tr>
<td class="middletext" valign="top"><b>'
$post['link'], '</b> '$txt[525], ' '$post['poster']['link'], ' ('$post['board']['link'], ')</td>
<td class="middletext" align="right" valign="top" nowrap="nowrap">'
$post['time'], '</td>
</tr>'
;
echo '
</table>'
;
}
echo '
</td>
</tr>'
;
}

// Show information about events, birthdays, and holidays on the calendar.
if ($context['show_calendar'])
{
echo '
<tr>
<td class="titlebg" colspan="2">'
$context['calendar_only_today'] ? $txt['calendar47b'] : $txt['calendar47'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="'
$scripturl'?action=calendar"><img src="'$settings['images_url'], '/icons/calendar.gif" alt="'$txt['calendar24'], '" /></a>
</td>
<td class="windowbg2" width="100%">
<span class="smalltext">'
;

// Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.
if (!empty($context['calendar_holidays']))
echo '
<span style="color: #'
$modSettings['cal_holidaycolor'], ';">'$txt['calendar5'], ' 'implode(', '$context['calendar_holidays']), '</span><br />';

// People's birthdays. Like mine. And yours, I guess. Kidding.
if (!empty($context['calendar_birthdays']))
{
echo '
<span style="color: #'
$modSettings['cal_bdaycolor'], ';">'$context['calendar_only_today'] ? $txt['calendar3'] : $txt['calendar3b'], '</span> ';
/* Each member in calendar_birthdays has:
id, name (person), age (if they have one set?), is_last. (last in list?), and is_today (birthday is today?) */
foreach ($context['calendar_birthdays'] as $member)
echo '
<a href="'
$scripturl'?action=profile;u='$member['id'], '">'$member['is_today'] ? '<b>' ''$member['name'], $member['is_today'] ? '</b>' '', isset($member['age']) ? ' (' $member['age'] . ')' '''</a>'$member['is_last'] ? '<br />' ', ';
}
// Events like community get-togethers.
if (!empty($context['calendar_events']))
{
echo '
<span style="color: #'
$modSettings['cal_eventcolor'], ';">'$context['calendar_only_today'] ? $txt['calendar4'] : $txt['calendar4b'], '</span> ';
/* Each event in calendar_events should have:
title, href, is_last, can_edit (are they allowed?), modify_href, and is_today. */
foreach ($context['calendar_events'] as $event)
echo '
'
$event['can_edit'] ? '<a href="' $event['modify_href'] . '" style="color: #FF0000;">*</a> ' ''$event['href'] == '' '' '<a href="' $event['href'] . '">'$event['is_today'] ? '<b>' $event['title'] . '</b>' $event['title'], $event['href'] == '' '' '</a>'$event['is_last'] ? '<br />' ', ';

// Show a little help text to help them along ;).
if ($context['calendar_can_edit'])
echo '
(<a href="'
$scripturl'?action=helpadmin;help=calendar_how_edit" onclick="return reqWin(this.href);">'$txt['calendar_how_edit'], '</a>)';
}
echo '
</span>
</td>
</tr>'
;
}


// Show YaBB SP1 style information...
if ($settings['show_sp1_info'])
{
echo '
<tr>
<td class="titlebg" colspan="2">'
$txt[645], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="'
$scripturl'?action=stats"><img src="'$settings['images_url'], '/icons/info.gif" alt="'$txt[645], '" /></a>
</td>
<td class="windowbg2" width="100%">
<span class="middletext">
'
$context['common_stats']['total_posts'], ' '$txt[95], ' '$txt['smf88'], ' '$context['common_stats']['total_topics'], ' '$txt[64], ' '$txt[525], ' '$context['common_stats']['total_members'], ' '$txt[19], '. '$txt[656], ': <b> '$context['common_stats']['latest_member']['link'], '</b>
<br /> ' 
$txt[659] . ': <b>&quot;' $context['latest_post']['link'] . '&quot;</b>  ( ' $context['latest_post']['time'] . ' )<br />
<a href="'
$scripturl'?action=recent">'$txt[234], '</a>'$context['show_stats'] ? '<br />
<a href="' 
$scripturl '?action=stats">' $txt['smf223'] . '</a>' '''
</span>
</td>
</tr>'
;
}



// "Users online" - in order of activity.
echo '
<tr>
<td class="titlebg" colspan="2">'
$txt[158], '</td>
</tr><tr>
<td rowspan="2" class="windowbg" width="20" valign="middle" align="center">
'
$context['show_who'] ? '<a href="' $scripturl '?action=who">' '''<img src="'$settings['images_url'], '/icons/online.gif" alt="'$txt[158], '" />'$context['show_who'] ? '</a>' '''
</td>
<td class="windowbg2" width="100%">'
;

echo '
'
$context['show_who'] ? '<a href="' $scripturl '?action=who">' ''$context['num_guests'], ' '$context['num_guests'] == $txt['guest'] : $txt['guests'], ', ' $context['num_users_online'], ' '$context['num_users_online'] == $txt['user'] : $txt['users'];

// Handle hidden users and buddies.
if (!empty($context['num_users_hidden']) || ($context['show_buddies'] && !empty($context['show_buddies'])))
{
echo ' (';

// Show the number of buddies online?
if ($context['show_buddies'])
echo $context['num_buddies'], ' '$context['num_buddies'] == $txt['buddy'] : $txt['buddies'];

// How about hidden users?
if (!empty($context['num_users_hidden']))
echo $context['show_buddies'] ? ', ' ''$context['num_users_hidden'] . ' ' $txt['hidden'];

echo ')';
}

echo $context['show_who'] ? '</a>' '''
<div class="smalltext">'
;

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
'
$txt[140], ':<br />'implode(', '$context['list_users_online']);

echo '
<br />
'
$context['show_stats'] && !$settings['show_sp1_info'] ? '<a href="' $scripturl '?action=stats">' $txt['smf223'] . '</a>' '''
</div>
</td>
</tr>


<tr>

<td class="windowbg2" width="100%">
<span class="middletext">
'
$txt['most_online_today'], ': <b>'$modSettings['mostOnlineToday'], '</b>.


'
$txt['most_online_ever'], ': '$modSettings['mostOnline'], ' (' timeformat($modSettings['mostDate']), ')
</span>
</td>
</tr>'
;





// Users online today

if ((!$context['user']['is_guest']) && $context['user']['is_logged'])
echo '
<tr>
<td class="titlebg" colspan="2">'
$txt['uot_users_online_today'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="'
$settings['images_url'], '/icons/online.gif" alt="'$txt['uot_users_online_today'], '" border="0" />
</td>
<td class="windowbg2" width="100%">'
;

echo '
<div class="smalltext">'
;

  echo 
$txt['uot_total'], ': <b>'$context['num_users_online_today'], '</b>';
  if (!
$context['user']['is_guest'])
  
echo ' ('$txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', '$txt['uot_hidden'], ': '$context['num_hidden_users_online_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
echo '<br />'implode(', '$context['list_users_online_today']);

echo '
<br />'
$context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' 
$scripturl '?action=stats">' $txt['smf223'] . '</a>' '''
</div>
</td>
</tr>'
;

// If they are logged in, but SP1 style information is off... show a personal message bar.
if ($context['user']['is_logged'] && !$settings['show_sp1_info'])
{
 echo '
<tr>
<td class="titlebg" colspan="2">'
$txt[159], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
'
$context['allow_pm'] ? '<a href="' $scripturl '?action=pm">' '''<img src="'$settings['images_url'], '/message_sm.gif" alt="'$txt[159], '" />'$context['allow_pm'] ? '</a>' '''
</td>
<td class="windowbg2" valign="top">
<b><a href="'
$scripturl'?action=pm">'$txt[159], '</a></b>
<div class="smalltext">
'
$txt[660], ' '$context['user']['messages'], ' '$context['user']['messages'] == $txt[471] : $txt[153], '.... '$txt[661], ' <a href="'$scripturl'?action=pm">'$txt[662], '</a> '$txt[663], '
</div>
</td>
</tr>'
;
}

// Show the login bar. (it's only true if they are logged out anyway.)
if ($context['show_login_bar'])
{
echo '
<tr>
<td class="titlebg" colspan="2">'
$txt[34], ' <a href="'$scripturl'?action=reminder" class="smalltext">(' $txt[315] . ')</a></td>
</tr>
<tr>
<td class="windowbg" width="20" align="center">
<a href="'
$scripturl'?action=login"><img src="'$settings['images_url'], '/icons/login.gif" alt="'$txt[34], '" /></a>
</td>
<td class="windowbg2" valign="middle">
<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" style="margin: 0;">
<table border="0" cellpadding="2" cellspacing="0" align="center" width="100%"><tr>
<td valign="middle" align="left">
<label for="user"><b>'
$txt[35], ':</b><br />
<input type="text" name="user" id="user" size="15" /></label>
</td>
<td valign="middle" align="left">
<label for="passwrd"><b>'
$txt[36], ':</b><br />
<input type="password" name="passwrd" id="passwrd" size="15" /></label>
</td>
<td valign="middle" align="left">
<label for="cookielength"><b>'
$txt[497], ':</b><br />
<input type="text" name="cookielength" id="cookielength" size="4" maxlength="4" value="'
$modSettings['cookieTime'], '" /></label>
</td>
<td valign="middle" align="left">
<label for="cookieneverexp"><b>'
$txt[508], ':</b><br />
<input type="checkbox" name="cookieneverexp" id="cookieneverexp" checked="checked" class="check" /></label>
</td>
<td valign="middle" align="left">
<input type="submit" value="'
$txt[34], '" />
</td>
</tr></table>
</form>
</td>
</tr>'
;
}

echo '
</table>
</div>
</div>'
;
}

?>


Title: Re: Users Online Today Mod
Post by: LadyC on February 24, 2009, 11:37:04 AM
if i wanted to change the title from "users online today" to "who's been here today", where would i edit it? i thought i could hardcode the text for it in the board.index.template the same way i've hard-coded some of the menu lables, but i got a parse error when i tried it for the UOT.
Title: Re: Users Online Today Mod
Post by: nomnomfish on February 25, 2009, 03:21:33 PM
I figured out that I want to put the "Users online in last 24 hours" under my "users active in past 15 minutes"

i found that this code will work: // List all users online today
   
   echo '
', $txt[3000], ':<br />', implode(', ', $context['list_users_online_today']);


but i can't figure out where to put it.

o ya, my forum is below on my signature...

i know it goes in my board.index.php but i cant figure out where: <?php
// Version: 1.1.3; BoardIndex

function template_main()
{
   global 
$context$settings$options$txt$scripturl$modSettings;

   
// Show some statistics next to the link tree if SP1 info is off.
   
echo '
<table width="100%" cellpadding="0" cellspacing="0">'
;
if ($modSettings['enableShoutBox'])
echo' <tr>
<td>
<script language="JavaScript" type="text/javascript">
var sb_current_header = false;

function ajax_shoutBox_collapse(mode)
{
document.getElementById("ajax_shoutbox_collapse").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("ShoutBox").style.display = mode ? "none" : "";

sb_current_header = mode;
}
</script>

getShoutBoxContent() . '
</td>
</tr>'
;
echo' <tr>
<td valign="bottom">'
theme_linktree(), '</td>
<td align="right">'
;
if (!$settings['show_sp1_info'])
      echo 
'
            '
$txt[19], ': '$context['common_stats']['total_members'], ' &nbsp;&#38;#8226;&nbsp; '$txt[95], ': '$context['common_stats']['total_posts'], ' &nbsp;&#38;#8226;&nbsp; '$txt[64], ': '$context['common_stats']['total_topics'], '
            '
, ($settings['show_latest_member'] ? '<br />' $txt[201] . ' <b>' $context['common_stats']['latest_member']['link'] . '</b>' $txt[581] : '');
   echo 
'
         </td>
      </tr>
   </table>'
;

   
// Show the news fader?  (assuming there are things to show...)
   
if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
   {
      echo 
'
<div class="tborder" style="margin-bottom: 2ex;">
   <table border="0" width="100%" cellspacing="1" cellpadding="4">
      <tr class="titlebg" align="center">
         <td>'
$txt[102], '</td>
      </tr>
      <tr>
         <td valign="middle" align="center" style="height: 60px;">'
;

      
// Prepare all the javascript settings.
      
echo '
            <div id="smfFadeScroller" style="width: 90%; padding: 2px;"><b>'
$context['news_lines'][0], '</b></div>
            <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
               // The fading delay (in ms.)
               var smfFadeDelay = '
, empty($settings['newsfader_time']) ? 5000 $settings['newsfader_time'], ';
               // Fade from... what text color?  To which background color?
               var smfFadeFrom = {"r": 0, "g": 0, "b": 0}, smfFadeTo = {"r": 255, "g": 255, "b": 255};
               // Surround each item with... anything special?
               var smfFadeBefore = "<b>", smfFadeAfter = "</b>";

               var foreColor, backEl, backColor;

               if (typeof(document.getElementById(\'smfFadeScroller\').currentStyle) != "undefined")
               {
                  foreColor = document.getElementById(\'smfFadeScroller\').currentStyle.color.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
                  smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

                  backEl = document.getElementById(\'smfFadeScroller\');
                  while (backEl.currentStyle.backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined")
                     backEl = backEl.parentNode;

                  backColor = backEl.currentStyle.backgroundColor.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
                  smfFadeTo = {"r": eval("0x" + backColor[1]), "g": eval("0x" + backColor[2]), "b": eval("0x" + backColor[3])};
               }
               else if (typeof(window.opera) == "undefined" && typeof(document.defaultView) != "undefined")
               {
                  foreColor = document.defaultView.getComputedStyle(document.getElementById(\'smfFadeScroller\'), null).color.match(/rgb\((\d+), (\d+), (\d+)\)/);
                  smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

                  backEl = document.getElementById(\'smfFadeScroller\');
                  while (document.defaultView.getComputedStyle(backEl, null).backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined" && typeof(backEl.parentNode.tagName) != "undefined")
                     backEl = backEl.parentNode;

                  backColor = document.defaultView.getComputedStyle(backEl, null).backgroundColor.match(/rgb\((\d+), (\d+), (\d+)\)/);
                  smfFadeTo = {"r": parseInt(backColor[1]), "g": parseInt(backColor[2]), "b": parseInt(backColor[3])};
               }

               // List all the lines of the news for display.
               var smfFadeContent = new Array(
                  "'
implode('",
                  "'
$context['fader_news_lines']), '"
               );
            // ]]></script>
            <script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/fader.js"></script>
         </td>
      </tr>
   </table>
</div>'
;
   }

   
/* Each category in categories is made up of:
      id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
      new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down iamge),
      and boards. (see below.) */
   
foreach ($context['categories'] as $category)
   {
      echo 
'
<div class="tborder"><table border="0" width="100%" cellspacing="1" cellpadding="5">
   <tr>
      <td colspan="2" class="catbg'
$category['new'] ? '2' '''" height="18">';

      
// If this category even can collapse, show a link to collapse it.
      
if ($category['can_collapse'])
         echo 
'
         <a href="'
$category['collapse_href'], '">'$category['collapse_image'], '</a>';

      echo 
'
         '
$category['link'], '
      </td>
                <td width="4%" class="catbg'
$category['new'] ? '2' '''"><b>' ,$txt[21], '</b></td>
                <td width="4%" class="catbg'
$category['new'] ? '2' '''"><b>' ,$txt[330], '</b></td>
                <td width="22%" align="center" class="catbg'
$category['new'] ? '2' '''"> '$txt[22], '</td>
   </tr>'
;

      
// Assuming the category hasn't been collapsed...
      
if (!$category['is_collapsed'])
      {
         
/* Each board in each category's boards has:
            new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
            children (see below.), link_children (easier to use.), children_new (are they new?),
            topics (# of), posts (# of), link, href, and last_post. (see below.) */
         
foreach ($category['boards'] as $board)
         {
            echo 
'
   <tr class="windowbg2">
      <td class="windowbg" width="6%" align="center" valign="top"><a href="'
$scripturl'?action=unread;board='$board['id'], '.0">';

            
// If the board is new, show a strong indicator.
            
if ($board['new'])
               echo 
'<img src="'$settings['images_url'], '/on.png" alt="'$txt[333], '" title="'$txt[333], '" border="0" />';
            
// This board doesn't have new posts, but its children do.
            
elseif ($board['children_new'])
               echo 
'<img src="'$settings['images_url'], '/on2.gif" alt="'$txt[333], '" title="'$txt[333], '" border="0" />';
            
// No new posts at all!  The agony!!
            
else
               echo 
'<img src="'$settings['images_url'], '/off.png" alt="'$txt[334], '" title="'$txt[334], '" border="0" />';

            echo 
'</a></td>
      <td>
         <b><a href="'
$board['href'], '" name="b'$board['id'], '">'$board['name'], '</a></b><br />
         '
$board['description'];

            
// Show the "Moderators: ".  Each has name, href, link, and id. (but we're gonna use link_moderators.)
            
if (!empty($board['moderators']))
               echo 
'
         <div style="padding-top: 1px;" class="smalltext"><i>'
count($board['moderators']) == $txt[298] : $txt[299], ': 'implode(', '$board['link_moderators']), '</i></div>';

            
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
            
if (!empty($board['children']))
            {
               
// Sort the links into an array with new boards bold so it can be imploded.
               
$children = array();
               
/* Each child in each board's children has:
                  id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
               
foreach ($board['children'] as $child)
               {
                  
$child['link'] = '<a href="' $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' $txt[330] . ': ' $child['topics'] . ', ' $txt[21] . ': ' $child['posts'] . ')">' $child['name'] . '</a>';
                  
$children[] = $child['new'] ? '<b>' $child['link'] . '</b>' $child['link'];
               }

               echo 
'
         <div style="padding-top: 1px;" class="smalltext"><i>'
$txt['parent_boards'], ': 'implode(', '$children), '</i></div>';
            }

            
// Show some basic information about the number of posts, etc.
            
echo '
      </td>
                <td class="small2text windowbg2" valign="middle" width="4%" align="center">
                 '
$board['posts'], '</td><td class="smalltext" valign="middle" width="4%" align="center">
                        '
$board['topics'],'</td><td class="smalltext" valign="middle" width="22%">';

                 if (!empty(
$board['last_post']['id']))
                                        echo 
'
                        <a href="'
$board['last_post']['href'], '"><img alt="go" src="'$settings['images_url'], '/icons/last_post.gif" align="right" hspace="3" border="0" /></a>
                        '
$board['last_post']['time'], '
                        '
$txt['smf88'], ' <b>'$board['last_post']['link'], '</b> '$txt[525], ' '$board['last_post']['member']['link'],
                        
' ' ;





            echo 
'
      </td>
   </tr>'
;
         }
      }

      echo 
'
</table></div>
<br />'
;
   }

   if (
$context['user']['is_logged'])
   {
      echo 
'
<div class="tborder" style="padding: 3px;"><table border="0" width="100%" cellspacing="0" cellpadding="5">
   <tr class="catbg">
      <td align="'
, !$context['right_to_left'] ? 'left' 'right''" class="smalltext">
         <img src="' 
$settings['images_url'] . '/new_some.png" alt="" border="0" align="middle" /> '$txt[333], '
         <img src="' 
$settings['images_url'] . '/new_none.png" alt="" border="0" align="middle" style="margin-left: 4ex;" /> '$txt[334], '
      </td>
      <td align="'
, !$context['right_to_left'] ? 'right' 'left''" class="smalltext">';
      
// Show the mark all as read button?
      
if ($settings['show_mark_read'] && !empty($context['categories']))
         echo 
'
         <a href="'
$scripturl'?action=markasread;sa=all;sesc=' $context['session_id'] . '">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/markread.gif" alt="' $txt[452] . '" border="0" />' $txt[452]), '</a>';
      echo 
'
      </td>
   </tr>
</table></div>'
;
   }

   
// Here's where the "Info Center" starts...
   
echo '
<br />
<div class="tborder"><table border="0" width="100%" cellspacing="1" cellpadding="4">
   <tr>
      <td class="blocktitle" align="center" colspan="2"><b>'
$txt[685], '</b></td>
   </tr>'
;

   
// This is the "Recent Posts" bar.
   
if (!empty($settings['number_recent_posts']))
   {
      echo 
'
   <tr>
      <td class="titlebg" colspan="2">'
$txt[214], '</td>
   </tr>
   <tr>
      <td class="windowbg" width="20" valign="middle" align="center">
         <a href="'
$scripturl'?action=recent">
            <img src="'
$settings['images_url'], '/post/xx.gif" alt="'$txt[214], '" border="0" /></a>
      </td>
      <td class="windowbg2">'
;

      
// Only show one post.
      
if ($settings['number_recent_posts'] == 1)
      {
         
// latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)
         
echo '
         <b><a href="'
$scripturl'?action=recent">'$txt[214], '</a></b>
         <div class="smalltext">
            '
$txt[234], ' &quot;'$context['latest_post']['link'], '&quot; '$txt[235], ' ('$context['latest_post']['time'], ')<br />
         </div>'
;
      }
      
// Show lots of posts.
      
elseif (!empty($context['latest_posts']))
      {
         echo 
'
         <table width="100%" border="0">'
;
         
/* Each post in latest_posts has:
            board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
            subject, short_subject (shortened with...), time, link, and href. */
         
foreach ($context['latest_posts'] as $post)
            echo 
'
            <tr>
               <td align="right" valign="top" nowrap="nowrap">['
$post['board']['link'], ']</td>
               <td valign="top">'
$post['link'], ' '$txt[525], ' '$post['poster']['link'], '</td>
               <td align="right" valign="top" nowrap="nowrap">'
$post['time'], '</td>
            </tr>'
;
         echo 
'
         </table>'
;
      }
      echo 
'
      </td>
   </tr>'
;
   }

   
// Show information about events, birthdays, and holidays on the calendar.
   
if ($context['show_calendar'])
   {
      echo 
'
   <tr>
      <td class="titlebg" colspan="2">'
$context['calendar_only_today'] ? $txt['calendar47b'] : $txt['calendar47'], '</td>
   </tr><tr>
      <td class="windowbg" width="20" valign="middle" align="center">
         <a href="'
$scripturl'?action=calendar">
            <img src="'
$settings['images_url'], '/icons/calendar.gif" alt="'$txt['calendar24'], '" border="0" /></a>
      </td>
      <td class="windowbg2" width="100%">
         <span class="smalltext">'
;

      
// Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.
      
if (!empty($context['calendar_holidays']))
         echo 
'
            <span style="color: #'
$modSettings['cal_holidaycolor'], ';">'$txt['calendar5'], ' 'implode(', '$context['calendar_holidays']), '</span><br />';

      
// People's birthdays.  Like mine.  And yours, I guess.  Kidding.
      
if (!empty($context['calendar_birthdays']))
      {
         echo 
'
            <span style="color: #'
$modSettings['cal_bdaycolor'], ';">'$context['calendar_only_today'] ? $txt['calendar3'] : $txt['calendar3b'], '</span> ';
         
/* Each member in calendar_birthdays has:
            id, name (person), age (if they have one set?), is_last. (last in list?), and is_today (birthday is today?) */
         
foreach ($context['calendar_birthdays'] as $member)
            echo 
'
            <a href="'
$scripturl'?action=profile;u='$member['id'], '">'$member['is_today'] ? '<b>' ''$member['name'], $member['is_today'] ? '</b>' '', isset($member['age']) ? ' (' $member['age'] . ')' '''</a>'$member['is_last'] ? '<br />' ', ';
      }
      
// Events like community get-togethers.
      
if (!empty($context['calendar_events']))
      {
         echo 
'
            <span style="color: #'
$modSettings['cal_eventcolor'], ';">'$context['calendar_only_today'] ? $txt['calendar4'] : $txt['calendar4b'], '</span> ';
         
/* Each event in calendar_events should have:
            title, href, is_last, can_edit (are they allowed?), modify_href, and is_today. */
         
foreach ($context['calendar_events'] as $event)
            echo 
'
            '
$event['can_edit'] ? '<a href="' $event['modify_href'] . '" style="color: #FF0000;">*</a> ' ''$event['href'] == '' '' '<a href="' $event['href'] . '">'$event['is_today'] ? '<b>' $event['title'] . '</b>' $event['title'], $event['href'] == '' '' '</a>'$event['is_last'] ? '<br />' ', ';

         
// Show a little help text to help them along ;).
         
if ($context['calendar_can_edit'])
            echo 
'
            (<a href="'
$scripturl'?action=helpadmin;help=calendar_how_edit" onclick="return reqWin(this.href);">'$txt['calendar_how_edit'], '</a>)';
      }
      echo 
'
         </span>
      </td>
   </tr>'
;
   }

   
// Show a member bar.  Not heavily ornate, but functional at least.
   
if ($settings['show_member_bar'])
   {
      echo 
'
   <tr>
      <td class="titlebg" colspan="2">'
$txt[331], '</td>
   </tr>
   <tr>
      <td class="windowbg" width="20" valign="middle" align="center">
         '
$context['show_member_list'] ? '<a href="' $scripturl '?action=mlist">' '''<img src="'$settings['images_url'], '/icons/members.gif" alt="'$txt[332], '" border="0" />'$context['show_member_list'] ? '</a>' '''
      </td>
      <td class="windowbg2" width="100%">
         <b>'
$context['show_member_list'] ? '<a href="' $scripturl '?action=mlist">' $txt[332] . '</a>' $txt[332], '</b>
         <div class="smalltext">'
$txt[200], '</div>
      </td>
   </tr>'
;
   }

   
// Show YaBB SP1 style information...
   
if ($settings['show_sp1_info'])
   {
      echo 
'
   <tr>
      <td class="titlebg" colspan="2">'
$txt[645], '</td>
   </tr>
   <tr>
      <td class="windowbg" width="20" valign="middle" align="center">
         <a href="'
$scripturl'?action=stats">
            <img src="'
$settings['images_url'], '/icons/info.gif" alt="'$txt[645], '" border="0" /></a>
      </td>
      <td class="windowbg2" width="100%">
         <table border="0" width="90%"><tr>
            <td class="smalltext">
               <div style="float: '
, !$context['right_to_left'] ? 'left' 'right''; width: 50%;">'$txt[490], ': <b>'$context['common_stats']['total_topics'], '</b></div>'$txt[489], ': <b>'$context['common_stats']['total_posts'], '</b><br />', !empty($context['latest_post']) ? '
               ' 
$txt[659] . ': &quot;' $context['latest_post']['link'] . '&quot;  (' $context['latest_post']['time'] . ')<br />' '''
               <a href="'
$scripturl'?action=recent">'$txt[234], '</a>
            </td>
            <td width="32%" class="smalltext" valign="top">
               '
$txt[2003], ' '$context['common_stats']['total_members'],$txt[2004],' <a href="'$scripturl'?action=register">',$txt[2005],' ',$context['common_stats']['total_members1'],$txt[2006],'</a><br>
               '
$txt[656], ': <b>'$context['common_stats']['latest_member']['link'], '</b><br />';
      
// If they are logged in, show their unread message count, etc..
      
if ($context['user']['is_logged'])
         echo 
'
               '
$txt['smf199'], ': <b><a href="'$scripturl'?action=pm">'$context['user']['messages'], '</a></b> '$txt['newmessages3'], ': <b><a href="'$scripturl'?action=pm">'$context['user']['unread_messages'], '</a></b>';
      echo 
'
            </td>
         </tr></table>
      </td>
   // List all users online today
   
   echo '
', $txt[140], ':<br />', implode('', $context['list_users_online_today']);</tr>';
   }

   
// "Users online" - in order of activity.
   
echo '
   <tr>
      <td class="titlebg" colspan="2">'
$txt[158], '</td>
   </tr><tr>
      <td class="windowbg" width="20" valign="middle" align="center">
         '
$context['show_who'] ? '<a href="' $scripturl '?action=who">' '''<img src="'$settings['images_url'], '/icons/online.gif" alt="'$txt[158], '" border="0" />'$context['show_who'] ? '</a>' '''
      </td>
      <td class="windowbg2" width="100%">'
;

   if (
$context['show_who'])
      echo 
'
         <a href="'
$scripturl'?action=who">';

   echo 
$context['num_guests'], ' '$context['num_guests'] == $txt['guest'] : $txt['guests'], ', ' $context['num_users_online'], ' '$context['num_users_online'] == $txt['user'] : $txt['users'];

   
// Handle hidden users and buddies.
   
if (!empty($context['num_users_hidden']) || ($context['show_buddies'] && !empty($context['show_buddies'])))
   {
      echo 
' (';

      
// Show the number of buddies online?
      
if ($context['show_buddies'])
         echo 
$context['num_buddies'], ' '$context['num_buddies'] == $txt['buddy'] : $txt['buddies'];

      
// How about hidden users?
      
if (!empty($context['num_users_hidden']))
         echo 
$context['show_buddies'] ? ', ' ''$context['num_users_hidden'] . ' ' $txt['hidden'];

      echo 
')';
   }

   if (
$context['show_who'])
      echo 
'</a>';

   echo 
'
         <div class="smalltext">'
; // Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
'
$txt[140], ':<br />'implode(', '$context['list_users_online']);

// users in chat
if (isset($context['chat_links'])){
  if (
count($context['chat_links']) == )
  
echo '<br />' $txt['chat_no_user'];
elseif (count($context['chat_links']) == )
  
echo '<br />  1' $txt['chat_aUser']. ':<br />'implode($context['chat_links']);
else
  
echo '<br /> ' count($context['chat_links']). $txt['chat_users']. ':<br />'implode(', '$context['chat_links']);
  }

echo '
<br />'
$context['show_stats'] && !$settings['show_sp1_info'] ? '
            <a href="' 
$scripturl '?action=stats">' $txt['smf223'] . '</a>' '''
         </div>
      </td>
   </tr>'
;

   
// If they are logged in, but SP1 style information is off... show a personal message bar.
   
if ($context['user']['is_logged'] && !$settings['show_sp1_info'])
   {
      echo 
'
   <tr>
      <td class="titlebg" colspan="2">'
$txt[159], '</td>
   </tr><tr>
      <td class="windowbg" width="20" valign="middle" align="center">
         '
$context['allow_pm'] ? '<a href="' $scripturl '?action=pm">' '''<img src="'$settings['images_url'], '/message_sm.gif" alt="'$txt[159], '" border="0" />'$context['allow_pm'] ? '</a>' '''
      </td>
      <td class="windowbg2" valign="top">
         <b><a href="'
$scripturl'?action=pm">'$txt[159], '</a></b>
         <div class="smalltext">
            '
$txt[660], ' '$context['user']['messages'], ' '$context['user']['messages'] == $txt[471] : $txt[153], '.... '$txt[661], ' <a href="'$scripturl'?action=pm">'$txt[662], '</a> '$txt[663], '
         </div>
      </td>
   </tr>'
;
   }

   
// Show the login bar. (it's only true if they are logged out anyway.)
   
if ($context['show_login_bar'])
   {
      echo 
'
   <tr>
      <td class="titlebg" colspan="2">'
$txt[34], ' <a href="'$scripturl'?action=reminder" class="smalltext">(' $txt[315] . ')</a></td>
   </tr>
   <tr>
      <td class="windowbg" width="20" align="center">
         <a href="'
$scripturl'?action=login">
            <img src="'
$settings['images_url'], '/icons/login.gif" alt="'$txt[34], '" border="0" /></a>
      </td>
      <td class="windowbg2" valign="middle">
                  <form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" style="margin: 0;">
            <table border="0" cellpadding="2" cellspacing="0" width="100%"><tr>
               <td valign="middle" align="left">
                  <label for="user"><b>'
$txt[35], ':</b><br /><input type="text" name="user" id="user" size="15" /></label>
               </td>
               <td valign="middle" align="left">
                  <label for="passwrd"><b>'
$txt[36], ':</b><br /><input type="password" name="passwrd" id="passwrd" size="15" /></label>
               </td>
               <td valign="middle" align="left">
                  <label for="cookielength"><b>'
$txt[497], ':</b><br /><input type="text" name="cookielength" id="cookielength" size="4" maxlength="4" value="'$modSettings['cookieTime'], '" /></label>
               </td>
               <td valign="middle" align="left">
                  <label for="cookieneverexp"><b>'
$txt[508], ':</b><br /><input type="checkbox" name="cookieneverexp" id="cookieneverexp" checked="checked" class="check" /></label>
               </td>
               <td valign="middle" align="left">
                  <input type="submit" value="'
$txt[34], '" />
               </td>
            </tr></table>
         </form>
      </td>
   </tr>'
;
   }

   echo 
'
</table></div>'
;
}
function 
getShoutBoxContent()
{
    global 
$scripturl;
 
    
// Get the URL to the chat directory:
    
if (!defined('AJAX_CHAT_URL'))
    {
        
define('AJAX_CHAT_URL'str_replace("index.php""chat/"$scripturl));
    }
    
    
// Get the real path to the chat directory:
    
if (!defined('AJAX_CHAT_PATH'))
    {
define('AJAX_CHAT_PATH'dirname(__FILE__) . '/../chat/');
    }
    
    
// Validate the path to the chat:
    
if (@is_file(AJAX_CHAT_PATH 'lib/classes.php'))
    {
        
// Include Class libraries:
        
require_once(AJAX_CHAT_PATH.'lib/classes.php');
 
        
// Initialize the shoutbox:
        
$ajaxChat = new CustomAJAXChatShoutBox();
 
        
// Parse and return the shoutbox template content:
        
return $ajaxChat->getShoutBoxContent();
    }
    return 
null;
}
?>


any have any ideas?
thanks  :D
Title: Re: Users Online Today Mod
Post by: aw06 on March 03, 2009, 02:14:03 PM
is it possible to ad a function to count guest as well ...

Eg.
Total: 300 (Visible: 100, Guest: 100, Hidden: 100)
Title: Re: Users Online Today Mod
Post by: milo111000 on March 04, 2009, 11:05:40 PM
I can see how many users was logged. i was wondering how i can do the mod where i can see their names. I'm really new at this and I would appreciate any help.
Title: Re: Users Online Today Mod
Post by: milo111000 on March 07, 2009, 09:24:30 PM
anybody?
Title: Re: Users Online Today Mod
Post by: Digger1874 on March 09, 2009, 02:31:45 PM
I just installed a new theme: newton_mc. I was running version 1.40 and went through the mod edits for smf 1.1.6 when  installed the new theme. I tried to edit the according to the manual instructions in the new themes boardindex.template.php and looked for the text:

$context['num_users_online'] = count($context['users_online']) + $context['num_users_hidden'];

it wasn't in this file so I didn't add the code that was to be after that as was in the manual instructions.

This mod was running fine in the default theme but does not show up in the new theme. Any ideas as to where I'm going wrong.

Thanks in advance.

www.splkickback.com
running smf. 1.1.6
TP 1.05
Title: Re: Users Online Today Mod
Post by: the_shadow on March 09, 2009, 09:48:17 PM
i can't find this
$context += getMembersOnlineStats($membersOnlineOptions);
Title: Re: Users Online Today Mod
Post by: JimM on March 10, 2009, 12:04:44 AM
@digger1874 - that line is not in your /Themes/customtheme/BoardIndex.template.php.  That line is in the /Sources/BoardIndex.php file.
Title: Re: Users Online Today Mod
Post by: Digger1874 on March 10, 2009, 05:22:59 AM
Quote from: JimM on March 10, 2009, 12:04:44 AM
@digger1874 - that line is not in your /Themes/customtheme/BoardIndex.template.php.  That line is in the /Sources/BoardIndex.php file.

opps you're right. I meant that I can't find this line
Quote', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ')
                  </span>
               </td>
            </tr>'

to edit in my new theme in the file BoardIndex.template.php.  Where I was to add the theme edit for users online today. The line is there with the edit in the default theme but where would I add this line in the new theme in order to make it work?

Title: Re: Users Online Today Mod
Post by: the_shadow on March 10, 2009, 05:52:08 PM
Quote from: JimM on March 10, 2009, 12:04:44 AM
@digger1874 - that line is not in your /Themes/customtheme/BoardIndex.template.php.  That line is in the /Sources/BoardIndex.php file.

yes...i know but i can't findit... :(

This is my ./surces/boardindex
Title: Re: Users Online Today Mod
Post by: JimM on March 10, 2009, 10:35:01 PM
@the_shadow - the line you are looking for is for the 2.0RC1 version and the BoardIndex.php that you uploaded is for 1.1.x.  You should be trying to install the 1.4.0 version.

@digger1874 - what is the name of the theme you are using?
Title: Re: Users Online Today Mod
Post by: Digger1874 on March 11, 2009, 04:06:43 AM
JimM - the theme is Newton_MC
Title: Re: Users Online Today Mod
Post by: JimM on March 14, 2009, 12:37:59 AM
@digger1874 - Ok try this one.  Some themes, you just have to guess where to put the code.  If that don't quite work we will move it around a bit.
Title: Re: Users Online Today Mod
Post by: dsanchez on March 16, 2009, 07:16:54 PM
how can I enable guests to see this "Users Logged In Today" list?
Title: Re: Users Online Today Mod
Post by: easyrider77 on March 22, 2009, 12:58:44 PM
Good question..  i wand know too ..  :)
Title: Re: Users Online Today Mod
Post by: italo_anonimo on April 10, 2009, 05:01:27 AM
hi, thanks for mod.

how to see total guests in "Users Logged In Today" list?

thanks
Title: Re: Users Online Today Mod
Post by: kool aid44 on April 14, 2009, 07:36:26 PM
how would i be able to add crowns to the users on the list?
Title: Re: Users Online Today Mod
Post by: Buwan on April 18, 2009, 06:46:12 PM
Quote from: mcrat on October 14, 2008, 04:32:26 AM
Quote from: Frozt on October 02, 2008, 07:21:07 AM
I install the version 1.4.0 in smf 1.1.6 but after logoff I can´t see the list of users in "Users Logged In Today", I see only the number of users logged today:
     
Total: xx (Visible: xx, Hidden: xx)
but not the list of name of that users


I search in all the admin settings and I can´t find an option for allow see the users logged today for visitors, I dont know if there are this option or if visitors cant see the list of users. When I login I can see the list of users logged today.

Is there an option for active it to see the list the visitors too?


In the Users Online module I can see the users logged if I loged or not

I have the default theme in the forum

I've got this problem as well, (1.4.0 using 1.1.6 SMF) except using modified default theme.

Is this mod supposed to show the amount of members logged in today, as well as their names? Or have I got it confused and it is only supposed to show the number of people logging in that day?

At the moment, like Frozt, I only see

Total: xx (Visible: xx, Hidden: xx)

but not the list of users who have logged in.

I manually copy/pasted the code in, so is there a specific section that I could have messed up? Any help would be great.

I have the opposite issue.  I see the users names fine, but for the stats above the names, what I see is:

     
: 4 (: 4, : 0)


I have smf 1.1.8, and installed ver. 1.4.0 of this mod.  The install was fine with no errors.  I looked at the parser and checked the edits that were done, and they appear to be correct.  I'm not a coder, so if anyone can help, please use short sentences and small words.  Pictures would be a plus!   :D
Title: Re: Users Online Today Mod
Post by: Buwan on April 21, 2009, 10:25:37 PM
Quote from: Buwan on April 18, 2009, 06:46:12 PM
Quote from: mcrat on October 14, 2008, 04:32:26 AM
Quote from: Frozt on October 02, 2008, 07:21:07 AM
I install the version 1.4.0 in smf 1.1.6 but after logoff I can´t see the list of users in "Users Logged In Today", I see only the number of users logged today:
     
Total: xx (Visible: xx, Hidden: xx)
but not the list of name of that users


I search in all the admin settings and I can´t find an option for allow see the users logged today for visitors, I dont know if there are this option or if visitors cant see the list of users. When I login I can see the list of users logged today.

Is there an option for active it to see the list the visitors too?


In the Users Online module I can see the users logged if I loged or not

I have the default theme in the forum

I've got this problem as well, (1.4.0 using 1.1.6 SMF) except using modified default theme.

Is this mod supposed to show the amount of members logged in today, as well as their names? Or have I got it confused and it is only supposed to show the number of people logging in that day?

At the moment, like Frozt, I only see

Total: xx (Visible: xx, Hidden: xx)

but not the list of users who have logged in.

I manually copy/pasted the code in, so is there a specific section that I could have messed up? Any help would be great.

I have the opposite issue.  I see the users names fine, but for the stats above the names, what I see is:

     
: 4 (: 4, : 0)


I have smf 1.1.8, and installed ver. 1.4.0 of this mod.  The install was fine with no errors.  I looked at the parser and checked the edits that were done, and they appear to be correct.  I'm not a coder, so if anyone can help, please use short sentences and small words.  Pictures would be a plus!   :D

Bump for some help.
Title: Re: Users Online Today Mod
Post by: JimM on April 22, 2009, 11:57:32 AM
@Buwan - you may be missing some language strings.  What language is the default on your forum?
Title: Re: Users Online Today Mod
Post by: Buwan on April 23, 2009, 06:17:42 AM
Quote from: JimM on April 22, 2009, 11:57:32 AM
@Buwan - you may be missing some language strings.  What language is the default on your forum?

English.
Title: Re: Users Online Today Mod
Post by: Buwan on April 25, 2009, 07:29:19 AM
Quote from: Buwan on April 23, 2009, 06:17:42 AM
Quote from: JimM on April 22, 2009, 11:57:32 AM
@Buwan - you may be missing some language strings.  What language is the default on your forum?

English.

Bump.
Title: Re: Users Online Today Mod
Post by: JimM on April 25, 2009, 08:33:26 PM
Attach your /Themes/yourtheme/BoardIndex.template.php to you next post and I will take a look.  What theme are you using?
Title: Re: Users Online Today Mod
Post by: Buwan on April 25, 2009, 09:20:17 PM
Quote from: JimM on April 25, 2009, 08:33:26 PM
Attach your /Themes/yourtheme/BoardIndex.template.php to you next post and I will take a look.  What theme are you using?

I'm using the default theme.  Here's the file.

Thanks!
Title: Re: Users Online Today Mod
Post by: JimM on April 25, 2009, 10:49:43 PM
That file is ok,  Nothing wrong with it that I can see.  Check your /Themes/default/languages/Modifications.english.php and make sure this is in there:

$txt['uot_users_online_today']='Users Logged In Today';
$txt['uot_yesterday']='Yesterday at ';
$txt['uot_total']='Total';
$txt['uot_visible']='Visible';
$txt['uot_hidden']='Hidden';

         
Title: Re: Users Online Today Mod
Post by: Buwan on April 25, 2009, 10:56:48 PM
Quote from: JimM on April 25, 2009, 10:49:43 PM
That file is ok,  Nothing wrong with it that I can see.  Check your /Themes/default/languages/Modifications.english.php and make sure this is in there:

$txt['uot_users_online_today']='Users Logged In Today';
$txt['uot_yesterday']='Yesterday at ';
$txt['uot_total']='Total';
$txt['uot_visible']='Visible';
$txt['uot_hidden']='Hidden';

       

It's there, but with an extra line:

$txt['topic-start'] = 'Topic Start';
$txt['uot_users_online_today']='Users Logged In Today';
$txt['uot_yesterday']='Yesterday at ';
$txt['uot_total']='Total';
$txt['uot_visible']='Visible';
$txt['uot_hidden']='Hidden';
Title: Re: Users Online Today Mod
Post by: JimM on April 25, 2009, 11:06:43 PM
Please provide a screenshot of the bottom of your forum so I can see exactly what you are seeing.  There is no reason this should not work on the default theme.
Title: Re: Users Online Today Mod
Post by: Buwan on April 25, 2009, 11:15:13 PM
Quote from: JimM on April 25, 2009, 11:06:43 PM
Please provide a screenshot of the bottom of your forum so I can see exactly what you are seeing.  There is no reason this should not work on the default theme.

Here you go.

(http://i42.tinypic.com/21eyrfp.jpg)
Title: Re: Users Online Today Mod
Post by: JimM on April 25, 2009, 11:52:54 PM
Is this what a logged in user sees?  Check that the default language of the forum and the language in the logged user's profile are the same.  Both should be English if that is your forum default.

What does a guest see?
Title: Re: Users Online Today Mod
Post by: Buwan on April 26, 2009, 12:04:05 AM
Quote from: JimM on April 25, 2009, 11:52:54 PM
Is this what a logged in user sees?  Check that the default language of the forum and the language in the logged user's profile are the same.  Both should be English if that is your forum default.

What does a guest see?

That's what a logged in user sees.  I have a private board, so all guests can see is a log in screen and no other information at all.  I checked the language setting on both my admin and a test user account, both are set to English, and both see the same thing I posted in the screen shot above.
Title: Re: Users Online Today Mod
Post by: JimM on April 26, 2009, 01:39:32 AM
Uninstall the mod, download another copy from the mod site and apply it again through the package manager.  Verify that all the edits were accomplished.
Title: Re: Users Online Today Mod
Post by: Buwan on April 26, 2009, 09:07:24 PM
Quote from: JimM on April 26, 2009, 01:39:32 AM
Uninstall the mod, download another copy from the mod site and apply it again through the package manager.  Verify that all the edits were accomplished.

Okay, I did that but still no go.  I went back and looked at my server settings, and my default language is english-utf8.  Sorry for the confusion.
Title: Re: Users Online Today Mod
Post by: JimM on April 26, 2009, 10:16:26 PM
Copy the Stats.english.php and the Modifications.english.php to Stats.english-utf8.php and Modifications.english-utf8.php and you should be good to go.
Title: Re: Users Online Today Mod
Post by: PatternInChaos on April 27, 2009, 03:31:56 AM
It says I have to find this in  ./Sources/BoardIndex.php

$context += getMembersOnlineStats($membersOnlineOptions);

But there's no such line in that file? I use SMF 1.1.8
Title: Re: Users Online Today Mod
Post by: JimM on April 27, 2009, 09:52:03 PM
Wrong version. 1.4.0 is the version you want for 1.1.8.
Title: Re: Users Online Today Mod
Post by: PatternInChaos on April 28, 2009, 03:28:22 AM
Oh thanks.. that would never have occurred to me because it's also available for 1.1.8.
Title: Re: Users Online Today Mod
Post by: Buwan on May 01, 2009, 05:31:02 PM
Quote from: JimM on April 26, 2009, 10:16:26 PM
Copy the Stats.english.php and the Modifications.english.php to Stats.english-utf8.php and Modifications.english-utf8.php and you should be good to go.

Well, that still didn't work.   :(

Title: Re: Users Online Today Mod
Post by: pikeman on May 04, 2009, 10:34:26 AM
Hello! I have a litle problem...
I've installed Simple Portal and he show guest in "Who's Online display" who Users Online Today.

How to prevent this?
Title: Re: Users Online Today Mod
Post by: IvoLeite on May 04, 2009, 03:47:57 PM
Hello.

I've done manually done the modification because I'm using other theme, but now I get 2 "Users Online Today" ::) And one of them doesn't even show the members...

Can anyone help me? I've attached a screenshoot.

Tks. ;D

SMF 1.1.8
Title: Re: Users Online Today Mod
Post by: IvoLeite on May 06, 2009, 01:45:22 PM
No one?
Title: Re: Users Online Today Mod
Post by: JimM on May 06, 2009, 10:30:34 PM
Looks like you added part of the code twice in your custom theme.  Remove the duplicate and you should be all set.
Title: Re: Users Online Today Mod
Post by: usa4all on May 23, 2009, 06:42:49 AM
Help wanted..

I try to install this mod. But i getting this error message: ./Themes/default/languages/Stats.english.php  test failed.
The default language of the forum is dutch. Is that a problem?

Any tips how to get this mod working?  I'm using the them safmc..

tx in advance


Title: Re: Users Online Today Mod
Post by: Mystery? on May 23, 2009, 05:16:02 PM
Please update for RC1-1...

Thanks!
Title: Re: Users Online Today Mod
Post by: .Vapor on May 24, 2009, 02:39:39 PM
Is this compatible with 1.1.9 yet ? Thanks
Title: Re: Users Online Today Mod
Post by: Carceri on May 26, 2009, 02:32:36 AM
Quote from: V@POR on May 24, 2009, 02:39:39 PM
Is this compatible with 1.1.9 yet ? Thanks

I am using this with 1.1.9, so I guess it should work. Have someone tried it on RC1-1?
Title: Re: Users Online Today Mod
Post by: ttuu on May 26, 2009, 06:44:11 AM
u can add most for this "Most Users Online per day" ?
like "Most Online" and "Most Time Online"
Title: Re: Users Online Today Mod
Post by: IvoLeite on May 26, 2009, 03:56:53 PM
Quote from: JimM on May 06, 2009, 10:30:34 PM
Looks like you added part of the code twice in your custom theme.  Remove the duplicate and you should be all set.

Hi.

I've managed to remove the duplicate code :)
Btw, is there a way to show the today list to guests? Right now it only shows the numbers of today's active members.

Thanks.
Title: Re: Users Online Today Mod
Post by: JimM on May 26, 2009, 08:52:40 PM
Yep, in the code you added to the /Themes/yourtheme/BoardIndex.template.php

Code (Find) Select
echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
  if (!$context['user']['is_guest'])
     echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';


Code (Replace with) Select
echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
// if (!$context['user']['is_guest']) - commented out
     echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';


I commented it out.  You could just as easily delete the line.
Title: Re: Users Online Today Mod
Post by: IvoLeite on May 27, 2009, 09:25:15 AM
Hello JimM. I've tried both ways but I did't manage to solve the problem.  :(
Title: Re: Users Online Today Mod
Post by: JimM on May 27, 2009, 03:32:45 PM
Where was my head yesterday?  Also change this line:

if (!empty($context['users_online_today']) && !$context['user']['is_guest'])

To this:

if (!empty($context['users_online_today']))

Try that.
Title: Re: Users Online Today Mod
Post by: IvoLeite on May 27, 2009, 03:49:38 PM
Hello again JimM. Now works fine. :D

Thanks for your help. :D
Title: Re: Users Online Today Mod
Post by: NHWD on May 27, 2009, 10:30:22 PM
anybody know why i cant find this line?
$context['num_users_online'] = count($context['users_online']) + $context['num_users_hidden'];
in BoardIndex.template.php
Title: Re: Users Online Today Mod
Post by: Hell Raiser on May 29, 2009, 06:48:54 AM
I think there is something wrong i can also cant find that line   :'(


Title: Re: Users Online Today Mod
Post by: JimM on May 29, 2009, 09:48:42 AM
Quote from: CL0WNER on May 27, 2009, 10:30:22 PM
anybody know why i cant find this line?
$context['num_users_online'] = count($context['users_online']) + $context['num_users_hidden'];
in BoardIndex.template.php

That line is located in this file:

./Sources/BoardIndex.php
Title: Re: Users Online Today Mod
Post by: IvoLeite on May 29, 2009, 03:50:36 PM
Quote from: Hell Raiser on May 29, 2009, 06:48:54 AM
I think there is something wrong i can also cant find that line   :'(




That code is only for the "Users Online Today Mod (ver. 1.4.0)".

You're probably using the other version (Users_Online_Today_1.5.4.zip).
Title: Re: Users Online Today Mod
Post by: usa4all on May 29, 2009, 05:03:17 PM
Quote from: usa4all on May 23, 2009, 06:42:49 AM
Help wanted..

I try to install this mod. But i getting this error message: ./Themes/default/languages/Stats.english.php  test failed.
The default language of the forum is dutch. Is that a problem?

Any tips how to get this mod working?  I'm using the them safmc..

tx in advance



Quote from: usa4all on May 23, 2009, 06:42:49 AM
Help wanted..

I try to install this mod. But i getting this error message: ./Themes/default/languages/Stats.english.php  test failed.
The default language of the forum is dutch. Is that a problem?

Any tips how to get this mod working?  I'm using the them safmc..

tx in advance




Anyone?
Title: Re: Users Online Today Mod
Post by: Bachian on May 30, 2009, 10:24:40 PM
I'm using version 1.1.9. I installed and applied the "Users Online Today Mod" and it said it installed correctly and is applied, but it doesn't show on the forum.

Anyone know how to fix this? I'll attach the BoardIndex. Thanks!
Title: Re: Users Online Today Mod
Post by: JimM on May 31, 2009, 01:29:07 AM
The code was not in that file.  I added it, but you need to use the mod parser and make sure all the other edits took otherwise it still won't work.

Try this one.
Title: Re: Users Online Today Mod
Post by: philcross on May 31, 2009, 04:17:01 AM
I am running Users Online Today v 1.5.4 on 2.0 RC1

It shows my most users online was May 20th.

However, I had more users than that online yesterday but the info isnt reflecting this.

Anyone have a solution or suggestion please?

Thanks
Title: Re: Users Online Today Mod
Post by: Morp on May 31, 2009, 06:41:20 AM
Iam using the forum version 1.1.9 and I installed this mod.
The Mods works but....

This is the how it is:

It should say:
Total: 11 (Visible: 11, Hidden: 0)
All the members here

but it says

: 11 (: 11, : 0)
All the Members here

Any ideas?
Title: Re: Users Online Today Mod
Post by: philcross on May 31, 2009, 07:43:41 AM
Quotebut it says

: 11 (: 11, : 0)

Have you recently installed a new language pack?

I had that happen with a different Mod when I installed the English British pack instead of English US - the words just vanished and left the same stuff as you have got.


Title: Re: Users Online Today Mod
Post by: Morp on May 31, 2009, 07:53:34 AM
Quote from: philcross on May 31, 2009, 07:43:41 AM
Quotebut it says

: 11 (: 11, : 0)

Have you recently installed a new language pack?

I had that happen with a different Mod when I installed the English British pack instead of English US - the words just vanished and left the same stuff as you have got.



Well I got almost every language so I don't know which versions those are and won't upgrade all those language that are too much
Is that the problem?
Can you fix that without deleting all the languages?
Title: Re: Users Online Today Mod
Post by: philcross on May 31, 2009, 07:57:13 AM

Sorry Morp

I was simply trying a suggestion based on experience.

Unfortunately, I have no idea how to fix these things.

I am stuck with my own problem posted above  :'(

QuoteI am running Users Online Today v 1.5.4 on 2.0 RC1

It shows my most users online was May 20th.

However, I had more users than that online yesterday but the info isnt reflecting this.

Anyone have a solution or suggestion please?

Thanks

Title: Re: Users Online Today Mod
Post by: Bachian on June 01, 2009, 09:07:01 AM
Quote from: JimM on May 31, 2009, 01:29:07 AM
The code was not in that file.  I added it, but you need to use the mod parser and make sure all the other edits took otherwise it still won't work.

Try this one.
Thanks, works great.

Is there any way to put above it "Uses Logged in Today"? As it doen't say.

(http://img1.imgwiz.com/images/76Logged.jpg)
Title: Re: Users Online Today Mod
Post by: JimM on June 01, 2009, 10:25:14 AM
@Bachian - Make sure the edits for ./Themes/default/languages/Modifications.english.php are in place.
Title: Re: Users Online Today Mod
Post by: Bachian on June 01, 2009, 10:33:03 AM
Quote from: JimM on June 01, 2009, 10:25:14 AM
@Bachian - Make sure the edits for ./Themes/default/languages/Modifications.english.php are in place.
I have no idea what you mean... I have a very basic understanding of this stuff, but I have got everything right except this last thing.

Can you explain this for me, please?
Title: Re: Users Online Today Mod
Post by: JimM on June 01, 2009, 10:36:54 AM
Quote from: Bachian on June 01, 2009, 10:33:03 AM
Quote from: JimM on June 01, 2009, 10:25:14 AM
@Bachian - Make sure the edits for ./Themes/default/languages/Modifications.english.php are in place.
I have no idea what you mean... I have a very basic understanding of this stuff, but I have got everything right except this last thing.

Can you explain this for me, please?

Did you install the mod through the package manager?  The file you uploaded didn't have the mod code in it.  There are some more files that need to be edited for the mod to work completely.  Did you edit those files manually?
Title: Re: Users Online Today Mod
Post by: Bachian on June 01, 2009, 10:41:59 AM
Quote from: JimM on June 01, 2009, 10:36:54 AM
Quote from: Bachian on June 01, 2009, 10:33:03 AM
Quote from: JimM on June 01, 2009, 10:25:14 AM
@Bachian - Make sure the edits for ./Themes/default/languages/Modifications.english.php are in place.
I have no idea what you mean... I have a very basic understanding of this stuff, but I have got everything right except this last thing.

Can you explain this for me, please?

Did you install the mod through the package manager?  The file you uploaded didn't have the mod code in it.  There are some more files that need to be edited for the mod to work completely.  Did you edit those files manually?
No, and I have no idea how to do that.
Title: Re: Users Online Today Mod
Post by: JimM on June 01, 2009, 10:45:40 AM
Here is some documentation on using the package manager. 

Package Manager (http://docs.simplemachines.org/index.php?board=49.0;sort=subject)
Title: Re: Users Online Today Mod
Post by: Bachian on June 01, 2009, 11:17:01 AM
Quote from: JimM on June 01, 2009, 10:45:40 AM
Here is some documentation on using the package manager. 

Package Manager (http://docs.simplemachines.org/index.php?board=49.0;sort=subject)
I edited it and now it works.  :D

Thanks, Jim.

Title: Re: Users Online Today Mod
Post by: philcross on June 01, 2009, 12:14:02 PM

Anyone able to help with this one..........

I am running Users Online Today v 1.5.4 on 2.0 RC1

It shows my most users online was May 20th.

However, I had more users than that online yesterday but the info isnt reflecting this.

Anyone have a solution or suggestion please?

Thanks
Title: Re: Users Online Today Mod
Post by: JimM on June 01, 2009, 12:46:43 PM
Most users online is not a function of this mod.   

This mod displays the users that have been online today (either current day, last 24 hours, or last 7 days - you decide which by changing the array)

The most users online function of SMF counts the most users on line "at the same time".  That's probably what is causing the confusion.
Title: Re: Users Online Today Mod
Post by: blanix on June 03, 2009, 08:09:06 AM
hi all

any ideas to add a little avatar and last active ??


cya


EDIT:
woho, ok, last active with $lastlogin.
but i can't set the avatar oO
Title: Re: Users Online Today Mod
Post by: Samuel9810 on June 09, 2009, 06:39:31 AM
Hello

I'm currently trying to install this package but I cannot get this to work properly with this custom theme I have installed, I have tried to edit the .php files I should have edited but I still can't get this to work.
I know strongly that I am the person that have edited the files wrongly and therfor I am asking if anyone could edit these .php files for me as I know i'm doing something wrong, I have attached these files that needs to be edited.
My forum link:
http://lc-rp.net/Forum/index.php
Title: Re: Users Online Today Mod
Post by: Mystery? on June 11, 2009, 06:11:38 PM
Modification works like its supposed to except the Users Online Today icon. There is no icon instead it just says Users Logged In Today.
Title: Re: Users Online Today Mod
Post by: speedyuk7 on June 11, 2009, 07:19:31 PM
How can I make guest view the users in users online today ?
Title: Re: Users Online Today Mod
Post by: zeljko on June 14, 2009, 06:52:31 AM
how to fix this?  Thanks........
Title: Re: Users Online Today Mod
Post by: Diamond1444 on June 16, 2009, 10:31:49 AM
Help please!  I've read through all 66 pages of this thread, read everything else I can find and I'm still lost. :(   Installed this and it works on core theme, but not showing on my Default Multi Color Theme.  I understand that edits need to be made in Boardindex and sources - but what?  I honestly can't find anywhere what would need to be changed and how.  Thanks!
Title: Re: Users Online Today Mod
Post by: JimM on June 18, 2009, 10:35:11 PM
Use the mod parser on the mod site and display the edits for the BoardIndex.template.php file of your Default MC theme.  Those should be the only ones you need to make
Title: Re: Users Online Today Mod
Post by: Joe N on June 22, 2009, 12:09:03 PM
Hi. I installed this mod. The boardindex.php was a fail.

Could you add the edits into this attached file. I parced this mod for my smf 1.1.9 forum but could find the line I had to edit. I attached my boardindex.php

Thanks
Title: Re: Users Online Today Mod
Post by: JimM on June 22, 2009, 01:46:25 PM
@ Joe N - The edits to /Sources/BoardIndex.php are already there in that file.
Title: Re: Users Online Today Mod
Post by: Joe N on June 22, 2009, 01:55:28 PM
Quote from: JimM on June 22, 2009, 01:46:25 PM
@ Joe N - The edits to /Sources/BoardIndex.php are already there in that file.

Thanks
Title: Re: Users Online Today Mod
Post by: Third on June 27, 2009, 11:08:00 AM
Hey!


I just attempted to install this.
I got an error doing it via the package section.

So I attempted to manually do it.
But the file edits it asks you to search for are non existent.

I'm running SMF 1.1.9

Any help would be appreciated.
Title: Re: Users Online Today Mod
Post by: JimM on June 27, 2009, 01:56:44 PM
Make sure the file edits you are displaying are version 1.4.0.  The other version is for SMF 2.0.
Title: Re: Users Online Today Mod
Post by: usa4all on July 06, 2009, 05:33:19 PM
By Installing on my 1.1.9 forum i get this faillure : 6.     Voer aanpassing uit     ./Themes/default/languages/Stats.english.php     Test mislukt (Failed)

How can i solve this? Seems like i don't get this mod installed.

See the attached jpg file , thats'what i see at the infocenter. ( Only a number )

Any help appreciated 
Title: Re: Users Online Today Mod
Post by: Zark on July 07, 2009, 02:18:20 PM
How can I add guest to that list? So it shows how many guest also visit the forum in the past 24 hours?
Title: Re: Users Online Today Mod
Post by: usa4all on July 08, 2009, 05:46:02 AM
Quote from: usa4all on July 06, 2009, 05:33:19 PM
By Installing on my 1.1.9 forum i get this faillure : 6.     Voer aanpassing uit     ./Themes/default/languages/Stats.english.php     Test mislukt (Failed)

How can i solve this? Seems like i don't get this mod installed.

See the attached jpg file , thats'what i see at the infocenter. ( Only a number )

Any help appreciated 

Any Help?
Title: Re: Users Online Today Mod
Post by: akbora on July 10, 2009, 12:05:53 PM
I want to use it but I want to add that online users+visiters count with together... Is it possible with any codes?
Title: Re: Users Online Today Mod
Post by: italo_anonimo on July 17, 2009, 07:11:18 AM
quote, Any Help?

thanks
Title: Re: Users Online Today Mod
Post by: apTyaH on July 17, 2009, 12:05:17 PM
Help: i have some problem there with SMF 1.1.9 and Users Online Today mod,
(http://img402.imageshack.us/img402/8229/84311826.jpg)
How-To add text in Head Line and test in digits line?
Title: Re: Users Online Today Mod
Post by: JimM on July 17, 2009, 11:54:28 PM
Make sure you add the language strings in your Modifications.yourlanguage.php file.  This mod only supports English.
Title: Re: Users Online Today Mod
Post by: aw06 on July 18, 2009, 12:32:31 AM
JimM, is there an edit we can add to count guest that have loged on as well ?
Title: Re: Users Online Today Mod
Post by: Sharp.Shot on July 18, 2009, 12:43:57 AM
aw06

There is no way to do this because guests cannot log in to the forum. ;)
Title: Re: Users Online Today Mod
Post by: aw06 on July 18, 2009, 01:57:01 AM
Quote from: Sharp.Shot on July 18, 2009, 12:43:57 AM
aw06

There is no way to do this because guests cannot log in to the forum. ;)

well, tru, but they are still logged via IP .. so it should be able to count logged IP's
Title: Re: Users Online Today Mod
Post by: apTyaH on July 18, 2009, 11:05:44 PM
Quote from: JimM on July 17, 2009, 11:54:28 PM
Make sure you add the language strings in your Modifications.yourlanguage.php file.  This mod only supports English.
How it make? Give me a code please. ???
Title: Re: Users Online Today Mod
Post by: JimM on July 18, 2009, 11:56:41 PM
@aPTyPuK - You will need to translate the language strings into you forum language.  There are two files /Themes/default/languages/Stats.english.php and /Themes.default/languages/Modifications.english.php.  Once you have translated the strings, you would save the file as Stats.yourlanguage.php and Modifications.yourlanguage.php.

@aw06 - I'm not aware of that capability.  You would need to request that from the mod author.  Don't forget the purpose of this mod.  It's to display members that logged in today.  Adding the tracking of guest IPs would be way beyond the scope of the mod.
Title: Re: Users Online Today Mod
Post by: aw06 on July 19, 2009, 02:41:15 AM
my bad, tought you were the mod author :)
Title: Re: Users Online Today Mod
Post by: [RedDevil] on July 19, 2009, 02:48:30 AM
If you need to do this again for some other mod you should consider looking at the First Page of the topic. ;)

Quotewell, tru, but they are still logged via IP .. so it should be able to count logged IP's

No because they are not logged into the forum its self because all there doing is viewing the page and would only count as a  page view unless they log into the actual forum.
Title: Re: Users Online Today Mod
Post by: JimM on July 19, 2009, 02:58:23 AM
[RedDevil] - please do not post back-to-back.  Use the modify button instead.  This is a support topic and it is quite long enough!
Title: Re: Users Online Today Mod
Post by: [RedDevil] on July 19, 2009, 03:02:29 AM
Oops am very sorry deleted one of the posts as I meant to modify, can you please merge the posts.
Title: Re: Users Online Today Mod
Post by: Matthew K. on July 21, 2009, 11:59:06 PM
I am running SMF Version 1.1.10 and I installed this mod to my default theme without problems.

It did not show up in the info center, so I manually entered the step that was catching.

Now I can see the section where it SHOULD say "Users Online Today" and then a big empty box where it SHOULD list them.

No "Users Online Today" header and no users loading in the box...help appreciated
Title: Re: Users Online Today Mod
Post by: AlExAlExAlEx on July 22, 2009, 08:07:26 PM
Type  Action  Description
1. Execute Modification ./Sources/BoardIndex.php Test failed
2. Execute Modification ./Themes/default/BoardIndex.template.php Test failed
3. Extract File ./Sources/Subs-MembersOnlineToday.php
4. Extract File ./Themes/default/languages/MembersOnlineToday.english.php
Title: Re: Users Online Today Mod
Post by: stefann on August 02, 2009, 12:48:48 AM
Thanks for a simple but very useful mod Carceri, would you consider making this collect the 'users online' figures for the forum stats page as well?

I've seen it mentioned in this topic a couple of times, but with nothing definite, so I know I'm not the only one that finds the 'Most Users Online' statistical metric somewhat useless on a smaller forum. This could be a better way to judge user activity on a day by day basis at the bottom of the stats section
Title: Re: Users Online Today Mod
Post by: Karma on August 05, 2009, 04:00:16 PM
Quote from: Labradoodle-360 on July 21, 2009, 11:59:06 PM
I am running SMF Version 1.1.10 and I installed this mod to my default theme without problems.

It did not show up in the info center, so I manually entered the step that was catching.

Now I can see the section where it SHOULD say "Users Online Today" and then a big empty box where it SHOULD list them.

No "Users Online Today" header and no users loading in the box...help appreciated

How did you do on 1.1.10? I receive an error message for the files     ./Sources/BoardIndex.php and     ./Themes/default/BoardIndex.template.php

:(

Any help is appreciated
Title: Re: Users Online Today Mod
Post by: apTyaH on August 10, 2009, 08:27:21 PM
Quote from: JimM on July 18, 2009, 11:56:41 PM
@aPTyPuK - You will need to translate the language strings into you forum language.  There are two files /Themes/default/languages/Stats.english.php and /Themes.default/languages/Modifications.english.php.  Once you have translated the strings, you would save the file as Stats.yourlanguage.php and Modifications.yourlanguage.php.
I add strings only into Modifications.russian-utf8.php and it all works now. ;D Big thanks
Title: Re: Users Online Today Mod
Post by: Carceri on August 17, 2009, 08:38:27 AM
Yes, I have seen the request for adding info to the stats panel a few times, and yes I think it is good idea. However, I would need to spend some time on this, since it requires changes to the database, and for the time being my limited free time is spent on other projects. Maybe when SMF 2.0 goes final, and I find the time, I will add a few more features to this mod.

The request for tracking guests have also been brought up a few times, and unfortunately there is no way to identify guests. There are some information related to IP address, but that is not accurate (e.g. several guests can hide behind one IP address), so since this cannot be done accurately, I have decided a long time ago that I will only track users that do log in.
Title: Re: Users Online Today Mod
Post by: iosys on August 25, 2009, 10:17:39 AM
Hi,

Ive got an issue with the mod not displaying the users name in their color.  Reference attached image.  Any clues on how to fix this?

Im using SMF 2.0 RC1.2

EDIT:

I semi have it.  I have the Gender Color Mod installed also so this is what is making it show different.  I have the Blue for boys/ Pink for girls working now
Admin and moderators colors are still grey not what they should be

EDIT: Ok I solved horray!  For any others who have the same problem heres the code

In Subs-MembersOnlineToday find

mg.online_color, mg.id_group, mg.group_name


Replace with

mg.online_color, mg.id_group, mg.group_name, mem.gender


Find

Some basic color coding...
if (!empty($row['online_color']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '"' . $title . ' style="color: ' . $row['online_color'] . ';">' . $row['real_name'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '"' . $title . '>' . $row['real_name'] . '</a>';


Replace with

if(!empty($row['gender']) && !empty($modSettings['enable_gender_member_color']))
            $link = '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '" style="color: #' . ($row['gender'] == 1 ? $modSettings['male_color'] : $modSettings['female_color']) . ';">' . $row['real_name'] . '</a>';
          else { 
            if (!empty($row['online_color']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '"' . $title . ' style="color: ' . $row['online_color'] . ';">' . $row['real_name'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '"' . $title . '>' . $row['real_name'] . '</a>';
}
Title: Re: Users Online Today Mod
Post by: UnleashedFX on August 25, 2009, 05:44:52 PM
anyone know how to get this working for 1.1.10, thanks
Title: Re: Users Online Today Mod
Post by: JimM on August 25, 2009, 10:06:59 PM
Yes, it works fine with 1.1.10.
Title: Re: Users Online Today Mod
Post by: UnleashedFX on August 25, 2009, 10:44:02 PM
I cant install it through package manager and when i do the manual edits, the parts it tells me to find arnt in my boardindex.template.php and boardindex.php
Title: Re: Users Online Today Mod
Post by: Nameless? on August 26, 2009, 01:54:08 PM
this mod is so cool great mod!

i give u 10/10 for this mod.. nice work mate
Title: Re: Users Online Today Mod
Post by: aw06 on August 28, 2009, 09:12:42 AM
I just enabled buddy list on my forums ... was wondering if this mod can be edited to show when buddies logged on ..

Eg .. this is how it is now
Total: 224 (Visible: 223, Hidden: 1)

How I'd want it
Total: 224 (Visible: 223 [78 Buddies], Hidden: 1)

Can this be done ??
Title: Re: Users Online Today Mod
Post by: Gavin Chatt on September 01, 2009, 08:53:32 PM
I've completed this install of the mod "Users Online Today Mod" on two Sites I work on, both are:

SMF V1.1.10
TinyPortal v1.0 beta 4


Ok I've completed this and on one of the sites (http://www.westcoastcommodores.com) it is working with the theme in use (Rudra) however on another site it is not (http://www.austeamracing.com). After checking the default theme it is all working however the Theme I'm using for the site I'm unable to see it in use and ask if someone might be able to assist or point me in the right direction to get this working?

The theme in question is Nascar08 and I have tried the suggested changes listed for V1.1.10 from the Mod ReadMe....

http://custom.simplemachines.org/mods/index.php?mod=217
Title: Re: Users Online Today Mod
Post by: FightToTheDeath on September 05, 2009, 01:15:30 PM
How can i add this mod in mystic multi v2 theme? Please help.
Title: Re: Users Online Today Mod
Post by: TwitchisMental on September 05, 2009, 01:39:51 PM
I had to manually install this theme and it installed correwctly,but the users online thing seems to not look right.

There is the panel with users online in bold which is what it should be,but then there is another line below it where just the online users today should be.

How to fix?

A Screeny to show what I mean -
(http://i32.tinypic.com/2n6vjte.jpg)
Title: Re: Users Online Today Mod
Post by: meehan09 on September 05, 2009, 01:47:57 PM
Manually installed and worked like a charm :), Dont get that with alot off mods when manually installing :P
Title: Re: Users Online Today Mod
Post by: TheListener on September 05, 2009, 01:50:58 PM
Quote from: FightToTheDeath on September 05, 2009, 01:15:30 PM
How can i add this mod in mystic multi v2 theme? Please help.

Have you tried a manual install?

Which smf version?
Title: Re: Users Online Today Mod
Post by: FightToTheDeath on September 05, 2009, 03:08:19 PM
Quote from: TheListener on September 05, 2009, 01:50:58 PM
Quote from: FightToTheDeath on September 05, 2009, 01:15:30 PM
How can i add this mod in mystic multi v2 theme? Please help.

Have you tried a manual install?

Which smf version?

2.0 RC1.2 and yes i tried to install it manually but nothing.
Title: Re: Users Online Today Mod
Post by: TheListener on September 05, 2009, 03:25:38 PM
Which version did you try to install?
Title: Re: Users Online Today Mod
Post by: simplebeer on September 07, 2009, 08:21:02 AM
I can't find the first string: $context += getMembersOnlineStats($membersOnlineOptions);

In sources boardindex.php

???

Gr
Title: Re: Users Online Today Mod
Post by: simplebeer on September 07, 2009, 08:43:08 AM
Quote from: PiWi on September 07, 2009, 08:21:02 AM
I can't find the first string: $context += getMembersOnlineStats($membersOnlineOptions);

In sources boardindex.php

????

Gr Patrick

sorry, wrong version  :P
Title: Re: Users Online Today Mod
Post by: simplebeer on September 07, 2009, 09:25:52 AM
ok i install this mod but it won't work for me because i have a different theme.
My theme is babylon and when i put the board template of default into the babylon folder i see the extra mod but the index of my forum is not the same.

I have tried to find the diffrence of the babylon template and the default template and i found it but i can get it right into the babylon template.....i am quite new with smf and it is not still working perfect into my head  :P

My template is below, can someone help me and put this mod into my template?

Thanx a lot!

Gr
Title: Re: Users Online Today Mod
Post by: simplebeer on September 07, 2009, 02:00:20 PM
Pleasssseee?? sorry, but i am dying to use this  8) 8) 8) 8) 8)
Title: Re: Users Online Today Mod
Post by: JimM on September 07, 2009, 06:24:34 PM
@PiWi - Try this one and let me know if it works.
Title: Re: Users Online Today Mod
Post by: TwitchisMental on September 07, 2009, 07:31:26 PM
Anyone know the fix to my problem?
Title: Re: Users Online Today Mod
Post by: Gavin Chatt on September 08, 2009, 02:04:35 AM
Quote from: JimM on September 07, 2009, 06:24:34 PM
@PiWi - Try this one and let me know if it works.

Hi Jim,

Any chance you might be able to take a look at my theme please :) As mentioned earlier it is working but not with my theme.
Title: Re: Users Online Today Mod
Post by: simplebeer on September 08, 2009, 11:24:27 AM
Quote from: JimM on September 07, 2009, 06:24:34 PM
@PiWi - Try this one and let me know if it works.

Almost, but the users online today is above the info centre? And its is also empty?

look at screenshot.

Thank for the work allready!

Gr
Title: Re: Users Online Today Mod
Post by: w1z8it on September 08, 2009, 11:42:59 AM
This is great installed it just now on a downloaded custom theme, good job!

One question though, I would liek to remove the group key from the list as it's already in the info center looks weird having it teice, how can I do this?
Title: Re: Users Online Today Mod
Post by: Sabre™ on September 08, 2009, 05:16:26 PM
@ Gav-Aus & PiWi

Try the attached files with your name on it.
Let me know if they work ok for you.
Gav- Aus, I left your edits in there so you can see where you went wrong. I have only canceled them out.
Good attempt though :)
Title: Re: Users Online Today Mod
Post by: TwitchisMental on September 08, 2009, 05:20:38 PM
*bump*

Still any word on the fix for my issue :)?
Title: Re: Users Online Today Mod
Post by: Sabre™ on September 08, 2009, 05:28:58 PM
You can remove the second occurrence of $txt['uot_users_online_today'], but that is purely a guess ;)
If you like, you may post your BoardIndex.template and I'll have a look for you while Im on.
Title: Re: Users Online Today Mod
Post by: w1z8it on September 08, 2009, 06:08:21 PM
Quote from: Sabre™ on September 08, 2009, 05:28:58 PM
You can remove the second occurrence of $txt['uot_users_online_today'], but that is purely a guess ;)
If you like, you may post your BoardIndex.template and I'll have a look for you while Im on.

It's the group keys that I only want 1 occurrance of each, preferbly I'd like to remove the dupes that's listed in the Users Logged In Today list  ;)
Title: Re: Users Online Today Mod
Post by: Gavin Chatt on September 08, 2009, 07:48:05 PM
Quote from: Sabre™ on September 08, 2009, 05:16:26 PM
@ Gav-Aus & PiWi

Try the attached files with your name on it.
Let me know if they work ok for you.
Gav- Aus, I left your edits in there so you can see where you went wrong. I have only canceled them out.
Good attempt though :)

Hi Sabre™,

Thanks for looking at it for me, I'll try it out soon and let you know how it comes together. As mentioned earlier I have it working well on the default theme just couldn't get things right in my theme "lol".
================================================================================================

Hi Sabre™,

Back again. Thanks very much, the changes you made have worked well for the theme and are very much appreciated. Thanks again

One question:
Can this be set so only the Admin can view it, or is it open to all?
Title: Re: Users Online Today Mod
Post by: JimM on September 08, 2009, 10:17:57 PM
@w1z8it - In the code that you added to your BoardIndex.template.php

Code (Find & Delete) Select
// Showing membergroups?
if (!empty($settings['show_group_key']) && !empty($context['membergroups']))
echo          '<br />[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']';

   

This code occurs twice.  Delete the 2nd occurrence of it.
Title: Re: Users Online Today Mod
Post by: Sabre™ on September 09, 2009, 06:41:31 AM
Quote from: w1z8it on September 08, 2009, 06:08:21 PM
It's the group keys that I only want 1 occurrance of each, preferbly I'd like to remove the dupes that's listed in the Users Logged In Today list  ;)

Oh sorry champ, I misread your question lol
Jims directions should work for you.

@ Gav-Aus
Try the attached template.
Title: Re: Users Online Today Mod
Post by: simplebeer on September 09, 2009, 03:21:57 PM
Quote from: Sabre™ on September 08, 2009, 05:16:26 PM
@ Gav-Aus & PiWi

Try the attached files with your name on it.
Let me know if they work ok for you.


YEAH, it looks to be good! one thing......not worry but it looks nicer when the color of the bar is the same as the one from my theme, is this possible?

I looked for color but can't find it? Maybe it is a .gif image?

Thanks Sabre!!!!

Gr
Title: Re: Users Online Today Mod
Post by: Sabre™ on September 09, 2009, 06:07:06 PM
Find this line
<td class="titlebg" colspan="2">', $txt['uot_users_online_today'], '</td>
and try changing titlebg to catbg. Im pretty sure thats all it takes.
See if it works.
Title: Re: Users Online Today Mod
Post by: Gavin Chatt on September 09, 2009, 08:31:29 PM
Quote from: Sabre™ on September 09, 2009, 06:41:31 AM
Quote from: w1z8it on September 08, 2009, 06:08:21 PM
It's the group keys that I only want 1 occurrance of each, preferbly I'd like to remove the dupes that's listed in the Users Logged In Today list  ;)

Oh sorry champ, I misread your question lol
Jims directions should work for you.

@ Gav-Aus
Try the attached template.

Once again Sabre™ your da man, a huge thanks to Jim as well. Thanks guys. SMF is get'n better and better
Title: Re: Users Online Today Mod
Post by: simplebeer on September 10, 2009, 08:48:12 AM
Quote from: Sabre™ on September 09, 2009, 06:07:06 PM
Find this line
<td class="titlebg" colspan="2">', $txt['uot_users_online_today'], '</td>
and try changing titlebg to catbg. Im pretty sure thats all it takes.
See if it works.

YES it works! thanx a lot Sabre! I could never think of this at my own!

Gr
Title: Re: Users Online Today Mod
Post by: Sabre™ on September 10, 2009, 06:33:34 PM
Our pleasure guys.
Enjoy :)
Title: Re: Users Online Today Mod
Post by: w1z8it on September 10, 2009, 07:54:09 PM
Quote from: JimM on September 08, 2009, 10:17:57 PM
@w1z8it - In the code that you added to your BoardIndex.template.php

Code (Find & Delete) Select
// Showing membergroups?
if (!empty($settings['show_group_key']) && !empty($context['membergroups']))
echo          '<br />[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']';

   

This code occurs twice.  Delete the 2nd occurrence of it.

I can only find 1 occurance of it.
Title: Re: Users Online Today Mod
Post by: JimM on September 10, 2009, 09:19:26 PM
@w1z8it - after you install the mod, there will be 2 occurrences of that code.  Install the mod as normal and then delete the second one.  Prior to installing the mod, there will only be one.  The file you posted did not have the mod installed.
Title: Re: Users Online Today Mod
Post by: w1z8it on September 11, 2009, 09:56:47 AM
Quote from: JimM on September 10, 2009, 09:19:26 PM
@w1z8it - after you install the mod, there will be 2 occurrences of that code.  Install the mod as normal and then delete the second one.  Prior to installing the mod, there will only be one.  The file you posted did not have the mod installed.

Ummm I have had the mod installed since day one.
Title: Re: Users Online Today Mod
Post by: TwitchisMental on September 11, 2009, 02:56:54 PM
Quote from: JimM on September 10, 2009, 09:19:26 PM
@w1z8it - after you install the mod, there will be 2 occurrences of that code.  Install the mod as normal and then delete the second one.  Prior to installing the mod, there will only be one.  The file you posted did not have the mod installed.

I have the mod installed and I only see that code once.

I will attach my board index.

Title: Re: Users Online Today Mod
Post by: Sabre™ on September 11, 2009, 04:05:22 PM
Quote from: w1z8it on September 11, 2009, 09:56:47 AM
Ummm I have had the mod installed since day one.

What Jim has stated is correct.
You may have had the mod installed when you posted your template [HERE] (http://www.simplemachines.org/community/index.php?topic=55513.msg2250134#msg2250134) buddy, but as you can see it is the backup of your boardindex.template, notice the  ~ , that means it is the backup and is probably from before the mod was installed.
Looking at that template myself, there would be two occurrences of the code, although they slightly differ, which is why you'd find only one occurrence.
Try searching for  show_group_key  and you should find the other.

NBK*Twitch , can you show me a screen shot of what you're seeing plz?
Title: Re: Users Online Today Mod
Post by: TwitchisMental on September 11, 2009, 05:30:59 PM
Quote from: Sabre™ on September 11, 2009, 04:05:22 PM
Quote from: w1z8it on September 11, 2009, 09:56:47 AM
Ummm I have had the mod installed since day one.

What Jim has stated is correct.
You may have had the mod installed when you posted your template [HERE] (http://www.simplemachines.org/community/index.php?topic=55513.msg2250134#msg2250134) buddy, but as you can see it is the backup of your boardindex.template, notice the  ~ , that means it is the backup and is probably from before the mod was installed.
Looking at that template myself, there would be two occurrences of the code, although they slightly differ, which is why you'd find only one occurrence.
Try searching for  show_group_key  and you should find the other.

NBK*Twitch , can you show me a screen shot of what you're seeing plz?

Sure here you go - http://i26.tinypic.com/xbl37c.png
Title: Re: Users Online Today Mod
Post by: Sabre™ on September 11, 2009, 07:08:58 PM
Cool.
You can remove this
<div class="windowbg">
<p class="section">
<img src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['uot_users_online_today'], '" />
</p>


and a </div> at the end of this mods code.

That is for the layout as you have it now.
I've also attached your template from the previous post and have changed the code a little to have what I think is a better layout.
Try it if you like, or suggest a change etc etc :)
Title: Re: Users Online Today Mod
Post by: TwitchisMental on September 12, 2009, 12:06:35 AM
Quote from: Sabre™ on September 11, 2009, 07:08:58 PM
Cool.
You can remove this
            <div class="windowbg">
               <p class="section">
                  <img src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['uot_users_online_today'], '" />
               </p>


and a </div> at the end of this mods code.

That is for the layout as you have it now.
I've also attached your template from the previous post and have changed the code a little to have what I think is a better layout.
Try it if you like, or suggest a change etc etc :)
I can't seem to find that :( .

Edit: NVM what you did made it look better :D.
Title: Re: Users Online Today Mod
Post by: Sabre™ on September 12, 2009, 12:34:08 AM
lol cool.
If you'd like any change to it, just mention where and what, and I'll see what I can do.
I only quickly brushed through your template, so there may be little changes you'd like.
If not, then enjoy buddy :)
Title: Re: Users Online Today Mod
Post by: TwitchisMental on September 12, 2009, 01:33:20 AM
Quote from: Sabre™ on September 12, 2009, 12:34:08 AM
lol cool.
If you'd like any change to it, just mention where and what, and I'll see what I can do.
I only quickly brushed through your template, so there may be little changes you'd like.
If not, then enjoy buddy :)
Nah it looks great now :D.

Thanks for the help :D.
Title: Re: Users Online Today Mod
Post by: frankybv on September 15, 2009, 03:33:47 AM
How do I install this mod for 1.1.9 and Babylon theme?
I tried somthing but no results.
Thank you.

LE: Solved. Thank you Sabre™ for suport. Don't see it was with one page before. That helps me to :D
Title: Re: Users Online Today Mod
Post by: Sabre™ on September 15, 2009, 08:53:49 AM
Hi frankybv,
Did you upload somebody else's template?
It may cause errors to your site if you do not have the same modifications installed, and other possible errors regarding theme images etc..
Check your error log in your maintenance section of your Admin panel, and see if any are there.
I would be more than happy to edit your themes template if you like, I believe that would be best for you buddy.
But if you're happy with it, then I'm glad I could have helped :)
Title: Re: Users Online Today Mod
Post by: Trashcan on September 15, 2009, 09:35:58 AM
Hello...  great mod!

history:
Using smf 1.1.0.
users on line today mod ver Users Online Today Mod 1.4.0 

I also have these other mods installed:
Custom Profile Field Mod 3.20   
FlashChat Integration

Issues that I need help with
Getting this error in my error logs although the mod seems to be working fine.

Undefined index: uot_users_online_today
File: /home/xxxxxx/public_html/forum/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 418

Undefined index: uot_users_online_today
File: /home/xxxxx/public_html/forum/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 415


so what can I do to fix the errors?

attaching my boadindextemplate file

Any help would sure be appreciated!!!
Title: Re: Users Online Today Mod
Post by: Trashcan on September 15, 2009, 02:19:56 PM
found this in an earlier post.....

changes made to modificationsenglish.php file in the theme directory.
Made sure to have this info withing that file...

$txt['uot_users_online_today_title']='Users Seen Today';
$txt['uot_user_online_today']='user seen today';
$txt['uot_users_online_today']='users seen today';
$txt['uot_total_users_online_today']='Users Seen Today';
$txt['uot_yesterday']='Yesterday at ';
Title: Re: Users Online Today Mod
Post by: frankybv on September 16, 2009, 10:38:07 AM
Quote from: Sabre™ on September 15, 2009, 08:53:49 AM
Hi frankybv,
Did you upload somebody else's template?
It may cause errors to your site if you do not have the same modifications installed, and other possible errors regarding theme images etc..
Check your error log in your maintenance section of your Admin panel, and see if any are there.
I would be more than happy to edit your themes template if you like, I believe that would be best for you buddy.
But if you're happy with it, then I'm glad I could have helped :)

I don't have problems, no errors. It's working great.
The template is that you post for PiWi, but if you think is more recommended with my original file, you know best.
Thank you for suport.
Here it is the file.
Title: Re: Users Online Today Mod
Post by: Sabre™ on September 17, 2009, 12:52:10 AM
That template looks clean of any other mods, so you should be fine :)
Enjoy buddy :)
Title: Re: Users Online Today Mod
Post by: aw06 on September 26, 2009, 09:45:17 AM
ok, what i want to know, can this mod be edited show that when i go on the smf stats page it will show users logged in for the previous day ?
Title: Re: Users Online Today Mod
Post by: dkharp on September 30, 2009, 01:13:05 AM
Hello,

I am running smf 1.1.10 I seem to can not find the right line in - sources / board index.php to add the right code for this mod.

Can anyone help?



Title: Re: Users Online Today Mod
Post by: Sabre™ on September 30, 2009, 01:37:48 AM
That line is within smf2, not smf1
It must be a mistake in the xml
Try the attached file.
Title: Re: Users Online Today Mod
Post by: aw06 on September 30, 2009, 01:42:14 AM
Quote from: dkharp on September 30, 2009, 01:13:05 AM
Hello,

I am running smf 1.1.10 I seem to can not find the right line in - sources / board index.php to add the right code for this mod.

Can anyone help?

You Parsed the version for SMF 2.0 [1.5.4] ... Select version 1.4.0 and parse for SMF 1.1.10  :)
Title: Re: Users Online Today Mod
Post by: Sabre™ on September 30, 2009, 01:47:02 AM
Ah yep, thats what I meant to say lol
Title: Re: Users Online Today Mod
Post by: Rhyme on September 30, 2009, 01:48:11 AM
Quote from: aw06 on September 30, 2009, 01:42:14 AM
Quote from: dkharp on September 30, 2009, 01:13:05 AM
Hello,

I am running smf 1.1.10 I seem to can not find the right line in - sources / board index.php to add the right code for this mod.

Can anyone help?

You Parsed the version for SMF 2.0 [1.5.4] ... Select version 1.4.0 and parse for SMF 1.1.10  :)

Wow what a simple fix right there XD.  You know I've been trying to figure that out a few times and it was just so simple.  I was on the wrong one LOL.  I know this wasn't my question, but thanks for the help XD
Title: Re: Users Online Today Mod
Post by: dkharp on September 30, 2009, 03:24:45 AM
I'm an idiot.

But the manual install is wrong..I think

One more thing how do I get it to show in a TP block? Or no..

Thanks folks for your help!
Title: Re: Users Online Today Mod
Post by: Rhyme on September 30, 2009, 08:27:35 AM
Quote from: dkharp on September 30, 2009, 03:24:45 AM
I'm an idiot.

But the manual install is wrong..I think

One more thing how do I get it to show in a TP block? Or no..

Thanks folks for your help!

The manual install isn't wrong, I got it to work just fine.  Apply the mod, see what files fail the test and then only edit those files.

Also it depends on which portal you're using.  If you're using Tiny Portal you might not be able to.  Right now I'm using Ez Portal, and you can download a ton of blocks to use.
Title: Re: Users Online Today Mod
Post by: aw06 on September 30, 2009, 10:59:46 AM
Quote from: Rhyme on September 30, 2009, 01:48:11 AM
Quote from: aw06 on September 30, 2009, 01:42:14 AM
Quote from: dkharp on September 30, 2009, 01:13:05 AM
Hello,

I am running smf 1.1.10 I seem to can not find the right line in - sources / board index.php to add the right code for this mod.

Can anyone help?

You Parsed the version for SMF 2.0 [1.5.4] ... Select version 1.4.0 and parse for SMF 1.1.10  :)

Wow what a simple fix right there XD.  You know I've been trying to figure that out a few times and it was just so simple.  I was on the wrong one LOL.  I know this wasn't my question, but thanks for the help XD

XD ??  :o
Title: Re: Users Online Today Mod
Post by: Rhyme on September 30, 2009, 12:40:38 PM
Quote from: aw06 on September 30, 2009, 10:59:46 AM
Quote from: Rhyme on September 30, 2009, 01:48:11 AM
Quote from: aw06 on September 30, 2009, 01:42:14 AM
Quote from: dkharp on September 30, 2009, 01:13:05 AM
Hello,

I am running smf 1.1.10 I seem to can not find the right line in - sources / board index.php to add the right code for this mod.

Can anyone help?

You Parsed the version for SMF 2.0 [1.5.4] ... Select version 1.4.0 and parse for SMF 1.1.10  :)

Wow what a simple fix right there XD.  You know I've been trying to figure that out a few times and it was just so simple.  I was on the wrong one LOL.  I know this wasn't my question, but thanks for the help XD

XD ??  :o

I thought everyone on the internet knew what XD was.  It's a text based smile on it's side.  Kind of like a mix between =D and >_<.  So eyes are closed pointing in, but with a happy face. 
Title: Re: Users Online Today Mod
Post by: aw06 on September 30, 2009, 02:34:09 PM
ohhh. i knew that ^_^
Title: Re: Users Online Today Mod
Post by: miranon on October 04, 2009, 01:15:57 PM
Is it possible to make this mod also work with spiders who visited the forum?
Title: Re: Users Online Today Mod
Post by: symon on October 05, 2009, 09:16:23 AM
I have 1.4.0 installed. Does 1.5.4 now show ALL visitors in 24hrs including guests?

Also, is this a complete install or can I add the extra code on top?
Title: Re: Users Online Today Mod
Post by: JimM on October 05, 2009, 10:32:35 PM
1.5.4 is for 2.0.  The Mod Site (http://custom.simplemachines.org/mods/index.php) has a date the mod was last updated.  Additionally information on any changes are available in the first post of the dedicated support topic.
Title: Re: Users Online Today Mod
Post by: Powerbob on October 06, 2009, 02:43:31 AM
1.5.4 is running with my test copy of "RC2"! Great mod 8)
Title: Re: Users Online Today Mod
Post by: VegaTheChosen on October 07, 2009, 12:42:47 AM
hi everyone did a search in this thread didnt find a solution, I installed this and it worked fine, made edits on my custom theme but user names of who visited is not showing heres an example along with my board index from my theme, thanks for the help
(http://i35.tinypic.com/axmjkj.jpg)
Title: Re: Users Online Today Mod
Post by: Rhyme on October 07, 2009, 03:17:28 AM
Quote from: VegaTheChosen on October 07, 2009, 12:42:47 AM
hi everyone did a search in this thread didnt find a solution, I installed this and it worked fine, made edits on my custom theme but user names of who visited is not showing heres an example along with my board index from my theme, thanks for the help
(http://i35.tinypic.com/axmjkj.jpg)

I'm not sure which version you are using, but I had this issue with a custom theme and you have to edit the boardindex.template.php file.

So go back into the theme you are using in your FTP find the the boardindex.template.php file and edit the following:

Find:

                     ', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ')
                  </span>
               </td>
            </tr>';

AFTER it put this in:


   // Users online today

   echo '
   <tr>
      <td class="titlebg" colspan="2">', $txt['uot_users_online_today'], '</td>
   </tr><tr>
      <td class="windowbg" width="20" valign="middle" align="center">
         <img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['uot_users_online_today'], '" border="0" />
      </td>
      <td class="windowbg2" width="100%">';

   echo '
         <div class="smalltext">';

  echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
  if (!$context['user']['is_guest'])
     echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';

   // Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
   if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
      echo '<br />', implode(', ', $context['list_users_online_today']);

   echo '
            <br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
            <a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
         </div>
      </td>
   </tr>';
         


That should fix the issue.
Title: Re: Users Online Today Mod
Post by: JimM on October 07, 2009, 09:47:44 PM
@VegaTheChosen - You inserted the code from version 1.5.4.  That is for SMF 2.0.  You should have installed version 1.4.0 which is for 1.1.x.  Try the following file.
Title: Re: Users Online Today Mod
Post by: miranon on October 11, 2009, 10:57:19 AM
Hello, is it possible to make this mod also work with spiders who visited the forum?
Title: Re: Users Online Today Mod
Post by: VegaTheChosen on October 12, 2009, 09:11:10 PM
worked perfect guys thank you soo much!
Title: Re: Users Online Today Mod
Post by: Kat9119 on October 15, 2009, 04:09:21 PM
I was thinking I wanted to use this mod on 1.1.10...but now I'm not so sure.

I didn't see any demo, so I checked out forums listed throughout this thread...and all I see is
"Total: #" on the bottom of the board. In some of the screen caps, I see the same thing, but with usernames. I'm assuming this means that the usernames are not visible for guests.

Any way to make this one show users within the last 24hrs, with member names to all users, including guests? Or is there some other edit/script to use?

If I can do that with this one, is there a way to make it appear UNDER everything else in that user info panel (above login for guests)?
Title: Re: Users Online Today Mod
Post by: Sabre™ on October 15, 2009, 05:37:37 PM
Quote from: Kat9119 on October 15, 2009, 04:09:21 PM
Any way to make this one show users within the last 24hrs, with member names to all users, including guests? Or is there some other edit/script to use?
......is there a way to make it appear UNDER everything else in that user info panel (above login for guests)?

That is exactly what this mod does :)
Taken from the first post of the thread:
Quote from: from the mod authorAdds a list of all users that were online on the current day to the 'Info Center'.

If you are using a theme other than the default, you will need to edit that themes boardindex.template.php.
If you choose to use this mod, be sure to use that package labeled Users_Online_Today_1.4.0.zip, as the other is for smf2
Title: Re: Users Online Today Mod
Post by: coralsea on October 16, 2009, 07:37:07 AM
I needed an SSI version of Users Online Today so I could show a simple list of members logged on during the day on my website home page.

This is a very basic version and no doubt can be greatly improved.

Add to SSI.php


// Who's been online today - very basic version 1.0
// the database table smf_members contains the last login unix time stamp for each member as well as the member name
function ssi_whosOnlineToday($output_method = 'echo'){
$begining_today_time = strtotime(date('Y-n-j')); //get unix time at beginning of today
$result = db_query("
SELECT memberName
FROM {$db_prefix}members
WHERE lastLogin > $begining_today_time
ORDER BY memberName ASC"); //find all members logged in since beginning of today
$mc=mysql_num_rows($result); //total members logged in today
while ($row = mysql_fetch_array($result)){ //print results, format as desired
echo $row['memberName'];
if($mc>1){echo ',&nbsp;';}
$mc--;
}
}


Title: Re: Users Online Today Mod
Post by: Powerbob on October 16, 2009, 07:41:41 AM
1.5.4 Works in RC2 as well 8)
Title: Re: Users Online Today Mod
Post by: Kat9119 on October 22, 2009, 05:11:10 PM
Nice, it installed well.

Only 1 question. Is there a way to make it so that guests can see the list of who logged in too?
Title: Re: Users Online Today Mod
Post by: imrich on October 24, 2009, 04:47:42 PM
Thanks for this mod. I like it.

But here's a minor bug report:

If I choose other reporting period options such as last_24_hours or last_7_days, the heading still says "Users Logged in Today". I'll have to manually edit the Heading text to fix this. It would be nice if it occured automatically with the change of the options.

I suggest that the heading text change to report properly "Users Logged in within the last 24 hours" or "Users logged in within the last 7 days" as appropriate per the selected option.

Improvement suggestion: It would be nice to have a method to change these options within the Modifications page (For SMF 2.0) at least. :)

Thanks again for this mod.
Title: Re: Users Online Today Mod
Post by: TwitchisMental on October 24, 2009, 07:11:10 PM
Quote from: Powerbob on October 16, 2009, 07:41:41 AM
1.5.4 Works in RC2 as well 8)
Thats good to know. Now if the other mods I love get updated to rc2 :D.
Title: Re: Users Online Today Mod
Post by: imrich on October 25, 2009, 07:47:47 AM
Minor point: This mod will list users that have "Show users your online status" turned off.
Title: Re: Users Online Today Mod
Post by: simplebeer on October 25, 2009, 02:48:41 PM
Quote from: PiWi on September 10, 2009, 08:48:12 AM
Quote from: Sabre™ on September 09, 2009, 06:07:06 PM
Find this line
<td class="titlebg" colspan="2">', $txt['uot_users_online_today'], '</td>
and try changing titlebg to catbg. Im pretty sure thats all it takes.
See if it works.

YES it works! thanx a lot Sabre! I could never think of this at my own!

Gr Patrick

One more thing, i would like to see also how many quests were on the forum for each day, is it possible to show also this in the online today mod?

Now you see only the members..

Thanks!
Title: Re: Users Online Today Mod
Post by: Sabre™ on October 25, 2009, 11:50:10 PM
I have to admit, I was racking my brain trying to figure out what you meant by "quests".
I couldn't figure out if you wanted to display how many quests they'd ventured/completed in a game, or their 'actions' within the forum.
Then after reading another thread, it dawned on me that this may be a typo, and you could've meant "guests" lol
Yep, sometimes the simplest of things get by me :P

So this would require the name "Guests" to appear once, and the number visited that day displayed next to it?
At this time, I have no idea how to display this, as I've never looked into it, and the mod author is on hiatus, so there is no telling when you could receive assistance for this.
Opening your own thread may be fruitful for you, as someone of more experience may have the solution for you.

Good luck buddy :)
Title: Re: Users Online Today Mod
Post by: kingkingston on November 04, 2009, 07:09:40 AM
Will this be updated to SMF 2.0 RC2 ?
Title: Re: Users Online Today Mod
Post by: simplebeer on November 04, 2009, 07:20:33 AM
Quote from: Sabre™ on October 25, 2009, 11:50:10 PM
I have to admit, I was racking my brain trying to figure out what you meant by "quests".
I couldn't figure out if you wanted to display how many quests they'd ventured/completed in a game, or their 'actions' within the forum.
Then after reading another thread, it dawned on me that this may be a typo, and you could've meant "guests" lol
Yep, sometimes the simplest of things get by me :P

So this would require the name "Guests" to appear once, and the number visited that day displayed next to it?
At this time, I have no idea how to display this, as I've never looked into it, and the mod author is on hiatus, so there is no telling when you could receive assistance for this.
Opening your own thread may be fruitful for you, as someone of more experience may have the solution for you.

Good luck buddy :)

Lol, yes i meant guests, sorry  :P

I try my own thread, thanks..
Title: Re: Users Online Today Mod
Post by: JimM on November 04, 2009, 08:40:08 AM
This mod already installs fine on 2.0RC2.
Title: Re: Users Online Today Mod
Post by: miranon on November 05, 2009, 06:53:41 PM
Hello all, is it possible to make this mod also work with spiders who visited the forum?

Thanks for your answer.
Title: Re: Users Online Today Mod
Post by: ishy on November 08, 2009, 12:17:13 PM
How can I put it beneath the information center instead of above it (http://oldschoolhp.net/forum/index.php)?
Title: Re: Users Online Today Mod
Post by: Sabre™ on November 08, 2009, 08:51:44 PM
I don't understand where you mean.
It should naturally display 'within the info-center below 'Users Online', do you mean you'd like it below your Cbox or something?
Title: Re: Users Online Today Mod
Post by: ishy on November 08, 2009, 09:48:15 PM
There is a link to explain what I mean. It appears above the information center, not below Users Online.
Title: Re: Users Online Today Mod
Post by: Sabre™ on November 09, 2009, 01:12:42 AM
Yeah, I dunno how I missed it being there when I first checked it. * scratches head
I edited your template, see if it works for you.
Title: Re: Users Online Today Mod
Post by: ishy on November 09, 2009, 05:42:22 AM
Oh, perfect! Thanks!
Title: Re: Users Online Today Mod
Post by: Sabre™ on November 09, 2009, 06:26:37 AM
My pleasure.
Enjoy :)
Title: Re: Users Online Today Mod
Post by: baulknaub on November 10, 2009, 09:32:03 PM
Well, I am scratching my head - I just upgraded to 2.0 RC2 and my templete's admin section no longer works, which is a topic for another thread of course. But mu Users Online no longer appears at the bottom. I have uninstalled and reinstalled it and can see the changes in my files as outlined on the mod page and have verified the 2 additional files are in their proper place. In other words - all looks like it is should be but it just doesn't show up.
So - any suggestion of what I could check next would be helpful.
Title: Re: Users Online Today Mod
Post by: simplebeer on November 11, 2009, 05:03:47 AM
Quote from: baulknaub on November 10, 2009, 09:32:03 PM
Well, I am scratching my head - I just upgraded to 2.0 RC2 and my templete's admin section no longer works, which is a topic for another thread of course. But mu Users Online no longer appears at the bottom. I have uninstalled and reinstalled it and can see the changes in my files as outlined on the mod page and have verified the 2 additional files are in their proper place. In other words - all looks like it is should be but it just doesn't show up.
So - any suggestion of what I could check next would be helpful.

Updated from 1.1.10?

Seen this?
1.4.0: SMF 1.1.x
1.5.4: SMF 2.0 series

Gr
Title: Re: Users Online Today Mod
Post by: imrich on November 12, 2009, 09:23:04 AM
Quote from: JimM on November 04, 2009, 08:40:08 AM
This mod already installs fine on 2.0RC2.

Yes it seems to work, but I did notice this in my log when I installed it:

http://www.domain.tld/forum/index.php?action=admin;area=packages;sa=install2;package=Users_Online_Today_1.5.4.zip;pid=08: Undefined index: theme
File: /user/domain/public_html/forum/Sources/Packages.php
Line: 935

I'm not sure if this is a bug in SMF 2 RC2 or if it's an issue with this mod?

During install I did choose to install it in a couple of optional themes that I have, but I'm mostly using curve for now.

The mod does seem to be working ok.
Title: Re: Users Online Today Mod
Post by: imrich on November 14, 2009, 08:44:42 AM
Quote from: imrich on November 12, 2009, 09:23:04 AM
Quote from: JimM on November 04, 2009, 08:40:08 AM
This mod already installs fine on 2.0RC2.

Yes it seems to work, but I did notice this in my log when I installed it:

http://www.domain.tld/forum/index.php?action=admin;area=packages;sa=install2;package=Users_Online_Today_1.5.4.zip;pid=08: Undefined index: theme
File: /user/domain/public_html/forum/Sources/Packages.php
Line: 935

I'm not sure if this is a bug in SMF 2 RC2 or if it's an issue with this mod?

During install I did choose to install it in a couple of optional themes that I have, but I'm mostly using curve for now.

The mod does seem to be working ok.


I tested this again and even with the new 1.5.5 version that was supposed to be updated to work with Curve and confirmed that I get this error when installing on some other themes that the package manager identifies as ok to install on.

But if I install this mod only on the default theme (don't check any additional themes), then this error does not occur.

Thanks for this mod. I wish the mod would allow changing it's settings via the modifications settings admin page.

Title: Re: Users Online Today Mod
Post by: Carceri on November 16, 2009, 06:36:21 AM
Quote from: imrich on November 14, 2009, 08:44:42 AM
Thanks for this mod. I wish the mod would allow changing it's settings via the modifications settings admin page.

It's on the TODO list.
Title: Re: Users Online Today Mod
Post by: imrich on November 17, 2009, 08:04:32 AM
There is a minor display bug in this mod when the period is set to 'last_7_days'.

With the period set to 'last_7_days', then when you hover your mouse over the list of members that have been online within the last 7 days, members that are over 24 hours old display the date last logged in as 'Yesterday AT xx:xx PM', but when you view their profile, you can see that they were last active several days earlier (but the time of day is correct). So it seems that the 'yesterday' logic is not correct when the user was last logged in longer than 24 hours.
Title: Re: Users Online Today Mod
Post by: Carceri on November 17, 2009, 11:02:49 AM
Quote from: imrich on November 17, 2009, 08:04:32 AM
There is a minor display bug in this mod when the period is set to 'last_7_days'.

With the period set to 'last_7_days', then when you hover your mouse over the list of members that have been online within the last 7 days, members that are over 24 hours old display the date last logged in as 'Yesterday AT xx:xx PM', but when you view their profile, you can see that they were last active several days earlier (but the time of day is correct). So it seems that the 'yesterday' logic is not correct when the user was last logged in longer than 24 hours.

Thanks for reporting this. I am pretty sure I know where it comes from, and I will get it fixed soon.
Title: Re: Users Online Today Mod
Post by: ishy on November 24, 2009, 07:22:10 AM
Is there a way to sort by membergroup instead of time logged in or username? I realize it's not in the options, so I am thinking about hand coding this. I'm just not sure how to go about it.
Title: Re: Users Online Today Mod
Post by: jcastellese on December 03, 2009, 11:42:59 AM
We're having a problem with our Users Online Today. I'm really not too sure what's causing it either.

The problem in the most short and simple form is that it's not showing up, http://www.monroetalks.com/forum

We're running 2.0 RC2 and are on a modified theme, but the theme doesn't have a modified BoardIndex.template.php and should be running the one from the default theme.

I've installed the latest version from the package manager and it installed just fine. I've also gone through the manual instructions and made sure everything was in place. I'm not sure anymore what is causing the problem, but for some reason, this feature simple isn't showing up.
Title: Re: Users Online Today Mod
Post by: JimM on December 03, 2009, 12:32:22 PM
If you change to the default theme does it appear? 
Title: Re: Users Online Today Mod
Post by: jcastellese on December 03, 2009, 01:03:58 PM
thats a good idea for testing, I just tried it though and still no change, it's not coming up :(
Title: Re: Users Online Today Mod
Post by: JimM on December 03, 2009, 01:25:45 PM
In that case, the package did not install.  Did you try checking the BoardIndex.template.php and the BoardIndex.php files to see if the edits were accomplished? 
Title: Re: Users Online Today Mod
Post by: Daggers on December 05, 2009, 03:04:27 PM
Installed RC2 today :D

This mod did not install so I had to do it manually. :( The canview option is set for registered but guests cansee who has been online today :(

Title: Re: Users Online Today Mod
Post by: -=[Vyorel]=- on December 08, 2009, 07:29:49 AM
For SMF 1.1.11 ?
Title: Re: Users Online Today Mod
Post by: imrich on December 13, 2009, 07:59:46 PM
Quote from: imrich on November 17, 2009, 08:04:32 AM
There is a minor display bug in this mod when the period is set to 'last_7_days'.

With the period set to 'last_7_days', then when you hover your mouse over the list of members that have been online within the last 7 days, members that are over 24 hours old display the date last logged in as 'Yesterday AT xx:xx PM', but when you view their profile, you can see that they were last active several days earlier (but the time of day is correct). So it seems that the 'yesterday' logic is not correct when the user was last logged in longer than 24 hours.


This can be fixed by changing line 140 of Subs_MembersOnlineToday.php

from:

$last_login_txt = $yesterday . strftime($time_fmt, forum_time(true, $row['last_login']));

to:

$last_login_txt = strip_tags(timeformat($row['last_login']));


I hope this helps you. It's a simple fix that also allows the displayed time to follow the forum formatting rules (and also the forums 'today/yesterday' setting).
Title: Re: Users Online Today Mod
Post by: qubbah on January 25, 2010, 02:45:54 AM
how can we make hidden users completely remove from the list.  Some of membergroup can see the hidden users. I want it completely hide the hidden users. tq

or completely remove admin login today in list?
Title: Re: Users Online Today Mod
Post by: donnpipop on January 26, 2010, 09:25:59 PM
My SMF is 1.1.11 and I use New Year 2010 Theme that I found on http://custom.simplemachines.org/themes/index.php?lemma=2058
After I installed theme I installed "Users Online Today Mod" ( 1.4.0 for smf 1.1.11 ) then
I edit filed that suggest in http://custom.simplemachines.org/mods/index.php?action=parse

1. ./Sources/BoardIndex.php
2. ./Sources/Stats.php
3. ./Themes/default/BoardIndex.template.php
4. ./Themes/default/Stats.template.php
5. ./Themes/default/languages/Modifications.english.php
6. ./Themes/default/languages/Stats.english.php

But Users Online Today Mod not appear on my SMF.

Can you suggest me to solve my problem?

Thank you very much ^^
Title: Re: Users Online Today Mod
Post by: qubbah on January 26, 2010, 09:50:35 PM
Quote from: qubbah on January 25, 2010, 02:45:54 AM
how can we make hidden users completely remove from the list.  Some of membergroup can see the hidden users. I want it completely hide the hidden users. tq

or completely remove admin login today in list?
anybody can help?
Title: Re: Users Online Today Mod
Post by: Sabre™ on January 28, 2010, 11:45:28 AM
@ donnpipop and qubbah
Attach your boardindex.template.php and I'll make the edits for you :)
Title: Re: Users Online Today Mod
Post by: donnpipop on January 29, 2010, 05:16:16 AM
Hi Sabre

Here's my BoardIndex.template.php

Thank you  ;D ;D ;D
Title: Re: Users Online Today Mod
Post by: Sabre™ on January 29, 2010, 06:24:42 AM
Did you manually install the mod, or use the package parser in your admin panel?
The code was added twice to your template, but shouldn't have interfered with each other, rather it would have displayed the feature twice.
It seems that you may have to check all of the files this mod alters, and remove any duplicate code, aswell as double check that they are there.
Attached is your template.
Title: Re: Users Online Today Mod
Post by: donnpipop on January 29, 2010, 06:37:16 AM
Quote from: Sabre™ on January 29, 2010, 06:24:42 AM
Did you manually install the mod, or use the package parser in your admin panel?
The code was added twice to your template, but shouldn't have interfered with each other, rather it would have displayed the feature twice.
It seems that you may have to check all of the files this mod alters, and remove any duplicate code, aswell as double check that they are there.
Attached is your template.

I use package that I download from http://custom.simplemachines.org/mods/index.php?mod=217
( Users_Online_Today_1.4.0.zip )
Can I use BoardIndex.template.php that you attached to me?
Title: Re: Users Online Today Mod
Post by: Sabre™ on January 30, 2010, 04:01:47 AM
Yes you may, although you may need to check your other templates.
If you'd like for me to come to your site and fix the issue manually, just PM me and we'll sort it out :)
Otherwise, good luck, and we're here if you run into any other problems.
Title: Re: Users Online Today Mod
Post by: puhastus on February 05, 2010, 04:03:20 AM
Is there something wrong with the manual installation instructions for 1.1.11?

It tells me to find the line from ./Sources/BoardIndex.php
$context += getMembersOnlineStats($membersOnlineOptions);

That line does not exist there... also, the line i would have to add after also contains the same line i wrote before. So, it does not make sense...
Title: Re: Users Online Today Mod
Post by: Sabre™ on February 05, 2010, 04:48:15 AM
1.4.0: SMF 1.1.x
1.5.4: SMF 2.0 series (< 2.0 RC1-1)
1.5.6: SMF 2.0 series (>= 2.0 RC2)

Im guessing you didn't use version 1.4.0 ??
Title: Re: Users Online Today Mod
Post by: puhastus on February 05, 2010, 04:52:24 AM
No i didnt :) my bad... thank you very much!
Title: Re: Users Online Today Mod
Post by: Sabre™ on February 05, 2010, 05:25:48 AM
My pleasure buddy, it is an easy mistake.
Good luck :)
Title: Re: Users Online Today Mod
Post by: Filipina on February 18, 2010, 03:49:42 PM
Hello.. installed the latest 1.5.6 version on SMF2.0 RC2 with SimplePortal. All is fine with the Users Online Today showing on the Portal Block to guests. However, they do not show to guests on forum main page.

I want Users Online Today to show for guests on the forum main. I am assuming this is a permissions issue but I cannot find the setting.

P.S. I had an older version of this MOD on an old forum and this was not an issue. If the MOD has changed, is there a way I can hard code the guests to have this permission?

Any assistance would be appreciated :) 
Title: Re: Users Online Today Mod
Post by: Carceri on February 19, 2010, 08:17:42 AM
Quote from: Filipina on February 18, 2010, 03:49:42 PM
I want Users Online Today to show for guests on the forum main. I am assuming this is a permissions issue but I cannot find the setting.

Take a look at the readme.txt file included with the mod.
Title: Re: Users Online Today Mod
Post by: Filipina on February 19, 2010, 08:42:46 AM
Thank you very much... funny, I did read it before but obviously not very carefully i missed the end..  :)
Title: Re: Users Online Today Mod
Post by: dbailey on February 24, 2010, 04:54:11 AM
Hi. I'm running a custom theme on my site and I have installed this mod and I have $txt['uot_users_online_today']='Users Logged In Today'; $txt['uot_yesterday']='Yesterday at '; $txt['uot_total']='Total'; $txt['uot_visible']='Visible'; $txt['uot_hidden']='Hidden';  on top of my page as text.

Any ideas how to fix? I have done a search but couldn't find an answer.

Thanks
Title: Re: Users Online Today Mod
Post by: Sabre™ on February 24, 2010, 05:15:07 AM
Go to your Modifications.english.php template (default/languages/Modifications.english.php)  and look at the bottom of the page for this text
$txt['uot_users_online_today']='Users Logged In Today';
Just above it, you will see this  ?>  move it to the bottom of the page, and that should remove the text from the top of your forum. :)
Title: Re: Users Online Today Mod
Post by: dbailey on February 24, 2010, 05:25:02 AM
Quote from: Sabre™ on February 24, 2010, 05:15:07 AM
Go to your Modifications.english.php template (default/languages/Modifications.english.php)  and look at the bottom of the page for this text
$txt['uot_users_online_today']='Users Logged In Today';
Just above it, you will see this  ?>  move it to the bottom of the page, and that should remove the text from the top of your forum. :)

thanks that did the job. Cheers.
Title: Re: Users Online Today Mod
Post by: Sabre™ on February 24, 2010, 06:45:22 AM
Anytime :)
Title: Re: Users Online Today Mod
Post by: IvoLeite on February 25, 2010, 11:43:34 AM
Hello.

Is there a way to put the number os guests that have visited to forum today in the same place as this mod?

Users Logged In Today
Total: 124Total: 124 (Visible: 124, Hidden: 0) Guests: X
IvoLeite, Pacheco, Paulo Barbosa, Dias.F, agut22, Rui Cunha, eduardo agostinho, monter......................................


SMF 1.1.11

Tks in advanced.
Title: Re: Users Online Today Mod
Post by: Carceri on February 28, 2010, 07:50:08 AM
Quote from: IvoLeite on February 25, 2010, 11:43:34 AM
Is there a way to put the number os guests that have visited to forum today in the same place as this mod?

This has been answered before, but in general there is no way to count the number of guest visits, since there is no way to reliably distinguish two different guest visits, from the same guest visiting the site twice.
Title: Re: Users Online Today Mod
Post by: Info~ on March 02, 2010, 08:35:08 AM
Hello, I really need help with this mod...
I installed this trough manual on mod page, and it's not shown on my forum...  :(

I use RC2.0 RC2 forum
Title: Re: Users Online Today Mod
Post by: nakre07 on March 05, 2010, 06:43:09 PM
How can i use this mod Turkish-utf8 with another theme ?
i did try creat a folder called MembersOnlineToday.turkish-utf8 and then put it in the theme im using but its still English any idea ?
Title: Re: Users Online Today Mod
Post by: Am' on March 11, 2010, 04:51:46 AM
Translation french-utf8

$txt['uot_users_online_today'] = 'Les utilisateurs connectés Aujourd\'hui';
$txt['uot_total'] = 'Total';
$txt['uot_visible'] = 'Visible';
$txt['uot_hidden'] = 'Caché';
Title: Re: Users Online Today Mod
Post by: fairytears on March 11, 2010, 10:07:51 PM
Hello

Great mod  :)

I am using smf 1.1.11 and I was wondering if there is any way to show the total members yesterday besides the users online today.

Thank you  :)
Title: Re: Users Online Today Mod
Post by: aw06 on March 11, 2010, 11:30:10 PM
Quote from: fairytears on March 11, 2010, 10:07:51 PM
Hello

Great mod  :)

I am using smf 1.1.11 and I was wondering if there is any way to show the total members yesterday besides the users online today.

Thank you  :)

yeah, good idea...

Users Logged In Today - Users Logged In Yesterday xxx

Title: Re: Users Online Today Mod
Post by: Dream of Omnimaga on March 13, 2010, 04:13:37 AM
Quote from: Carceri on February 19, 2010, 08:17:42 AM
Quote from: Filipina on February 18, 2010, 03:49:42 PM
I want Users Online Today to show for guests on the forum main. I am assuming this is a permissions issue but I cannot find the setting.

Take a look at the readme.txt file included with the mod.
I can't find the readme in the 1.4.0 download. I would like to be able to do the same thing as Filipina, but I use SMF 1.1.11, so I cannot use 1.5.x. Could you post the instructions on what to change to make the online today list show users for guests as well?
Title: Re: Users Online Today Mod
Post by: aw06 on March 13, 2010, 03:11:54 PM
Quote from: DJ Omnimaga on March 13, 2010, 04:13:37 AM
Quote from: Carceri on February 19, 2010, 08:17:42 AM
Quote from: Filipina on February 18, 2010, 03:49:42 PM
I want Users Online Today to show for guests on the forum main. I am assuming this is a permissions issue but I cannot find the setting.

Take a look at the readme.txt file included with the mod.
I can't find the readme in the 1.4.0 download. I would like to be able to do the same thing as Filipina, but I use SMF 1.1.11, so I cannot use 1.5.x. Could you post the instructions on what to change to make the online today list show users for guests as well?

Thank you for using the Users Online Today Modification,

This modification allows users to see who logged in during the day.

It is possible to chance a few options for by editing the BoardIndex.php
file. The default options found there, are the following:

$membersOnlineTodayOptions = array(
                'sort' => 'login_time',
                'reverse_sort' => true,
                'period' => 'current_day',
                'canview' => 'registered',
);

The following options are possible:

Option:          sort
Possible Values: 'login_time', 'member_name'
Description:     Sort the user list by either login time or their username

Option:          reverse_sort
Possible Values: true, false
Description:     Sort the user list in ordinary or reverse order

Option:          period
Possible Values: 'current_day', 'last_24_hours', 'last_7_days'
Description:     The period the user list covers

Option:          canview
Possible Values: 'admin', 'registered', 'everyone'
Description:     Determines who can view the user list


But this does not seem to be the case for 1.1.11
Title: Re: Users Online Today Mod
Post by: Dream of Omnimaga on March 13, 2010, 06:56:50 PM
Yeah, this is only for 2.0 RC, and I tried some code edits shown in page 64 of this thread (and earlier) but they cause template parsing errors when viewing the board index, which indicates these edits probably conflicts with another mod I use
Title: Re: Users Online Today Mod
Post by: aw06 on March 13, 2010, 09:04:26 PM
File to Edit ............. /Themes/yourtheme/BoardIndex.template.php

Quote from: JimM on May 27, 2009, 03:32:45 PM
Where was my head yesterday?  Also change this line:

if (!empty($context['users_online_today']) && !$context['user']['is_guest'])

To this:

if (!empty($context['users_online_today']))

Try that.

I only did the above and got it working, with no error ,,,
Title: Re: Users Online Today Mod
Post by: hcfwesker on March 17, 2010, 04:54:24 PM
I'm on SMF 1.1.11  -- the MOD is working great.

But, is there an edit so you can display the total number of guests, as well in this table?  So it displays as

instead of ---  Total: 67 (Visible: 67, Hidden: 3)

it shows  ---   Total: 67 (Visible: 67, Hidden: 3, Guests: ###)

And, I would also like to know how to change it so "guests" can also see the member list in the Users Online Today  table, as well.

Thank You for any help on this. :)
Title: Re: Users Online Today Mod
Post by: aw06 on March 17, 2010, 05:31:50 PM
The post above yours show you how the change it so guest can see the list ...

And there is no way to count guest in the online list..
Title: Re: Users Online Today Mod
Post by: hcfwesker on March 17, 2010, 05:36:41 PM
Thank You, sir.  :)

When I read through the above posts, I thought it was referring to SMF 2.0

I'll check it out now :)
Title: Re: Users Online Today Mod
Post by: kenchix1 on March 21, 2010, 10:23:24 PM
I installed this mod on 1.1.11, I saw the figures but can't see the descriptions, it only displays :

: 10 (: 9, : 1)
user1, user2, user2, user4, user4, etc...


What files should i modify ? (there's no readme on 1.4)

thanks.
Title: Re: Users Online Today Mod
Post by: hcfwesker on March 22, 2010, 01:16:04 AM
Should be under your  ...../Themes/Your Theme/Board.Index.Template.php file.
Title: Re: Users Online Today Mod
Post by: kenchix1 on March 22, 2010, 02:21:07 AM
Quote from: hcfwesker on March 22, 2010, 01:16:04 AM
Should be under your  ...../Themes/Your Theme/Board.Index.Template.php file.

I am using the default theme. I think what I need is where to put or modify these:

$txt['uot_users_online_today'], $txt['uot_total'], $txt['uot_visible'], $txt['uot_hidden']

I can't see the description of the numbers displayed below the info center.

Thanks.
Title: Re: Users Online Today Mod
Post by: kenchix1 on March 22, 2010, 02:55:22 AM
I got it.

Modifications.english-utf8.php

Thanks. :)
Title: Re: Users Online Today Mod
Post by: hcfwesker on March 22, 2010, 10:14:06 PM
If your default language is set to English-utf8  ; I'd recommend changing it to just "English" under your Server Settings in your AdminCP.  Most all files under languages/english files are automatically updated when installing packages.
Title: Re: Users Online Today Mod
Post by: fairytears on March 26, 2010, 02:32:32 PM
I am using smf 1.1.11 and I was wondering if there is any way to show the total members yesterday besides the users online today.

Sorry for asking again, I would really like to do this. So, if anyone knows how, I would really appreciate the help   :)
Title: Re: Users Online Today Mod
Post by: Galjoen on April 04, 2010, 09:33:21 AM
Hi, have read all 74 pages, but could not find "working solution"  Is it possible to hide form everyone except admin and mods. This is just so we can see who have been
online without going to each and every member.
I am running 1.1.11. Thanks, any help appreciated

To make this work I also  had to edit my .utf8 files
Title: Re: Users Online Today Mod
Post by: kat on April 04, 2010, 04:14:41 PM
http://www.simplemachines.org/community/index.php?topic=374505.0 (http://www.simplemachines.org/community/index.php?topic=374505.0)
Trying to support this guy and ran into a problem...


At the bottom of the page, it says:


1.5.4: SMF 2.0 series (< 2.0 RC1-1)
1.5.6: SMF 2.0 series (>= 2.0 RC3)



Which is odd.


That means 1.5.4 is for v2 BEFORE RC1-1 and 1.5.6 is for RC3 and later.



Where does RC2 come into this? (Or have I misunderstood?)
Title: Re: Users Online Today Mod
Post by: Info~ on April 05, 2010, 03:43:44 PM
Yes please help, this is confusing!?
Title: Re: Users Online Today Mod
Post by: kat on April 05, 2010, 04:33:25 PM
I've downed both the packages and looked through the files.


No clues, there, that I could find.


That doesn't mean the clues aren't there, though.


I just can't find 'em!  ;)
Title: Re: Users Online Today Mod
Post by: Carceri on April 06, 2010, 08:41:48 AM
I guess at some point I forgot to update the text when I uploaded a new version.

I have now removed the version intended for older versions of the 2.0 series, since I think it is fair to assume that people interested in helping with the development of SMF 2.0 by using betas and release candidates are always running the latest version.
Title: Re: Users Online Today Mod
Post by: Rumboogy on April 06, 2010, 09:29:10 AM
Is there anyway to put this into a Simple Portal block...I would like to have it show up in a block on the front page of my website. I am using SMF 2.0 RC3.

Thanks for any help.

Wally
Title: Re: Users Online Today Mod
Post by: kat on April 06, 2010, 10:05:49 AM
Quote from: Carceri on April 06, 2010, 08:41:48 AM
I guess at some point I forgot to update the text when I uploaded a new version.


I see the edits. ;)


Thanks, Carceri!
Title: Re: Users Online Today Mod
Post by: Paul_Pauline on April 06, 2010, 03:01:04 PM
Hiya.

Could you tell me how to achieve this please   :)

I do not permit hidden users on my forum and would like it to just say "Total : 6"

And all this to be removed " (Visible: 6, Hidden: 0)"

Thanks, Paul.
Title: Re: Users Online Today Mod
Post by: kat on April 06, 2010, 03:07:33 PM
Try removing this line, from board.index.php, in the default theme's directory, Paul:


['num_users_online_today'] - $context['num_users_hidden_today']), ', ', $txt['uot_hidden'], ': ', $context['num_users_hidden_today'], ')';
Title: Re: Users Online Today Mod
Post by: Paul_Pauline on April 06, 2010, 03:37:10 PM
Hi Kat.

Do you have a line number, my head is starting to spin now   :o
Title: Re: Users Online Today Mod
Post by: kat on April 06, 2010, 03:41:11 PM
Does your text editor not have a Search thingy?


I have no idea, to be honest. I looked at the parser, on the mod's page.
Title: Re: Users Online Today Mod
Post by: Paul_Pauline on April 06, 2010, 03:44:48 PM
I must be going stir crazy, I installed the mod manually as well .

Is it part of the code i've edited, I can't see for looking now  :(
Title: Re: Users Online Today Mod
Post by: kat on April 06, 2010, 03:45:50 PM
/me goes for a look at Paul's site in ftp...
Title: Re: Users Online Today Mod
Post by: kat on April 06, 2010, 03:52:43 PM
OOPS! Sorry, mate. Line was scrunched-up, in the parser.


It should be:


' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_users_hidden_today']), ', ', $txt['uot_hidden'], ': ', $context['num_users_hidden_today'], ')';



Might just need to delete the second part of that line, after all.


Sorry, 'bout that.
Title: Re: Users Online Today Mod
Post by: Paul_Pauline on April 06, 2010, 03:53:35 PM
Kat I found it, but its only part of a line, do I just remove the part you said or the whole line ?
Title: Re: Users Online Today Mod
Post by: Paul_Pauline on April 06, 2010, 03:56:15 PM
what about the echo that starts the line ?
Title: Re: Users Online Today Mod
Post by: kat on April 06, 2010, 03:56:39 PM
  echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
Title: Re: Users Online Today Mod
Post by: Paul_Pauline on April 06, 2010, 04:05:09 PM
Close, but no cigar  ;)

I removed that last code you told me and it removed what i wanted to keep and left the rest  :o
Title: Re: Users Online Today Mod
Post by: kat on April 06, 2010, 04:08:55 PM
Did you try replacing that line with this, oh support member of the month?


echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
Title: Re: Users Online Today Mod
Post by: Paul_Pauline on April 06, 2010, 04:09:35 PM
Done it I reckon  :)

I removed this line  ............

echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';
Title: Re: Users Online Today Mod
Post by: kat on April 06, 2010, 04:14:09 PM
Didn't that remove everything, not just the hiddens?
Title: Re: Users Online Today Mod
Post by: Paul_Pauline on April 06, 2010, 04:17:54 PM
http://amateurflashers.net/index.php
Title: Re: Users Online Today Mod
Post by: kat on April 06, 2010, 04:20:26 PM
(http://www.augk18.dsl.pipex.com/LOLCats/ahha.jpg)


Sorted! :)
Title: Re: Users Online Today Mod
Post by: Paul_Pauline on April 06, 2010, 04:26:50 PM
Oh Bollocks !!!

Take a look at what I just found !

Check all
       Dumb Blonde     Today at 19:11
86.185.126.222       a65162024c68ed741552082337162401
http://amateurflashers.net/index.php

8: Undefined index: uot_hidden
File: /mounted-storage/home10c/sub002/sc71632-BKCT/amateurflashers.net/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 450

       Dumb Blonde     Today at 19:11
86.185.126.222       a65162024c68ed741552082337162401
http://amateurflashers.net/index.php

8: Undefined index: uot_visible
File: /mounted-storage/home10c/sub002/sc71632-BKCT/amateurflashers.net/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 450


Check all
P



I've put the line back in for now  :-[
Title: Re: Users Online Today Mod
Post by: kat on April 06, 2010, 04:32:01 PM
Oh, that poxy eval thing.


Have a butcher's on the mod site. There's a mod for fixing that ******.


Scrub that. I found it, easily enough.


http://custom.simplemachines.org/mods/index.php?mod=2054
Title: Re: Users Online Today Mod
Post by: Paul_Pauline on April 06, 2010, 04:34:32 PM
That only tells you where the problem is doesn't it.

And we already know it's because I took that line of code out.

I've put it back in for know till I get it right.
Title: Re: Users Online Today Mod
Post by: kat on April 06, 2010, 04:39:32 PM
As I understand it (I could be wrong), it's a bug in something, that eval thing.


That code might just expose that bug.
Title: Re: Users Online Today Mod
Post by: kat on April 06, 2010, 04:45:32 PM
Ha!


Just for the hell of it, I installed it, at my place.


The speed-up is VERY noticeable... :D
Title: Re: Users Online Today Mod
Post by: Paul_Pauline on April 06, 2010, 05:09:26 PM
But you are supposed to disable it once you get the error logs that are more specific !

We know the problem is with that line, removing it appears to work, but then it throws errors  :(

I wish I could fooking code  :-\
Title: Re: Users Online Today Mod
Post by: kat on April 06, 2010, 05:14:15 PM
I wish I could fook... ;)


I'll have a butcher's, later. (Tomorrow, probably)


I'm up to my neck in somebody else's cockups, at the moment. (http://www.augk18.dsl.pipex.com/Smileys/c028.gif)


(PSSST! Turn error-logging off. It won't worry you, then. Mine's off) ;)
Title: Re: Users Online Today Mod
Post by: Paul_Pauline on April 06, 2010, 05:20:41 PM
Isn't that what they call a dirty fix   ;)

I'm only playing about on my test site so no problem for now !
Title: Re: Users Online Today Mod
Post by: kat on April 06, 2010, 05:26:03 PM
OK, matey.


Gimme a wave, tomorrow, and I'll break your test forum have a fiddle.


Funny, though, coz those edits workticated on my site. I did it ages ago. Pre v1.1.11, for sure.


Mind you, as I said, I have error-reporting disabled (SMF Arcade and all that)
Title: Re: Users Online Today Mod
Post by: Info~ on April 07, 2010, 07:50:03 AM
I managed to install it successfully, but there is something I would like to change...

(http://img146.imageshack.us/img146/3498/75686406.jpg)

As you can see it's different than "Users Online" box, how can I make it so it will be same as "Users online", so to move "online.gif" down, and to make that black lines., also to move text to right...

SMF Forum version: 2.0 RC2

BroadIndex.template attached...

Title: Re: Users Online Today Mod
Post by: Paul_Pauline on April 07, 2010, 09:06:11 AM
Hi Info~.

It should display like the image attached !

Does it show correctly in the default core theme ?

If it does have you made the manual edits in your custom theme ?

EDIT : 

I just noticed you are running version 2.0 RC2.  I am using 1.1.11 !

Did you download the correct package, ie 1.5.6 zip  :o
Title: Re: Users Online Today Mod
Post by: Info~ on April 07, 2010, 09:39:54 AM
Yes I downloaded correct package, and I want it to look like yours!!

Anyone can help, please?  O:)
Title: Re: Users Online Today Mod
Post by: Rumboogy on April 07, 2010, 01:30:30 PM
I'm still wondering if anyone can help with this...

Is there anyway to put this into a Simple Portal block...I would like to have it show up in a block on the front page of my website. I am using SMF 2.0 RC3.

Thanks for any help.

Wally
Title: Re: Users Online Today Mod
Post by: kat on April 07, 2010, 02:53:21 PM
Quote from: Info~ on April 07, 2010, 07:50:03 AM

BroadIndex.template attached...


Is that from the default theme?


If you change it, it'll likely screw how it looks if your users use the default theme.
Title: Re: Users Online Today Mod
Post by: Info~ on April 07, 2010, 04:08:31 PM
Not default theme!
Title: Re: Users Online Today Mod
Post by: kat on April 07, 2010, 04:25:26 PM
OK.


I'm afraid that my ESP skills seem to have deserted me.


Which theme is it?
Title: Re: Users Online Today Mod
Post by: Info~ on April 07, 2010, 06:50:32 PM
It's BlackRain V.2 by Crip theme....
Title: Re: Users Online Today Mod
Post by: kat on April 08, 2010, 04:57:56 AM
I can't see anything, in the code, that determines it's position, in that way. (That doesn't mean it's not there, of course.)


Out of curiosity, what happens, if you rename boardindex.template.php, in that theme, to boardindex.template0.php. Does it make it better, of does it screw the entire theme?


If you do that, it forces the theme to use the file from the default theme's directory, you see...
Title: Re: Users Online Today Mod
Post by: MarkoKg on April 12, 2010, 08:24:23 AM
Hello there.
I try to install this mod on smf 1.1.11 version, but i cant find this code in BoardIndex.php:
$context += getMembersOnlineStats($membersOnlineOptions);

Can you please help me with this?
Attached is my BoardIndex.php from Sources directory.
Title: Re: Users Online Today Mod
Post by: torgaming on April 12, 2010, 07:45:46 PM
Hi guys,

I just tried installing this mod on my 1.1.11 forum with the default theme set. It fails to install with the following errors:

QuoteInstalling this package will perform the following actions:
Type   Action   Description
1.   Execute Modification   ./Sources/BoardIndex.php   Test failed
2.   Execute Modification   ./Themes/default/BoardIndex.template.php   Test failed
3.   Extract File   ./Sources/Subs-MembersOnlineToday.php   
4.   Extract File   ./Themes/default/languages/MembersOnlineToday.english.php

any ideas? I thought it may have been permissions, so set them to 777 temporarily but that didn't work.

Thanks in advance.

Title: Re: Users Online Today Mod
Post by: JimM on April 12, 2010, 09:03:04 PM
Welcome to SMF.

Normally a test failed means that some other mod has modified the code that the mod is looking for.  Try parsing the mod to display the edits and examine the files to see why the edits are failing.  I like to use something like Notepad++ to edit PHP files.
Title: Re: Users Online Today Mod
Post by: torgaming on April 13, 2010, 04:41:16 AM
Ah, yes, makes sense.

I will have a look see.

cheers!!
Title: Re: Users Online Today Mod
Post by: IvoLeite on April 13, 2010, 06:27:47 PM
Quote from: MarkoKg on April 12, 2010, 08:24:23 AM
Hello there.
I try to install this mod on smf 1.1.11 version, but i cant find this code in BoardIndex.php:
$context += getMembersOnlineStats($membersOnlineOptions);

Can you please help me with this?
Attached is my BoardIndex.php from Sources directory.

Hello.

That code is for SMF 2.0 series (version 1.5.4 of the MOD).
For the SMF 1.1.11 you need to install the 1.4.0 version of the MOD.
Title: Re: Users Online Today Mod
Post by: MarkoKg on April 14, 2010, 06:27:47 AM
Thanks ive install it, working fine :D
Title: Re: Users Online Today Mod
Post by: Info~ on April 26, 2010, 01:38:38 PM
Quote from: Info~ on April 07, 2010, 07:50:03 AM
I managed to install it successfully, but there is something I would like to change...

(http://img146.imageshack.us/img146/3498/75686406.jpg)

As you can see it's different than "Users Online" box, how can I make it so it will be same as "Users online", so to move "online.gif" down, and to make that black lines., also to move text to right...

SMF Forum version: 2.0 RC2

BroadIndex.template attached...

Still need this to be fixed guys... Please  :'(
Title: Re: Users Online Today Mod
Post by: Sabre™ on April 26, 2010, 08:21:06 PM
Try the attached template. :)
Title: Re: Users Online Today Mod
Post by: Info~ on April 27, 2010, 03:20:01 AM
It's working!!!!!!!

Yay, thank you really much Sabre, I owe you a million... Really thanks!  ;D
Title: Re: Users Online Today Mod
Post by: Sabre™ on April 27, 2010, 04:09:13 AM
lol
My pleasure mate :)
Title: Re: Users Online Today Mod
Post by: DTM-031 on May 07, 2010, 12:43:23 AM
Is it possible for this mod to log the users logged in each day, accessible through the normal statistics section?
Title: Re: Users Online Today Mod
Post by: Am' on May 07, 2010, 11:41:05 AM
Hi

how count guest in total please ?
Title: Re: Users Online Today Mod
Post by: anshar on May 13, 2010, 07:59:59 AM
Instaled the latest mod version on clean SMF 2.0 RC3. No errors but the mod is not working, nothing new on the main forum page, basicaly no trace of users logged in today.... What went wrong?
Title: Re: Users Online Today Mod
Post by: vicram10 on May 13, 2010, 09:41:29 AM
Quote from: anshar on May 13, 2010, 07:59:59 AM
Instaled the latest mod version on clean SMF 2.0 RC3. No errors but the mod is not working, nothing new on the main forum page, basicaly no trace of users logged in today.... What went wrong?

your theme is a custom theme o the default theme?
Title: Re: Users Online Today Mod
Post by: Deadcity on July 16, 2010, 02:57:16 PM
I am using the Black Box theme and smf 1.1.11 (link here http://custom.simplemachines.org/themes/index.php?lemma=961 (http://custom.simplemachines.org/themes/index.php?lemma=961) and I love it, but I need the users online today mod and when I apply the Black Box theme it goes away.  I tried to follow the directions on the first page but I cannot understand what the post is trying to tell me to do.  I know I need to modify some code but the theme comes with only 2 files.  Can I please get some help? :(
Title: Re: Users Online Today Mod
Post by: Deadcity on July 16, 2010, 11:09:00 PM
Would someone take a look at my boardindex.template.php and make necessary changes to it and if possible not the changes so that I may fix this myself in the future?

I have already downloaded the file and will wait for a response then send it right away, thank you.
Title: Re: Users Online Today Mod
Post by: Sabre™ on July 17, 2010, 02:18:43 AM
The line of code in your boardindex.template.php slightly differs from the line it's asking to look for.
Find this:
// If they are logged in, but SP1 style information is off... show a personal message bar.

Then add the necessary code found [HERE] (http://custom.simplemachines.org/mods/index.php?action=parse;mod=217;attach=150390;smf_version=1.1.11)
See how that works for you.
Title: Re: Users Online Today Mod
Post by: Deadcity on July 17, 2010, 02:00:12 PM
It is not working, I got the Users online today icon to appear and it says there was 2 users online today but it does not tell me the names and on top of that not working it is not at the very bottom where it was in the original theme.  Please help.
Title: Re: Users Online Today Mod
Post by: Deadcity on July 17, 2010, 04:13:38 PM
Where exactly is the boardindex.template.php located?  is this in the blackbox theme file? or is it in the installed smf package somewhere?  I've tried everything the parse on the mod site told me to do and the MOD still will not work correctly with the theme.
Title: Re: Users Online Today Mod
Post by: Sabre™ on July 17, 2010, 07:22:30 PM
On the parse page I linked to, just above the code you need to add, it says: Add Before
It will always tell you where, you just need to look slightly above the code to know where.
It will either say, Add Before, Add After, or Replace. These are your guides.
The template is located in your themes folder.
If it does not sit well due to your themes layout, attach the template, and I'll walk you through it. :)
Title: Re: Users Online Today Mod
Post by: Deadcity on July 17, 2010, 07:37:26 PM
Here is an example of what my board is looking like after I do the edit as per the parse page.
(http://www.thestreetsweeperz.com/example.png)

I've attached the file that I made the edit to.
Title: Re: Users Online Today Mod
Post by: Sabre™ on July 22, 2010, 05:58:20 PM
Oh yep, I see your issue buddy.
Download this version  "Users_Online_Today_1.4.0.zip"
The version or edits youre using is for smf2 :)
Title: Re: Users Online Today Mod
Post by: vascodentro on July 22, 2010, 07:53:47 PM
Hi guys I've installed 1.4.0 version for my 1.1.11 by admin panel  but nothing appears :(

I've not default theme.. someone can help me? Thanks
Title: Re: Users Online Today Mod
Post by: Sabre™ on July 22, 2010, 08:01:17 PM
What theme are you using?
Attach that themes boardindex.template.php
Title: Re: Users Online Today Mod
Post by: vascodentro on July 22, 2010, 08:05:13 PM
Hi Sabre, I use Musiconica theme

Title: Re: Users Online Today Mod
Post by: Sabre™ on July 22, 2010, 08:14:54 PM
Hi vascodentro :)
Try the attached template.
Title: Re: Users Online Today Mod
Post by: vascodentro on July 22, 2010, 08:21:40 PM
Ok something appeared but i think isn't all right.. check the screen
Title: Re: Users Online Today Mod
Post by: Sabre™ on July 22, 2010, 08:26:11 PM
If you are using a language other than english, or are using utf8, you will need to add the strings to your Modifications.{your language}.php and/or Modifications.english-utf8.php

Also do the same for your Stats.{your language}.php
Title: Re: Users Online Today Mod
Post by: vascodentro on July 22, 2010, 08:31:42 PM
Yes I use italian language, I found this about the mod in smf-italia (see link in attached file)

Do you think can be ok if i do these modifications?


Thanks a lot
Title: Re: Users Online Today Mod
Post by: Sabre™ on July 22, 2010, 08:36:20 PM
Yes, make those edits to your files.
Enjoy buddy :)
Title: Re: Users Online Today Mod
Post by: vascodentro on July 22, 2010, 08:39:22 PM
It's all right now... thank you very much friend  8)
Title: Re: Users Online Today Mod
Post by: videomasterz on August 02, 2010, 12:40:31 AM
Hello,

im using the Helios Multi theme with my forum, the instruction on this page for 1.1.11 of the forum is wrong (http://custom.simplemachines.org/mods/index.php?action=parse;mod=217;attach=150390;smf_version=1.1.11), and when i looked in the .zip file of 1.4.0 there are no instructions there... so i had to look at the installation file (users_online_today_mod.xml) to find the exact code that I need for my BoardIndex.php file... i think i got that correct.

BUT, since messing around with Boardindex.template.php i think i screwed up some code somewhere and i need some help the mod is not showing up correct....

i have attached both .php documents and a pic of whats happening. thanks.....
Title: Re: Users Online Today Mod
Post by: Sabre™ on August 02, 2010, 01:13:48 AM
The mod you parsed is for smf2, and should have stated it was when you parsed it, something the author can look into.
But it clearly states on the download page which package is designed for each branch of smf.

May I ask why you aren't using the package manager in your admin panel to install the mod?
This way, only the edits related to your theme are all you need to add, unless the lines a mod searches for has already been altered.

Eitherway, the edits for your theme(Helios) are as follows:
Find in your boardindex.template.php this line
// If they are logged in, but SP1 style information is off... show a personal message bar.

And add directly above/before it this code
// Users online today
echo '
<tr>
<td class="catbg" colspan="2">', $txt['uot_users_online_today'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['uot_users_online_today'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';
echo '
<div class="smalltext">';
  echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
  if (!$context['user']['is_guest'])
  echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
echo '<br />', implode(', ', $context['list_users_online_today']);
echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';


For your boardindex.php if you still need the manual code, obtain it from [HERE] (http://custom.simplemachines.org/mods/index.php?action=parse;mod=217;attach=21629;smf_version=1.1.11)

Good luck, and I hope I was of some assistance :)
Title: Re: Users Online Today Mod
Post by: videomasterz on August 02, 2010, 02:27:16 AM
i did use the install manager through the admin login.. i followed the directions but now i have two mods or two users online today showing.. i will look at the code more closely.. i need to go to work now.. but thanks for the help....

do you recommend i uninstall the mod first, then reinstall? thanks
Title: Re: Users Online Today Mod
Post by: Sabre™ on August 02, 2010, 06:31:33 AM
Yes, uninstall the mod, and see if the mod is still active.
If so, you will need to manually remove the code.
Then reinstall the mod.
The 2 users online displaying means there is duplicate code in your index.template.php, remove one instant of the code.

If you still have issues afterward, let me know and we'll sort it out :)
Title: Re: Users Online Today Mod
Post by: videomasterz on August 03, 2010, 07:22:17 AM
i believe everything is working fine now.. what i did was loaded up a fresh untouched copy of the boardindex.template.php for my theme again, and started all over editing it, the main boardindex.php seems fine... thanks for your help :)
Title: Re: Users Online Today Mod
Post by: Sabre™ on August 03, 2010, 07:37:45 AM
My pleasure mate, and congrats on getting it to function as it's designed to.
Good job :)
Title: Re: Users Online Today Mod
Post by: Intrepid on August 06, 2010, 08:43:45 PM
Hello

I started recently(today :) ) to work on an SMF forum and i stucked with a problem related to this mod. The smf version is 1.1.11 the mod is working except i dont see the text of it(total,visible,hidden) as i see from previous posts its a language file related issue but i edited the language fukes i found in my theme and dont worked. I use Ds-Natural theme.
Title: Re: Users Online Today Mod
Post by: xenovanis on August 06, 2010, 08:48:32 PM
Unfortunately, if you use a custom theme, you'll have to apply the changes to the templatefiles of that theme (in this case BoardIndex.template.php) manually:
http://custom.simplemachines.org/mods/index.php?action=parse;mod=217;attach=150390;smf_version=1.1.11

Title: Re: Users Online Today Mod
Post by: Intrepid on August 06, 2010, 08:52:45 PM
And where i can find these for the file operations i have only 2 xml file in the downloaded zip

Move the included file "Subs-MembersOnlineToday.php" to "./Sources".
Move the included file "MembersOnlineToday.english.php" to "./Themes/default/languages".
Title: Re: Users Online Today Mod
Post by: xenovanis on August 06, 2010, 08:53:52 PM
Have you checked the link I posted? That are the file operations. No need to check the xml file.
Title: Re: Users Online Today Mod
Post by: Intrepid on August 06, 2010, 08:59:01 PM
Yes i checked it so i dont need to make those file operations?

PS.: I forgot to say the mod didnt worked because i use custom template so i alredy changed the template file so its work except i dont see the total,visible,hidden text
Title: Re: Users Online Today Mod
Post by: xenovanis on August 06, 2010, 09:01:21 PM
Quote from: Intrepid on August 06, 2010, 08:59:01 PM
Yes i checked it so i dont need to make those file operations?

PS.: I forgot to say the mod didnt worked because i use custom template so i alredy changed the template file so its work except i dont see the total,visible,hidden text

Oooooooh  :P

No, then there is no need to make the file operations, again. What is your forumlanguage?

Title: Re: Users Online Today Mod
Post by: Intrepid on August 06, 2010, 09:03:26 PM
Quote from: xenovanis on August 06, 2010, 09:01:21 PM
Quote from: Intrepid on August 06, 2010, 08:59:01 PM
Yes i checked it so i dont need to make those file operations?

PS.: I forgot to say the mod didnt worked because i use custom template so i alredy changed the template file so its work except i dont see the total,visible,hidden text

Oooooooh  :P

No, then there is no need to make the file operations, again. What is your forumlanguage?

english
Title: Re: Users Online Today Mod
Post by: xenovanis on August 06, 2010, 09:04:02 PM
Default english or utf8?
Title: Re: Users Online Today Mod
Post by: Intrepid on August 06, 2010, 09:06:17 PM
Quote from: xenovanis on August 06, 2010, 09:04:02 PM
Default english or utf8?

English-Utf8 :D
Title: Re: Users Online Today Mod
Post by: xenovanis on August 06, 2010, 09:09:13 PM
In the /Themes/default/languages/ folder, find this file

MembersOnlineToday.english.php

make a copy of it and rename that copy MembersOnlineToday.english-utf8.php.
Title: Re: Users Online Today Mod
Post by: Intrepid on August 06, 2010, 09:12:03 PM
Quote from: xenovanis on August 06, 2010, 09:09:13 PM
In the /Themes/default/languages/ folder, find this file

MembersOnlineToday.english.php

make a copy of it and rename that copy MembersOnlineToday.english-utf8.php.

i dont have a file like that i had the custom template on when i installed the mod from the admin panel.
Title: Re: Users Online Today Mod
Post by: xenovanis on August 06, 2010, 09:41:53 PM
Oh wait, you are using 1.1.11.

/Themes/default/languages/Modifications.english-utf8.php,
Find:

?>


add before:

// Users online today
$txt['uot_users_online_today']='Users Logged In Today';
$txt['uot_yesterday']='Yesterday at ';
$txt['uot_total']='Total';
$txt['uot_visible']='Visible';
$txt['uot_hidden']='Hidden';


/Themes/default/languages/Stats.english-utf8.php, find

$txt['users_online_today'] = 'Online Today';
$txt['num_hits'] = 'Total page views';
$txt['average_hits'] = 'Average page views per day';


replace with

$txt['users_online_today'] = 'Most Online Today';
$txt['num_hits'] = 'Total page views';
$txt['average_hits'] = 'Average page views per day';
Title: Re: Users Online Today Mod
Post by: Intrepid on August 06, 2010, 09:45:30 PM
It works thank you :)
Title: Re: Users Online Today Mod
Post by: Deadcity on August 21, 2010, 03:41:27 PM
Just installed a fresh smf 1.1.11, applied the mod, tests were successful, no Mod applied to my info center. fail.
Title: Re: Users Online Today Mod
Post by: ~Dragon~ on August 29, 2010, 10:47:23 PM
I notice mod, doesn't have code? what is that. I wonder MembersOnlineToday.english.php. tell me where is found? I am not sure where is find? who today online. I invesitage to search something?

P.S

ASAP

thank
Title: Re: Users Online Today Mod
Post by: Adish - (F.L.A.M.E.R) on August 29, 2010, 10:49:01 PM
Quote from: smithtr on August 29, 2010, 10:47:23 PM
I notice mod, doesn't have code? what is that. I wonder MembersOnlineToday.english.php. tell me where is found? I am not sure where is find? who today online. I invesitage to search something?

P.S

ASAP

thank

In there:
./Themes/default/languages
Title: Re: Users Online Today Mod
Post by: ~Dragon~ on August 29, 2010, 10:51:36 PM
Quote from: (F.L.A.M.E.R) on August 29, 2010, 10:49:01 PM
Quote from: smithtr on August 29, 2010, 10:47:23 PM
I notice mod, doesn't have code? what is that. I wonder MembersOnlineToday.english.php. tell me where is found? I am not sure where is find? who today online. I invesitage to search something?

P.S

ASAP

thank

In there:
./Themes/default/languages

which on Admin Control? that is correct? I can try fix test on /themes/default/languages

Title: Re: Users Online Today Mod
Post by: ~Dragon~ on August 29, 2010, 10:57:08 PM
Quote from: smithtr on August 29, 2010, 10:51:36 PM
Quote from: (F.L.A.M.E.R) on August 29, 2010, 10:49:01 PM
Quote from: smithtr on August 29, 2010, 10:47:23 PM
I notice mod, doesn't have code? what is that. I wonder MembersOnlineToday.english.php. tell me where is found? I am not sure where is find? who today online. I invesitage to search something?

P.S

ASAP

thank

In there:
./Themes/default/languages

which on Admin Control? that is correct? I can try fix test on /themes/default/languages



stranger I wonder not work, I check my sites, doesn't have it not right, but i think add install mod? or I am not sure (odd)

I puzzle it stranger


Most Online Today

I think so member online name?
I guess I think so possible?

where/

p.s

Thank
Title: Re: Users Online Today Mod
Post by: Sabre™ on August 30, 2010, 09:22:13 AM
First of all, you have an SMF2 site yes?
Did you install through the package manager in your admin panel, or manual install?
Did you install "Users_Online_Today_1.5.6.tar.gz" or the other?
Were there any errors when you installed the mod if through package manager?
Are there any errors in your "error log"?
Would you be willing to PM somebody and give them admin access to install it for you?
Title: Re: Users Online Today Mod
Post by: ~Dragon~ on August 30, 2010, 11:12:16 AM
Quote from: Sabre™ on August 30, 2010, 09:22:13 AM
First of all, you have an SMF2 site yes?
Did you install through the package manager in your admin panel, or manual install?
Did you install "Users_Online_Today_1.5.6.tar.gz" or the other?
Were there any errors when you installed the mod if through package manager?
Are there any errors in your "error log"?
Would you be willing to PM somebody and give them admin access to install it for you?


I found it. I notice it. I download it successfully test! :D That is work!
sure mind you, do you would be fix mod download something.I need to trust to someone expert to professional know how give me? I know hard time!
Title: Re: Users Online Today Mod
Post by: Apllicmz on November 01, 2010, 01:07:08 AM
good
when update dont forget portuguese

attach


Title: Re: Users Online Today Mod
Post by: Kurakama on November 05, 2010, 10:08:13 PM
rc4 pl0x? o.o?
Title: Re: Users Online Today Mod
Post by: vivid on November 06, 2010, 04:44:07 AM
now
is it compatible with 2.0rc4???
Title: Re: Users Online Today Mod
Post by: JimM on November 06, 2010, 06:35:20 PM
It installed fine on my 2.0RC4 test site.
Title: Re: Users Online Today Mod
Post by: #Pascal on November 14, 2010, 05:26:20 AM
RC 4.0 installed without errors
but:
Title: Re: Users Online Today Mod
Post by: ssdevious on November 19, 2010, 12:28:03 PM
Quote from: PascalCX on November 14, 2010, 05:26:20 AM
RC 4.0 installed without errors
but:

Same thing on SMF 1.1.12 - apparently, this mod doesn't have it's own icon for this. Any change to modify it? Also, any suggestions, how can I enable this on a custom template? I read something about editing BoardIndex.template.php or something similar.

Best Regards,
SS-Totenkopf
Title: Re: Users Online Today Mod
Post by: #Pascal on November 22, 2010, 01:36:04 PM
ssdevious
look to my attach once more, problem is not at the icon, broken template is the problem.
Title: Re: Users Online Today Mod
Post by: Phat^Trance on November 22, 2010, 03:20:35 PM
is there any settings for this plugin? cannot find anything at admin controll panel.

is it possible to just display the number on how many member logged in today and not the entire list?

im using smf 1.1.11
Title: Re: Users Online Today Mod
Post by: Ken. on November 22, 2010, 07:23:52 PM
Quote from: Phat^Trance on November 22, 2010, 03:20:35 PM
is there any settings for this plugin? cannot find anything at admin controll panel.

No settings in the CP, but if you look at the readme.txt file (in the zip) there are some edits that you can make to change the data that gets displayed.
Title: Re: Users Online Today Mod
Post by: Phat^Trance on November 22, 2010, 07:30:38 PM
Quote from: Ken. on November 22, 2010, 07:23:52 PM
Quote from: Phat^Trance on November 22, 2010, 03:20:35 PM
is there any settings for this plugin? cannot find anything at admin controll panel.

No settings in the CP, but if you look at the readme.txt file (in the zip) there are some edits that you can make to change the data that gets displayed.

there are only package-info.xml and Users_Online_Today_Mod.xml files in the Users_Online_Today_1.4.0.zip.

there arnt any readme.txt file :)
Title: Re: Users Online Today Mod
Post by: hcfwesker on November 22, 2010, 07:41:14 PM
Just open up the parser, up top in the description, it shows values you can change.

Or, you could edit the BoardIndex.template and remove the part that adds the member's names.

EDIT:::  Just tested it, and worked for me.

in your /Themes/(your theme)/BoardIndex.template.php  file

FIND

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
echo '<br />', implode(', ', $context['list_users_online_today']);


Replace with (which will remove the last line of code, that adds the member's names to the list)
// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && !$context['user']['is_guest'])






Title: Re: Users Online Today Mod
Post by: JimM on November 22, 2010, 08:44:52 PM
Form the mod page:

QuoteYou can customise a few options. See the included readme.txt file for details (only 1.5.x versions)

The 1.5.x version is for 2.0 only.
Title: Re: Users Online Today Mod
Post by: Ciler on November 28, 2010, 07:06:48 PM
Just installed this mod (v1.5.6) and test succeeded but after installing the mod is not working. I installed the mod on SMF 2.0 RC4 with black rain v2.

What changes to I have to make, where and in what php files?

Attached is my board.index.template from theme dir.
Title: Re: Users Online Today Mod
Post by: hcfwesker on November 28, 2010, 07:09:07 PM
That's where you need to make the changes.  They should be identical to the Themes/default/BoardIndex.template.php file edits.

I'll check out the file for ya.

Find: // If they are logged in, but statistical information is off... show a personal message bar.

Add BEFORE:  // Users Online Today
echo '
<h4 class="titlebg"><span class="left"></span>
<img class="icon" src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['online_users'], '" />', '<span>', $txt['uot_users_online_today'], '</span>
</h4>
<p class="inline smalltext">';
echo
$txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';

if ($context['viewing_allowed'])
echo
' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_users_hidden_today']), ', ', $txt['uot_hidden'], ': ', $context['num_users_hidden_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && $context['viewing_allowed'])
{
echo
'<br />', implode(', ', $context['list_users_online_today']);

// Showing membergroups?
if (!empty($settings['show_group_key']) && !empty($context['membergroups']))
echo
'<br />[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']';
}
echo '
</p>';



Made the edits, and attached your file.  Just be sure to have a saved backup copy of your original (which you have attached in your post, in case anything goes wrong.   It shouldn't, but always be safe.  :)

Title: Re: Users Online Today Mod
Post by: Ciler on November 28, 2010, 07:29:43 PM
Thanks mate it's working!! Many many thanks great support.  ;)
Title: Re: Users Online Today Mod
Post by: hcfwesker on November 28, 2010, 08:19:38 PM
No problem, bud.  don't forget that you have options to change what is displayed.  the users online today mod's default is set to only show members that come online at 12 am of that day, but you can change it so it shows members that visited from the entire last 24 hours.

Just check the instructions at the top of the parse instructions of the package.
Title: Re: Users Online Today Mod
Post by: Ciler on November 29, 2010, 08:44:44 AM
Is it possible to place the position of the icon of this mod more to the left side so it is straight right under the position of the icon of users online and forum stats?

Now the icon is not straight right under the other icons and more to the right. And the users logged in today are more to the left side than users online I want it straight under users online.
I just want making everything smoother also the layout (look) of my forum....

See screen:

(http://i735.photobucket.com/albums/ww354/MagicPowerTeam/screenmod.jpg)


Title: Re: Users Online Today Mod
Post by: Bugo on November 29, 2010, 08:55:05 AM
Open BoardIndex.template.php, find:
// Users Online Today
echo '
<h4 class="titlebg"><span class="left"></span>
<img class="icon" src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['online_users'], '" />', '<span>', $txt['uot_users_online_today'], '</span>
</h4>

and replace with:
// Users Online Today
echo '
<div class="title_barIC">
<h4 class="titlebg">
<span class="ie6_header floatleft">
<img class="icon" src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['online_users'], '" />', $txt['uot_users_online_today'], '</span>
</h4>
</div>
Title: Re: Users Online Today Mod
Post by: Ciler on November 29, 2010, 09:14:53 AM
After doing that nothing changed it's not working unfortunately!
I attached the file can you have a look at it please...
I am using Firefox not IE!

Greetz Ciler.
;)
Title: Re: Users Online Today Mod
Post by: Bugo on November 29, 2010, 09:50:40 AM
If choose Default Curve theme — it works?

I am using Firefox not IE!
It's doesn't matter...
Title: Re: Users Online Today Mod
Post by: Ciler on November 29, 2010, 10:18:04 AM
Yes Bugo the mod is ok for the default theme...
Title: Re: Users Online Today Mod
Post by: hcfwesker on November 29, 2010, 01:23:48 PM
Then you'd make those same exact changes to your custom themes BoardIndex.template.php file ;)
Title: Re: Users Online Today Mod
Post by: Bugo on November 29, 2010, 01:36:22 PM
Quote from: Ciler on November 29, 2010, 10:18:04 AM
Yes Bugo the mod is ok for the default theme...
And what theme you're using? I'm not a telepathist :)
Title: Re: Users Online Today Mod
Post by: hcfwesker on November 29, 2010, 01:50:40 PM
@ bugo ... i believe black rain v2

http://www.simplemachines.org/community/index.php?topic=55513.msg2865210#msg2865210  <--- Clier's post


http://www.simplemachines.org/community/index.php?topic=55513.msg2865213#msg2865213  <--- my post below it, with his custom theme's boardindex file attached, after i made edits to get this mod working.
Title: Re: Users Online Today Mod
Post by: Bugo on November 29, 2010, 03:11:18 PM
Well, then try these changes:

// Users Online Today
echo '
<div class="infocenter_section">
<h4 class="titlebg">', $txt['uot_users_online_today'], '</h4>
<div class="windowbg">
<p class="section">
<img class="icon" src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['online_users'], '" />
</p>
<div class="windowbg2 sectionbody">
<p class="inline smalltext">';
echo
$txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';

if ($context['viewing_allowed'])
echo
' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_users_hidden_today']), ', ', $txt['uot_hidden'], ': ', $context['num_users_hidden_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && $context['viewing_allowed'])
{
echo
'<br />', implode(', ', $context['list_users_online_today']);

// Showing membergroups?
if (!empty($settings['show_group_key']) && !empty($context['membergroups']))
echo
'<br />[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']';
}
echo '
</p></div></div></div>';
Title: Re: Users Online Today Mod
Post by: Ciler on November 29, 2010, 03:14:51 PM
Yes it's working now! Yes yes yes you're the man Bugo!! Good work mate many many thanks. I really appreciate your tips! ;)

Also thanks to hcfwesker!!

Your support rocks from both of you really appreciate!

And yes I am using Black Rain version2 theme!
Title: Re: Users Online Today Mod
Post by: #Pascal on November 29, 2010, 03:26:18 PM
Still have problem with icon place in default theme (rc 4)
Title: Re: Users Online Today Mod
Post by: Ciler on November 29, 2010, 03:47:00 PM
Try the changes Bugo stated above! It should work!
Title: Re: Users Online Today Mod
Post by: Bugo on November 29, 2010, 03:49:12 PM
No, my changes for Black Rain theme ONLY ;)
Title: Re: Users Online Today Mod
Post by: bananiel on December 07, 2010, 12:53:57 PM
I'm trying to install this mod but it gives a error on installation :

Quote5.    Execute Modification    ./Themes/default/languages/Modifications.english.php    File not found
6.    Execute Modification    ./Themes/default/languages/Stats.english.php    File not found

i installed the latest SMF + Simple Portal but it seems I'm missing 2 files.
can anybody tell me how to fix this ?

-Daniel-
Title: Re: Users Online Today Mod
Post by: bananiel on December 08, 2010, 10:04:08 AM
Quote from: bananiel on December 07, 2010, 12:53:57 PM
I'm trying to install this mod but it gives a error on installation :

Quote5.    Execute Modification    ./Themes/default/languages/Modifications.english.php    File not found
6.    Execute Modification    ./Themes/default/languages/Stats.english.php    File not found

i installed the latest SMF + Simple Portal but it seems I'm missing 2 files.
can anybody tell me how to fix this ?

-Daniel-

i installed the english language pack and that solved the problem.
Title: Re: Users Online Today Mod
Post by: aw06 on January 07, 2011, 06:49:09 PM
How can i make users online section Collapsible ?? just thinking to give users the option to collapse it so they can free up screen real-estate..

VB Forums has that feature to collapse..
Title: Re: Users Online Today Mod
Post by: sharks on February 21, 2011, 08:22:24 AM
It's not installing on RC5. Can someone please fix this?
Title: Re: Users Online Today Mod
Post by: Average Mom on February 27, 2011, 08:22:30 PM
I have RC5 and it installed and works just fine.
Title: Re: Users Online Today Mod
Post by: holly.celeb.fan on February 27, 2011, 11:55:13 PM
Working Fine...
Title: Re: Users Online Today Mod
Post by: TomW on March 01, 2011, 10:01:22 AM
Nice mod, but I want to replace the existing 'Users online' with this mod, instead of an additional bar.  Is this possible ?
Title: Re: Users Online Today Mod
Post by: noaccess on March 10, 2011, 01:40:33 AM
I would like to make Users logged in today visible to guests. How do I go about doing this? Also, why on earth would this be disabled by default? It should be the other way around.
Title: Re: Users Online Today Mod
Post by: DefDave7 on March 19, 2011, 07:57:59 PM
This mod is exactly what I've been looking for.

But I can't seem to be able to get it to install either automatically or manually.

I'm using SMF 1.1.13 and when I try to install the package, it gives me these errors:
1.   Execute Modification   ./Sources/BoardIndex.php   Test failed
2.   Execute Modification   ./Themes/default/BoardIndex.template.php   Test failed
3.   Extract File   ./Sources/Subs-MembersOnlineToday.php   
4.   Extract File   ./Themes/default/languages/MembersOnlineToday.english.php   


So then I tried to install it manually.  I'm using Notepad2 and I opened ./Sources/BoardIndex.php but using ctrl-F I couldn't find:
Quote$context += getMembersOnlineStats($membersOnlineOptions)

What am I doing wrong here guys?

Thanks,
Dave
Title: Re: Users Online Today Mod
Post by: MoreBloodWine on April 05, 2011, 04:10:42 AM
Seems to have installed ok on RC5 using Crips Black Rainv2 but failed on themes Classic YaBB SE Theme & Babylon Theme.
Title: Re: Users Online Today Mod
Post by: Carceri on April 06, 2011, 09:20:22 AM
Quote from: noaccess on March 10, 2011, 01:40:33 AM
I would like to make Users logged in today visible to guests. How do I go about doing this? Also, why on earth would this be disabled by default? It should be the other way around.

For privacy reasons. It could reveal that a user was registered on a specific forum, to a visitor who was not registered on the same forum. Basically this is keeping in line with the rest of SMF that a guest is by default not allowed to view the list of registered users.
Title: Re: Users Online Today Mod
Post by: noaccess on April 07, 2011, 04:11:09 AM
Quote from: Carceri on April 06, 2011, 09:20:22 AM
Quote from: noaccess on March 10, 2011, 01:40:33 AM
I would like to make Users logged in today visible to guests. How do I go about doing this? Also, why on earth would this be disabled by default? It should be the other way around.

For privacy reasons. It could reveal that a user was registered on a specific forum, to a visitor who was not registered on the same forum. Basically this is keeping in line with the rest of SMF that a guest is by default not allowed to view the list of registered users.
Nonsense of course, just like the other argument used a few pages before. Any random fellow can register on the forum and get more access (see more) than just a nickname. Anyway, it doesn't matter, I already changed it.
Title: Re: Users Online Today Mod
Post by: Carceri on April 07, 2011, 04:25:28 AM
Quote from: noaccess on April 07, 2011, 04:11:09 AM
Quote from: Carceri on April 06, 2011, 09:20:22 AM
Quote from: noaccess on March 10, 2011, 01:40:33 AM
I would like to make Users logged in today visible to guests. How do I go about doing this? Also, why on earth would this be disabled by default? It should be the other way around.

For privacy reasons. It could reveal that a user was registered on a specific forum, to a visitor who was not registered on the same forum. Basically this is keeping in line with the rest of SMF that a guest is by default not allowed to view the list of registered users.
Nonsense of course, just like the other argument used a few pages before. Any random fellow can register on the forum and get more access (see more) than just a nickname. Anyway, it doesn't matter, I already changed it.

There are many private forums where any random fellow cannot just register. Hence my argument is still perfectly valid.

I know that this does not apply to all forums, which is the reason this is an option in version 1.5.x of this mod :)
Title: Re: Users Online Today Mod
Post by: booch_21 on April 09, 2011, 10:35:21 AM
Have been running 1.5.6 on RC5 just fine, but found this update today.  Tried installing it and I get:

The package manager currently allows only these file types: zip, tgz, tar.gz.

Have never had any luck installing this type of file.  Any ideas?  When I open and make the files into ZIP, it thinks the file is empty and won't install it.  Thanks!
Title: Re: Users Online Today Mod
Post by: Kratty256 on April 14, 2011, 02:38:33 PM
Quote from: booch_21 on April 09, 2011, 10:35:21 AM
Have been running 1.5.6 on RC5 just fine, but found this update today.  Tried installing it and I get:

The package manager currently allows only these file types: zip, tgz, tar.gz.

Have never had any luck installing this type of file.  Any ideas?  When I open and make the files into ZIP, it thinks the file is empty and won't install it.  Thanks!

Use the zip file attached instead. I'm getting the same error, I guess the package manager doesn't like .tar.gz files.  :o
Title: Re: Users Online Today Mod
Post by: Мel on April 15, 2011, 06:10:18 AM
Somehow users that logged on the forum "today" are not displayed on the main page.
What did i do wrong?
Title: Re: Users Online Today Mod
Post by: Carceri on April 16, 2011, 01:53:01 PM
Quote from: Andrew94© on April 14, 2011, 02:38:33 PM
Use the zip file attached instead. I'm getting the same error, I guess the package manager doesn't like .tar.gz files.  :o

There seem to be some issues depending on the OS SMF runs on. I can install tar.gz files without problems (developing on Linux and running a Linux server, so that is the natural format for me). I tried producing a zip file under Linux, but that won't install on my server (works fine under other zip packers though). Once I figure out a zip program for Linux that can produce usable zip files for the package manager (or I find out what switch will make it do so), then I will post zip files instead of tar.gz.
Title: Re: Users Online Today Mod
Post by: booch_21 on April 20, 2011, 08:07:50 AM
Quote from: Andrew94© on April 14, 2011, 02:38:33 PM
Use the zip file attached instead. I'm getting the same error, I guess the package manager doesn't like .tar.gz files.  :o

Worked great.  Thanks much!
Title: Re: Users Online Today Mod
Post by: MyOutdoorsIowa on April 22, 2011, 06:30:29 PM
Greetings,
I have apparently messed things up. I'm very new to SMF. I started with RC3, updated to RC4 and now to RC5.

I now have 3 instances of this mod running  :o How do I fix this?

Thanks,
Darrin
Title: Re: Users Online Today Mod
Post by: sharks on April 23, 2011, 12:24:59 AM
Thanks a lot for your continued work on this great mod, Carceri. :)

I hope you release the final 1.6.0 version soon, then i can finally update this mod on my forums.

BTW, do you plan on fixing/adding anything to the mod for the SMF 1.1.x series? I haven't yet transitioned my main forums to 2.0 as i'm still tirelessly waiting for the gold release, but i'm just wondering if there's anything in the works.

Please keep up the excellent work and you have my full support to make this mod even closer to being perfect!
Title: Re: Users Online Today Mod
Post by: Carceri on April 23, 2011, 04:40:36 AM
Quote from: sharks on April 23, 2011, 12:24:59 AM
I hope you release the final 1.6.0 version soon, then i can finally update this mod on my forums.

BTW, do you plan on fixing/adding anything to the mod for the SMF 1.1.x series? I haven't yet transitioned my main forums to 2.0 as i'm still tirelessly waiting for the gold release, but i'm just wondering if there's anything in the works.

I don't really plan to add anything to the SMF 1.1.x series. Of course if some bugs are found I'll fix those, but otherwise no new features will be added. It's simply too different from the SMF 2.0 version of this mod.

I have a fix for the only remaining known bug for version 1.6.0 of this mod, so unless some people find new bugs in this version over the next few days, RC1 will be made final with the only change being this bugfix.
Title: Re: Users Online Today Mod
Post by: DJPlamen on April 24, 2011, 08:56:38 PM
Hi, first thanks for the great mod, I'm using it since RC2. Now I'm moving on RC5, so I installed, everything works fine (no conflict with 6 themes), but... Somehow the installer replaces the entire section of     * Administration Center » * Modification Settings »  * Miscellaneous...
I had some options there (recent posts, imagefit etc.), but now they are gone, instead of them I have the options for Users online.. I read almost all files of the installer, but didn't find where and in which file occurs this replacement... Please help... Atached 2 images - before and after... Thanks!

Edit: I tried with the older version, works, but no admin settings... are they implemented in 1.6.0RC1?

Title: Re: Users Online Today Mod
Post by: Carceri on April 25, 2011, 04:16:16 AM
Quote from: DJPlamen on April 24, 2011, 08:56:38 PM
Hi, first thanks for the great mod, I'm using it since RC2. Now I'm moving on RC5, so I installed, everything works fine (no conflict with 6 themes), but... Somehow the installer replaces the entire section of     * Administration Center » * Modification Settings »  * Miscellaneous...

Edit: I tried with the older version, works, but no admin settings... are they implemented in 1.6.0RC1?

That's odd. I don't replace anything in there, but use the SMF hooks (that was available from RC4 I think) to extend this section. I have an idea what might cause this though, so I'll produce an RC2 later today to see if that fixes the problem.

The code in install.php that enables the settings is this:

add_integration_function('integrate_general_mod_settings','UsersOnlineToday_settings',TRUE);

If you uninstall this mod, do the settings return?

The settings are not available in versions prior to 1.6.0.
Title: Re: Users Online Today Mod
Post by: DJPlamen on April 25, 2011, 06:15:04 AM
Quote from: Carceri on April 25, 2011, 04:16:16 AM
If you uninstall this mod, do the settings return?
Yes.. I also tried to uninstall both hacks that work with that Misc Tab, then install Users Oline, and then install them, but in that case thier settings do not appear. So, Users Online "locks" this settings tab  :o   :D
Maybe if you put your settings in different tab... I just don't understand the whole hooks idea and cannot help to you to point the problem.
Thanks for your time, Carceri!
Title: Re: Users Online Today Mod
Post by: Arantor on April 25, 2011, 06:25:12 AM
No, it's not adding to the array, it's overriding its contents.

&$param1 is receiving $config_vars as it is, and proceeds to overwrite it with its own; needs to be an array_merge adding the new array elements in:

$param1 = array_merge($param1, array(
array('select', 'uot_setting_sortby', 'label' => 'Users Online Today', array('username' => 'username', 'login_time' => 'login time'), 'preinput' => $txt['uot_setting_sortby_pre_txt'], 'postinput' => $txt['uot_setting_sortby_post_txt']),
array('select', 'uot_setting_sortorder', array('ascending' => 'ascending', 'descending' => 'descending'), 'preinput' => $txt['uot_setting_sortorder_pre_txt'], 'postinput' => $txt['uot_setting_sortorder_post_txt']),
array('select', 'uot_setting_period', array('current_day' => 'current day', 'last_24_hours' => 'last 24 hours', 'last_7_days' => 'last 7 days'), 'preinput' => $txt['uot_setting_period_pre_txt'], 'postinput' => $txt['uot_setting_period_post_txt']),
array('select', 'uot_setting_canview', array('admin' => 'administrators', 'registered' => 'registered users', 'everyone' => 'everyone'), 'preinput' => $txt['uot_setting_canview_pre_txt'], 'postinput' => $txt['uot_setting_canview_post_txt'])
        ));


Not sure why you have the reloadSettings() call there either, should not be necessary IIRC.
Title: Re: Users Online Today Mod
Post by: DJPlamen on April 25, 2011, 08:23:39 AM
Works perfect, Arantor, thank you too!
Title: Re: Users Online Today Mod
Post by: Carceri on April 25, 2011, 10:00:49 AM
Quote from: Arantor on April 25, 2011, 06:25:12 AM
No, it's not adding to the array, it's overriding its contents.

That is what I suspected, but I was on my way out the door when I made my last post, so I didn't have time to verify it.

Quote from: Arantor on April 25, 2011, 06:25:12 AM
Not sure why you have the reloadSettings() call there either, should not be necessary IIRC.

I agree. It should not be necessary, but it is (at least on my installation). If I leave it out and click save, the settings are correctly stored in the database, but are not updated in the modSettings array. I haven't yet had time to dig into this issue any further.
Title: Re: Users Online Today Mod
Post by: Arantor on April 25, 2011, 10:22:43 AM
That just implies they're being held in the cache, but that should be dealt with for you by SMF.
Title: Re: Users Online Today Mod
Post by: Carceri on April 25, 2011, 10:26:12 AM
Quote from: Arantor on April 25, 2011, 10:22:43 AM
That just implies they're being held in the cache, but that should be dealt with for you by SMF.

Sure, but it seems that at least on my installation SMF does not deal with this correctly. I have tried disabling XCache on my server to see if that was the issue, but same result: modSettings is not updated immediately if I leave out the call to reloadSettings.
Title: Re: Users Online Today Mod
Post by: Shades. on April 26, 2011, 08:33:06 PM
This mod works great for an unmodded forum but does not show in the simpleportal mod block as does the Users Online mod 1.5.6. I need it to show in my simpleportal mod so I am just going to continue running the 1.5.6 version for now...it's working fine for me and I'm using SMF 2.0 RC5 and SimplePortal 2.3.3 and Users Online mod 1.5.6! Thanks! ;)
Title: Re: Users Online Today Mod
Post by: Carceri on April 27, 2011, 07:19:55 AM
Quote from: BoZilla on April 26, 2011, 08:33:06 PM
This mod works great for an unmodded forum but does not show in the simpleportal mod block as does the Users Online mod 1.5.6.

I don't know anything about SimplePortal, but maybe their code is in some way incompatible with the way integration functions are used to install version 1.6.0 of this mod? Maybe they need to call the integration function integrate_pre_include somewhere in their code as SMF now does on every page?

Anyway, even though I try to make this do as few changes as possible to the SMF code, I don't test compatibility with other mods.
Title: Re: Users Online Today Mod
Post by: sharks on April 27, 2011, 10:02:13 AM
Quote from: Carceri on April 27, 2011, 07:19:55 AM
Quote from: BoZilla on April 26, 2011, 08:33:06 PM
This mod works great for an unmodded forum but does not show in the simpleportal mod block as does the Users Online mod 1.5.6.

I don't know anything about SimplePortal, but maybe their code is in some way incompatible with the way integration functions are used to install version 1.6.0 of this mod? Maybe they need to call the integration function integrate_pre_include somewhere in their code as SMF now does on every page?

Anyway, even though I try to make this do as few changes as possible to the SMF code, I don't test compatibility with other mods.

I couldn't agree more with Carceri. It's best to move forward and promote the new features of SMF and encourage other mod devs to do likewise, rather than force the new/upgraded modifications to be backwards compatible. However, SimplePortal hasn't had any update in a long time, so i would suggest to keep the 1.5.6 version online as well, as there are huge crowds using SimplePortal, including myself. :)
Title: Re: Users Online Today Mod
Post by: Martine M on April 29, 2011, 07:47:55 AM
Hallo,

I have SMF 1.13 and users online today 1.4.0  installed

I have some error messages in the forum error log, sins I went back to the default theme.
Reinstalled mod but still errors and it works but it does not show right at the bottom of the forum.
see image: http://i905.photobucket.com/albums/ac253/MartinePassion/UTR/Printscreens/usersonlinetoday.jpg

This are the errors:
"Apply Filter: Only show the errors with the same message
8: Undefined index: uot_visible
File: /home/unitedtu/public_html/Themes/default/BoardIndex.template.php
Line: 419"

also at line 417, 410 en 407, for uot_hidden, uot_total and uot_users_online_today.


I went to the mod board and went to see what files to change when installing manually.
I see a whole different code, I tried it but then it doesn't work at all.

Here is what is in my boardindex.template.php before line

// If they are logged in, but SP1 style information is off... show a personal message bar.

is installed automatically beginning at line 403

// Users online today

echo '
<tr>
<td class="titlebg" colspan="2">', $txt['uot_users_online_today'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['uot_users_online_today'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';

echo '
<div class="smalltext">';

  echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
  if (!$context['user']['is_guest'])
  echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
echo '<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';


Could you please help me out here?
Thanks.
Regards Martine
Title: Re: Users Online Today Mod
Post by: sharks on April 29, 2011, 10:41:18 AM
Hi Carceri

Here's an idea for a mod that's a bit similar in some aspects to this mod, although it should be made into a separate mod.

New modification: Show a list of all the active members at the bottom of the forum. By "active members", i mean a setting which allows the admin to set the number of members who have posted at least once in the past "7" (editable) days, and maybe you can even fine-tune this by allowing other criteria, such as the number of replies made, and/or topics created.
This suggestion already exists for IPB and VB, so i think it's a must-have feature for SMF. Please consider it! :)
Title: Re: Users Online Today Mod
Post by: Martine M on May 04, 2011, 07:20:55 PM
Quote from: enitram on April 29, 2011, 07:47:55 AM
Hallo,

I have SMF 1.13 and users online today 1.4.0  installed

I have some error messages in the forum error log, sins I went back to the default theme.
Reinstalled mod but still errors and it works but it does not show right at the bottom of the forum.
see image: http://i905.photobucket.com/albums/ac253/MartinePassion/UTR/Printscreens/usersonlinetoday.jpg

This are the errors:
"Apply Filter: Only show the errors with the same message
8: Undefined index: uot_visible
File: /home/unitedtu/public_html/Themes/default/BoardIndex.template.php
Line: 419"

also at line 417, 410 en 407, for uot_hidden, uot_total and uot_users_online_today.


I went to the mod board and went to see what files to change when installing manually.
I see a whole different code, I tried it but then it doesn't work at all.

Here is what is in my boardindex.template.php before line

// If they are logged in, but SP1 style information is off... show a personal message bar.

is installed automatically beginning at line 403

// Users online today

echo '
<tr>
<td class="titlebg" colspan="2">', $txt['uot_users_online_today'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['uot_users_online_today'], '" border="0" />
</td>
<td class="windowbg2" width="100%">';

echo '
<div class="smalltext">';

  echo $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
  if (!$context['user']['is_guest'])
  echo ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_hidden_users_online_today']), ', ', $txt['uot_hidden'], ': ', $context['num_hidden_users_online_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && !$context['user']['is_guest'])
echo '<br />', implode(', ', $context['list_users_online_today']);

echo '
<br />', $context['show_stats'] && !$settings['show_sp1_info'] ? '
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>';


Could you please help me out here?
Thanks.
Regards Martine

Can someone help me please?
Title: Re: Users Online Today Mod
Post by: Carceri on May 05, 2011, 03:45:51 AM
Quote from: enitram on May 04, 2011, 07:20:55 PM
Can someone help me please?

Looks like a problem with loading the language file. What language do you use on the forum? This mod only contains language files in english.
Title: Re: Users Online Today Mod
Post by: Martine M on May 05, 2011, 03:56:30 AM
The default forum language is English but many use Dutch as there language.
But I altered the modifiaction.dutch-utf8.php and the stats.dutch-utf8.php manually.

It worked perfectly when I used the Mech theme, it is just when I switched themes that I get these errors.
even after reinstalling it.
Title: Re: Users Online Today Mod
Post by: Martine M on May 05, 2011, 07:11:33 AM
I checked all the php files I found in the manual install on the mod site and all is correct installed.
Title: Re: Users Online Today Mod
Post by: Martine M on May 05, 2011, 09:44:47 AM
I think I solved it myself, seems I forgot to alter the english-utf8 and the French language files.
We have one French member keep forgetting that.
Title: Re: Users Online Today Mod
Post by: Carceri on May 06, 2011, 03:55:56 AM
Glad to hear you resolved it. Actually I think that if some foreign language files can not be found, SMF should fall back to using the english ones if available. That would solve a lot of problems reported here about errors in the log and missing text in the user interface.
Title: Re: Users Online Today Mod
Post by: Arantor on May 06, 2011, 04:04:25 AM
Quote, SMF should fall back to using the english ones if available.

It does for the Modifications language file, but nothing else. I ended up solving this in SimpleDesk by writing a wrapper around loadLanguage with my own function to force English to be loaded first (in case there were missing strings in an incomplete translation)
Title: Re: Users Online Today Mod
Post by: Martine M on May 06, 2011, 04:13:51 AM
Yes I think so to, but maybe not possible as Once Upon A Star is saying.
It's my first forum that I'm running and it is with members from different languages and if I install something I now learned I have to put it myself in all language php myself even with the standard theme.
And I learned that what you see on the forum in one language is not necessarily so in another language for sure with Tiny Portal have to set all manually for which language it has to be viewable. 
But I'm getting the hang of it and I'm learning everyday.
Still have one error left in regards of Peoplesign hope they can help me, cause I can't solve that one myself.

Thanks  :)
Title: Re: Users Online Today Mod
Post by: Arantor on May 06, 2011, 04:17:16 AM
Quotebut maybe not possible as Once Upon A Star is saying.

It's so not possible that I did it for SimpleDesk (which has multiple language files, and I did it a year ago for the first release, specifically to work around this behaviour) and that Din1031 even wrote a mod to apply the same behaviour to every single language file so that it would always attempt to load English first.
Title: Re: Users Online Today Mod
Post by: Martine M on May 06, 2011, 04:27:55 AM
I'm sorry I read your first answer a bit wrong, I was already posting then. :-[
Title: Re: Users Online Today Mod
Post by: tank_fv101 on May 16, 2011, 06:50:15 AM
Hello everyone,

I have this MOD installed on my forum (SMF 1.1.13), and it always works fine, except for one thing.  The total of users it shows as online today is different to what is displayed on the original information panel is always less.  For example:- UOT shows 40, and the original info panel show Most Online Today: 27.

Would this be something to do with this MOD not using the same time as the forum?  I've tried going into 'Overall time offset' and I had to get to -8 hours to get it to 28 members online today.  But this obviously messes up everything on the forum.

Many thanks for your help.
Title: Re: Users Online Today Mod
Post by: Carceri on May 17, 2011, 03:32:45 AM
Quote from: tank_fv101 on May 16, 2011, 06:50:15 AM
I have this MOD installed on my forum (SMF 1.1.13), and it always works fine, except for one thing.  The total of users it shows as online today is different to what is displayed on the original information panel is always less.  For example:- UOT shows 40, and the original info panel show Most Online Today: 27.

You are comparing apples to oranges: They are showing two different things. This mod displays the number of unique users that have been online during the day. The original info panel shows the number of users that have been online at the same time (where "same time" can be defined somewhere - I think the default is 15 minutes). Clearly UOT >= Most Online Today
Title: Re: Users Online Today Mod
Post by: tank_fv101 on May 17, 2011, 03:44:26 AM
Thanks Carceri, I hadn't realised the original one was for users online at the same time. ::)  Many thanks for your help. ;) :D
Title: Re: Users Online Today Mod
Post by: Carceri on May 17, 2011, 04:47:38 AM
You're welcome :)

I was also originally confused, and it was actually once I realised that the original only counted users online at the same time, that I decided to create this mod.
Title: Re: Users Online Today Mod
Post by: easyrider77 on May 27, 2011, 05:36:11 PM
Hi there,
When users logged in is more than 600 about,  no one can see the forum index.
When click on forum link  they see only a blank page.
When they not logged in (as guest's) can easy see the index.

Can see the separate the pages  via "recent posts" mod, but not the index..

Also after 12 when counter go to zero again and users is only few both logged and guests can see the forum index. Strange.  ???


Anyone have same problem..? Any solution..?

thanks
Title: Re: Users Online Today Mod
Post by: Apllicmz on May 29, 2011, 01:20:51 AM
Thank you
when Update portuguese dont forget

$txt['uot_users_online_today']='Utilizadores online hoje';
$txt['uot_total']='Total';
$txt['uot_visible']='Visível';
$txt['uot_hidden']='Escondido';
$txt['uot_setting_sortby_pre_txt']='Ordenar a lista por utilizador';
$txt['uot_setting_sortby_post_txt']='';
$txt['uot_setting_sortorder_pre_txt']='Ordenar lista do utilizador online hoje';
$txt['uot_setting_sortorder_post_txt']='Ordenar';
$txt['uot_setting_period_pre_txt']='A lista de utilizadores deve cobrir os';
$txt['uot_setting_period_post_txt']='';
$txt['uot_setting_canview_pre_txt']='Fazer a lista de utilizadores visíveis';
$txt['uot_setting_canview_post_txt']=''

Title: Re: Users Online Today Mod
Post by: easyrider77 on May 30, 2011, 01:42:36 PM
Carceri hi,

When users logged in is more then 650 about, no one cant see the forum index. And when i unistall this mod the forum index works perfect. Have you idea what is the problem..?
Title: Re: Users Online Today Mod
Post by: Individul on May 31, 2011, 02:10:23 AM
Somebody have the problem with font size forum text after install this package ?. My forum font increased :'(
Title: Re: Users Online Today Mod
Post by: Carceri on May 31, 2011, 02:32:32 AM
Quote from: easyrider77 on May 30, 2011, 01:42:36 PM
When users logged in is more then 650 about, no one cant see the forum index. And when i unistall this mod the forum index works perfect. Have you idea what is the problem..?

No. Any errors in the log?
Title: Re: Users Online Today Mod
Post by: OCJ on May 31, 2011, 05:46:33 AM
Like it! Lot clearer than the standard  "Most users online today" which displays only the total number simultaneously online... which is less than half those that actually 'went online' or logged in.

Only thing is the number of non-critical errors - about 600/day now with only 100 registered users.

implode() [<a href='function.implode'>function.implode</a>]: Invalid arguments passed
Apply Filter: Only show the errors from this file
File: /home2/....../public_html/..../Themes/default/languages/UsersOnlineToday.english.php (main sub template - eval?


Would be nice to reduce the error log.
Andy

Title: Re: Users Online Today Mod
Post by: easyrider77 on May 31, 2011, 08:31:03 AM
Quote from: Carceri on May 31, 2011, 02:32:32 AM
Quote from: easyrider77 on May 30, 2011, 01:42:36 PM
When users logged in is more then 650 about, no one cant see the forum index. And when i unistall this mod the forum index works perfect. Have you idea what is the problem..?

No. Any errors in the log?


this is the latest errors in smf log .

[28-May-2011 13:27:09] PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 4630343 bytes) in /home/adultfor/public_html/forum/Sources/Subs-Package.php on line 2507
[28-May-2011 13:27:41] PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 4630343 bytes) in /home/adultfor/public_html/forum/Sources/Subs-Package.php on line 2507
[28-May-2011 21:40:23] PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 4630343 bytes) in /home/adultfor/public_html/forum/Sources/Subs-Package.php on line 2507
[28-May-2011 21:54:04] PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 4630343 bytes) in /home/adultfor/public_html/forum/Sources/Subs-Package.php on line 2507
[28-May-2011 22:43:13] PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 4630343 bytes) in /home/adultfor/public_html/forum/Sources/Subs-Package.php on line 2507
Title: Re: Users Online Today Mod
Post by: Carceri on June 01, 2011, 05:25:07 AM
Quote from: easyrider77 on May 31, 2011, 08:31:03 AM
this is the latest errors in smf log .

[28-May-2011 13:27:09] PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 4630343 bytes) in /home/adultfor/public_html/forum/Sources/Subs-Package.php on line 2507
[28-May-2011 13:27:41] PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 4630343 bytes) in /home/adultfor/public_html/forum/Sources/Subs-Package.php on line 2507
[28-May-2011 21:40:23] PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 4630343 bytes) in /home/adultfor/public_html/forum/Sources/Subs-Package.php on line 2507
[28-May-2011 21:54:04] PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 4630343 bytes) in /home/adultfor/public_html/forum/Sources/Subs-Package.php on line 2507
[28-May-2011 22:43:13] PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 4630343 bytes) in /home/adultfor/public_html/forum/Sources/Subs-Package.php on line 2507


Does it help to allocate more memory for PHP, or is that out of memory error related to something different?
Title: Re: Users Online Today Mod
Post by: easyrider77 on June 02, 2011, 08:12:31 AM
Quote from: Carceri on June 01, 2011, 05:25:07 AM

Does it help to allocate more memory for PHP, or is that out of memory error related to something different?


This error come when i go to:

"update your forum" >    Download Packages >Simple Machines Third-party Mod Site  > [ Browse ]


Please check the topic i create for this issue.
http://www.simplemachines.org/community/index.php?topic=435685
Title: Re: Users Online Today Mod
Post by: kalpatron on June 04, 2011, 01:28:30 PM
Hello guys
Recently I spotted that on my main page, in the section whre Users_Online_Today appears, some of the members (actually admins) are colored red and some of them are also bold.

We are 4 admins, and all our usernames are colored red. But only two of us are bold in this list... Can you explain how this happens?
Title: Re: Users Online Today Mod
Post by: OCJ on June 05, 2011, 03:36:23 PM
Each membergroup can have a colour set for them (users names) - see individual settings for membergroups.
I think bold is for 'Buddies' but check that.

Title: Re: Users Online Today Mod
Post by: King Death II on June 05, 2011, 04:59:25 PM
Hi guys, I downloaded a new theme called Dino Light v.2 but it seems that this mod is not working with that theme. Is there any reason why? And how would I fix it so that it does work with this theme.
Title: Re: Users Online Today Mod
Post by: OCJ on June 06, 2011, 04:40:27 AM
I think it says the mod requires edits to the theme files. In that case either manually for the new theme,  or if you installed the theme after the mod it is maybe best to uninstall and reinstall so it modifies the new theme.
Title: Re: Users Online Today Mod
Post by: kalpatron on June 07, 2011, 01:32:32 AM
Quote from: igirisjin on June 05, 2011, 03:36:23 PM
Each membergroup can have a colour set for them (users names) - see individual settings for membergroups.
I think bold is for 'Buddies' but check that.

There are 3 groups there: Administrator, Global Moderator and Moderator. We are all in the Administrator group...?
Title: Re: Users Online Today Mod
Post by: Carceri on June 07, 2011, 02:52:18 AM
Quote from: easyrider77 on June 02, 2011, 08:12:31 AM
Quote from: Carceri on June 01, 2011, 05:25:07 AM
Does it help to allocate more memory for PHP, or is that out of memory error related to something different?

This error come when i go to:

"update your forum" >    Download Packages >Simple Machines Third-party Mod Site  > [ Browse ]

It seems you are just running out of memory. Of course this mod needs memory to build the list (quite a lot for such a large list), and if too many things are using memory and your limit is too low, well :)
Title: Re: Users Online Today Mod Call to undefined function getUsersOnlineTodayStats()
Post by: Celia N. Foster on June 07, 2011, 02:10:04 PM
Hi. I just had my forum transferred to a new host. When I try to log in to my account, I keep getting the error:

Call to undefined function getUsersOnlineTodayStats() in /hermes/bosweb26b/b647/ipg.judithbarsicom/forum/Sources/BoardIndex.php on line 133

my forum is here:
http://judithevabarsi.com/forum/

I am running SMF 2.0 RC5

What needs to be done to stop this error? Please help me!

Thanks very much in advance!

-Celia
Title: Re: Users Online Today Mod Call to undefined function getUsersOnlineTodayStats()
Post by: Carceri on June 08, 2011, 07:59:57 AM
Quote from: Celia N. Foster on June 07, 2011, 02:10:04 PM
Call to undefined function getUsersOnlineTodayStats() in /hermes/bosweb26b/b647/ipg.judithbarsicom/forum/Sources/BoardIndex.php on line 133

Looks like the modification hook is not installed properly. Maybe caused by some settings that was not copied correctly from the old to the new database? Try removing the mod and reinstalling it.
Title: Re: Users Online Today Mod
Post by: Celia N. Foster on June 08, 2011, 11:33:13 AM
How do I remove the mod and reinstall it?
Title: Re: Users Online Today Mod
Post by: yakyakyak on June 09, 2011, 05:27:07 AM
Please advise the required edits in RC3 to remove these leftover icons in a non default theme after package removal




thank you
Title: Re: Users Online Today Mod
Post by: khamseen on June 14, 2011, 09:02:58 AM
I've just updated to 2.0 from RC5 and I removed all my packages before updating and then reinstalled them. Everything was working until I reinstalled this one and now my forums have crapped out.

Fatal error: Cannot redeclare usersonlinetoday_settings() (previously declared in /home/khamseen/public_html/Sources/Subs-UsersOnlineToday.php:24) in /home/khamseen/public_html/trial/Sources/Subs-UsersOnlineToday.php on line 41

Can't get back to a page to uninstall the mod, it showed no errors before installing, everything said it tested successfully.

EDIT:
Deleting the file sources/subs-usersonlinetoday.php allowed me to go back and uninstall the mod.
Title: Re: Users Online Today Mod
Post by: Carceri on June 15, 2011, 05:13:53 AM
Quote from: khamseen on June 14, 2011, 09:02:58 AM
Fatal error: Cannot redeclare usersonlinetoday_settings() (previously declared in /home/khamseen/public_html/Sources/Subs-UsersOnlineToday.php:24) in /home/khamseen/public_html/trial/Sources/Subs-UsersOnlineToday.php on line 41

What does line 41 in that file says? Mine does not have a redeclaration of the function on that line. Line 24 is where the function is first declared though.
Title: Re: Users Online Today Mod
Post by: khamseen on June 15, 2011, 07:05:05 AM
My one looks the same, line 41 is the trailing bracket.

When I read over what it said again though, it seems to be getting mixed up with the main forums (I was installing it on our trial setup in a sub domain using a separate database and path), it states it couldn't redeclare it because it was already declared by the one on our main domain. Which I don't understand since they don't share any files or directories.
Title: Re: Users Online Today Mod
Post by: TheListener on June 15, 2011, 10:17:29 AM
Quote from: Carceri on June 15, 2011, 05:13:53 AM
Quote from: khamseen on June 14, 2011, 09:02:58 AM
Fatal error: Cannot redeclare usersonlinetoday_settings() (previously declared in /home/khamseen/public_html/Sources/Subs-UsersOnlineToday.php:24) in /home/khamseen/public_html/trial/Sources/Subs-UsersOnlineToday.php on line 41

What does line 41 in that file says? Mine does not have a redeclaration of the function on that line. Line 24 is where the function is first declared though.

You may have two lines the same in the file.
Title: Re: Users Online Today Mod
Post by: sharks on June 15, 2011, 10:27:07 AM
With 102479 downloads, this is undeniably one of the most popular mods for SMF, so i really hope that Carceri will update his work to support 2.0 and 1.1.14. On the mod page, it says support only 2.0 RC5 and 1.1.13
Title: Re: Users Online Today Mod
Post by: Carceri on June 16, 2011, 03:41:39 AM
Heh, didn't realise that 2.0 final was out. I'm not running any SMF forums (except one just for testing this mod) myself and haven't done so for some years now, so I'm not quite up to speed :)

It seems that the mod works fine without changes for both 1.14 and 2.0 though.

When I get the time I will try to support the themes included with 2.0 final.
Title: Re: Users Online Today Mod
Post by: yakyakyak on June 16, 2011, 04:26:05 AM
Quote from: yakyakyak on June 09, 2011, 05:27:07 AM
Please advise the required edits in RC3 to remove these leftover icons in a non default theme after package removal




thank you

please
Title: Re: Users Online Today Mod
Post by: Aoife on June 16, 2011, 02:46:00 PM
After installing the latest version (1.6.0) to SMF 2.0, the mod does seem to work as it should but I get the following error message filling up my log:

***/forums/index.php?action=forum
2: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument
File: ***/forums/Themes/default/BoardIndex.template.php
Line: 183


Any ideas on how to fix?






Title: Re: Users Online Today Mod
Post by: sharks on June 18, 2011, 03:30:11 AM
Carceri, thanks for updating compatibility for your mod to 2.0 and 1.1.14 but on the mod download page: http://mods.simplemachines.org/index.php?mod=217
There are 2 versions of 1.6.0: Users_Online_Today_1.6.0.tar.gz and Users_Online_Today_1.6.0.zip
Which one to download for SMF 2.0 final? It's quite confusing. I think you should keep only one instance, if it's the same version.
Title: Re: Users Online Today Mod
Post by: Kratty256 on June 18, 2011, 12:27:44 PM
They're the same but you should use the zip file. .tar.gz files don't work on all servers.
Title: Re: Users Online Today Mod
Post by: khamseen on June 20, 2011, 07:41:34 AM
Quote from: Brack1 on June 15, 2011, 10:17:29 AM
Quote from: Carceri on June 15, 2011, 05:13:53 AM
Quote from: khamseen on June 14, 2011, 09:02:58 AM
Fatal error: Cannot redeclare usersonlinetoday_settings() (previously declared in /home/khamseen/public_html/Sources/Subs-UsersOnlineToday.php:24) in /home/khamseen/public_html/trial/Sources/Subs-UsersOnlineToday.php on line 41

What does line 41 in that file says? Mine does not have a redeclaration of the function on that line. Line 24 is where the function is first declared though.

You may have two lines the same in the file.

Nope, it's installed on our main domain and on another subdomain without any issues, for some reason this particular subdomain seems to be the only one throwing up the error. I'll keep looking for what's causing it and get back to you. The really curious thing is that if I delete the file in question, the package still works...

Quote from: aoife on June 16, 2011, 02:46:00 PM
After installing the latest version (1.6.0) to SMF 2.0, the mod does seem to work as it should but I get the following error message filling up my log:

***/forums/index.php?action=forum
2: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument
File: ***/forums/Themes/default/BoardIndex.template.php
Line: 183


Any ideas on how to fix?

Not without knowing what is on line 183 of your BoardIndex.template.
Title: Re: Users Online Today Mod
Post by: Aoife on June 20, 2011, 08:10:50 AM
Quote from: khamseen on June 20, 2011, 07:41:34 AM

Quote from: aoife on June 16, 2011, 02:46:00 PM
After installing the latest version (1.6.0) to SMF 2.0, the mod does seem to work as it should but I get the following error message filling up my log:

***/forums/index.php?action=forum
2: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument
File: ***/forums/Themes/default/BoardIndex.template.php
Line: 183


Any ideas on how to fix?

Not without knowing what is on line 183 of your BoardIndex.template.

Here's what it says on my line 183:

<a href="', $scripturl . '?action=post;board=',  $board['id'] ,'"><img src="', $settings['images_url'], '/icons/post.gif" alt="*" title="', $txt['new_topic'],'" /></a>';
Title: Re: Users Online Today Mod
Post by: khamseen on June 20, 2011, 08:17:24 AM
Quote from: aoife on June 20, 2011, 08:10:50 AM
Quote from: khamseen on June 20, 2011, 07:41:34 AM

Quote from: aoife on June 16, 2011, 02:46:00 PM
After installing the latest version (1.6.0) to SMF 2.0, the mod does seem to work as it should but I get the following error message filling up my log:

***/forums/index.php?action=forum
2: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument
File: ***/forums/Themes/default/BoardIndex.template.php
Line: 183


Any ideas on how to fix?

Not without knowing what is on line 183 of your BoardIndex.template.

Here's what it says on my line 183:

<a href="', $scripturl . '?action=post;board=',  $board['id'] ,'"><img src="', $settings['images_url'], '/icons/post.gif" alt="*" title="', $txt['new_topic'],'" /></a>';

Ok could you please upload the file so I can see it as a whole, just that line isn't part of the users online today mod, it is possible something has displaced the line though. What other mods do you have installed?
Title: Re: Users Online Today Mod
Post by: Aoife on June 20, 2011, 11:56:41 AM
Quote from: khamseen on June 20, 2011, 08:17:24 AM
Quote from: aoife on June 20, 2011, 08:10:50 AM
Quote from: khamseen on June 20, 2011, 07:41:34 AM

Quote from: aoife on June 16, 2011, 02:46:00 PM
After installing the latest version (1.6.0) to SMF 2.0, the mod does seem to work as it should but I get the following error message filling up my log:

***/forums/index.php?action=forum
2: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument
File: ***/forums/Themes/default/BoardIndex.template.php
Line: 183


Any ideas on how to fix?

Not without knowing what is on line 183 of your BoardIndex.template.

Here's what it says on my line 183:

<a href="', $scripturl . '?action=post;board=',  $board['id'] ,'"><img src="', $settings['images_url'], '/icons/post.gif" alt="*" title="', $txt['new_topic'],'" /></a>';

Ok could you please upload the file so I can see it as a whole, just that line isn't part of the users online today mod, it is possible something has displaced the line though. What other mods do you have installed?

hmmm. after looking at the error log just now, it's coming up with the same error message but from a different file (post.english-utf8.php instead of the boardindex.template.php). The error is generated when I visit the board index and is generated 224 times, each time I visit.  That's a long way of saying I now don't think it's your mod at all - just not sure which one of the others it could be. 

But here is the current error message and i've attached the file. I PM'd you the list of my addons....


2: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument

File: /home7/biotacal/public_html/divinealliance/forums/Themes/default/languages/Post.english-utf8.php (main sub template - eval?)
Line: 183

Title: Re: Users Online Today Mod
Post by: Jessica. on June 20, 2011, 03:47:28 PM
how would this mod compare to this one? (http://www.simplemachines.org/community/index.php?topic=354049.msg3082631#new)

(no major differences?)
Title: Re: Users Online Today Mod
Post by: khamseen on June 20, 2011, 05:43:14 PM
Quote from: Jessica. on June 20, 2011, 03:47:28 PM
how would this mod compare to this one? (http://www.simplemachines.org/community/index.php?topic=354049.msg3082631#new)

(no major differences?)

That one is pretty much the same, but with less options. Users Online Today mod lets you specify whether it covers the 'forum day', last 24 hours, or last 7 days. It also gives you a few options for how to arrange them and who can see it, Admins, registered users or everyone. The other guy maybe didn't see this one before making his own, or he wanted it specifically in Arabic.
Title: Re: Users Online Today Mod
Post by: Richardgm on June 21, 2011, 06:41:05 PM
Great job!
Title: Re: Users Online Today Mod
Post by: Celia N. Foster on June 22, 2011, 07:41:33 PM
My forum still has the same error when I try to log in. My forum is a RC 2.0.5.

The error I get is:

Fatal error: Call to undefined function getUsersOnlineTodayStats() in /hermes/bosweb26b/b647/ipg.judithbarsicom/forum/Sources/BoardIndex.php on line 133

How exactly do I uninstall the mod?

Please help!

Thank you.
Title: Re: Users Online Today Mod
Post by: Carceri on June 23, 2011, 03:21:00 AM
Quote from: Celia N. Foster on June 22, 2011, 07:41:33 PM
How exactly do I uninstall the mod?

The same way you would uninstall any other mod... through the package manager :)
Title: Re: Users Online Today Mod
Post by: WasdMan on June 23, 2011, 06:17:16 AM
Included in the Hungarian language files.
Title: Re: Users Online Today Mod
Post by: khamseen on June 23, 2011, 08:33:59 AM
Quote from: Carceri on June 23, 2011, 03:21:00 AM
Quote from: Celia N. Foster on June 22, 2011, 07:41:33 PM
How exactly do I uninstall the mod?

The same way you would uninstall any other mod... through the package manager :)

She's having a fatal error when trying to load into the forums, I would assume that means she can't get to the package manager, which is probably why she's asking you for help.
Title: Re: Users Online Today Mod
Post by: Jessica. on June 23, 2011, 11:17:41 AM
Quote from: Celia N. Foster on June 22, 2011, 07:41:33 PM
My forum still has the same error when I try to log in. My forum is a RC 2.0.5.

The error I get is:

Fatal error: Call to undefined function getUsersOnlineTodayStats() in /hermes/bosweb26b/b647/ipg.judithbarsicom/forum/Sources/BoardIndex.php on line 133

How exactly do I uninstall the mod?

Please help!

Thank you.


best I way I think is to manually uninstall it.
Title: Re: Users Online Today Mod
Post by: Carceri on June 23, 2011, 12:29:45 PM
Quote from: Celia N. Foster on June 22, 2011, 07:41:33 PM
Fatal error: Call to undefined function getUsersOnlineTodayStats() in /hermes/bosweb26b/b647/ipg.judithbarsicom/forum/Sources/BoardIndex.php on line 133

How exactly do I uninstall the mod?

In that case follow the steps in the uninstall-required.php file. You can even run it manually; just put it in the same folder as the index.php file of SMF and run it. After that, reverse the modifications listed in users_online_today.xml. You need to at least remove a few lines from BoardIndex.php.
Title: Re: Users Online Today Mod
Post by: yugo23 on June 27, 2011, 11:04:17 AM
Quote from: khamseen on June 20, 2011, 05:43:14 PM
Users Online Today mod lets you specify whether it covers the 'forum day', last 24 hours, or last 7 days. It also gives you a few options for how to arrange them and who can see it, Admins, registered users or everyone.

Where can I find these options? All I can see is option to uninstall the mod and list files. Must be somewhere else, just I can't find it.
Title: Re: Users Online Today Mod
Post by: khamseen on June 27, 2011, 11:16:16 AM
Quote from: yugo23 on June 27, 2011, 11:04:17 AM
Where can I find these options? All I can see is option to uninstall the mod and list files. Must be somewhere else, just I can't find it.

Admin > Configuration > Modification Settings > Miscellaneous.  :)
Title: Re: Users Online Today Mod
Post by: Carceri on June 27, 2011, 11:29:48 AM
Quote from: WasdMan on June 23, 2011, 06:17:16 AM
Included in the Hungarian language files.

Thanks. They will be included in the next release. However, it seemed that the utf8 file wasn't actually utf8 encoded, but ansi? Anyway, I converted it to utf8.
Title: Re: Users Online Today Mod
Post by: divecall on June 28, 2011, 08:20:07 PM
I have RC5 with Simpleportal 2.3.3 installed (and sure, this Mod, too)

In the User Online-Block there is no list for the "User today".

Can give me somebody a solution for this Problem, please?
Title: Re: Users Online Today Mod
Post by: live627 on July 02, 2011, 02:00:47 AM
This mod has a portability problem in that it hardcodes $sourcedir in with the hook. Thus, when I migrated my website, I had to correct the path in the database. I suggest actually putting the variable in the string.
Title: Re: Users Online Today Mod
Post by: Spoogs on July 02, 2011, 02:23:14 AM
Version 2.0RC1 of this mod duplicates the group key on the board index... not sure if this was intended.
After installing the mod the following code appears twice on BoardIndex.template.php
// Showing membergroups?
if (!empty($settings['show_group_key']) && !empty($context['membergroups']))
echo
'<br />[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']';
Title: Re: Users Online Today Mod
Post by: Carceri on July 04, 2011, 02:35:03 AM
Quote from: Spoogs on July 02, 2011, 02:23:14 AM
Version 2.0RC1 of this mod duplicates the group key on the board index... not sure if this was intended.

It was intended, but since my test forum has one user and no groups I have never seen what it looks like. I'll remove it if it looks weird, which it probably does.

Actually I think it has been like this since the very first version of this mod :)
Title: Re: Users Online Today Mod
Post by: Carceri on July 04, 2011, 02:43:41 AM
Oh and by the way...

There is a much better chance of getting a bug fixed by contacting me directly (e.g. by PM) than by posting it here, where I might not notice it among all the other posts.
Title: Re: Users Online Today Mod
Post by: Inti31 on July 04, 2011, 03:24:24 AM
Included the German language files - thx, works fine
Title: Re: Users Online Today Mod
Post by: DasVON on July 05, 2011, 10:38:17 PM
I want to make a person or group not to be seen in the Users Online Today MOD at all ( I tried the invisible option)

Reason: I am using the Auto Respond Mod and I made a member called PR Bot I don't want him showing in the Group Key in the Users Online Today MOD


Can this be Done ?
Title: Re: Users Online Today Mod
Post by: khamseen on July 06, 2011, 09:01:40 AM
Quote from: DasVON on July 05, 2011, 10:38:17 PM
I want to make a person or group not to be seen in the Users Online Today MOD at all ( I tried the invisible option)

Reason: I am using the Auto Respond Mod and I made a member called PR Bot I don't want him showing in the Group Key in the Users Online Today MOD


Can this be Done ?

If it's set up to be a member account, you could always just set it's profile to hide online status.
Title: Re: Users Online Today Mod
Post by: live627 on July 06, 2011, 08:06:35 PM
That hides a member from the online list, maybe not this mod. Certainly won't hide a membergroup from the key, either.
Title: Re: Users Online Today Mod
Post by: khamseen on July 06, 2011, 08:33:09 PM
Quote from: live627 on July 06, 2011, 08:06:35 PM
That hides a member from the online list, maybe not this mod. Certainly won't hide a membergroup from the key, either.

To hide a membergroup from the key, you just set it's visibility to either invisible or "visible- except in group key"... A member hiding their online status should only be visible to admins in the online list or in the users online today list too.
Title: Re: Users Online Today Mod
Post by: hcfwesker on July 07, 2011, 06:18:34 PM
That information isn't for this MOD, that's a built in feature for SMF2

But, I'll share the edits, but a staff member may split & move theses posts elsewhere.


Under  Themes/YOUR THEME/BoardIndex.template.php


Find

// "Users online" - in order of activity.
echo '
<div class="title_barIC" style="margin-top: -6px;">
<h4 class="catbg">
<span class="ie6_header floatleft">
<div class="floatleft" style="margin-top: 5px; width: 16px;">', $context['show_who'] ? '<a href="' . $scripturl . '?action=who' . '">' : '', '<img class="icon" src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['online_users'], '" />', $context['show_who'] ? '</a>' : '', '</div><div class="floatleft" style="margin-left: 6px;">
', $txt['online_users'], '</div><br class="clear" />
</span>
</h4>
</div>
<p class="windowbg inline stats">
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', comma_format($context['num_guests']), ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . comma_format($context['num_users_online']), ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];

// Handle hidden users and buddies.
$bracketList = array();
if ($context['show_buddies'])
$bracketList[] = comma_format($context['num_buddies']) . ' ' . ($context['num_buddies'] == 1 ? $txt['buddy'] : $txt['buddies']);
if (!empty($context['num_spiders']))
$bracketList[] = comma_format($context['num_spiders']) . ' ' . ($context['num_spiders'] == 1 ? $txt['spider'] : $txt['spiders']);
if (!empty($context['num_users_hidden']))
$bracketList[] = comma_format($context['num_users_hidden']) . ' ' . $txt['hidden'];

if (!empty($bracketList))
echo ' (' . implode(', ', $bracketList) . ')';

echo $context['show_who'] ? '</a>' : '', '
</p>
<p class="windowbg inline smalltext">';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
{
echo '
', sprintf($txt['users_active'], $modSettings['lastActive']), ':<br />', implode(', ', $context['list_users_online']);

// Showing membergroups?


      
Replace with

// "Users online" - in order of activity.
echo '
<div class="title_barIC" style="margin-top: -6px;">
<h4 class="catbg">
<span class="ie6_header floatleft">
<div class="floatleft" style="margin-top: 5px; width: 16px;">', $context['show_who'] ? '<a href="' . $scripturl . '?action=who' . '">' : '', '<img class="icon" src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['online_users'], '" />', $context['show_who'] ? '</a>' : '', '</div><div class="floatleft" style="margin-left: 6px;">
', $txt['online_users'], '</div><br class="clear" />
</span>
</h4>
</div>

<p class="windowbg inline smalltext">';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
{
echo '
', sprintf($txt['users_active'], $modSettings['lastActive']), ':  ', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', comma_format($context['num_guests']), ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . comma_format($context['num_users_online']), ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];

// Handle hidden users and buddies.
$bracketList = array();
if ($context['show_buddies'])
$bracketList[] = comma_format($context['num_buddies']) . ' ' . ($context['num_buddies'] == 1 ? $txt['buddy'] : $txt['buddies']);
if (!empty($context['num_spiders']))
$bracketList[] = comma_format($context['num_spiders']) . ' ' . ($context['num_spiders'] == 1 ? $txt['spider'] : $txt['spiders']);
if (!empty($context['num_users_hidden']))
$bracketList[] = comma_format($context['num_users_hidden']) . ' ' . $txt['hidden'];

if (!empty($bracketList))
echo ' (' . implode(', ', $bracketList) . ')';

echo $context['show_who'] ? '</a>': '', '<br />', implode(', ', $context['list_users_online']);

// Showing membergroups?



It's what you asked for, if not, then you can just revrrt the changes made.  It will appear as below ...

Users active in past 30 minutes:  1,231 Guests, 73 Users (5 Hidden)


Quote from: Kaitlyn on July 07, 2011, 04:48:32 AM
also wondering is it possible to completely remove (Visible: 0, Hidden: 0)

For your second question, in the SAME exact file as listed above.

Find
echo
$txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';

if ($context['viewing_allowed'])
echo
' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_users_hidden_today']), ', ', $txt['uot_hidden'], ': ', $context['num_users_hidden_today'], ')';



Replace with

echo
$txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';

Title: Re: Users Online Today Mod
Post by: Inti31 on July 12, 2011, 08:39:58 AM
ups... I deinstalled the previous version (RC1) and installed the new version - it works but the forum layout (not the portal) become corrupt.... (see my testforum (http://aida32-inventory.netboom.de/smf/index.php?action=forum))


it is just the forum page - when I click on administrate, moderate, gallery or the contact page the layout looks fine again..

Addition:
strange - in Firefox the layout looks better than IE - IE7 /IE9 look worse.
Firefox makes the size bigger of all topics

Addition1: I removed RC3 - now it looks fine again...
Title: Re: Users Online Today Mod
Post by: luuuciano on July 15, 2011, 01:36:45 PM
Quote from: Inti31 on July 12, 2011, 08:39:58 AM
Firefox makes the size bigger of all topics

That behavior is happening to me too... any idea about how to resolve it?
It looks too uggly that way... maybe its an unclosed tag or something?
I can not find anything in the code... neither looking at the parse... :(

edit: something is adding an string that shows before the DOCTYPE... where is generated that? it is affecting the mod admin section too... that is why the looks gets mad I guess

btw, here Im attaching spanish language files
Title: Re: Users Online Today Mod
Post by: Carceri on July 15, 2011, 04:54:58 PM
Quote from: luuuciano on July 15, 2011, 01:36:45 PM
edit: something is adding an string that shows before the DOCTYPE... where is generated that? it is affecting the mod admin section too... that is why the looks gets mad I guess

Could you post that string here?
Title: Re: Users Online Today Mod
Post by: luuuciano on July 16, 2011, 02:52:17 PM
Quote from: Carceri on July 15, 2011, 04:54:58 PM
Quote from: luuuciano on July 15, 2011, 01:36:45 PM
edit: something is adding an string that shows before the DOCTYPE... where is generated that? it is affecting the mod admin section too... that is why the looks gets mad I guess

Could you post that string here?

Well, in this windows machine I have no properly way to do it, I can not "see it", etc (I guess), but you can see it here: http://cba.b.ikes.com.ar/
(until its fixed heheh)
The w3c validator reports a utf BOM there (but it do not looks like it....)... and I can not find where it is generated...

I think that because that string the browser go to quirksmode

I have checked the modified files, new files, erased spaces after ?>, no BOM found... (anyway, Ill check it at my linux box later...)

btw, what is for the xslt directory? it is needed/used?
Title: Re: Users Online Today Mod
Post by: Carceri on July 18, 2011, 07:19:25 AM
Quote from: luuuciano on July 16, 2011, 02:52:17 PMbtw, what is for the xslt directory? it is needed/used?

It's used (or at least was at some point) for helping applying the mod to unsupported themes.

Regarding the issue, I am unable to reproduce it on my installation.
Title: Re: Users Online Today Mod
Post by: BTC on July 18, 2011, 12:33:40 PM
All I can say is: great mod!!! :D

I attached a dutch language file.
Title: Re: Users Online Today Mod
Post by: live627 on July 18, 2011, 05:44:11 PM
QuoteIt's used (or at least was at some point) for helping applying the mod to unsupported themes.
XML style sheets don't do that.
Title: Re: Users Online Today Mod
Post by: Individul on July 20, 2011, 12:29:03 PM
Quote from: luuuciano on July 15, 2011, 01:36:45 PM
Quote from: Inti31 on July 12, 2011, 08:39:58 AM
Firefox makes the size bigger of all topics

That behavior is happening to me too... any idea about how to resolve it?
It looks too uggly that way... maybe its an unclosed tag or something?
I can not find anything in the code... neither looking at the parse... :(

edit: something is adding an string that shows before the DOCTYPE... where is generated that? it is affecting the mod admin section too... that is why the looks gets mad I guess

btw, here Im attaching spanish language files


Well ist a great mod, but this problem make me to uninstall him.

If anybody find a solution for this problem, pls report here.
Title: Re: Users Online Today Mod
Post by: luuuciano on July 20, 2011, 01:26:28 PM
Quote from: Individul on July 20, 2011, 12:29:03 PM
Well ist a great mod, but this problem make me to uninstall him.
If anybody find a solution for this problem, pls report here.

Its something odd... I have installed it in a test curve forum 2.0 and did not happened... no idea whats happening

Ok, I asked a way to find this stuff, and SlammedDime pointed me to file_check: http://www.simplemachines.org/community/index.php?topic=329069.0
So...

I have changed it in each file to utf8 without BOM, then uploaded, and all works great! :)
FC is reporting this:
/Themes/default/languages/UsersOnlineToday.english-utf8.php
    UTF-8 BOM found
/Themes/default/languages/UsersOnlineToday.spanish_latin-utf8.php
    UTF-8 BOM found
/Themes/default/languages/Modifications.spanish_latin-utf8.php
    UTF-8 BOM found

Im checking the files...

Carceri, it looks like all your *.utf8 files have a BOM beggining (the ones I uploaded a few days ago too, lol)
Title: Re: Users Online Today Mod
Post by: Carceri on July 21, 2011, 03:58:16 PM
Quote from: luuuciano on July 20, 2011, 01:26:28 PM
Carceri, it looks like all your *.utf8 files have a BOM beggining

Thanks for troubleshooting this issue! They should now be removed in RC4.
Title: Re: Users Online Today Mod
Post by: Raffoz on August 05, 2011, 08:57:14 PM
thanks for the mod

could be possible to sort the users by using their display name and not their username?
Title: Re: Users Online Today Mod
Post by: Martine M on August 19, 2011, 06:22:36 PM
I'm running SMF 2.0 and have Users online today 1.6.0 installed
I just installed the Bloc's theme Argentum enhanced on my life forum today.
Now I see the Mod Users Online today doesn't show anymore. although setting screen is still in admin panel
And I really want that mod back.
can someone help me out here please

I tried removing it so I could try and install again but it gave errors for removing so I didn't.
I tried installing it manually but can't find in the boardindex.template.php

And I don't know if I have to do anything els.

// If they are logged in, but statistical information is off... show a personal message bar.

were before I have to put this

// Users Online Today
echo '
<div class="title_barIC">
<h4 class="titlebg">
<span class="ie6_header floatleft">
<img class="icon" src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['online_users'], '" />', $txt['uot_users_online_'.$modSettings['uot_setting_period']], '
</span>
</h4>
</div>
<p class="inline smalltext">';
echo
$txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';

if ($context['viewing_allowed'])
echo
' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_users_hidden_today']), ', ', $txt['uot_hidden'], ': ', $context['num_users_hidden_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && $context['viewing_allowed'])
{
echo
'<br />', implode(', ', $context['list_users_online_today']);
}
echo '
</p>';



Title: Re: Users Online Today Mod
Post by: Martine M on August 21, 2011, 03:58:12 AM
I deleted users online a part manually, no errors anymore it was a bit to much errors.

I uploaded Users online today 2..0 RC4 and try to install it, I didn't cause I got these errors there to.

./Themes/argentum_enhanced_smf20final/BoardIndex.template.php    Test failed
      1.    Add Before    ./Themes/argentum_enhanced_smf20final/BoardIndex.template.php    Test failed
Title: Re: Users Online Today Mod
Post by: Carceri on August 21, 2011, 04:07:06 PM
Quote from: Martine M on August 21, 2011, 03:58:12 AM
./Themes/argentum_enhanced_smf20final/BoardIndex.template.php    Test failed
      1.    Add Before    ./Themes/argentum_enhanced_smf20final/BoardIndex.template.php    Test failed

You are trying to install the mod on an unsupported theme, which explains the error. Only the default theme is supported, so getting it to work on other themes will usually require making some changes manually.
Title: Re: Users Online Today Mod
Post by: Martine M on August 21, 2011, 04:14:51 PM
Yes I understand that but as I said in my post before, I tried installing it manually to but couldn't find were to put this

Quote from: Martine M on August 19, 2011, 06:22:36 PM

I tried installing it manually but can't find in the boardindex.template.php

// If they are logged in, but statistical information is off... show a personal message bar.

were before I have to put this

// Users Online Today
echo '
<div class="title_barIC">
<h4 class="titlebg">
<span class="ie6_header floatleft">
<img class="icon" src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['online_users'], '" />', $txt['uot_users_online_'.$modSettings['uot_setting_period']], '
</span>
</h4>
</div>
<p class="inline smalltext">';
echo
$txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';

if ($context['viewing_allowed'])
echo
' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_users_hidden_today']), ', ', $txt['uot_hidden'], ': ', $context['num_users_hidden_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && $context['viewing_allowed'])
{
echo
'<br />', implode(', ', $context['list_users_online_today']);
}
echo '
</p>';



Title: Re: Users Online Today Mod
Post by: Martine M on August 22, 2011, 02:41:44 PM
I installed it manually again in default and Argentum theme.

Forum default is Argentum and I swirch my profile to Deafault to see in idefault theme.

I get the same error in both theme's, can't acces the index page. (it's at the testforum)

"Fatal error: Call to undefined function getusersonlinetodaystats() in /home/unitedtu/public_html/testforum/Sources/BoardIndex.php on line 70"

Line 70 = $context += getUsersOnlineTodayStats();
Title: Re: Users Online Today Mod
Post by: Martine M on August 22, 2011, 06:06:22 PM
I got it working now, I forgot to execute the install.php.
And Bloc and Lesmond toled me were to put it in the Argentum theme. Boardindex.template.php
Title: Re: Users Online Today Mod
Post by: roy123456789 on August 30, 2011, 03:50:49 PM
Quote from: noaccess on April 07, 2011, 04:11:09 AM
Quote from: Carceri on April 06, 2011, 09:20:22 AM
Quote from: noaccess on March 10, 2011, 01:40:33 AM
I would like to make Users logged in today visible to guests. How do I go about doing this? Also, why on earth would this be disabled by default? It should be the other way around.

For privacy reasons. It could reveal that a user was registered on a specific forum, to a visitor who was not registered on the same forum. Basically this is keeping in line with the rest of SMF that a guest is by default not allowed to view the list of registered users.
Nonsense of course, just like the other argument used a few pages before. Any random fellow can register on the forum and get more access (see more) than just a nickname. Anyway, it doesn't matter, I already changed it.

How did you change it? Code changes please
Title: Re: Users Online Today Mod
Post by: Branko. on August 30, 2011, 05:33:57 PM
Here is translation for serbian_latin and croatian, both.. ISO/UTF8
Title: Re: Users Online Today Mod
Post by: T3CHN0 on October 08, 2011, 08:32:51 AM
QuoteThe time period that the user list shows can be the current day, last 24 hours or last week
I see this mod can show who's on over the passed week, But don't now how to turn it on.
reading over the boards I can't find any answer on this either.
looks out of shape on my blackrainV2 theme but I will correct it's looks once I work out how to show
who has been on over the passed week.

I would like to know is there something else I can add to the code so only moderators and admins can see it?
Title: Re: Users Online Today Mod
Post by: Branko. on October 08, 2011, 09:37:50 AM
SMF2.x - Modification Settings »Miscellaneous »The user list should cover the (current day, last 24 hours, last 7 days)
and Make the user list visible to (administrators, registered users, everyone) and also set Permissions>General Permissions select desired group then in general find View Who's Online (check or uncheck)
Title: Re: Users Online Today Mod
Post by: T3CHN0 on October 08, 2011, 11:05:06 AM
thank you for such a very fast reply
something simple like what I asked should be on the mods download post I would think
then silly questions are avoided.

But your answer did cover everything I asked and it's all good now :)
once i work out how to fix the display on my theme i will post it here as well
as it might help others.

for the ones who don't know go to  Admin>Modification Settings>Miscellaneous> and look for
something that looks the same as the image below, click on image to make it bigger.
Title: Re: Users Online Today Mod
Post by: T3CHN0 on October 08, 2011, 01:16:13 PM
If this is any good to someone, [My theme is blackrainV2]..  The code for this mod didn't look good on my forum.
So I edited the code to look better on my forum...

BoardIndex.template.php

        // Users Online Today
    echo '
            <div class="infocenter_section">
                <h4 class="titlebg">', $txt['uot_users_online_'.$modSettings['uot_setting_period']], '</h4>
                <div class="windowbg">
                    <p class="section">
                        <img class="icon" src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['online_users'], '" />
                    </p>
                <div class="windowbg2 sectionbody">
               

            <span><b><font color="#00FF00">';
    echo
                $txt['uot_total'], ' = ', $context['num_users_online_today'], '</b></font></span><font color="#ECD672">';

            if ($context['viewing_allowed'])
    echo
                ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_users_hidden_today']), ', ', $txt['uot_hidden'], ': ', $context['num_users_hidden_today'], ')';

                // Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
                if (!empty($context['users_online_today']) && $context['viewing_allowed'])
                {
    echo
                    '<br />', implode(', ', $context['list_users_online_today']);
                }
    echo '
            </font>';

Title: Re: Users Online Today Mod
Post by: dbailey on October 11, 2011, 02:43:02 AM
My theme is silentwave_20rc3 and there is no BoardIndex.template.php file within this templates files, it must use the default one. The package installed with no troubles but it isn't showing up.

I'm using SMF 2.0.1 |
TinyPortal latest version.

Any ideas please?
Title: Re: Users Online Today Mod
Post by: T3CHN0 on October 11, 2011, 05:58:18 AM
Quote from: dbailey on October 11, 2011, 02:43:02 AM
My theme is silentwave_20rc3 and there is no BoardIndex.template.php file within this templates files, it must use the default one. The package installed with no troubles but it isn't showing up.

I'm using SMF 2.0.1 |
TinyPortal latest version.

Any ideas please?

Are you sure it installed with no error's ?
I have a 2.0.1 beta site and on a fresh installed with your theme it installed
and also works perfectly.
maybe upload your files and I will have a look at them for you.

this is how it should look on the bottom of your theme
click on image to make bigger
Title: Re: Users Online Today Mod
Post by: T3CHN0 on October 11, 2011, 06:06:32 AM
Also you might like this mod last24 hours (http://custom.simplemachines.org/mods/index.php?mod=2274)
I use both mods together and they do not conflict with each other.
I have 24hrs mod for all members to see part from guests
and I set (Online Today Mod) to display last 7 days to show only to moderators and administrators
I would like another mod like this to show member who have not been on the forum for more then
3 months but can't find one :) hint hint to modders
Title: Re: Users Online Today Mod
Post by: Branko. on October 11, 2011, 06:37:16 AM
Quote from: dbailey on October 11, 2011, 02:43:02 AM
My theme is silentwave_20rc3 and there is no BoardIndex.template.php file 
This mod install only in ./Themes/default/BoardIndex.template.php . Try uninstall and install again (check core theme before).Tested SMF2.0.1+silentwave_20rc3+Users Online Today Mod
Title: Re: Users Online Today Mod
Post by: dbailey on October 12, 2011, 01:58:32 AM
UPDATE: I uninstalled and then reinstalled while using the curve theme and mod showed up. I then changed the theme back to silent wave and the mod disappeared.

I'm not sure what to do next.

This did used to work until I upgraded the forum to the current 2.0.1 version.
Title: Re: Users Online Today Mod
Post by: dbailey on October 12, 2011, 01:59:42 AM
Quote from: T3CHN0 on October 11, 2011, 05:58:18 AM
Quote from: dbailey on October 11, 2011, 02:43:02 AM
My theme is silentwave_20rc3 and there is no BoardIndex.template.php file within this templates files, it must use the default one. The package installed with no troubles but it isn't showing up.

I'm using SMF 2.0.1 |
TinyPortal latest version.

Any ideas please?

Are you sure it installed with no error's ?
I have a 2.0.1 beta site and on a fresh installed with your theme it installed
and also works perfectly.
maybe upload your files and I will have a look at them for you.

this is how it should look on the bottom of your theme
click on image to make bigger

Which file should I upload please?
Title: Re: Users Online Today Mod
Post by: T3CHN0 on October 12, 2011, 03:35:04 AM
Install the mod first and then upload BoardIndex.php and BoardIndex.template.php
I will put them on my forum to test them both and find the fault for you
Title: Re: Users Online Today Mod
Post by: dbailey on October 12, 2011, 05:42:16 AM
Hi thanks for taking a look at this for me. I appreciate it a lot.
Title: Re: Users Online Today Mod
Post by: T3CHN0 on October 12, 2011, 12:14:40 PM
Both files worked perfect on my site.

you have a double up of

                // Users Online Today
    echo '
            <div class="title_barIC">
                <h4 class="titlebg">
                    <span class="ie6_header floatleft">
                        <img class="icon" src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['online_users'], '" />', $txt['uot_users_online_'.$modSettings['uot_setting_period']], '
                    </span>
                </h4>
            </div>
            <p class="inline smalltext">';
    echo
                $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';

            if ($context['viewing_allowed'])
    echo
                ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_users_hidden_today']), ', ', $txt['uot_hidden'], ': ', $context['num_users_hidden_today'], ')';

                // Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
                if (!empty($context['users_online_today']) && $context['viewing_allowed'])
                {
    echo
                    '<br />', implode(', ', $context['list_users_online_today']);
                }
    echo '
            </p>';

so I see it 2 times so just remove one of them. but it works fine.
can you tell me your website URL or PM it to me

P.S. keep in mind I am in Australia and time difference I can't always reply directly but I will as soon as I can
Title: Re: Users Online Today Mod
Post by: dbailey on October 15, 2011, 02:26:46 AM
Hi T3CHN0

Thanks for your help on this matter. I found the double up text and deleted it and made sure the right text is in the right place. But still no go.  :(

Any other ideas?


Oh my address is www.christmasdisplays.co.nz you will need to register as a user then go to the forum link to see the users online info.
Title: Re: Users Online Today Mod
Post by: sharks on October 15, 2011, 07:20:56 AM
Hi Carceri

Could you please consider adding a permission system to your mod, so that only certain membergroups are allowed to see the list of users online today. Thank you in advance.
Title: Re: Users Online Today Mod
Post by: T3CHN0 on October 15, 2011, 11:42:07 AM
Quote from: dbailey on October 15, 2011, 02:26:46 AM
Hi T3CHN0

Thanks for your help on this matter. I found the double up text and deleted it and made sure the right text is in the right place. But still no go.  :(

Any other ideas?


Oh my address is www.christmasdisplays.co.nz (http://www.christmasdisplays.co.nz) you will need to register as a user then go to the forum link to see the users online info.
sorry for a long wait in reply. got family over but will help when i can. I registered with your site and can see it not working if I click on forum.
I think your using Tiny Portal

==================
Try changing you edit in BoardIndex.template.php
find
    // Handle hidden users and buddies.
add before

// Users Online Today
echo '
<div class="title_barIC">
<h4 class="titlebg">
<span class="ie6_header floatleft">
<img class="icon" src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['online_users'], '" />', $txt['uot_users_online_'.$modSettings['uot_setting_period']], '
</span>
</h4>
</div>
<p class="inline smalltext">';
echo
$txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';

if ($context['viewing_allowed'])
echo
' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_users_hidden_today']), ', ', $txt['uot_hidden'], ': ', $context['num_users_hidden_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && $context['viewing_allowed'])
{
echo
'<br />', implode(', ', $context['list_users_online_today']);
}
echo '
</p>';






click on image to make bigger 'it not working'
Title: Re: Users Online Today Mod
Post by: T3CHN0 on October 15, 2011, 05:30:58 PM
Quote from: sharks on October 15, 2011, 07:20:56 AM
Hi Carceri Could you please consider adding a permission system to your mod, so that only certain membergroups are allowed to see the list of users online today. Thank you in advance.
did you see this setting for member groups...
Quote from: Branko. on October 08, 2011, 09:37:50 AM
SMF2.x - Modification Settings » Miscellaneous »The user list should cover the (current day, last 24 hours, last 7 days)
and Make the user list visible to (administrators, registered users, everyone) and also set Permissions>General Permissions select desired group then in general find View Who's Online (check or uncheck)
Title: Re: Users Online Today Mod
Post by: sharks on October 15, 2011, 06:27:51 PM
But i'm using SMF 1.1.15...
Title: Re: Users Online Today Mod
Post by: dbailey on October 16, 2011, 03:22:37 AM
Update *solved*

Thanks T3CHN0 I tried your suggestion but alas still no go. So I just copied the file to the same directory as the template and bingo it now works.

Thanks for your time trying to solve this for me and also for the link you PM me. Did you want me to delete your registration on my site as well?
Title: Re: Users Online Today Mod
Post by: Branko. on October 16, 2011, 03:27:46 AM
Quote from: sharks on October 15, 2011, 06:27:51 PM
But i'm using SMF 1.1.15...
You're right, Users Online Today v1.4.0 not have the same options...only 24h
Title: Re: Users Online Today Mod
Post by: T3CHN0 on October 16, 2011, 04:42:43 AM
Quote from: dbailey on October 16, 2011, 03:22:37 AM
Update *solved*
Did you want me to delete your registration on my site as well?
glade you got it working. yeah delete my reg if you could. happy to help when I can
cheers
Title: Re: Users Online Today Mod
Post by: 3fifty on October 25, 2011, 07:59:01 PM
Any updates for 2.0.1?
Title: Re: Users Online Today Mod
Post by: TheListener on October 25, 2011, 08:07:22 PM
Quote from: 3fifty on October 25, 2011, 07:59:01 PM
Any updates for 2.0.1?

THIS (http://wiki.simplemachines.org/smf/How_can_install_a_mod_that_doesn%27t_work_in_my_SMF_version) may help.
Title: Re: Users Online Today Mod
Post by: 3fifty on October 25, 2011, 08:17:27 PM
That worked just fine.  Thank you.  I forgot about being able to do that actually.
Title: Re: Users Online Today Mod
Post by: Julian F on November 01, 2011, 09:38:59 PM
it is any way to track users from SSI.php on this mod?
Title: Re: Users Online Today Mod
Post by: BaghdadGhost on November 10, 2011, 12:06:20 AM
Quote from: T3CHN0 on October 08, 2011, 01:16:13 PM
If this is any good to someone, [My theme is blackrainV2]..  The code for this mod didn't look good on my forum.
So I edited the code to look better on my forum...

BoardIndex.template.php

        // Users Online Today
    echo '
            <div class="infocenter_section">
                <h4 class="titlebg">', $txt['uot_users_online_'.$modSettings['uot_setting_period']], '</h4>
                <div class="windowbg">
                    <p class="section">
                        <img class="icon" src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['online_users'], '" />
                    </p>
                <div class="windowbg2 sectionbody">
               

            <span><b><font color="#00FF00">';
    echo
                $txt['uot_total'], ' = ', $context['num_users_online_today'], '</b></font></span><font color="#ECD672">';

            if ($context['viewing_allowed'])
    echo
                ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_users_hidden_today']), ', ', $txt['uot_hidden'], ': ', $context['num_users_hidden_today'], ')';

                // Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
                if (!empty($context['users_online_today']) && $context['viewing_allowed'])
                {
    echo
                    '<br />', implode(', ', $context['list_users_online_today']);
                }
    echo '
            </font>';




this is what I was gonna ask about :) I use ClearSky v2 theme on smf 2.0.1

great mod thanks dude
Title: Re: Users Online Today Mod
Post by: BaghdadGhost on November 10, 2011, 12:25:51 AM
btw, I actually did this  ;) just to bring the icon up next to the text just like it is originally



  // Users Online Today
    echo '
            <div class="infocenter_section">
                <h4 class="titlebg"><span class="ie6_header floatleft">
<img class="icon" src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['online_users'], '" />', $txt['uot_users_online_'.$modSettings['uot_setting_period']], '
</span>
</h4>
                <div class="windowbg2 sectionbody">
               

            <span><b><font color="#ecd672">';
    echo
                $txt['uot_total'], ' = ', $context['num_users_online_today'], '</b></font></span><font color="#ECD672">';

            if ($context['viewing_allowed'])
    echo
                ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_users_hidden_today']), ', ', $txt['uot_hidden'], ': ', $context['num_users_hidden_today'], ')';

                // Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
                if (!empty($context['users_online_today']) && $context['viewing_allowed'])
                {
    echo
                    '<br />', implode(', ', $context['list_users_online_today']);
                }
    echo '
            </font>';
Title: Re: Users Online Today Mod
Post by: T3CHN0 on November 10, 2011, 06:00:24 AM
yes, my theme is darkrainv2 and its display wouldn't be the same as your on ClearSky v2 but close to it. glade you knew how to make the edit
Title: Re: Users Online Today Mod
Post by: inter on November 24, 2011, 06:27:37 AM
I translated the module into Russian  8)
If you prefer, you can turn translate into an overall package
Title: Re: Users Online Today Mod
Post by: chinaren on December 01, 2011, 08:33:52 AM
Does what it says on the tin!  Thank you! 

Title: Re: Users Online Today Mod
Post by: SD-X on January 09, 2012, 07:30:53 PM
Works out of the box for SMF 2.0.1 and 2.0.2! :)
Title: Re: Users Online Today Mod
Post by: noaccess on January 16, 2012, 04:53:44 AM
Quote from: roy123456789 on August 30, 2011, 03:50:49 PM
Quote from: noaccess on April 07, 2011, 04:11:09 AM
Quote from: Carceri on April 06, 2011, 09:20:22 AM
Quote from: noaccess on March 10, 2011, 01:40:33 AM
I would like to make Users logged in today visible to guests. How do I go about doing this? Also, why on earth would this be disabled by default? It should be the other way around.

For privacy reasons. It could reveal that a user was registered on a specific forum, to a visitor who was not registered on the same forum. Basically this is keeping in line with the rest of SMF that a guest is by default not allowed to view the list of registered users.
Nonsense of course, just like the other argument used a few pages before. Any random fellow can register on the forum and get more access (see more) than just a nickname. Anyway, it doesn't matter, I already changed it.

How did you change it? Code changes please
To make the users logged in today visible to guests:

In ./Themes/default/BoardIndex.template.php find this:

Code (find) Select
// Users Online Today
echo '
<div class="title_barIC">
<h4 class="titlebg">
<span class="ie6_header floatleft">
<img class="icon" src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['online_users'], '" />', $txt['uot_users_online_'.$modSettings['uot_setting_period']], '
</span>
</h4>
</div>
<p class="inline smalltext">';
echo
$txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';

if ($context['viewing_allowed'])
echo
' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_users_hidden_today']), ', ', $txt['uot_hidden'], ': ', $context['num_users_hidden_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && $context['viewing_allowed'])
{
echo
'<br />', implode(', ', $context['list_users_online_today']);
}
echo '
</p>';



and replace it with this:
Code (replace) Select

// Users Online Today
echo '
<h4 class="titlebg"><span class="left"></span>
<img class="icon" src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['online_users'], '" />', '<span>', $txt['uot_users_online_today'], '</span>
</h4>
<p class="inline smalltext">';
echo
$txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';

// if ($context['viewing_allowed'])
echo
' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_users_hidden_today']), ', ', $txt['uot_hidden'], ': ', $context['num_users_hidden_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']))
{
echo
'<br />', implode(', ', $context['list_users_online_today']);

// Showing membergroups?
if (!empty($settings['show_group_key']) && !empty($context['membergroups']))
echo
'<br />[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']';
}
echo '
</p>';
Title: Re: Users Online Today Mod
Post by: rootuid on February 06, 2012, 04:21:37 PM
Works great on 2.0.2 but I want to restrict it to admins only. How do I achieve this ? Thanks
Title: Re: Users Online Today Mod
Post by: SD-X on February 06, 2012, 04:28:11 PM
Quote from: rootuid on February 06, 2012, 04:21:37 PM
Works great on 2.0.2 but I want to restrict it to admins only. How do I achieve this ? Thanks
Remove the permission from every rank in "Group Permissions". Administrators will get it by default regardless since they receive ALL permissions.
Title: Re: Users Online Today Mod
Post by: AumoeLooure on February 18, 2012, 08:24:52 PM
Hrm...Yeah, I can't seem to get it to show up. I see it in the administration control panel...set it to "Login Time, Descending, Last 24 hours, and Everyone". Unfortunately, however, I can't see the thing in info...at all.


Help?
Title: Re: Users Online Today Mod
Post by: impreza on February 21, 2012, 05:31:31 PM
A nice modification would be nice as well for the month range for the smaller would be useful.
Title: Re: Users Online Today Mod
Post by: Мel on May 10, 2012, 07:43:48 AM
Hi all.
Something off with this mod after I changed my theme (to a standard Curve recolored):

MYFORUM.com/forum/index.php?http://MYFORUM.com/forum/8: Undefined index: uot_users_online_today
File: /home/ME/public_html/MYFORUM.com/forum/Themes/default/languages/UsersOnlineToday.russian.php (main sub template - eval?)
Line: 457

Letters "Users Logged In Last X" in the bottom of the forum disappeared too.

Abyone? What's wrong with it?
Title: Re: Users Online Today Mod
Post by: Мel on May 10, 2012, 12:06:58 PM
Update:
There are actually 2 fields with "Users online today" and I can't get rid of them: I uninstall this mod and main page could not load:

Fatal error: Call to undefined function getusersonlinetodaystats() in /home/ME/public_html/SITE.com/forum/Sources/BoardIndex.php on line 70

I reinstall it - and it works, but with 2 fields and lots of errors in Error Log.
Title: Re: Users Online Today Mod
Post by: TheListener on May 10, 2012, 12:23:44 PM
Can we see a link to your forum please?
Title: Re: Users Online Today Mod
Post by: Мel on May 10, 2012, 12:54:36 PM
Here what's wrong on the main page:

(http://i47.tinypic.com/x1drp1.jpg)
Title: Re: Users Online Today Mod
Post by: TheListener on May 10, 2012, 12:56:03 PM
Quote from: Мel on May 10, 2012, 12:54:36 PM
Here what's wrong on the main page:

(http://i47.tinypic.com/x1drp1.jpg)

Not quite what I asked for but never mind.

Which language is the forum using?
Title: Re: Users Online Today Mod
Post by: Мel on May 10, 2012, 12:59:54 PM
Russian.
Title: Re: Users Online Today Mod
Post by: TheListener on May 10, 2012, 01:03:07 PM
Quote from: Old Fossil on May 10, 2012, 12:56:03 PM
Quote from: Мel on May 10, 2012, 12:54:36 PM
Here what's wrong on the main page:

(http://i47.tinypic.com/x1drp1.jpg)

I see nothing wrong with the mod myself.

I use the mod on my forum and see no differences.

Have a look at my Broadstar link in my sig if you would like to compare.
Title: Re: Users Online Today Mod
Post by: Мel on May 10, 2012, 01:05:54 PM
I'm not saying there is smth wrong with the mod. I've been using it for several years myself.
But there is definetly smth wrong with this particular installiation, so I'm asking for an advice how to fix it.
Title: Re: Users Online Today Mod
Post by: TheListener on May 10, 2012, 01:10:02 PM
Excuse a blind ninny.

I believe I have just realised the problem. Took me two looks.

Have a look at the themes index.template file and see if there is any code in there twice.

Title: Re: Users Online Today Mod
Post by: Мel on May 10, 2012, 02:24:54 PM
Quote from: Old Fossil on May 10, 2012, 01:10:02 PM
Have a look at the themes index.template file and see if there is any code in there twice.
I'm looking at it and can't see what's wrong at the first glance. Maybe you could see it better :)
Title: Re: Users Online Today Mod
Post by: NanoSector on May 10, 2012, 02:41:01 PM
Nah, gimme ya BoardIndex.template.php instead :)
Title: Re: Users Online Today Mod
Post by: TheListener on May 10, 2012, 02:42:33 PM
oops. Thanks for taking a peek Yoshi.
Title: Re: Users Online Today Mod
Post by: Мel on May 10, 2012, 02:57:01 PM
Quote from: Yoshi2889 on May 10, 2012, 02:41:01 PM
Nah, gimme ya BoardIndex.template.php instead :)
Where could I find it?
I've got only BoardIndex.php from Sources.
Title: Re: Users Online Today Mod
Post by: NanoSector on May 10, 2012, 02:59:48 PM
Quote from: Мel on May 10, 2012, 02:57:01 PM
Quote from: Yoshi2889 on May 10, 2012, 02:41:01 PM
Nah, gimme ya BoardIndex.template.php instead :)
Where could I find it?
I've got only BoardIndex.php from Sources.
The same directory you got the index.template.php from.

If it's not there gimme the one from the default theme.
Title: Re: Users Online Today Mod
Post by: Мel on May 10, 2012, 03:26:32 PM
Quote from: Yoshi2889 on May 10, 2012, 02:59:48 PM
The same directory you got the index.template.php from.
If it's not there gimme the one from the default theme.
Yep, it was with the defailt theme :)
Title: Re: Users Online Today Mod
Post by: Sabre™ on May 10, 2012, 03:31:11 PM
Maybe check your BoardIndex.php for duplicate code aswell.
Title: Re: Users Online Today Mod
Post by: Мel on May 10, 2012, 03:38:19 PM
Here it is.
Title: Re: Users Online Today Mod
Post by: Sabre™ on May 11, 2012, 03:39:53 AM
That's great, but since there are only 2 edits for this mod, you are about to have a learning curve and attempt to fix it yourself.
It is better for you to learn a little, than nothing at all.
So look for the edits this mod makes by following [THESE] (http://custom.simplemachines.org/mods/index.php?action=parse;mod=217;attach=197069;smf_version=2.0.2) instructions in reverse. Meaning, remove the duplicate code.
Or, somebody will assist you if you're unwilling to learn.
Good Luck :)
Title: Re: Users Online Today Mod
Post by: Мel on May 11, 2012, 04:45:04 AM
All right, I'll try.
Title: Re: Users Online Today Mod
Post by: Sabre™ on May 11, 2012, 04:50:16 AM
You'll do fine, this one is nice and easy.
But if you do run into an issue, do not hesitate to seek assistance.
Title: Re: Users Online Today Mod
Post by: Мel on May 11, 2012, 05:19:09 AM
OK, thank you.

Yep, that was pretty easy. It works fine now.
Title: Re: Users Online Today Mod
Post by: cyberhat on May 20, 2012, 02:34:44 AM
thanks
Title: Re: Users Online Today Mod
Post by: rickmastfan67 on May 28, 2012, 10:06:58 AM
Has anybody been able to properly code this addon to look like it did in 1.1.x in the 2.0.x branch with the "core" theme or any themes that are based off "core"?

The reason I'm asking is because I just did this myself, but it seems that I made a mistake in the coding in "BoardIndex.template.php" and it's causing the Info Center to get messed up and overflow it's bounds. (See here (http://www.simplemachines.org/community/index.php?topic=103464.msg3342741#msg3342741))
(http://img.photobucket.com/albums/v645/rickmastfan67/SMF_Bugs/GlobalFooter_Problem.png)

So, here's the code that I put into my file to get it to look properly like 1.1.x in 2.0.x:
// Users Online Today
echo '
<div class="infocenter_section">
<h4 class="titlebg">', $txt['uot_users_online_'.$modSettings['uot_setting_period']], '</h4>
<div class="windowbg">
<p class="section icon">
<img class="icon" src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['uot_users_online_'.$modSettings['uot_setting_period']], '" />','
</p>
<div class="windowbg2 sectionbody">
<div class="inline smalltext">
', $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
if ($context['viewing_allowed'])
echo
' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_users_hidden_today']), ', ', $txt['uot_hidden'], ': ', $context['num_users_hidden_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && $context['viewing_allowed'])
{
echo
'<br />', implode(', ', $context['list_users_online_today']);
}
echo '
</div>
</div>
</div>';



Somehow, that code is causing the "Info Center" to act up with I have the "Global Headers and Footers" mod installed and I use the Global Footer part.

So, if some of you code geniuses wouldn't mind taking a look at this and can tell me what I did wrong possibly, I would greatly appreciate it.  When I was creating this code, I was taking a look at the "Who's Online" section so I could get image to be in a little box like in 1.1.x.
Title: Re: Users Online Today Mod
Post by: rickmastfan67 on May 28, 2012, 06:46:21 PM
:facepalm:

I've figured out what my mistake was.  I forgot to close out one of the "<div>" commands causing it to somehow to absorb the "Global Footer" from the "Global Headers and Footers" mod.

So, if anybody needs the coding for the 2.0.2 "Core" theme, here ya go.  This should work just fine now.  Hopefully there are no other mistakes in it. :)

./Themes/core/BoardIndex.template.php
Code (Find:) Select
// If they are logged in, but statistical information is off... show a personal message bar.

Code (Add Before:) Select
// Users Online Today
echo '
<div class="infocenter_section">
<h4 class="titlebg">', $txt['uot_users_online_'.$modSettings['uot_setting_period']], '</h4>
<div class="windowbg">
<p class="section icon">
<img class="icon" src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['uot_users_online_'.$modSettings['uot_setting_period']], '" />','
</p>
<div class="windowbg2 sectionbody">
<div class="inline smalltext">
', $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';
if ($context['viewing_allowed'])
echo
' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_users_hidden_today']), ', ', $txt['uot_hidden'], ': ', $context['num_users_hidden_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && $context['viewing_allowed'])
{
echo
'<br />', implode(', ', $context['list_users_online_today']);
}
echo '
</div>
</div>
</div>
</div>';
Title: Re: Users Online Today Mod
Post by: Castagna on May 31, 2012, 05:01:51 PM
Hello,

I tried to install this mod on SMF 2.0.2 currently, and while i'm installing the mod it appears this error:

(http://picturestack.com/481/915/UWton2Sq4.png)

errors_template.php has been set as 0777 CHMOD. But still giving this error while im installing the mod.

Please someone can help me, im new on this plataform, Thanks.
Title: Re: Users Online Today Mod
Post by: TheListener on June 05, 2012, 08:57:19 PM
Rather than post an image of the error please keep it as text.

Any errors in your forums error log?

Forum link?
Title: Re: Users Online Today Mod
Post by: Castagna on June 06, 2012, 08:00:59 PM
@Old Fossil: Sorry for the pic, and there's no error logs.

Here it's the forum link: ea.vrocker-hosting.co.uk
Title: Re: Users Online Today Mod
Post by: TheListener on June 06, 2012, 08:03:53 PM
Can you please either open the forum to guests or give me temp admin ( via pm only) access so I can have a look for you.
Title: Re: Users Online Today Mod
Post by: Castagna on June 06, 2012, 08:05:38 PM
Quote from: Old Fossil on June 06, 2012, 08:03:53 PM
Can you please either open the forum to guests or give me temp admin ( via pm only) access so I can have a look for you.
Sure, try to register and then im going to set admin rights.
Title: Re: Users Online Today Mod
Post by: TheListener on June 06, 2012, 08:08:16 PM
Quote from: Castagna on June 06, 2012, 08:05:38 PM
Quote from: Old Fossil on June 06, 2012, 08:03:53 PM
Can you please either open the forum to guests or give me temp admin ( via pm only) access so I can have a look for you.
Sure, try to register and then im going to set admin rights.

I may be a while as I have a few errors on my forum at present.

::)
Title: Re: Users Online Today Mod
Post by: Castagna on June 11, 2012, 07:04:03 PM
Bump!

Someone could help me with this? I still facing this issue when i want to install the mod.
Title: Re: Users Online Today Mod
Post by: TheListener on June 11, 2012, 07:22:58 PM
Oops I forgot about this.

:-[

Can you please send me the temp admin details via pm and I'll have a look now for ya.
Title: Re: Users Online Today Mod
Post by: archiebald on July 19, 2012, 03:26:06 AM
I had the 1.6 version of this mod running fine on SMF2.0 which had been upgraded to 2.0.2 via the incremental upgrades.

I just made a cleaner upgrade using the 2.0.2 large upgrade and this mod was disabled.  All attempts to reinstall it and the latest version ends up with it killing my forum.  I am left with just a blank page, no error messages.

The only way I can rrecover is to delete everything and use backups of the forum files and database.

No errors were reported during installation, just instant death.

I am reporting this as unsafe on the mods page.
Title: Re: Users Online Today Mod
Post by: TheListener on July 21, 2012, 10:15:53 PM
QuoteI am reporting this as unsafe on the mods page.

The mod works as it should on 2.0.2

Did you uninstall the mod completely before upgrading?
Title: Re: Users Online Today Mod
Post by: Arantor on July 21, 2012, 10:17:48 PM
QuoteI am left with just a blank page, no error messages.

There are going to be errors in the host error log.

QuoteI am reporting this as unsafe on the mods page.

Waste of time. This mod is not unsafe - it installs and functions on a fresh install and has no known vulnerabilities (I've looked in the past) and the team will not remove it because of installation issues on your specific installation.
Title: Re: Users Online Today Mod
Post by: archiebald on July 22, 2012, 06:13:40 PM
Quote from: Arantor on July 21, 2012, 10:17:48 PM
Waste of time. This mod is not unsafe - it installs and functions on a fresh install and has no known vulnerabilities (I've looked in the past) and the team will not remove it because of installation issues on your specific installation.

Sorry if it upsets you, I can only report what I see.  It killed my forum so as far as I am concerned, it is unsafe.  Maybe other people are having the same problem, I don't know.
Title: Re: Users Online Today Mod
Post by: Arantor on July 22, 2012, 06:14:43 PM
It's not upsetting me, it's simply that it isn't actually unsafe, it just doesn't function on your specific forum for any one of many separate reasons, and none of them are 'unsafe', and the team will do precisely nothing for that reason - it isn't actually broken.
Title: Re: Users Online Today Mod
Post by: archiebald on July 22, 2012, 06:20:51 PM
Quote from: Old Fossil on July 21, 2012, 10:15:53 PM
QuoteI am reporting this as unsafe on the mods page.

The mod works as it should on 2.0.2

Did you uninstall the mod completely before upgrading?

I have been steadily upgrading since SMF 1.0 and have been using UOT for the last 3-4 years with no problem.  I was on 2.0, then installed the bug updates for 2.0.1 and 2.0.2 earlier this year and everything was still fine.

But I found a particular problem with Japanese layout being broken in Internet Explorer so I decided to clean up the forum.  I first uninstalled all mods, then I used the large upgrade for 2.0.2.  This solved the issues I was having with display in IE.  I then started re-installing my original mods.

With UOT I tried twice, first time I installed it last after five other mods - killed the forum.

Next I reverted to a clean backup then tried installing UOT before any other mods just in case of some conflict.  Same result - just a blank screen.
Title: Re: Users Online Today Mod
Post by: archiebald on July 22, 2012, 06:24:03 PM
Quote from: Arantor on July 22, 2012, 06:14:43 PM
It's not upsetting me, it's simply that it isn't actually unsafe, it just doesn't function on your specific forum for any one of many separate reasons, and none of them are 'unsafe', and the team will do precisely nothing for that reason - it isn't actually broken.

Sorry, but your phrasing there sounded very defensive.

As far as I am concerned, if it breaks my forum it is unsafe, nothing to do with vulnerabilities.
Title: Re: Users Online Today Mod
Post by: Arantor on July 22, 2012, 06:28:03 PM
I'm just trying to advise that reporting it as 'unsafe' will be pretty much ignored by the team.

Now, you have two choices, you and I can sit here and debate whether this is unsafe or not (by the team's definition, it is not), or we can look at why it breaks and figure out how to fix it.

This later part requires some work on your part, which starts by finding the server error log and identifying what precisely the actual error is (blank screen is almost the most generic symptom there is)
Title: Re: Users Online Today Mod
Post by: Ascot on August 07, 2012, 04:42:20 PM
Hi there. Nice mod.
Any idea on how can i show Avatars instead usernames?

I tried to find out by myself but no success
Maybe this can helpyou to help me  :-[
http://www.simplemachines.org/community/index.php?topic=268533.0

Thanks in advance!
Title: Re: Users Online Today Mod
Post by: luuuciano on August 09, 2012, 10:22:21 PM
Are you using a portal? The adk portal team have relesaed a few days ago a block to do that
http://www.smfpersonal.net/downloads.html;sa=view;down=350

If not, maybe you can ask them about a way to use it without adk portal...
Title: Re: Users Online Today Mod
Post by: ocmdiaz714 on September 02, 2012, 11:11:27 PM
Can somebody please tell me how to add space after the comma? Thanks.

Example:
(http://i50.tinypic.com/16itw9j.gif)
Title: Re: Users Online Today Mod
Post by: OCJ on September 03, 2012, 12:02:05 PM
@Ascot

I use this mod which works with a Simple Portal whos online that displays avatars. Depends if you use the portal.
Title: Re: Users Online Today Mod
Post by: ocmdiaz714 on September 05, 2012, 06:12:19 PM
Quote from: ocmdiaz714 on September 02, 2012, 11:11:27 PM
Can somebody please tell me how to add space after the comma? Thanks.

Example:
(http://i50.tinypic.com/16itw9j.gif)

Bump. Sorry.
Title: Re: Users Online Today Mod
Post by: Bugo on September 05, 2012, 07:12:45 PM
Do you know PHP or HTML?
Title: Re: Users Online Today Mod
Post by: ocmdiaz714 on September 05, 2012, 08:04:22 PM
Quote from: Bugo on September 05, 2012, 07:12:45 PM
Do you know PHP or HTML?

Me? I know a bit, if I'm told what it is to look for and replace, or simply telling me where I can go and make the edit.
Title: Re: Users Online Today Mod
Post by: Bugo on September 06, 2012, 02:29:43 AM
What version of SMF you're using, and what version of this mod you're installing?
Title: Re: Users Online Today Mod
Post by: ocmdiaz714 on September 06, 2012, 03:55:05 AM
Quote from: Bugo on September 06, 2012, 02:29:43 AM
What version of SMF you're using, and what version of this mod you're installing?

2.0.2 for both.
Title: Re: Users Online Today Mod
Post by: Bugo on September 06, 2012, 06:14:42 AM
Attach your BoardIndex.template.php
Title: Re: Users Online Today Mod
Post by: ocmdiaz714 on September 06, 2012, 03:52:36 PM
BoardIndex.template.php is attached.
Title: Re: Users Online Today Mod
Post by: Bugo on September 06, 2012, 10:55:52 PM
I see no any problems. Space is exists:
$context['num_users_hidden_today']), ', '
Maybe are you using other theme, with own BoardIndex.template.php? Can you post a link to your forum?
Title: Re: Users Online Today Mod
Post by: ocmdiaz714 on September 06, 2012, 11:22:52 PM
Quote from: Bugo on September 06, 2012, 10:55:52 PM
I see no any problems. Space is exists:
$context['num_users_hidden_today']), ', '
Maybe are you using other theme, with own BoardIndex.template.php? Can you post a link to your forum?

The file I attached is actually from the custom them I am using. Here's my site: http://www.immatureandpopular.com thanks!

Sorry, I forgot to mention I have the code within a block, I don't know if that makes a difference...Here's the code:

// Users Online Today

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && $context['viewing_allowed'])
{
echo '
<br /><br />Users Online Today<br />';

echo
'', implode(',', $context['list_users_online_today']);
}


Edit again:
I found out what was wrong, I added a space here:
'<br />', implode(', ', $context['list_users_online_today']);
Title: Re: Users Online Today Mod
Post by: Bugo on September 07, 2012, 12:58:23 AM
Why? :)
Title: Re: Users Online Today Mod
Post by: ocmdiaz714 on September 07, 2012, 01:11:38 AM
Quote from: Bugo on September 07, 2012, 12:58:23 AM
Why? :)

Well I had this:
'<br />', implode(',', $context['list_users_online_today']);

Had to add a space after the coma inside the implode.
Title: Re: Users Online Today Mod
Post by: sajjad on September 21, 2012, 06:53:49 AM
hi
persian language for this mod
plz add bcz persian members need this mod
Title: Re: Users Online Today Mod
Post by: Carceri on September 22, 2012, 12:53:51 PM
Quote from: sajjad on September 21, 2012, 06:53:49 AM
hi
persian language for this mod
plz add bcz persian members need this mod

Thanks, but are you sure the UTF-8 version is correct? The other one seems to be UTF-8, but the one called -utf8 seems to be wrong.

Does it even make sense to have a non UTF-8 version for Persian language?
Title: Re: Users Online Today Mod
Post by: sajjad on September 22, 2012, 03:06:34 PM
Quote from: Carceri on September 22, 2012, 12:53:51 PM

Thanks, but are you sure the UTF-8 version is correct? The other one seems to be UTF-8, but the one called -utf8 seems to be wrong.

Does it even make sense to have a non UTF-8 version for Persian language?
sry
i fix this problem
and change to utf-8


Title: Re: Users Online Today Mod
Post by: Carceri on September 22, 2012, 04:51:03 PM
Quote from: sajjad on September 22, 2012, 03:06:34 PM
sry
i fix this problem
and change to utf-8

Now both files are identical, but I guess that is how it should be. I'll include them in the official version in the coming days.
Title: Re: Users Online Today Mod
Post by: aerolite on September 26, 2012, 12:18:51 PM
What should I change to make it show the users online in past month?
Title: Re: Users Online Today Mod
Post by: glouk7 on October 25, 2012, 10:54:30 AM
Hi guys,

The mod stopped to work for some reason and i can't find why.
I was using 2.0.1 version...and it was working fine till i changed template.

Then it doesn't work neither at new or the old template.
I've also upgraded the smf to 2.0.2 but still doesn't work

any idea?
Title: Re: Users Online Today Mod
Post by: SD-X on October 25, 2012, 03:09:52 PM
Quote from: glouk7 on October 25, 2012, 10:54:30 AM
Hi guys,

The mod stopped to work for some reason and i can't find why.
I was using 2.0.1 version...and it was working fine till i changed template.

Then it doesn't work neither at new or the old template.
I've also upgraded the smf to 2.0.2 but still doesn't work

any idea?
It sounds like your template is at fault then. Double-check the changes you made and make sure you're not missing anything simple, such as closing tags, missing code, or mistakenly-made typos.
Title: Re: Users Online Today Mod
Post by: glouk7 on October 26, 2012, 03:02:23 AM
Quote from: SugarD-x on October 25, 2012, 03:09:52 PM
Quote from: glouk7 on October 25, 2012, 10:54:30 AM
Hi guys,

The mod stopped to work for some reason and i can't find why.
I was using 2.0.1 version...and it was working fine till i changed template.

Then it doesn't work neither at new or the old template.
I've also upgraded the smf to 2.0.2 but still doesn't work

any idea?
It sounds like your template is at fault then. Double-check the changes you made and make sure you're not missing anything simple, such as closing tags, missing code, or mistakenly-made typos.

I used a template from here, it's not anyone that i've created...but i doesn't work at the old one too..

I've checked the manual installation of the mod, and it seems that all are ok...the files are modified correctly...
Title: Re: Users Online Today Mod
Post by: glouk7 on November 01, 2012, 10:44:07 AM
actually let me add that i use the Theme : BloQcs
i've downloaded that from here

Is it working to anybody with that specific theme?
Title: Re: Users Online Today Mod
Post by: hcfwesker on November 01, 2012, 09:09:30 PM
It'll work on just about any theme as long as you add the correct edits for BoardIndex.template.php of the theme. 
Title: Re: Users Online Today Mod
Post by: Yudd on November 01, 2012, 11:30:33 PM
I just installed this mod; however, it is not appearing on my site. How can this be fixed? Thanks.
Title: Re: Users Online Today Mod
Post by: Colin on November 01, 2012, 11:39:35 PM
Quote from: Yudd on November 01, 2012, 11:30:33 PM
I just installed this mod; however, it is not appearing on my site. How can this be fixed? Thanks.
Did you encounter any errors on install? What version of SMF are you using? What other mods do you have installed?
Title: Re: Users Online Today Mod
Post by: hcfwesker on November 02, 2012, 02:03:29 AM
Also check  Administration Center > Modification Settings > Miscellaneous  and activate it
Title: Re: Users Online Today Mod
Post by: Yudd on November 02, 2012, 12:00:56 PM
Quote from: Colin on November 01, 2012, 11:39:35 PM
Quote from: Yudd on November 01, 2012, 11:30:33 PM
I just installed this mod; however, it is not appearing on my site. How can this be fixed? Thanks.
Did you encounter any errors on install? What version of SMF are you using? What other mods do you have installed?

I did not encounter any errors while installing.

The version I use is SMF 2.0.2.

The mods I have installed.
SimplePortal, KeyCAPTCHA for SMF, Auto Refresh Who Index, Member Colour Link, SMF. 2.0.2 Update, Enhanced PM Popup, Sub Accounts Mod, Tiny Child Boards, BBC Spoiler, Activity in Profile, Bookmarks, Anti Bot (Uninstalled), Topic Descriptions

Quote from: hcfwesker on November 02, 2012, 02:03:29 AM
Also check  Administration Center > Modification Settings > Miscellaneous  and activate it
I went there and it shows the following:

- Sort the user list by (insert option) 
- Display the user list in (insert option) order
- The user list should cover the (insert option)
- Make the user list visible to (insert option)

But while I can choose the options, it does not show those that have logged in the the past 24 hours on the forum.
Title: Re: Users Online Today Mod
Post by: hcfwesker on November 03, 2012, 12:14:50 AM
Are you using a custom theme?  if so, check the SMF Default theme and see if it shows there.
Title: Re: Users Online Today Mod
Post by: Yudd on November 03, 2012, 03:07:09 AM
Quote from: hcfwesker on November 03, 2012, 12:14:50 AM
Are you using a custom theme?  if so, check the SMF Default theme and see if it shows there.

I am using a custom theme and it does show up for the default SMF theme.
Title: Re: Users Online Today Mod
Post by: hcfwesker on November 03, 2012, 04:58:27 PM
Well there ya go.  You'll have to make the manual edits for BoardIndex.template.php on your custom theme.  Parse the mod on the download page to see what the edits are.
Title: Re: Users Online Today Mod
Post by: Yudd on November 03, 2012, 06:50:54 PM
Quote from: hcfwesker on November 03, 2012, 04:58:27 PM
Well there ya go.  You'll have to make the manual edits for BoardIndex.template.php on your custom theme.  Parse the mod on the download page to see what the edits are.

Ok, thank makes sense thanks.

Edit: I figured it out. Thanks so much, you're a life saver right now XD
Title: Re: Users Online Today Mod
Post by: CaviarDreams on November 06, 2012, 12:24:44 AM
Hello,
On my forum it's set so that members cannot hide their online status, making the "Hidden: 0" of the "Total: 123 (Visible: 123, Hidden: 0)" (or whatever the number is) very redundant. How do I remove the line "Hidden: 0"? (RC 2.0.2)
Thanks! :D
Title: Re: Users Online Today Mod
Post by: available on November 06, 2012, 03:47:30 AM
Quote from: Yudd on November 01, 2012, 11:30:33 PM
I just installed this mod; however, it is not appearing on my site. How can this be fixed? Thanks.
I have same problem
Title: Re: Users Online Today Mod
Post by: hcfwesker on November 06, 2012, 04:26:55 AM
Read the posts after the quoted posts you made and see if you have the same cause of the issue.

start from here and read the replies that follow  http://www.simplemachines.org/community/index.php?topic=55513.msg3432063#msg3432063
Title: Re: Users Online Today Mod
Post by: hcfwesker on November 06, 2012, 04:29:24 AM
Quote from: CaviarDreams on November 06, 2012, 12:24:44 AM
Hello,
On my forum it's set so that members cannot hide their online status, making the "Hidden: 0" of the "Total: 123 (Visible: 123, Hidden: 0)" (or whatever the number is) very redundant. How do I remove the line "Hidden: 0"? (RC 2.0.2)
Thanks! :D

http://www.simplemachines.org/community/index.php?topic=488756.msg3424698#msg3424698
Title: Re: Users Online Today Mod
Post by: CaviarDreams on November 07, 2012, 08:09:13 PM
Quote from: hcfwesker on November 06, 2012, 04:29:24 AMhttp://www.simplemachines.org/community/index.php?topic=488756.msg3424698#msg3424698
Quote from: hcfwesker on October 21, 2012, 02:22:09 AMBoardIndex.template.php

Find & Remove these lines.
if ($context['viewing_allowed'])
echo
' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_users_hidden_today']), ', ', $txt['uot_hidden'], ': ', $context['num_users_hidden_today'], ')';
I don't have a file called BoardIndex.template.php.
Title: Re: Users Online Today Mod
Post by: hcfwesker on November 07, 2012, 08:33:54 PM
Quote from: CaviarDreams on November 07, 2012, 08:09:13 PMI don't have a file called BoardIndex.template.php.

Yes you do.  You have to if you're running SMF.    Under file Manager ...  public_html/Themes/default/BoardIndex.template.php
Title: Re: Users Online Today Mod
Post by: CaviarDreams on November 07, 2012, 10:14:06 PM
Yes, thanks! :D Sorry, I did a file search and it said none were found... Thank you again. :)
Title: Re: Users Online Today Mod
Post by: SD-X on December 17, 2012, 01:41:53 PM
Is this fully SMF 2.0.3 compatible?
Title: Re: Users Online Today Mod
Post by: iDevGrow on December 20, 2012, 11:27:00 PM
Thank you for the best's mod.

i love it.

:)
Title: Re: Users Online Today Mod
Post by: live627 on December 20, 2012, 11:55:15 PM
Quote from: SugarD-x on December 17, 2012, 01:41:53 PM
Is this fully SMF 2.0.3 compatible?
of course
Title: Re: Users Online Today Mod
Post by: Infitima on December 25, 2012, 09:33:38 AM
Umm, when we upgraded to SMF 2.0.3 this MOD was installed, but afterwards it duplicated. YET, only for certain themes. (All of them but Default SMF Curve, and The Killing) the rest it shows on there twice. Both files that were edited have already been checked and show no duplicated lines.

Any idea what could be the problem? See http://shatteredplanes.com for what it's doing.
Title: Re: Users Online Today Mod
Post by: SD-X on December 25, 2012, 01:32:01 PM
Quote from: Infitima on December 25, 2012, 09:33:38 AM
Umm, when we upgraded to SMF 2.0.3 this MOD was installed, but afterwards it duplicated. YET, only for certain themes. (All of them but Default SMF Curve, and The Killing) the rest it shows on there twice. Both files that were edited have already been checked and show no duplicated lines.

Any idea what could be the problem? See http://shatteredplanes.com for what it's doing.
It's a bug that oddly happens sometimes with this mod in various versions. Uninstall the mod via the Package Manager, then manually go through your forum's files that it modifies and remove all references to the mod. Then reinstall the package and it should only show up once. :)
Title: Re: Users Online Today Mod
Post by: teos55 on January 11, 2013, 12:49:04 PM
SMF 2.0.3  default theme curve  simple portal 2.3.5   users online today 2.0.3


Infocenter reports that there is one hidden, but actually "hidden" is unmarked in the forum settings.

how to debug this ?

boardindex.tempale.php  attached
Title: Re: Users Online Today Mod
Post by: hcfwesker on January 12, 2013, 03:40:16 PM
Quote from: teos55 on January 11, 2013, 12:49:04 PMInfocenter reports that there is one hidden, but actually "hidden" is unmarked in the forum settings.

Same as my settings, with that it'd just be best to display just the total at the top, and remove the ( visible / hidden )  part.


BoardIndex.template.php

Find & REMOVE

if ($context['viewing_allowed'])
echo
' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_users_hidden_today']), ', ', $txt['uot_hidden'], ': ', $context['num_users_hidden_today'], ')';
Title: Re: Users Online Today Mod
Post by: Aome on April 13, 2013, 02:20:13 AM
Hello I got this mod and the one of Slashout banned members, when I ban a member is slashout in every part of the forum, except in this section, the one of the users online today, how can I make it to show it there too? Thank you.
Title: Re: Users Online Today Mod
Post by: SD-X on April 13, 2013, 02:28:24 AM
Quote from: aome on April 13, 2013, 02:20:13 AM
Hello I got this mod and the one of Slashout banned members, when I ban a member is slashout in every part of the forum, except in this section, the one of the users online today, how can I make it to show it there too? Thank you.
They are still banned. Their name just shows up there because they were logged in that day. Once the day ends and the "daily list" clears, they won't show up anymore since they can't access the forum.
Title: Re: Users Online Today Mod
Post by: hcfwesker on April 14, 2013, 12:14:11 PM
Quote from: aome on April 13, 2013, 02:20:13 AM
Hello I got this mod and the one of Slashout banned members, when I ban a member is slashout in every part of the forum, except in this section, the one of the users online today, how can I make it to show it there too? Thank you.

havent tested myself.  so make a backup of the file so if it doesnt work just replace the file.

Sources/Subs-UsersOnlineToday.php

Find
mg.online_color, mg.id_group, mg.group_name
Replace with
mg.online_color, mg.id_group, mg.group_name, mem.is_activated

Find
// Buddies get counted and highlighted.
Add Before
// Slash Banned Members ...
if ($row['is_activated'] > 10)
$row['real_name'] = '<s>' . $row['real_name'] . '</s>';
Title: Re: Users Online Today Mod
Post by: Aome on April 14, 2013, 12:20:38 PM
Quote from: hcfwesker on April 14, 2013, 12:14:11 PM

havent tested myself.  so make a backup of the file so if it doesnt work just replace the file.


I will try it inmediately, thank you soooo much :D I'll let you know if it worked :) Im so happy!
Title: Re: Users Online Today Mod
Post by: Arantor on April 14, 2013, 12:44:53 PM
That won't work.

$row['is_activated'] will be 0 for unactivated members, 1 for activated, 2 through 5 for miscellaneous other states. Need to check it is > 10 not > 0
Title: Re: Users Online Today Mod
Post by: hcfwesker on April 14, 2013, 12:55:11 PM
yeah, i derped, had "is_approved" on my mind :D  just edited it
Title: Re: Users Online Today Mod
Post by: Aome on April 14, 2013, 12:59:10 PM
Quote from: Arantor on April 14, 2013, 12:44:53 PM
That won't work.

$row['is_activated'] will be 0 for unactivated members, 1 for activated, 2 through 5 for miscellaneous other states. Need to check it is > 10 not > 0

Hello, thank you for taking the trouble to answer me. Sadly it didn't work... I don't get what might be the issue... tried with 10 and 0, but nothing, the name of the person remains without the slash.

:(
Title: Re: Users Online Today Mod
Post by: hcfwesker on April 14, 2013, 01:02:32 PM
Quote from: aome on April 14, 2013, 12:59:10 PMSadly it didn't work... I don't get what might be the issue... tried with 10 and 0, but nothing, the name of the person remains without the slash.

it ws just a wild guess on my part.  did you try a hard F5 refresh on the home page after making the changes?  If i get time I'll try and add both these MODs to a test forum and see if I can make it happen without too much trouble
Title: Re: Users Online Today Mod
Post by: Aome on April 14, 2013, 01:07:55 PM
Hello hcfwesker

I would much appreciate it!! I thank you in advance.

I did refresh it and waited a while to ctrl+f5 again, but nothing.

Hopefully there is a solution :)

Thank you.
Title: Re: Users Online Today Mod
Post by: hcfwesker on April 14, 2013, 01:21:37 PM
Quote from: Aome on April 14, 2013, 01:07:55 PMHopefully there is a solution :)

Replace that 2nd part of the edit with this.

// Slash Banned Members ...
if ($row['is_activated'] > 10)
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '"><s>' . $row['real_name'] . '</s></a>';
Title: Re: Users Online Today Mod
Post by: Aome on April 14, 2013, 01:34:37 PM
Quote from: hcfwesker on April 14, 2013, 01:21:37 PM

Replace that 2nd part of the edit with this.

// Slash Banned Members ...
if ($row['is_activated'] > 10)
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '"><s>' . $row['real_name'] . '</s></a>';


That was pretty amazing, you are awesome  ;) worked as I needed it.

And amazingly fast!! I really thank you so much.
Title: Re: Users Online Today Mod
Post by: hcfwesker on April 14, 2013, 02:15:21 PM
You're welcome! :)  That was actually another guess but glad it worked :D  forgot to add it in $link form for when the names get called for from the MOD.
Title: Re: Users Online Today Mod
Post by: moonstreet on April 20, 2013, 04:24:19 AM
hi

I just did the large upgrade from 1.1.18 to 2.0.4 I had this mod before and it worked great. Is it 2.0.4 compatible? Do I need a new installation or can I just re install the the one I had, which is still in my package manager?
Title: Re: Users Online Today Mod
Post by: hcfwesker on April 20, 2013, 08:55:43 AM
Quote from: moonstreet on April 20, 2013, 04:24:19 AM
hi

I just did the large upgrade from 1.1.18 to 2.0.4 I had this mod before and it worked great. Is it 2.0.4 compatible? Do I need a new installation or can I just re install the the one I had, which is still in my package manager?

Yes, works fine with 2.0.4

Check the package page, it should show which version of this MOD you had installed.  If it's the current version listed on the MOD page, or if you see the [Install] link listed with the MOD, then it should be compatible.
Title: Re: Users Online Today Mod
Post by: SD-X on April 20, 2013, 10:49:59 AM
You should probably reinstall all your mods anyway. They shouldn't have been installed during your upgrade. Not all mods are cross-compatible like that.
Title: Re: Users Online Today Mod
Post by: moonstreet on April 21, 2013, 06:56:49 AM
Thanks, I'll have a look
Title: Re: Users Online Today Mod
Post by: NekoJonez on May 13, 2013, 09:20:59 AM
Is it possible so that online mods & admins can see this list?
Title: Re: Users Online Today Mod
Post by: MrNicotine on June 17, 2013, 06:22:41 PM
Trying to install 2.03 version, to smf 2.0 RC3, but no luck.
As soon as add in the part in /sources/boardindex.php, my forum page gives a 500 error..

Package installer wouldn't place this part, eventhough it gave no error...

Anyone an idea? I'm not sure what this part does, or where it calls to

// Get the user online today list.
$context += getUsersOnlineTodayStats();
Title: Re: Users Online Today Mod
Post by: TheListener on June 17, 2013, 06:31:41 PM
Quote from: MrNicotine on June 17, 2013, 06:22:41 PM
Trying to install 2.03 version, to smf 2.0 RC3, but no luck.
As soon as add in the part in /sources/boardindex.php, my forum page gives a 500 error..

Package installer wouldn't place this part, eventhough it gave no error...

Anyone an idea? I'm not sure what this part does, or where it calls to

// Get the user online today list.
$context += getUsersOnlineTodayStats();


Wouldn't it be less hassle if you upgraded your forum to 2.0.4?
Title: Re: Users Online Today Mod
Post by: MrNicotine on June 17, 2013, 06:56:18 PM
You're absolutley right, for more reasons than this, that I should upgrade.
But I have a few mods installed, that are built on 2.0 RC3, and won't work in 2.04.

So either I try to get this one working, or I upgrade and have more than one mod that won't work...
Sounds like even more hassle... ;)

But I think I just answered my own question by installing 2.0 RC3 fresh, and then tried to install this mod. Same problem...
It even installs funny, it gives me no error on the 'check' , but does give an errorpage after the install.

Half is copied and in the database and files, and the other half is not. So my conclusion would be, this is not suited for 2.0 RC3...
Is there an alternative for this mod?
Title: Re: Users Online Today Mod
Post by: TheListener on June 17, 2013, 07:01:00 PM
Lets's just say that this installed on my 2.0.4 forum with no errors at all.

I have a few RC4 mods on the 2.0.4 forum also.
Title: Re: Users Online Today Mod
Post by: MrNicotine on June 17, 2013, 07:11:00 PM
I know, I also have another forum on 2.04, and I've installed it there with no problems at all.
Works like a charm. I've even uninstalled and installed again there, just checking if there has been a change in the mod. Still no problem.
But I don't understand why it won't work on 2.0 RC3, there's something different in another part of the 2 files that are altered, I pressume.

The manual edits were no problem at all, codes are there, simple copy paste...
Putting in the tables, also no problem. Even tried copying everything from my 2.04 forum into the files and database....
But no luck. Still 500 error on (only) the forum page.

So I've been playing with this for quite some time now, and I'm on the edge of giving up.

Asking it here, is the last resort, or even finding an alternative mod, that would do something similar... But I doubt it's there...




Title: Re: Users Online Today Mod
Post by: TheListener on June 17, 2013, 07:13:43 PM
Out of interest which mods are you thinking won't work on 2.0.4?
Title: Re: Users Online Today Mod
Post by: MrNicotine on June 17, 2013, 07:31:11 PM
Most worrying is Ajaxchat, which was a hassle back then...
Also Portamx.

Both of these I couldn't use on my 2.04 forum together, they wouldn't mix...

+ I have a lot of attachments, which is significant in size, that I would have to down and upload again...
Taking my forum offline for most part of a day.

A lot of hassle for a mod, which is no more than eyecandy really... I would say I've spent more than enough time on it..
Title: Re: Users Online Today Mod
Post by: TheListener on June 17, 2013, 07:33:20 PM
A lotta folks are using github for the latest ajaxchat.

Portamx does work on 2.0.4

Title: Re: Users Online Today Mod
Post by: geogeo.gr on July 25, 2013, 03:51:26 PM
Greek translation v2.0.3
Title: Re: Users Online Today Mod
Post by: badon on August 17, 2013, 08:16:24 PM
Bug, SMF 2.0.5:

If I sort by username with 24 hours and "everyone" visibility, the mod either reverts to defaults, or it changes back to sorting by login time.
Title: Re: Users Online Today Mod
Post by: badon on August 17, 2013, 08:27:21 PM
Nevermind, this seems to be a quirk in my web browser somehow. I'll post back again if I'm sure it's a bug.
Title: Re: Users Online Today Mod
Post by: Dijboy on October 19, 2013, 10:45:49 PM
How do I make this mod visible if I have a new theme installed?
2.0.5
Title: Re: Users Online Today Mod
Post by: Diego Andrés on October 20, 2013, 01:44:56 AM
Quote from: Dijboy on October 19, 2013, 10:45:49 PM
How do I make this mod visible if I have a new theme installed?
2.0.5

You will have to make manual edits on that theme.
Or you can just uninstall the mod and install it again, marking the new theme.
Title: Re: Users Online Today Mod
Post by: Dijboy on October 20, 2013, 01:47:14 AM
Okay, i'll try that now. Thanks for the reply :)

Edit: It worked! Thanks very much :).
Title: Re: Users Online Today Mod
Post by: Asusrev on December 07, 2013, 07:39:42 AM
Hello Guys!

I have this mod: User Online Today Mod

Supplied in the image display my problem. The text is skewed.
How can I improve?
I use MinDI of the theme.

(http://s1.directupload.net/images/131205/wxxuv3zs.png)
Title: Re: Users Online Today Mod
Post by: Asusrev on December 08, 2013, 10:49:28 AM
Problem solved!
Title: Re: Users Online Today Mod
Post by: luuuciano on December 08, 2013, 07:41:56 PM
Quote from: Asusrev on December 08, 2013, 10:49:28 AM
Problem solved!

So... how you solved it?? maybe someone finds it useful!
Title: Re: Users Online Today Mod
Post by: dvk01 on December 25, 2013, 06:19:35 AM
I have a private forum where users must log in to see any content
I have a couple of users who use the rss feed system to keep up to date but they never appear as logged in when using the rss feeds
Is there any way to show rss feed users as logged in on the users online today mod so I can keep an eye on who is using the facility
Title: Re: Users Online Today Mod
Post by: elosolipa on January 04, 2014, 01:49:34 AM
Hi, It is really usefull. But since I updated to SMF 2.0.6 it has a bug that shows an error when trying to post a reply to any topic. If You can check great!
Title: Re: Users Online Today Mod
Post by: TheListener on January 04, 2014, 01:52:36 AM
Quote from: elosolipa on January 04, 2014, 01:49:34 AM
Hi, It is really usefull. But since I updated to SMF 2.0.6 it has a bug that shows an error when trying to post a reply to any topic. If You can check great!

The mod works fine on my forum. Maybe if you tell us what the error is someone may be able to help you more specifically.
Title: Re: Users Online Today Mod
Post by: SirAlahn on January 31, 2014, 09:57:05 PM
I have a similar issue to what Asusrev posted about. Since he never told anyone what the fix was, I was wondering if anyone else had figured it out...

Lacking that, is it possible to move where the list displays on the forum? I was hoping I could put it in the left panel sidebar of my forum, like how TinyPortal allows me to put blocks there.

Thank you in advance for your help.
Title: Re: Users Online Today Mod
Post by: TheListener on January 31, 2014, 10:01:45 PM
Quote from: SirAlahn on January 31, 2014, 09:57:05 PM

Lacking that, is it possible to move where the list displays on the forum? I was hoping I could put it in the left panel sidebar of my forum, like how TinyPortal allows me to put blocks there.

Thank you in advance for your help.

I would imagine some code would be placed into a tp block.
Title: Re: Users Online Today Mod
Post by: SirAlahn on February 01, 2014, 01:14:08 AM
Quite. Save I don't know enough about coding to know what to put in a TP Block to manipulate this mod in such a fashion. :P Thus why I asked. If my question does not suit this thread, I would be happy to post it elsewhere, and I apologize for wasting your time.
Title: Re: Users Online Today Mod
Post by: Jeffrey King on February 01, 2014, 09:49:03 AM
Hello folks, I just upgraded to 2.0.7
I have an issue.
Every time I try to install this mod I get a warning: this may be a risk if you don't backup.
Is that the problem? Should I backup?

Help appreciated!
Jeffrey
Title: Re: Users Online Today Mod
Post by: margarett on February 01, 2014, 03:39:58 PM
You should always backup, with or without warning ;)

Title: Re: Users Online Today Mod
Post by: Jade Elizabeth on February 24, 2014, 05:36:45 AM
I'm having issues with this mod, it's saying the function is undefined and it's a fatal error... I have a separate support topic...
http://www.simplemachines.org/community/index.php?topic=519000.0
Title: Re: Users Online Today Mod
Post by: peppe on February 24, 2014, 08:35:19 AM
Hi. I've installed this mod on my SMF 1.1.18 version. Now I see that guests can see only number of users online today and not the nicknames. Why? Can I fix it? Thank to all who will reply and help me :)
Title: Re: Users Online Today Mod
Post by: margarett on February 24, 2014, 08:48:31 AM
More important: have your forum updated to 1.1.19 ;)
Title: Re: Users Online Today Mod
Post by: peppe on February 24, 2014, 02:40:36 PM
Ok, I've update my forum to 1.1.19 version

Now can somebody help me?
Title: Re: Users Online Today Mod
Post by: SaltedWeb on April 02, 2014, 02:32:31 AM
Hi guys, so was not sure from reading does this work on 2.07 ?

Thanks
Title: Re: Users Online Today Mod
Post by: Steve on April 02, 2014, 08:45:20 AM
I'm using it on my 2.0.7 with no problems. Make sure you grab the right version of the mod. :)
Title: Re: Users Online Today Mod
Post by: SaltedWeb on April 02, 2014, 11:56:42 AM
Great , I will give it a spin.

Thank You
Title: Re: Users Online Today Mod
Post by: Nibogo on April 07, 2014, 06:09:16 PM
New 2.0.4 merging both packages (SMF 1.1.X and SMF 2.0) and also merging the three installation scripts (install.php, uninstall_optional.php, uninstall_mandatory.php) into db_install.php
Title: Re: Users Online Today Mod
Post by: BeatsMe on April 07, 2014, 07:08:27 PM
Quote from: Nibogo on April 07, 2014, 06:09:16 PM
New 2.0.4 merging both packages (SMF 1.1.X and SMF 2.0) and also merging the three installation scripts (install.php, uninstall_optional.php, uninstall_mandatory.php) into db_install.php

So just restructuring of the mods files......    Were there any bug fixes to this mod??

Not that i'm having any problems with this mod, currently running SMF 2.0.6 and the mod works perfectly for me  8)
Title: Re: Users Online Today Mod
Post by: Nibogo on April 07, 2014, 08:44:47 PM
I found no bug, so far. I saw that installation was too complicated, and I've never been a fan of having two packages. I'm listening to any possible bug you may found. :)
Title: Re: Users Online Today Mod
Post by: Padre gremista on May 05, 2014, 01:51:08 PM
Which the archive that is the "users online in last week"?

I want edit this for portuguese brazilian.
Title: Re: Users Online Today Mod
Post by: margarett on May 05, 2014, 02:06:44 PM
You shouldn't need to do it, the MOD already includes PT and PT_BR language files. You should find in Themes/default/languages the files
UsersOnlineToday.portuguese_brazilian.php
UsersOnlineToday.portuguese_brazilian-utf8.php
Title: Re: Users Online Today Mod
Post by: Padre gremista on May 05, 2014, 03:15:39 PM
Quote from: margarett on May 05, 2014, 02:06:44 PM
You shouldn't need to do it, the MOD already includes PT and PT_BR language files. You should find in Themes/default/languages the files
UsersOnlineToday.portuguese_brazilian.php
UsersOnlineToday.portuguese_brazilian-utf8.php

Yes, but the translation in archive brazilian_portuguese was as "user online in last 7 days"

Myself edited the archive and the question is solved.
Title: Re: Users Online Today Mod
Post by: atticuk on May 22, 2014, 12:15:16 PM
I installed this Mod on my test site with no problems, when I tried to upload it to my main site it showed error in the database. Something about copy right.

Could it be that the GUP licence only cover on install?
Title: Re: Users Online Today Mod
Post by: margarett on May 22, 2014, 12:28:36 PM
A specific error is always required... Also versions of both test and live forums.
Title: Re: Users Online Today Mod
Post by: Nicky_uk on June 21, 2014, 04:01:41 PM
Hi, I just installed this mod and the install seemed to go fine, but I don't see the usersonline today in the info center? Is there something I need to do? I'm using SMF 2.0.7 - thanks
Title: Re: Users Online Today Mod
Post by: Nicky_uk on June 21, 2014, 04:04:38 PM
Actually, I have to take that back... it is working on the 'default Curve' theme, but not on the others.. so I guess I need to add manually to other themes (I was looking at Curve Minimal)
Title: Re: Users Online Today Mod
Post by: Padre gremista on September 26, 2014, 09:45:19 PM
Is possible modify the mod to show users of the last 30 days?
Title: Re: Users Online Today Mod
Post by: Branko. on September 27, 2014, 08:02:10 AM
Subs-UsersOnlineToday.php
Time in seconds: 604800  is for 7 days ...just change it to 2592000 (30days)
Note: Settings for period must be for 7 days and $txt['uot_users_online_last_7_days']='Users Logged In Last 30 Days';
This is a simple variant  :)
Title: Re: Users Online Today Mod
Post by: Nibogo on September 27, 2014, 07:59:54 PM
That should work just fine :)
Title: Re: Users Online Today Mod
Post by: Rk2910 on January 07, 2015, 08:45:13 PM
Hi all, just searched to no avail about this and maybe it is a SMF question in general.
With this mod (thank you it's great) it shows how many members logged in and who logged in & checked the "hide my status" box. Is there a way to find out, at an admin or admin + mod level, who is surfing the site hidden?
Title: Re: Users Online Today Mod
Post by: margarett on January 07, 2015, 08:50:52 PM
You, as admin, can see who is viewing the site online directly on BoardIndex, without any MODs. You will notice some usernames in italics, those are hidden.
Title: Re: Users Online Today Mod
Post by: Rk2910 on January 08, 2015, 05:33:39 AM
ahHAAA - interesting. I searched for the definition of the italics I saw both on phpbb and smf with no luck - I always thought it meant they were posting at that time because sometimes I would see them regular and sometimes in italics.  Mystery solved about that.
So now I wonder if this mod shows, to me, the hidden person in italics, in the list of people online today?  Have to keep an eye on it.
Thanks Bruno.
Title: Re: Users Online Today Mod
Post by: SD-X on January 08, 2015, 06:10:18 AM
Quote from: Rk2910 on January 08, 2015, 05:33:39 AM
So now I wonder if this mod shows, to me, the hidden person in italics, in the list of people online today?  Have to keep an eye on it.
It should. :)
Title: Re: Users Online Today Mod
Post by: Nibogo on January 08, 2015, 10:24:38 AM
Quote from: Rk2910 on January 08, 2015, 05:33:39 AM
ahHAAA - interesting. I searched for the definition of the italics I saw both on phpbb and smf with no luck - I always thought it meant they were posting at that time because sometimes I would see them regular and sometimes in italics.  Mystery solved about that.
So now I wonder if this mod shows, to me, the hidden person in italics, in the list of people online today?  Have to keep an eye on it.
Thanks Bruno.

It does shows hidden users with italics. Keep in mind that those members that are shown bold are those who are buddies of you. Just in case you have that mistery too :P
Title: Re: Users Online Today Mod
Post by: Rk2910 on January 08, 2015, 07:31:43 PM
It does show the history and member in italics  8)
Thanks for the help all  :)
Title: Re: Users Online Today Mod
Post by: Rk2910 on February 06, 2015, 10:08:01 AM
So a new question - is it possible to store the number of users online today (I use the "Current day" mode which I assume is 12-12) when it kicks over to the next day?  Maybe automatically at the time it starts over and also a on/off switch?  Maybe store in a log file or a table or something? I never stay up late enough to see what my daily total was before it starts over again.  This way I can see trends and such.
Title: Re: Users Online Today Mod
Post by: SD-X on February 06, 2015, 10:10:54 AM
Quote from: Rk2910 on February 06, 2015, 10:08:01 AM
So a new question - is it possible to store the number of users online today (I use the "Current day" mode which I assume is 12-12) when it kicks over to the next day?  Maybe automatically at the time it starts over and also a on/off switch?  Maybe store in a log file or a table or something? I never stay up late enough to see what my daily total was before it starts over again.  This way I can see trends and such.
If you mean the most users online in a single day of your forum's history, I believe SMF already logs and displays this by default in the stats section. If you mean a day-to-day status, I don't believe this mod does this by default, but I'm sure you could probably code it to do such.
Title: Re: Users Online Today Mod
Post by: Rk2910 on February 06, 2015, 10:38:24 AM
Yes, a day to day history somewhere.

Maybe it can be added to a future release.  8)
Title: Re: Users Online Today Mod
Post by: Nibogo on February 06, 2015, 09:25:14 PM
You would need to code that. You can base your code on the one offered by this mod, it should give you a good idea of how to do it.
Title: Re: Users Online Today Mod
Post by: GleamPlay.com on May 28, 2015, 12:11:30 AM
Can the mod show Users online last 24 hours instead of Today?
I searched in the Topic before, but can't find any useful solutions.


Thanks!!!
Title: Re: Users Online Today Mod
Post by: Steve on May 28, 2015, 08:01:16 AM
Did you read the first post? It clearly states one of the options is to show the last 24 hours. Having just installed it on my test forum I can verify that.
Title: Re: Users Online Today Mod
Post by: sangham.net on May 28, 2015, 11:50:16 AM
Nice tool and works fine, Mr Nibogo.

There have been two text strings not translated into German, if you like to add it.

$txt['uot_users_online_last_24_hours']='Benutzer die letzten 24 Std. angemeldet';
$txt['uot_users_online_last_7_days']='Benutzer die letzten 7 Tage angemeldet';


Title: Re: Users Online Today Mod
Post by: Nibogo on May 28, 2015, 06:17:17 PM
Quote from: sangham.net on May 28, 2015, 11:50:16 AM
Nice tool and works fine, Mr Nibogo.

There have been two text strings not translated into German, if you like to add it.

$txt['uot_users_online_last_24_hours']='Benutzer die letzten 24 Std. angemeldet';
$txt['uot_users_online_last_7_days']='Benutzer die letzten 7 Tage angemeldet';




Thanks a lot, i'll add for next release.
Title: Re: Users Online Today Mod
Post by: GleamPlay.com on May 29, 2015, 12:08:42 AM
Quote from: Steve on May 28, 2015, 08:01:16 AM
Did you read the first post? It clearly states one of the options is to show the last 24 hours. Having just installed it on my test forum I can verify that.
Yes "shy" sorry, haven't read it.
Thanks for point it out!!!  :-[ :-[
Title: Re: Users Online Today Mod
Post by: Steve on May 29, 2015, 11:19:29 AM
No worries. :)
Title: Re: Users Online Today Mod
Post by: Novice on September 16, 2015, 03:39:19 PM
Our site has used this for several years now and actually had a programmer show me how to modify our site to include this in the header. Everyone really liked it in the header. They didn't need to scroll to the bottom to see who had been online. I certainly wish you could make an update version compatible with SMF 2.0.10 and included the option to view it in the header also.

Great Mod!
Thanks for your time,

Novice
Title: Re: Users Online Today Mod
Post by: Nibogo on September 22, 2015, 12:22:57 AM
It works just fine with 2.0.10 mate, use version emulate :)
Title: Re: Users Online Today Mod
Post by: Steve on September 22, 2015, 05:51:39 PM
It parses fine for 2.0.10 and 2.0.11 so it should install without emulation, right?
Title: Re: Users Online Today Mod
Post by: Nibogo on September 23, 2015, 10:49:47 AM
Sure, but if there are issues for versions, version emulate should do it.
Title: Re: Users Online Today Mod
Post by: SD-X on October 23, 2015, 11:28:43 AM
Quote from: Nibogo on September 23, 2015, 10:49:47 AM
Sure, but if there are issues for versions, version emulate should do it.
If there are issues, then he is using mods or themes that aren't compatible with it. This mod works just fine in the latest version with no emulation needed.
Title: Re: Users Online Today Mod
Post by: coltp45 on July 14, 2016, 09:53:31 PM
In my forum the default language is spanish_latin-utf8  I have all languages files but I see on the index ass Online Today:

In what file I need to chance that?
Title: Re: Users Online Today Mod
Post by: Ian Mc on September 24, 2016, 03:52:49 AM
Is it possible to remove the mouse over information (login time etc) all together?   e.g. when the mouse hovers over a user no pop up comes up at all.
Title: Re: Users Online Today Mod
Post by: badon on September 30, 2016, 02:47:56 PM
Are there going to be any further updates to this mod?
Title: Re: Users Online Today Mod
Post by: badon on September 30, 2016, 03:12:23 PM
I uninstalled and reinstalled after downloading the file failed to update from 2.0.3 to 2.0.4. Now my version says 2.1, but this site's version still shows 2.0.4 is the latest version. Is that normal?
Title: Re: Users Online Today Mod
Post by: Nibogo on September 30, 2016, 04:10:46 PM
As long as you download the latest package from here you should be ok.
Title: Re: Users Online Today Mod
Post by: Caracal on February 13, 2017, 06:57:22 PM
I Installed this mod and it shows that it's installed but it's not showing on my forum i just installed the latest version few days ago from a new install as it's my first time stating a forum and i don't how to get this to work. Can anyone help?
Title: Re: Users Online Today Mod
Post by: lurkalot on February 14, 2017, 02:55:33 AM
Quote from: Nibogo on November 06, 2005, 01:42:31 AM

It modifies files in the default theme, so if you are using any other theme you need to make changes to your theme files. I offer no support for this.


So are you using the default theme, or a different theme?
Title: Re: Users Online Today Mod
Post by: Caracal on February 14, 2017, 11:05:36 AM
Quote from: lurkalot on February 14, 2017, 02:55:33 AM
Quote from: Nibogo on November 06, 2005, 01:42:31 AM

It modifies files in the default theme, so if you are using any other theme you need to make changes to your theme files. I offer no support for this.


So are you using the default theme, or a different theme?
SMF Default Theme - Curve is the one yes.
Title: Re: Users Online Today Mod
Post by: Caracal on February 15, 2017, 11:34:23 AM
For some strange reason i did nothing i tried installing again and it works now. I also noticed that from the admin panal and go to Configuration>Modification Settings>Miscellaneous. You can adjust the settings also. :)
Title: Re: Users Online Today Mod
Post by: Dylert on August 27, 2019, 05:14:15 PM
Is it possible to use this mod on SMF 2.1?
Title: Re: Users Online Today Mod
Post by: d3vcho on August 27, 2019, 05:23:18 PM
Not this particular one. It hasn't been updated for 2.1 yet. I don't really know if it'll be eventually and I don't know if there are any similar options available for 2.1 now.
Title: Re: Users Online Today Mod
Post by: Hatshepsut on August 27, 2019, 11:38:21 PM
Quote from: Dylert on August 27, 2019, 05:14:15 PM
Is it possible to use this mod on SMF 2.1?

Yes, this mod can run on SMF 2.1, you can see it in my forum:

https://bg-nacionalisti.org/BNF/index.php?action=forum

After mod installation, look in BoardIndex.template.php (for SMF 2.1 default theme)

Find:
// Showing membergroups?
if (!empty($settings['show_group_key']) && !empty($context['membergroups']))
echo '
<span class="membergroups">' . implode(', ', $context['membergroups']) . '</span>';
}


Add after:
// Users Online Today
echo '
<div class="title_barIC">
<h4 class="titlebg">
<span class="ie6_header floatleft">
<img class="icon" src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['online_users'], '" />', $txt['uot_users_online_'.$modSettings['uot_setting_period']], '
</span>
</h4>
</div>
<p class="inline smalltext">';
echo
$txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';

if ($context['viewing_allowed'])
echo
' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_users_hidden_today']), ', ', $txt['uot_hidden'], ': ', $context['num_users_hidden_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && $context['viewing_allowed'])
{
echo
'<br />', implode(', ', $context['list_users_online_today']);
}
echo '
</p>';


And you need to add some online.gif file to .../Themes/default/images/icons/
You can grab this image from my forum:

(https://bg-nacionalisti.org/BNF/Themes/CleanWhite21/images/icons/online.gif)

...or from any forum running SMF 1.x or 2.0.x, see it in Board index, section "Users online"
For example, that's default online.gif image, from this forum:

(https://static.simplemachinesweb.com/smf/default/images/icons/online.gif)

If you use another theme, you may need to perform these operations and for your current theme too.
Title: Re: Users Online Today Mod
Post by: Dylert on August 28, 2019, 04:35:13 PM
Thank you, Hatshepsut!
Title: Re: Users Online Today Mod
Post by: pocttopus on October 23, 2020, 04:19:52 PM
Please update this mod for 2.1rc3.
Title: Re: Users Online Today Mod
Post by: Nibogo on October 24, 2020, 03:37:18 PM
Quote from: pocttopus on October 23, 2020, 04:19:52 PM
Please update this mod for 2.1rc3.

Emulating doesn't work?
Title: Re: Users Online Today Mod
Post by: pocttopus on October 25, 2020, 03:27:53 AM
No, I had to edit other files as well, like @Hatshepsut have posted.  :-\
Title: Re: Users Online Today Mod
Post by: SD-X on October 25, 2020, 11:12:51 AM
At this point, if it is planned to be 2.1-compatible, it should probably be updated correctly anyway. It is a very popular mod, so I can see it continuing to be used in the newer versions natively if it is ever updated.
Title: Re: Users Online Today Mod
Post by: Мel on April 24, 2021, 12:09:53 PM
Not updated yet. No alternative?
Title: Re: Users Online Today Mod
Post by: Nibogo on April 29, 2021, 09:51:14 AM
I'll try to find sometime over the weekend to upgrade it for 2.1
Title: Re: Users Online Today Mod
Post by: pocttopus on May 07, 2021, 07:16:51 AM
Quote from: Nibogo on April 29, 2021, 09:51:14 AM
I'll try to find sometime over the weekend to upgrade it for 2.1
No update yet.
How is it going and when will be ready the update?
:-[
Title: Re: Users Online Today Mod
Post by: SD-X on May 07, 2021, 11:57:20 AM
Quote from: Nibogo on April 29, 2021, 09:51:14 AM
I'll try to find sometime over the weekend to upgrade it for 2.1
Yay!
Title: Re: Users Online Today Mod
Post by: pocttopus on July 12, 2021, 07:46:20 AM
Hello, today v.2.1 RC4 is released -> https://www.simplemachines.org/community/index.php?topic=578135.0
And there is no update of this mod for 2.1 yet.  :-\
Title: Re: Users Online Today Mod
Post by: Aleksi "Lex" Kilpinen on July 12, 2021, 08:14:28 AM
Quote from: pocttopus on July 12, 2021, 07:46:20 AM
Hello, today v.2.1 RC4 is released -> https://www.simplemachines.org/community/index.php?topic=578135.0
And there is no update of this mod for 2.1 yet.  :-\
Many mod authors prefer not to update their mods before a stable release, and at least I can very well understand that.
Title: Re: Users Online Today Mod
Post by: pocttopus on July 12, 2021, 08:33:15 AM
@Aleksi "Lex" Kilpinen
This is the fix and I cannot understand how tough can be this update?  :-[

Quote from: Hatshepsut on August 27, 2019, 11:38:21 PM
Quote from: Dylert on August 27, 2019, 05:14:15 PM
Is it possible to use this mod on SMF 2.1?

Yes, this mod can run on SMF 2.1, you can see it in my forum:

https://bg-nacionalisti.org/BNF/index.php?action=forum

After mod installation, look in BoardIndex.template.php (for SMF 2.1 default theme)

Find:
// Showing membergroups?
if (!empty($settings['show_group_key']) && !empty($context['membergroups']))
echo '
<span class="membergroups">' . implode(', ', $context['membergroups']) . '</span>';
}


Add after:
// Users Online Today
echo '
<div class="title_barIC">
<h4 class="titlebg">
<span class="ie6_header floatleft">
<img class="icon" src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['online_users'], '" />', $txt['uot_users_online_'.$modSettings['uot_setting_period']], '
</span>
</h4>
</div>
<p class="inline smalltext">';
echo
$txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';

if ($context['viewing_allowed'])
echo
' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_users_hidden_today']), ', ', $txt['uot_hidden'], ': ', $context['num_users_hidden_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && $context['viewing_allowed'])
{
echo
'<br />', implode(', ', $context['list_users_online_today']);
}
echo '
</p>';


And you need to add some online.gif file to .../Themes/default/images/icons/
You can grab this image from my forum:

(https://bg-nacionalisti.org/BNF/Themes/CleanWhite21/images/icons/online.gif)

...or from any forum running SMF 1.x or 2.0.x, see it in Board index, section "Users online"
For example, that's default online.gif image, from this forum:

(https://static.simplemachinesweb.com/smf/default/images/icons/online.gif)

If you use another theme, you may need to perform these operations and for your current theme too.
Title: Re: Users Online Today Mod
Post by: pocttopus on August 14, 2021, 10:32:18 AM
I am not able to install emulating this mod to 2.1RC4.  :-\

I don't have this line inside BoardIndex.template.php file:
// If they are logged in, but statistical information is off... show a personal message bar.

I need to add these lines before:
// Users Online Today
echo '
<div class="title_barIC">
<h4 class="titlebg">
<span class="ie6_header floatleft">
<img class="icon" src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['online_users'], '" />', $txt['uot_users_online_'.$modSettings['uot_setting_period']], '
</span>
</h4>
</div>
<p class="inline smalltext">';
echo
$txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';

if ($context['viewing_allowed'])
echo
' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_users_hidden_today']), ', ', $txt['uot_hidden'], ': ', $context['num_users_hidden_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && $context['viewing_allowed'])
{
echo
'<br />', implode(', ', $context['list_users_online_today']);
}
echo '
</p>';


How can I solve this issue?  :-\
Title: Re: Users Online Today Mod
Post by: Shades. on August 14, 2021, 10:56:45 AM
Quote from: pocttopus on August 14, 2021, 10:32:18 AM
I am not able to install emulating this mod to 2.1RC4.  :-\

I don't have this line inside BoardIndex.template.php file:
// If they are logged in, but statistical information is off... show a personal message bar.

I need to add these lines before:
// Users Online Today
echo '
<div class="title_barIC">
<h4 class="titlebg">
<span class="ie6_header floatleft">
<img class="icon" src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['online_users'], '" />', $txt['uot_users_online_'.$modSettings['uot_setting_period']], '
</span>
</h4>
</div>
<p class="inline smalltext">';
echo
$txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';

if ($context['viewing_allowed'])
echo
' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_users_hidden_today']), ', ', $txt['uot_hidden'], ': ', $context['num_users_hidden_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && $context['viewing_allowed'])
{
echo
'<br />', implode(', ', $context['list_users_online_today']);
}
echo '
</p>';


How can I solve this issue?  :-\
Ignore that error and click install anyways! Then go into BoardIndex.template.php and then theses edits: (Make sure to back up first)
Quote from: pocttopus on July 12, 2021, 08:33:15 AM
@Aleksi "Lex" Kilpinen
This is the fix and I cannot understand how tough can be this update?  :-[

Quote from: Hatshepsut on August 27, 2019, 11:38:21 PM
Quote from: Dylert on August 27, 2019, 05:14:15 PM
Is it possible to use this mod on SMF 2.1?

Yes, this mod can run on SMF 2.1, you can see it in my forum:

https://bg-nacionalisti.org/BNF/index.php?action=forum

After mod installation, look in BoardIndex.template.php (for SMF 2.1 default theme)

Find:
// Showing membergroups?
if (!empty($settings['show_group_key']) && !empty($context['membergroups']))
echo '
<span class="membergroups">' . implode(', ', $context['membergroups']) . '</span>';
}


Add after:
// Users Online Today
echo '
<div class="title_barIC">
<h4 class="titlebg">
<span class="ie6_header floatleft">
<img class="icon" src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['online_users'], '" />', $txt['uot_users_online_'.$modSettings['uot_setting_period']], '
</span>
</h4>
</div>
<p class="inline smalltext">';
echo
$txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';

if ($context['viewing_allowed'])
echo
' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_users_hidden_today']), ', ', $txt['uot_hidden'], ': ', $context['num_users_hidden_today'], ')';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online_today']) && $context['viewing_allowed'])
{
echo
'<br />', implode(', ', $context['list_users_online_today']);
}
echo '
</p>';


And you need to add some online.gif file to .../Themes/default/images/icons/
You can grab this image from my forum:

(https://bg-nacionalisti.org/BNF/Themes/CleanWhite21/images/icons/online.gif)

...or from any forum running SMF 1.x or 2.0.x, see it in Board index, section "Users online"
For example, that's default online.gif image, from this forum:

(https://static.simplemachinesweb.com/smf/default/images/icons/online.gif)

If you use another theme, you may need to perform these operations and for your current theme too.
Title: Re: Users Online Today Mod
Post by: pocttopus on August 14, 2021, 11:14:56 AM
@Shades It Works!
Thanks.  ;)
Title: Re: Users Online Today Mod
Post by: Shades. on November 16, 2021, 07:55:36 PM
Mod page says LATEST VERSION v2.0.4 but in my package manager show version 2.1 ;)
Title: Re: Users Online Today Mod
Post by: pikeman on February 13, 2022, 07:30:43 AM
Hello, is a modification for 2.1 planned?
Title: Re: Users Online Today Mod
Post by: pikeman on February 19, 2022, 06:38:59 AM
I tried a manual installation in 2.1 scripts, it gives a blank page after inserting this code into Sources/BoardIndex.php:
Find it:
$context += getMembersOnlineStats($membersOnlineOptions);
Add after:
// Get the user online today list.
    $context += getUsersOnlineTodayStats();
Title: Re: Users Online Today Mod
Post by: pocttopus on February 26, 2022, 02:33:38 AM
This mod still works on 2.1.1?
Title: Re: Users Online Today Mod
Post by: Speed King on February 26, 2022, 02:38:18 AM
Quote from: pocttopus on February 26, 2022, 02:33:38 AMThis mod still works on 2.1.1?

Yes, it works fine without errors (my forum is running on PHP 8.0) :)

Title: Re: Users Online Today Mod
Post by: pikeman on March 05, 2022, 09:09:54 AM
@Speed King

Without the mistake I mentioned in the previous post?
Title: Re: Users Online Today Mod
Post by: Speed King on March 05, 2022, 10:32:19 AM
I think it's not needed to add some code in Sources/BoardIndex.php file.

1. Install mod via Package Manager in Emulation mode
2. After mod installation, add manually this code in BoardIndex.template.php for default theme...

Find:

// Showing membergroups?
        if (!empty($settings['show_group_key']) && !empty($context['membergroups']))
            echo '
                <span class="membergroups">' . implode(', ', $context['membergroups']) . '</span>';
    }

Add after:

// Users Online Today
    echo '
            <div class="title_barIC">
                <h4 class="titlebg">
                    <span class="ie6_header floatleft">
                        <img class="icon" src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['online_users'], '" />', $txt['uot_users_online_'.$modSettings['uot_setting_period']], '
                    </span>
                </h4>
            </div>
            <p class="inline smalltext">';
    echo
                $txt['uot_total'], ': <b>', $context['num_users_online_today'], '</b>';

            if ($context['viewing_allowed'])
    echo
                ' (', $txt['uot_visible'], ': ', ($context['num_users_online_today'] - $context['num_users_hidden_today']), ', ', $txt['uot_hidden'], ': ', $context['num_users_hidden_today'], ')';

                // Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
                if (!empty($context['users_online_today']) && $context['viewing_allowed'])
                {
    echo
                    '<br />', implode(', ', $context['list_users_online_today']);
                }
    echo '
            </p>';

If you use custom theme with own BoardIndex.template file, make the same changes there.

Also, add 'online.gif' image to ../images/icons folder for each theme used.

See the mod working on my forum:

https://bg-nacionalisti.org/BNF/index.php?action=forum
Title: Re: Users Online Today Mod
Post by: pikeman on March 05, 2022, 03:56:44 PM
It is the same solution from the previous page. I tested it before and I tried it now, it doesn't work on my forum.
Title: Re: Users Online Today Mod
Post by: Shades. on March 05, 2022, 09:20:02 PM
Quote from: pikeman on March 05, 2022, 03:56:44 PMIt is the same solution from the previous page. I tested it before and I tried it now, it doesn't work on my forum.
What mods do you have installed if I may ask?
Title: Re: Users Online Today Mod
Post by: Speed King on March 05, 2022, 11:44:32 PM
Quote from: pikeman on March 05, 2022, 03:56:44 PMIt is the same solution from the previous page. I tested it before and I tried it now, it doesn't work on my forum.

Did you try to switch your forum to English language? If there's a problem with your default forum language mod files (?Serbian/Croatian), maybe that's the reason  ???

In my forum, the mod works fine since 2019 (SMF 2.1 RC2), and on PHP 7.0 through 8.0
Title: Re: Users Online Today Mod
Post by: pikeman on March 06, 2022, 04:59:42 AM
I tried switching to English, the same thing happens. I can't find the mode setting section in the admin panel at all, although I transferred the language files to the appropriate file on the server.

(https://i.postimg.cc/26z87vXV/Poc.png)

Installed modes:

Simple Colorizer
Curve2 Color Changer
FancyBox 4 SMF
Login Menu Button
Ad Managment
Pretty URLs
Merge Double Posts
FA Board Icons
SMF 2.1.1 Update
Simple Audio Video Embedder
Title: Re: Users Online Today Mod
Post by: Speed King on March 06, 2022, 09:43:42 AM
The mod settings in admin panel are in section "Configuration => Modification settings => Miscellaneous"

Click => (https://i.postimg.cc/47XVYCsh/2022-03-06.png) (https://postimg.cc/47XVYCsh)

Can you install mod via Package Manager or you try to install it manually?
Title: Re: Users Online Today Mod
Post by: pikeman on March 06, 2022, 09:47:36 AM
Manually, due to an error he reports to me.
Title: Re: Users Online Today Mod
Post by: Speed King on March 06, 2022, 09:52:35 AM
The mod parser displays that installation needs to run 'db_install.php' file from mod package, this operation cannot be done manually.

Try to install mod via Package Manager, ignoring the error message.
After installation, make the changes described above in BoardIndex.template.php file for default theme.
Title: Re: Users Online Today Mod
Post by: pikeman on March 06, 2022, 10:08:05 AM
It works, thank you! (https://vukovisadunava.com/Smileys/mojismajliji/ok.gif) (https://vukovisadunava.com/Smileys/mojismajliji/clap2.gif)
Title: Re: Users Online Today Mod
Post by: Max22 on March 10, 2022, 06:34:17 PM
@Nibogo
Please consider to add italian language in the next mod update.

Instructions:
1) Create two files named UsersOnlineToday.italian-utf8.php and UsersOnlineToday.italian.php (for backward compatibility with SMF 2.x)

2) Add the following translated lines:
// Main page
$txt['uot_users_online_current_day']='Utenti di oggi';
$txt['uot_users_online_last_24_hours']='Utenti nelle ultime 24 ore';
$txt['uot_users_online_last_7_days']='Utenti negli ultimi 7 giorni';
$txt['uot_total']='Totale';
$txt['uot_visible']='Visibili';
$txt['uot_hidden']='Nascosti';

// Settings
$txt['uot_setting_sortby_pre_txt']='Ordina la lista utenti per';
$txt['uot_setting_username']='nome utente';
$txt['uot_setting_login_time']='tempo online';
$txt['uot_setting_sortby_post_txt']='';

$txt['uot_setting_sortorder_pre_txt']='Visualizza la lista utenti in';
$txt['uot_setting_ascending']='ordine crescente';
$txt['uot_setting_descending']='ordine decrescente';
$txt['uot_setting_sortorder_post_txt']='';

$txt['uot_setting_period_pre_txt']='La lista utenti dovrebbe coprire';
$txt['uot_setting_current_day']='il giorno corrente';
$txt['uot_setting_last_24_hours']='le ultime 24 ore';
$txt['uot_setting_last_7_days']='gli ultimi 7 giorni';
$txt['uot_setting_period_post_txt']='';

$txt['uot_setting_canview_pre_txt']='Rendi la lista utenti visibile per';
$txt['uot_setting_admin']='amministratori';
$txt['uot_setting_registered']='utenti registrati';
$txt['uot_setting_everyone']='tutti';
$txt['uot_setting_canview_post_txt']=''

3) Update package-info.xml accordingly.
Title: Re: Users Online Today Mod
Post by: Nibogo on May 18, 2022, 01:33:18 PM
New version 2.2 released with support for SMF 2.1
Title: Re: Users Online Today Mod
Post by: Shades. on May 18, 2022, 02:20:29 PM
Works great, Thank You! 8)
Title: Re: Users Online Today Mod
Post by: Max22 on May 18, 2022, 02:36:54 PM
Quote from: Nibogo on May 18, 2022, 01:33:18 PMNew version 2.2 released with support for SMF 2.1

Please include the italian translation below in the next version:
https://www.simplemachines.org/community/index.php?msg=4115730
Title: Re: Users Online Today Mod
Post by: Steve on May 18, 2022, 03:38:49 PM
Quote from: Shades. on May 18, 2022, 02:20:29 PMWorks great,
Not so much for me. Each main index page view gives me one of each of these errors:

The callable users_online_today could not be called.
Hook call: function "users_online_today" in file /home/steve/public_html/forums could not be called.
Title: Re: Users Online Today Mod
Post by: bluecortex on February 09, 2024, 07:49:09 AM
I have the same problem as the previous speaker @Steve.
Looks like the issue has been unresolved for about 2 years.

Similar problem because I uninstalled the package and would like to edit the lines of code responsible for the appearance of this error. Remove them...

I don't want this package, what can I do to remove the error while I don't have it installed?
Which line needs to be removed added by the mod?

Did it leave traces in the PHP or SQL files?

Hook call: function "UsersOnlineToday_boardindex" in file /profiles/k/kr/kra/krag/mydomain.cba.pl could not be called.
The callable UsersOnlineToday_boardindex could not be called.

And where is this file "in file"? Because I don't see the /profiles/ directory
How to remove this hook call?
Can someone tell where to edit this?

Title: Re: Users Online Today Mod
Post by: Kindred on February 09, 2024, 09:01:59 AM
Hooks are identified in the database.
smf_themes table
Title: Re: Users Online Today Mod
Post by: Arantor on February 09, 2024, 09:12:33 AM
No, they're in the smf_settings table. And isn't there a UI in admin for it?
Title: Re: Users Online Today Mod
Post by: Diego Andrés on February 09, 2024, 10:01:29 AM
Yes there is, should be in the maintenance area.
Title: Re: Users Online Today Mod
Post by: GL700Wing on February 09, 2024, 10:29:05 AM
The hooks for this mod are being installed via a 'database' element in the package_info.xml file and because of this are not being removed when the mod is uninstalled unless the 'Remove all data associated with this modification' option is selected - this is why the hooks errors are occurring after the mod is uninstalled.

The workaround for this is to install/uninstall the hooks via 'hook' elements in the package_info.xml file - updated mod installation file attached.
Title: Re: Users Online Today Mod
Post by: Kindred on February 09, 2024, 02:19:05 PM
Quote from: Arantor on February 09, 2024, 09:12:33 AMNo, they're in the smf_settings table. And isn't there a UI in admin for it?

Whoops, right...   that's what I get for answering before I had my coffee