Users Online Today Mod

Started by Nibogo, November 06, 2005, 01:42:31 AM

Previous topic - Next topic

Carceri

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?

Gobo

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?

Carceri

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.

Gargoyle

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

MrHeartbreaker

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

Furvert

#185
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.

DemonicInfluence

yes, it sorts by last online

Carceri

#187
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.

HNHF

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...
Groetjes Martin....


Http://www.hnhf.nl/

on4ya

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)

tolsta

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 ';

Furvert

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

on4ya

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) :)

fiver

#193
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".

;)

Carceri

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.

fiver

#195
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?

;)

fiver

#196
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

;)

Carceri

Actually I think I like the current layout better, but I will rethink this when 1.1 final is out :)

fiver

#198
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

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

:)

Carceri

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.

Advertisement: