News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Users Online Today Mod

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

Previous topic - Next topic

ccbtimewiz

Quote from: optimushunk on July 28, 2008, 09:39:51 AM
sorry for the question but is there anyone who would help me with the problem shown in the image ??? Please help me out.

Thanks.

Could you attach your boardindex.template.php please?

Adish - (F.L.A.M.E.R)

Sure. Please check the attached file. BoardIndex.template.php Attached.

Thanks.

ccbtimewiz


Adish - (F.L.A.M.E.R)

Can you tell me what the problem was ?

ccbtimewiz

The modification installed twice, Lol.

Adish - (F.L.A.M.E.R)

ehm.. its the same i think.. it is shown in the same place.

ccbtimewiz

Hmm? You're using the theme of the file I edited, right?

Adish - (F.L.A.M.E.R)

#967
Woops...srry.. made a mistake..srry. Check the attachment now.

acctually the site is onto the WAMP on my pc.... it is the same thing.. the error still remains.. can you solve it please...

Thanks

stfox100

HI,
I've installed this mod on SMF 1.1.5 with TP 1.0.5
I've been getting errors, so I've been uninstalling mods to track down the issue.
In the Board.index.php I show this code:
Quote// Load the users online right now.
   $result = db_query("
      SELECT
         lo.ID_MEMBER, lo.logTime, lo.url, mem.realName, mem.memberName, mem.showOnline,
         mg.onlineColor, mg.ID_GROUP, mg.groupName
      FROM {$db_prefix}log_online AS lo
         LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = lo.ID_MEMBER)
         LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))", __FILE__, __LINE__);

Which doesn't appear to fit my version of SMF, if I'm reading it right, and I am far from an experienced coder. Does it seem I have the wrong version installed? If so, how do I go about uninstalling, and reinstalling? I can't use the uninstall through the package manager as I get an error for file: ./Themes/default/languages/Modifications.english.php.
Thanks,
B-Lute

Adish - (F.L.A.M.E.R)

Please solve this problem:- http://www.simplemachines.org/community/index.php?topic=55513.msg1631641#msg1631641

BoardIndex.template.php attached in this post:- http://www.simplemachines.org/community/index.php?topic=55513.msg1634616#msg1634616

Please help me out, I am almost finished with my forum and just this tiny bits remaining. Kindly help me.

Thank you.

Adish - (F.L.A.M.E.R)

is bumping these topics allowed ? coz the mod maker isnt quite replying ? i mean other members are quite helpful but the mod maker has more experience about the mod rather then others.....

Please Help, see the above query.

Thank You.

General_Naga

I'm getting the following error in my logs.
QuoteError message '1024: Canview method for getMembersOnlineTodayStats() function is not allowed'

I have modified the original code to this: (to make the block visible to admins only)

Quoteif ($context['user']['is_admin'])
{
        // Users online today
    echo '
        <tr>
            <td class="titlebg" colspan="2">', $txt['uot_users_online_today'], '</td>
        </tr><tr>
            <td class="windowbg" width="20" valign="middle" align="center">
                ', '<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt['uot_users_online_today'], '" />', '
            </td>
            <td class="windowbg2" width="100%">';
            echo '
                <div class="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']);

                // Showing membergroups?
                if (!empty($settings['show_group_key']) && !empty($context['membergroups']))
                    echo '<br />[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']';
            }
            echo    '</div>';
    echo        '</td>';
    echo    '</tr>';
}

Does anyone know how to solve the problem behind the error? It's not vital but it's kinda clogging up my logs :)

Thanks in advance.

barler

first off im a noob,so this could be a stupid question lol

how to i install this mod on smf version 1.1.5 useing this theme http://custom.simplemachines.org/themes/index.php?lemma=116


and would i be better of usein this version of the theme
http://custom.simplemachines.org/themes/index.php?lemma=763

wat im basically lookin for is a step by step way of doin it.
thanks in advance.

any other info needed just ask

General_Naga

Firstly I'm going to do this step by step so sorry if you know some of this already.

To install a mod on a custom theme you need to make edits to the theme files via FTP (Might be another way but I've never found it)

NB. Remember to use a program such as notepad/notepad++/crimson editor NOT MS Word! for editing the files.

1. Download version 1.4 of the mod
2. Go to: http://modparser.dev.dansoftaustralia.net/ and browse to the file you just downloaded. Select 1.1.3 as your SMF version.
3. Use the information which the parser gives you to edit the relevant files. Just copy and paste from the boxes.

Hope this helps, if you still need help PM me.


Basie

PLEASE can someone make the latest version of this compatible with 1.1.5?

I need "visitors in last 24 hours" not "visitors today".

metallica48423

this mod already supports 1.1.5.  Read the description.
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

Basie

#976
Only an older version of the hack works with 1.1.5 - not the latest version.

Quote
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

The 1.1.5 version only shows "online today", but I need it to show "online in last 24 hours", which is in the latest version of the hack.

Adish - (F.L.A.M.E.R)

Quote from: optimushunk on July 29, 2008, 07:48:46 PM
Please solve this problem:- http://www.simplemachines.org/community/index.php?topic=55513.msg1631641#msg1631641

BoardIndex.template.php attached in this post:- http://www.simplemachines.org/community/index.php?topic=55513.msg1634616#msg1634616

Please help me out, I am almost finished with my forum and just this tiny bits remaining. Kindly help me.

Thank you.

Ehm anyone who can solve them please. It has been many days since I am facing the problem.

Thank You.

lyer

hey guys...can you pls help me?....

IM using SMF 1.1.5 and tinyportal v.0.9.8, and using a babylon theme....could you please help me if what version of "USer Online Today Mod" should i use without manually modifying the php script?

thanks and more power....

memyselfandI

Is anyone supporting this mod? I have the same problem as someone else that was never answered

Undefined index: uot_users_online_today

8: Undefined index: uot_total

8: Undefined index: uot_total

8: Undefined index: uot_hidden

Advertisement: