News:

Wondering if this will always be free?  See why free is better.

Main Menu

Users Online Today Mod

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

Previous topic - Next topic

Caracal

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.

Caracal

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

Dylert

Is it possible to use this mod on SMF 2.1?

d3vcho

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.
"Greeting Death as an old friend, they departed this life as equals"

Hatshepsut

#1944
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:



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



If you use another theme, you may need to perform these operations and for your current theme too.

Dylert


pocttopus

Please update this mod for 2.1rc3.


pocttopus

No, I had to edit other files as well, like @Hatshepsut have posted.  :-\

SD-X

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.

Мel

Not updated yet. No alternative?
"The ability to speak does not make you intelligent."
- Qui-Gon Jinn


pocttopus

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?
:-[

SD-X

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!

pocttopus

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

Aleksi "Lex" Kilpinen

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.
Slava
Ukraini!


"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

pocttopus

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



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



If you use another theme, you may need to perform these operations and for your current theme too.

pocttopus

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?  :-\

Shades.

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:



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



If you use another theme, you may need to perform these operations and for your current theme too.
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

pocttopus

@Shades It Works!
Thanks.  ;)

Advertisement: