Simple Machines Community Forum

SMF Development => Feature Requests => Applied or Declined Requests => Aiheen aloitti: Ryan - toukokuu 21, 2007, 07:43:02 IP

Otsikko: Whos online list.. Needs Improving.. Users browsing mobile device should show
Kirjoitti: Ryan - toukokuu 21, 2007, 07:43:02 IP
Whos online list.. Needs Improving

Basically in who's online list it should show which are normal users..
Which are Users browsing via wap
And which ones are spiders..

I know theres a spider mod but the mobile and spiders should be built into smf 2.0 don't you think?
The who's online has never really had any changes?
And theres plenty room for improvement that wont effect SMF performance at all.

Maybe also admins can have ability to use a automatic refresh by ticking a box to enable the refresh
So the whos online list refreshes every 10 - 20 seconds
So it can be monitored?

What you all think?
Otsikko: Re: Whos online list.. Needs Improving.. Users browsing mobile device should sho
Kirjoitti: Rudolf - toukokuu 21, 2007, 08:10:35 IP
In Who.template.php search for:
if (!empty($member['ip']))
echo '
(<a href="' . $scripturl . '?action=trackip;searchip=' . $member['ip'] . '" target="_blank">' . $member['ip'] . '</a>)';


add after
if (isset($member['query']['imode']) || isset($member['query']['wap']) || isset($member['query']['wap']))
echo '
<img src="' . $settings['images_url'] . '/cell.gif" alt="" />';


Then search for an image of a cell phone, resize it to fit your needs (pun intended  :P) and upload it in your theme's images directory.
Otsikko: Re: Whos online list.. Needs Improving.. Users browsing mobile device should show
Kirjoitti: Gary - toukokuu 21, 2007, 10:03:55 IP
Could always use images/post/wireless.gif ;)

-ALM