Users Online Today Mod

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

Previous topic - Next topic

Martine M

I deleted users online a part manually, no errors anymore it was a bit to much errors.

I uploaded Users online today 2..0 RC4 and try to install it, I didn't cause I got these errors there to.

./Themes/argentum_enhanced_smf20final/BoardIndex.template.php    Test failed
      1.    Add Before    ./Themes/argentum_enhanced_smf20final/BoardIndex.template.php    Test failed
Running SMF 2.09 - Diego Andrés Theme Elegant Mind - TP 1.0 - Main Forum language English - Browser Firefox 33


Carceri

Quote from: Martine M on August 21, 2011, 03:58:12 AM
./Themes/argentum_enhanced_smf20final/BoardIndex.template.php    Test failed
      1.    Add Before    ./Themes/argentum_enhanced_smf20final/BoardIndex.template.php    Test failed

You are trying to install the mod on an unsupported theme, which explains the error. Only the default theme is supported, so getting it to work on other themes will usually require making some changes manually.

Martine M

Yes I understand that but as I said in my post before, I tried installing it manually to but couldn't find were to put this

Quote from: Martine M on August 19, 2011, 06:22:36 PM

I tried installing it manually but can't find in the boardindex.template.php

// If they are logged in, but statistical information is off... show a personal message bar.

were before I have to put this

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



Running SMF 2.09 - Diego Andrés Theme Elegant Mind - TP 1.0 - Main Forum language English - Browser Firefox 33


Martine M

I installed it manually again in default and Argentum theme.

Forum default is Argentum and I swirch my profile to Deafault to see in idefault theme.

I get the same error in both theme's, can't acces the index page. (it's at the testforum)

"Fatal error: Call to undefined function getusersonlinetodaystats() in /home/unitedtu/public_html/testforum/Sources/BoardIndex.php on line 70"

Line 70 = $context += getUsersOnlineTodayStats();
Running SMF 2.09 - Diego Andrés Theme Elegant Mind - TP 1.0 - Main Forum language English - Browser Firefox 33


Martine M

I got it working now, I forgot to execute the install.php.
And Bloc and Lesmond toled me were to put it in the Argentum theme. Boardindex.template.php
Running SMF 2.09 - Diego Andrés Theme Elegant Mind - TP 1.0 - Main Forum language English - Browser Firefox 33


roy123456789

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

Branko.

Here is translation for serbian_latin and croatian, both.. ISO/UTF8
Strong people don't put others down, they lift them up.
A clever person solves a problem. A wise person avoids it.

T3CHN0

QuoteThe time period that the user list shows can be the current day, last 24 hours or last week
I see this mod can show who's on over the passed week, But don't now how to turn it on.
reading over the boards I can't find any answer on this either.
looks out of shape on my blackrainV2 theme but I will correct it's looks once I work out how to show
who has been on over the passed week.

I would like to know is there something else I can add to the code so only moderators and admins can see it?

Branko.

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

T3CHN0

thank you for such a very fast reply
something simple like what I asked should be on the mods download post I would think
then silly questions are avoided.

But your answer did cover everything I asked and it's all good now :)
once i work out how to fix the display on my theme i will post it here as well
as it might help others.

for the ones who don't know go to  Admin>Modification Settings>Miscellaneous> and look for
something that looks the same as the image below, click on image to make it bigger.

T3CHN0

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


dbailey

My theme is silentwave_20rc3 and there is no BoardIndex.template.php file within this templates files, it must use the default one. The package installed with no troubles but it isn't showing up.

I'm using SMF 2.0.1 |
TinyPortal latest version.

Any ideas please?

T3CHN0

Quote from: dbailey on October 11, 2011, 02:43:02 AM
My theme is silentwave_20rc3 and there is no BoardIndex.template.php file within this templates files, it must use the default one. The package installed with no troubles but it isn't showing up.

I'm using SMF 2.0.1 |
TinyPortal latest version.

Any ideas please?

Are you sure it installed with no error's ?
I have a 2.0.1 beta site and on a fresh installed with your theme it installed
and also works perfectly.
maybe upload your files and I will have a look at them for you.

this is how it should look on the bottom of your theme
click on image to make bigger

T3CHN0

Also you might like this mod last24 hours
I use both mods together and they do not conflict with each other.
I have 24hrs mod for all members to see part from guests
and I set (Online Today Mod) to display last 7 days to show only to moderators and administrators
I would like another mod like this to show member who have not been on the forum for more then
3 months but can't find one :) hint hint to modders

Branko.

Quote from: dbailey on October 11, 2011, 02:43:02 AM
My theme is silentwave_20rc3 and there is no BoardIndex.template.php file 
This mod install only in ./Themes/default/BoardIndex.template.php . Try uninstall and install again (check core theme before).Tested SMF2.0.1+silentwave_20rc3+Users Online Today Mod
Strong people don't put others down, they lift them up.
A clever person solves a problem. A wise person avoids it.

dbailey

UPDATE: I uninstalled and then reinstalled while using the curve theme and mod showed up. I then changed the theme back to silent wave and the mod disappeared.

I'm not sure what to do next.

This did used to work until I upgraded the forum to the current 2.0.1 version.

dbailey

Quote from: T3CHN0 on October 11, 2011, 05:58:18 AM
Quote from: dbailey on October 11, 2011, 02:43:02 AM
My theme is silentwave_20rc3 and there is no BoardIndex.template.php file within this templates files, it must use the default one. The package installed with no troubles but it isn't showing up.

I'm using SMF 2.0.1 |
TinyPortal latest version.

Any ideas please?

Are you sure it installed with no error's ?
I have a 2.0.1 beta site and on a fresh installed with your theme it installed
and also works perfectly.
maybe upload your files and I will have a look at them for you.

this is how it should look on the bottom of your theme
click on image to make bigger

Which file should I upload please?

T3CHN0

Install the mod first and then upload BoardIndex.php and BoardIndex.template.php
I will put them on my forum to test them both and find the fault for you

dbailey

Hi thanks for taking a look at this for me. I appreciate it a lot.

T3CHN0

Both files worked perfect on my site.

you have a double up of

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

so I see it 2 times so just remove one of them. but it works fine.
can you tell me your website URL or PM it to me

P.S. keep in mind I am in Australia and time difference I can't always reply directly but I will as soon as I can

Advertisement: