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

dbailey

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

sharks

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.

T3CHN0

#1742
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 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'

T3CHN0

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)

sharks

But i'm using SMF 1.1.15...

dbailey

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?

Branko.

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
Strong people don't put others down, they lift them up.
A clever person solves a problem. A wise person avoids it.

T3CHN0

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

3fifty



3fifty

That worked just fine.  Thank you.  I forgot about being able to do that actually.

Julian F

it is any way to track users from SSI.php on this mod?

BaghdadGhost

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

BaghdadGhost

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

T3CHN0

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

inter

I translated the module into Russian  8)
If you prefer, you can turn translate into an overall package
Sorry for my English

chinaren

Does what it says on the tin!  Thank you! 

The Opus Path - The Next Generation of the Written Word

SD-X

Works out of the box for SMF 2.0.1 and 2.0.2! :)

noaccess

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

rootuid

Works great on 2.0.2 but I want to restrict it to admins only. How do I achieve this ? Thanks

Advertisement: