1 (edited by falconflyz 2007-03-15 08:18)

Topic: Problems for Mod Hide User with extern.php

Mod Hide User 1.1 works fine but there but its usefulness is reduced to nonexistence with extern.php: Names of the hidden members are shown with extern.php?action=online_full big_smile
Regards

Re: Problems for Mod Hide User with extern.php

Moved to Modifications

Re: Problems for Mod Hide User with extern.php

Oh crap, forgot all about extern.php wink
I'll update later to include number of hidden users but for now:

In extern.php find

    $result = $db->query('SELECT user_id, ident FROM '.$db->prefix.'online WHERE idle=0 ORDER BY ident', true) or error('Unable to fetch online list', __FILE__, __LINE__, $db->error());

    while ($pun_user_online = $db->fetch_assoc($result))
    {
        if ($pun_user_online['user_id'] > 1)

Replace with

    $result = $db->query('SELECT user_id, ident, show_online FROM '.$db->prefix.'online WHERE idle=0 ORDER BY ident', true) or error('Unable to fetch online list', __FILE__, __LINE__, $db->error());

    while ($pun_user_online = $db->fetch_assoc($result))
    {
        if ($pun_user_online['user_id'] > 1 && $pun_user_online['show_online'] != 0)

4 (edited by falconflyz 2007-03-15 21:29)

Re: Problems for Mod Hide User with extern.php

Thx soonotes smile