News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Users Online Today Mod

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

Previous topic - Next topic

CaviarDreams

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.

hcfwesker

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

CaviarDreams

Yes, thanks! :D Sorry, I did a file search and it said none were found... Thank you again. :)

SD-X

Is this fully SMF 2.0.3 compatible?

iDevGrow

Thank you for the best's mod.

i love it.

:)

live627


Infitima

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.

SD-X

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

teos55

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

hcfwesker

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'], ')';

Aome

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.
I always appreciate the help, thank you!

SD-X

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.

hcfwesker

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

Aome

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!
I always appreciate the help, thank you!

Arantor

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
Holder of controversial views, all of which my own.


hcfwesker

yeah, i derped, had "is_approved" on my mind :D  just edited it

Aome

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.

:(
I always appreciate the help, thank you!

hcfwesker

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

Aome

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.
I always appreciate the help, thank you!

hcfwesker

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

Advertisement: