Users Online Today Mod

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

Previous topic - Next topic

PatternInChaos

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

JimM

Wrong version. 1.4.0 is the version you want for 1.1.8.
Jim "JimM" Moore
Former Support Specialist

PatternInChaos

Oh thanks.. that would never have occurred to me because it's also available for 1.1.8.

Buwan

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.   :(


pikeman

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?

IvoLeite

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

IvoLeite


JimM

Looks like you added part of the code twice in your custom theme.  Remove the duplicate and you should be all set.
Jim "JimM" Moore
Former Support Specialist

usa4all

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



Mystery?

#1269
Please update for RC1-1...

Thanks!
Join my NEW website that I just created and be a big part of it (July 30, 2010): http://www.gamerstatic.net

.Vapor

Is this compatible with 1.1.9 yet ? Thanks

Carceri

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?

ttuu

u can add most for this "Most Users Online per day" ?
like "Most Online" and "Most Time Online"

IvoLeite

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.

JimM

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.
Jim "JimM" Moore
Former Support Specialist

IvoLeite

Hello JimM. I've tried both ways but I did't manage to solve the problem.  :(

JimM

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.
Jim "JimM" Moore
Former Support Specialist

IvoLeite

Hello again JimM. Now works fine. :D

Thanks for your help. :D

NHWD

anybody know why i cant find this line?
$context['num_users_online'] = count($context['users_online']) + $context['num_users_hidden'];
in BoardIndex.template.php

Hell Raiser

I think there is something wrong i can also cant find that line   :'(


Need Help with SMF ? Ask me may be i can help you out




Advertisement: