Simple Machines Community Forum

Customizing SMF => Tips and Tricks => Topic started by: Owdy on November 03, 2004, 01:15:56 PM

Title: Custom Who.template.php - separated list for users, guests and spiders
Post by: Owdy on November 03, 2004, 01:15:56 PM
Remove this topic.




admin note: I have changed the topic back, because the thread is still valid, despite the confusion of some people who apparently can't read.
This is **NOT** the googlebots, or the spiders, or any other MOD.  It is a TIP/TRICK.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: RoarinRow on May 23, 2006, 01:35:08 PM
Very cool, thank you!  I've been using your previous version of the who.template.php and love it!  I use it all the time.  It makes separating who's who easier on the eyes.   8)
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Farmacija on May 30, 2006, 07:34:19 AM
im using smf 1.07 and uin default theme in who.template.php i couldnt find code above  :(
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Farmacija on May 31, 2006, 04:57:29 AM
Ok, i upload it in themes/default folder. thanx
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Stigmartyr on June 01, 2006, 07:06:16 PM
Once I installed the GoogleBot Mod and THEN uploaded the attached file, everything works great :)
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: colochris1980 on June 14, 2006, 06:33:47 PM
Just wondering. I uploaded the file, everything tested successful, but the last thing was the install.php execute code file

I don't have the install file installed.

Anyways it said that everything was ok and the effects should take place.

But I look at the forum index and I only see guests =0 users =1

No spider or robot count

Did I do something wrong?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: kat on June 15, 2006, 05:51:07 AM
Maybe there weren't any bots around, at the time?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Rasyr on June 15, 2006, 07:58:17 AM
How can I remove Spiders from the file? I like the breakdown, but I want to get rid of spiders altogether. How can I do that?

I don't want the bots mixed in with the Guests, I want them removed completely.

Thanks for the help!!



Edit: Okay, I figured out how to remove the Spiders (a simple if statement right after the For each loop statement that starts displaying them - the if statement ends before the page index section).

However, I have another issue. As can be seen here -- http://www.ironcrown.com/ICEforums/index.php?action=who;sort=time;start=0 -- I am not showing all of my Members on a single page.

How can I change this file to make that happen. I want to show all the Members together, and then show all of the guests together (I can get it to do this by sorting by User, but I want it to happen automatically, always -- if that makes any sense?)



Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: n1kki6 on June 15, 2006, 11:51:14 PM
Is their a way to code it so only the admins can see the spiders, and everyone else sees them as guests?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Niteblade on June 16, 2006, 12:14:52 AM
Quote from: n1kki6 on June 15, 2006, 11:51:14 PM
Is their a way to code it so only the admins can see the spiders, and everyone else sees them as guests?

Interesting..
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: n1kki6 on June 16, 2006, 12:34:37 AM
It does it wil the spider bot mod on the users list at the bottom so I am guessing its possible.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: TGB on June 25, 2006, 07:00:27 PM
can we have instructions on what is modified from the original who.template.php as mine is already modified and i would need to do a manual install
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: TGB on June 28, 2006, 12:57:48 AM
Quote from: Owdy on June 26, 2006, 04:54:57 AM
Quote from: edsloter on June 25, 2006, 07:00:27 PM
can we have instructions on what is modified from the original who.template.php
Lots. Compare those files, youll see.

i can't really compare since my file is already modified, it would not match up.  that is why i am asking.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: AbsolutelyFreeWeb on July 05, 2006, 09:19:12 AM
Could you please edit the first post to make it more clear one doesn't need to do the translate part in the faq. I thought I had to do that just to use it.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Omar Bazavilvazo on July 08, 2006, 11:50:59 PM
I just installed it for my brand new installed SMF 1.1RC2, thanks Owdy, works like a charm
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: PrizeLive.com on July 09, 2006, 12:16:01 AM
Quote from: Omar Bazavilvazo on July 08, 2006, 11:50:59 PM
I just installed it for my brand new installed SMF 1.1RC2, thanks Owdy, works like a charm

how can i get it for 1.1 rc2
Title: Re: Vs: Re: Custom Who.template.php - separated list for users, guests and spide
Post by: PrizeLive.com on July 09, 2006, 10:22:28 PM
Quote from: Owdy on July 09, 2006, 02:06:24 AM
SurfExcelerator, take it from this topics first post. edsloter wanted to compare this file to unmodifyed version, that one he can get from download area.

Thanks.. it works great..  :D
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: PrizeLive.com on July 10, 2006, 12:06:47 AM
How can you have both who templates working...

so http://www.moneytalkpro.com/index.php?action=who and http://www.moneytalkpro.com/index.php?action=who2 would both work... ?

who would be the original and who2 would have the groups separated..
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: guachiman on July 14, 2006, 02:46:07 AM
Hey guys,

For those of you that had the "Location Mod - WhoFlags" installed (gobalooper.locationmod), you need to follow these steps:

1. donwload the new Who.template.php file
2. Open it and search for

// $alternate will either be true or false.  If it's true, use "windowbg2" and otherwise use "windowbg".

echo '

<tr class="windowbg', $alternate ? '2' : '', '">

<td>';


and SUBSTITUTE the <td>'; with:

<td>', (empty($member['flag'][0]) ? '' : '<img src="' . $settings['default_images_url'] . '/flags/' . strtolower($member['flag'][0]) . '.png" alt="' . $member['flag'][1] . '" title="' . $member['flag'][1] . '" />'), '';


3. Upload the file to the ./Themes/default/ directory.

I hope this is useful!


Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: PlayGroundFor.us on July 15, 2006, 08:38:11 PM
Could someone help me modify this so that it would only allow those who have permissions to see spiders be able to see them.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Niteblade on July 16, 2006, 09:50:52 PM
Out of curiousity --

Has anyone updated and added to the list of spiders and bots inside this file ?

Would it be possible for you to make it available ?

Thanks !
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: RBH on August 14, 2006, 12:34:50 PM
recently i have had a swarm of snapbots visiting my site. they are showing as guests so i tried adding them to the who.template as instructed in the first post but they still show as guests. here is what i added to template.

array (

'agent' => 'Snapbot/1.0',

'spidername' => 'Snapbot',

'spider' => true,

),


any ideas on how to get these guys to show up with thier name other then guest?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Assistance on August 14, 2006, 06:32:29 PM
Quote from: nite0859 on July 16, 2006, 09:50:52 PM
Out of curiousity --

Has anyone updated and added to the list of spiders and bots inside this file ?

Would it be possible for you to make it available ?

anyone willing to share?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Sourcecode on August 22, 2006, 06:05:32 PM
Works Perfect with SMF1.1RC3 also.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Gopherhead on August 23, 2006, 10:08:46 AM
Quote from: Sourcecode on August 22, 2006, 06:05:32 PM
Works Perfect with SMF1.1RC3 also.

Thanks that's what I wanted to know!
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: iettafune on August 27, 2006, 08:27:58 AM
in my forum rc3 are not compatible....

why?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: xenovanis on August 27, 2006, 10:16:20 AM
Quote from: iettafune on August 27, 2006, 08:27:58 AM
in my forum rc3 are not compatible....

why?

Is it not working?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: iettafune on August 27, 2006, 02:45:00 PM
when i install it in my rc3 i received this error:

Install Actions
Installations actions for "Googlebot & Spiders Mod":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF. 
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: iettafune on August 28, 2006, 04:24:08 AM
yes, i have download Googlebot_v105_smf1.1RC2.zip in this page http://mods.simplemachines.org/index.php?mod=143

but i received this error...
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: RebelRose on August 30, 2006, 12:33:50 AM
I am getting these error's now and I never got theme before, not sure what is going on, any idea's?


8: Undefined index: who_action
File: /forum/Themes/TP_DilberMC/Who.template.php (eval?)
Line: 81


8: Undefined index: who_time
File: /forum/Themes/TP_DilberMC/Who.template.php (eval?)
Line: 79


8: Undefined index: who_user
File: /forum/Themes/TP_DilberMC/Who.template.php (eval?)
Line: 77

Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: King RoRo on September 06, 2006, 11:47:54 AM
thanks alot bro for ur trick its so powerfull

im working on rc3
but in the file b4 the final one

mobiles visitors was appears with the mobile model like (nokia 6630 for ex.)
now the brand only appears without the model ....

do u have a solution for that plz?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Sarlat on September 10, 2006, 11:32:22 AM
It should be nice to localize the file !

In the Who.template.php
Code (find) Select
<div style="padding: 3px;">', theme_linktree(), '</div>';
$brokendown = array (
'Members' => array(),
'Guests' => array(),
'Spiders' => array(),
);

Code (replace) Select
<div style="padding: 3px;">', theme_linktree(), '</div>';
$brokendown = array (
$txt['users'] => array(),
$txt['guests'] => array(),
$txt['spiders'] => array(),
);


And in /Themes/default/languages/Who.<language>.php
Code (add) Select
$txt['spiders'] = 'Spiders';
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Sarlat on September 10, 2006, 01:41:39 PM
Quote from: Owdy on September 10, 2006, 01:11:59 PM
Have you tested that?  I think that wont work. Look translation instructions in first post ;)
Of course I have tested it !
It's actually working on 1.08 and RC3.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: jeremyyeo on September 30, 2006, 10:44:23 PM
Hey guys, I have the show member legend mod installed. I bet that modded the who.template.php file so im asking how do I add this custom template without deleting the effect of the member legend mod? thanks. ;)
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Vinspire on October 02, 2006, 03:19:13 PM
Quote from: Sourcecode on August 22, 2006, 06:05:32 PM
Works Perfect with SMF1.1RC3 also.

I only need to replace the Who.template.php file in #1 post onto the RC3 file ?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Vinspire on October 02, 2006, 11:42:22 PM
Quote from: Owdy on October 02, 2006, 04:14:03 PM
Yes.

Thanks :)
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: FinsandFur on October 03, 2006, 03:46:15 PM
Owdy,
I seem to be having a little trouble getting the spiders to show up in Who's Online.
I uploaded your file to my themes directory, which by the way is called index.php when it's downloaded, not who.template.php

I removed he old index.php and replaced it with your file.
I see spiders out front in "Users Online", but when I go to "Who's online" it shows them as guests.

Any idea what I may have done wrong?

Much appreciated .  ;D
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: FinsandFur on October 03, 2006, 10:43:51 PM
Guess what ....

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.championtannery.com%2Fsmilies%2Fhammerhead.gif&hash=ab095a02c1fdb99495d53466184329e688156ba6) It worked!

My apologies. I thought when you said upload to themes dir and enjoy, that's literally what you wanted done.
But in reality it needed to be renamed to Who.template, and replace the one in the default dir.

Works beautifully, and I thank ya much (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.championtannery.com%2Fsmilies%2Feyebrowgrin.gif&hash=28acc9142e599b63fa8a047e0cfe823ccb12c7e4) Not only for a great modification but for a speedy reply.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Pedja on October 05, 2006, 01:35:45 AM
I changed a bit this Who.template.php to show USer Agent inforamtion about users. This shows only to admins. It is useful when you are looking for unknown spiders.

I have no option to upload attachment here so I have to post file as code. Just save it under name Who.template.php an replace existing one on forum.




<?php



// The only template in the file.

function template_main()

{

global $context$settings$options$scripturl$txt;

// Display the table header and linktree.

echo '

<div style="padding: 3px;">'
theme_linktree(), '</div>';

$brokendown = array (

'Members' => array(),

'Guests' => array(),

'Spiders' => array(),

);



foreach($context['members'] AS $key => $member)

{

$spider getAgent($member['query']['USER_AGENT'], $context['members'][$key]['name'], $agent$member['id'] == 0);

$context['members'][$key]['agent'] = $agent;

$member['query']['USER_AGENT'] = isset($member['query']['USER_AGENT']) ? $member['query']['USER_AGENT'] : '';

if ( $member['id'] != )

$brokendown['Members'][] = &$context['members'][$key];

else if ( $spider )

$brokendown['Spiders'][] = &$context['members'][$key];

else

$brokendown['Guests'][] = &$context['members'][$key];

}

// echo '<pre>'; print_r($brokendown['Spiders']); echo '</pre>'; return;

foreach($brokendown AS $group => $members)

{

echo '

<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder">

<tr>

<td class="catbg">'
$group'</td>

</tr>

</table>

<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder">

<tr class="titlebg">

<td width="30%"><a href="' 
$scripturl '?action=who;sort=user'$context['sort_direction'] == 'down' && $context['sort_by'] == 'user' ';asc' '''">'$txt['who_user'], ' '$context['sort_by'] == 'user' '<img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" border="0" />' '''</a></td>

<td style="width: 14ex;"><a href="' 
$scripturl '?action=who;sort=time'$context['sort_direction'] == 'down' && $context['sort_by'] == 'time' ';asc' '''">'$txt['who_time'], ' '$context['sort_by'] == 'time' '<img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" border="0" />' '''</a></td>

<td>'
$txt['who_action'], '</td>

</tr>'
;



// This is used to alternate the color of the background.

$alternate true;



// For every member display their name, time and action (and more for admin).

foreach ($members as $member)

{



// $alternate will either be true or false.  If it's true, use "windowbg2" and otherwise use "windowbg".

echo '

<tr class="windowbg'
$alternate '2' '''">

<td>'
;



// Guests don't have information like icq, msn, y!, and aim... and they can't be messaged.

if (!$member['is_guest'])

{

echo '

<div style="float: right; width: 14ex;">

'
$context['can_send_pm'] ? '<a href="' $member['online']['href'] . '" title="' $member['online']['label'] . '">' ''$settings['use_image_buttons'] ? '<img src="' $member['online']['image_href'] . '" alt="' $member['online']['text'] . '" border="0" align="middle" />' $member['online']['text'], $context['can_send_pm'] ? '</a>' '''

'
$member['icq']['link'], ' '$member['msn']['link'], ' '$member['yim']['link'], ' '$member['aim']['link'], '

</div>'
;

}



echo '

<span'
$member['is_hidden'] ? ' style="font-style: italic;"' '''>'$member['is_guest'] ? $member['name'] : '<a href="' $member['href'] . '" title="' $txt[92] . ' ' $member['name'] . '"' . (empty($member['color']) ? '' ' style="color: ' $member['color'] . '"') . '>' $member['name'] . '</a>''</span>';

echo '

</td>

<td nowrap="nowrap">'
$member['time'], '</td>

<td>'
$member['action'], '</td>

</tr>'
;
   if ( !empty($member['ip']) ) {
                echo 
'<tr class="windowbg'$alternate '2' '''"><td colspan="3">';
    
echo '<span class="smalltext">';

//                 if ($context['user']['is_admin']) {


echo '(<b><a href="' $scripturl '?action=trackip;searchip=' $member['ip'] . '" target="_blank" title="' $member['ip'] . '" class="smalltext2">' $member['ip'] . '</a></b>, <acronym title="' $member['query']['USER_AGENT'] . '">' $member['agent'] . '</acronym>)';
//                   }
      
   echo ' User agent: ' $member['query']['USER_AGENT']; 

                echo 
'</span>';
                echo 
'</td></tr>';

                 }

// Switch alternate to whatever it wasn't this time. (true -> false -> true -> false, etc.)

$alternate = !$alternate;

}

echo '</table><br/>';

}

echo '

<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder"><tr><td class="titlebg">

<b>'
$txt[139], ':</b> '$context['page_index'], '

</td></tr></table>'
;



}



function 
getAgent( &$user_agent, &$user_name, &$result$guest )

{

$known_agents = array (

                
//Search Spiders

array (

'agent' => 'WISENutbot',

'spidername' => 'Looksmart spider',

                        
'spider' => true,

),

array (

'agent' => 'MSNBot',

'spidername' => 'MSN spider',

'spider' => true,

),

array (

'agent' => 'W3C_Validator',

'spidername' => 'W3C Validaator',

        'spider' => true,

),

array (

'agent' => 'Googlebot-Image',

'spidername' => 'Google-Image Spider',

'spider' => true,

),

array (

'agent' => 'Googlebot',

'spidername' => 'Google spider',

'spider' => true,

),



array (

'agent' => 'Mediapartners-Google',

'spidername' => 'Google AdSense spider',

'spider' => true,

),



                array (

'agent' => 'Openbot',

'spidername' => 'Openfind spider',

'spider' => true,

                ),

array (

'agent' => 'Yahoo! Slurp',

'spidername' => 'Yahoo spider',

'spider' => true,
),



                array (

'agent' => 'FAST-WebCrawler',

'spider' => true,

                ),

                array (

'agent' => 'Wget',

'spider' => true,

                ),

array (

'agent' => 'Ask Jeeves'

'spider' => true,



),

array (

'agent' => 'Speedy Spider',

'spider' => true,



),

array (

'agent' => 'SurveyBot',

'spider' => true,



),

array (

'agent' => 'IBM_Planetwide',

'spider' => true,



),



                array (

'agent' => 'GigaBot',

'spider' => true,



),

array (

'agent' => 'ia_archiver',

'spider' => true,

),

array (

'agent' => 'FAST-WebCrawler',

'spider' => true,



),

array (

'agent' => 'Inktomi Slurp',

                        
'spider' => true,

),

                

                array (

'agent' => 'appie',

'spidername' => 'Walhello spider',

'spider' => true,

),

                array (

'agent' => 'Pogodak.co.yu',

'spidername' => 'Pogodak',

'spider' => true,

),

                array (

'agent' => 'TridentSpider',

'spider' => true,

),

 //mobiles

 array (
'agent' => 'Nokia'
 ),
 array (
'agent' => 'Samsung',
 ),
 array (
'agent' => 'Ericsson',
 ),
array (
'agent' => 'Siemens',
 ),
  array (
'agent' => 'Motorola',
),
                
//Browsers

 
array (

'agent' => 'Opera',

),

array (

'agent' => 'Firefox',

),

array (

'agent' => 'Firebird',

),

array (

'agent' => 'Safari'

),

           
array (

'agent' => 'Netscape',

),

array (

'agent' => 'MyIE2'

),

array (

'agent' => 'Konqueror'

),

array (

'agent' => 'Galeon'

),

array (

'agent' => 'KMeleon',

),

                array (

'agent' => 'NG/2.0',

),



                array (

'agent' => 'Gecko',

'name' => 'Mozilla',

         
),

                array (

'agent' => 'MSIE',



                ),

);



foreach( 
$known_agents AS $poss )

if (strpos(strtolower($user_agent), strtolower($poss['agent'])) !== false)

{

if ( $guest && isset($poss['spider']) && $poss['spider'] )

$user_name = isset($poss['spidername']) ? $poss['spidername'] : (isset($poss['name']) ? $poss['name'] : $poss['agent']); 

$result = isset($poss['name']) ? $poss['name'] : $poss['agent']; 

return isset($poss['spider']) && $poss['spider'];

}

$result $user_agent;

return false;

}



?>




Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: RebelRose on October 05, 2006, 06:30:39 PM
This version works great thanks.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Pedja on October 06, 2006, 01:10:48 AM
Here are definitions for some more spiders


                array (

'agent' => 'Pogodak.co.yu',

'spidername' => 'Pogodak',

'spider' => true,

),

                array (

'agent' => 'TridentSpider',

'spider' => true,

),


                array (

'agent' => 'ccubee',

'spider' => true,

),

                array (

'agent' => 'Alcohol Search',

'spider' => true,

),

Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: RebelRose on October 06, 2006, 01:17:24 AM
Great thanks, I will add this to the php file and also on my site.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: tones_ie on October 06, 2006, 05:46:22 AM
Hi Pedja...


thanks for the info....  How to add global mods to see this please ?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Pedja on October 06, 2006, 12:34:14 PM
If I understood mod well, it relays on Vew IP privilege. Anyone who is alowed to see user IP's would be able to see all details.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Pedja on October 10, 2006, 04:05:40 PM
One more update. Several more crawlers are added to the list and also template changed to show resolved mnemoninc address together with IP.

Just replace old Who.template.php with this one.




<?php



// The only template in the file.

function template_main()

{

global $context$settings$options$scripturl$txt;

// Display the table header and linktree.

echo '

<div style="padding: 3px;">'
theme_linktree(), '</div>';

$brokendown = array (

'Members' => array(),

'Guests' => array(),

'Spiders' => array(),

);



foreach($context['members'] AS $key => $member)

{

$spider getAgent($member['query']['USER_AGENT'], $context['members'][$key]['name'], $agent$member['id'] == 0);

$context['members'][$key]['agent'] = $agent;

$member['query']['USER_AGENT'] = isset($member['query']['USER_AGENT']) ? $member['query']['USER_AGENT'] : '';

if ( $member['id'] != )

$brokendown['Members'][] = &$context['members'][$key];

else if ( $spider )

$brokendown['Spiders'][] = &$context['members'][$key];

else

$brokendown['Guests'][] = &$context['members'][$key];

}

// echo '<pre>'; print_r($brokendown['Spiders']); echo '</pre>'; return;

foreach($brokendown AS $group => $members)

{

echo '

<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder">

<tr>

<td class="catbg">'
$group'</td>

</tr>

</table>

<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder">

<tr class="titlebg">

<td width="30%"><a href="' 
$scripturl '?action=who;sort=user'$context['sort_direction'] == 'down' && $context['sort_by'] == 'user' ';asc' '''">'$txt['who_user'], ' '$context['sort_by'] == 'user' '<img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" border="0" />' '''</a></td>

<td style="width: 14ex;"><a href="' 
$scripturl '?action=who;sort=time'$context['sort_direction'] == 'down' && $context['sort_by'] == 'time' ';asc' '''">'$txt['who_time'], ' '$context['sort_by'] == 'time' '<img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" border="0" />' '''</a></td>

<td>'
$txt['who_action'], '</td>

</tr>'
;



// This is used to alternate the color of the background.

$alternate true;



// For every member display their name, time and action (and more for admin).

foreach ($members as $member)

{



// $alternate will either be true or false.  If it's true, use "windowbg2" and otherwise use "windowbg".

echo '

<tr class="windowbg'
$alternate '2' '''">

<td>'
;



// Guests don't have information like icq, msn, y!, and aim... and they can't be messaged.

if (!$member['is_guest'])

{

echo '

<div style="float: right; width: 14ex;">

'
$context['can_send_pm'] ? '<a href="' $member['online']['href'] . '" title="' $member['online']['label'] . '">' ''$settings['use_image_buttons'] ? '<img src="' $member['online']['image_href'] . '" alt="' $member['online']['text'] . '" border="0" align="middle" />' $member['online']['text'], $context['can_send_pm'] ? '</a>' '''

'
$member['icq']['link'], ' '$member['msn']['link'], ' '$member['yim']['link'], ' '$member['aim']['link'], '

</div>'
;

}



echo '

<span'
$member['is_hidden'] ? ' style="font-style: italic;"' '''>'$member['is_guest'] ? $member['name'] : '<a href="' $member['href'] . '" title="' $txt[92] . ' ' $member['name'] . '"' . (empty($member['color']) ? '' ' style="color: ' $member['color'] . '"') . '>' $member['name'] . '</a>''</span>';

echo '

</td>

<td nowrap="nowrap">'
$member['time'], '</td>

<td>'
$member['action'], '</td>

</tr>'
;
   if ( !empty($member['ip']) ) {
                echo 
'<tr class="windowbg'$alternate '2' '''"><td colspan="3">';
    
echo '<span class="smalltext">';
echo '<b><a href="' $scripturl '?action=trackip;searchip=' $member['ip'] . '" target="_blank" title="' $member['ip'] . '" class="smalltext2">' $member['ip'] . '</a></b> (' host_from_ip($member['ip'])  . '), <acronym title="' $member['query']['USER_AGENT'] . '">' $member['agent'] . '</acronym>';
 
echo '<br /> User agent: ' $member['query']['USER_AGENT']; 

                echo 
'</span>';
                echo 
'</td></tr>';

                 }

// Switch alternate to whatever it wasn't this time. (true -> false -> true -> false, etc.)

$alternate = !$alternate;

}

echo '</table><br/>';

}

echo '

<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder"><tr><td class="titlebg">

<b>'
$txt[139], ':</b> '$context['page_index'], '

</td></tr></table>'
;



}



function 
getAgent( &$user_agent, &$user_name, &$result$guest )

{

$known_agents = array (

                
//Search Spiders

array (

'agent' => 'WISENutbot',

'spidername' => 'Looksmart spider',

                        
'spider' => true,

),

array (

'agent' => 'MSNBot',

'spidername' => 'MSN spider',

'spider' => true,

),

array (

'agent' => 'W3C_Validator',

'spidername' => 'W3C Validaator',

        'spider' => true,

),

array (

'agent' => 'Googlebot-Image',

'spidername' => 'Google-Image Spider',

'spider' => true,

),

array (

'agent' => 'Googlebot',

'spidername' => 'Google spider',

'spider' => true,

),



array (

'agent' => 'Mediapartners-Google',

'spidername' => 'Google AdSense spider',

'spider' => true,

),



                array (

'agent' => 'Openbot',

'spidername' => 'Openfind spider',

'spider' => true,

                ),

array (

'agent' => 'Yahoo! Slurp',

'spidername' => 'Yahoo spider',

'spider' => true,
),



                array (

'agent' => 'FAST-WebCrawler',

'spider' => true,

                ),

                array (

'agent' => 'Wget',

'spider' => true,

                ),

array (

'agent' => 'Ask Jeeves'

'spider' => true,



),

array (

'agent' => 'Speedy Spider',

'spider' => true,



),

array (

'agent' => 'SurveyBot',

'spider' => true,



),

array (

'agent' => 'IBM_Planetwide',

'spider' => true,



),



                array (

'agent' => 'GigaBot',

'spider' => true,



),

array (

'agent' => 'ia_archiver',

'spider' => true,

),

array (

'agent' => 'FAST-WebCrawler',

'spider' => true,



),

array (

'agent' => 'Inktomi Slurp',

                        
'spider' => true,

),

                

                array (

'agent' => 'appie',

'spidername' => 'Walhello spider',

'spider' => true,

),

                array (

'agent' => 'Pogodak.co.yu',

'spidername' => 'Pogodak',

'spider' => true,

),

                array (

'agent' => 'TridentSpider',

'spider' => true,

),


                array (

'agent' => 'ccubee',

'spider' => true,

),

                array (

'agent' => 'Alcohol Search',

'spider' => true,

),

                array (

'agent' => 'Google Wireless Transcoder',

'spider' => true,

),

                array (

'agent' => 'ichiro',
'spidername' => 'Goo Japan / Inktomi robot',
'spider' => true,

),

                array (

'agent' => 'NaverBot',

'spider' => true,

),

 //mobiles

 array (
'agent' => 'Nokia'
 ),
 array (
'agent' => 'Samsung',
 ),
 array (
'agent' => 'Ericsson',
 ),
array (
'agent' => 'Siemens',
 ),
  array (
'agent' => 'Motorola',
),
                
//Browsers

 
array (

'agent' => 'Opera',

),

array (

'agent' => 'Firefox',

),

array (

'agent' => 'Firebird',

),

array (

'agent' => 'Safari'

),

           
array (

'agent' => 'Netscape',

),

array (

'agent' => 'MyIE2'

),

array (

'agent' => 'Konqueror'

),

array (

'agent' => 'Galeon'

),

array (

'agent' => 'KMeleon',

),

                array (

'agent' => 'NG/2.0',

),



                array (

'agent' => 'Gecko',

'name' => 'Mozilla',

         
),

                array (

'agent' => 'MSIE',



                ),

);



foreach( 
$known_agents AS $poss )

if (strpos(strtolower($user_agent), strtolower($poss['agent'])) !== false)

{

if ( $guest && isset($poss['spider']) && $poss['spider'] )

$user_name = isset($poss['spidername']) ? $poss['spidername'] : (isset($poss['name']) ? $poss['name'] : $poss['agent']); 

$result = isset($poss['name']) ? $poss['name'] : $poss['agent']; 

return isset($poss['spider']) && $poss['spider'];

}

$result $user_agent;

return false;

}



?>


Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: RebelRose on October 10, 2006, 04:55:24 PM
Great thanks, I updated the template and have it posted now.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Pedja on October 11, 2006, 04:43:22 AM
Two more crawlers



                array (

'agent' => 'MJ12bot',
'spidername' => 'Majestic12',
'spider' => true,

),

                array (

'agent' => 'IsMySiteUp',
'spider' => true,

),



Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Pedja on October 12, 2006, 03:22:27 PM
Well, here is one list: http://www.psychotekk.de/appendix/appendix7.shtm

It would be interesting to have users comeing through proxies or anonymizers detected separately.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Skipdawg on October 12, 2006, 03:40:18 PM
Wouldn't it be cool if you could make a self updating bots/spiders list. To check for new ones or old ones no longer used. Probably could be done but would likely be a pain to code up. But sure would be cool. Maybe some day.  ;)
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Pedja on October 13, 2006, 01:54:35 PM
Quote from: Skipdawg on October 12, 2006, 03:40:18 PM
Wouldn't it be cool if you could make a self updating bots/spiders list. To check for new ones or old ones no longer used. Probably could be done but would likely be a pain to code up. But sure would be cool. Maybe some day.  ;)

It is half day job to create site. Problem is that such list cannot be selfupdating, someone has to see what are spiders signatures and enter them. But then anyone else could just download list. That should not be a problem.

But I guess there is no such need onthis. You just need to recognize spiders that come often to your site to distinguish traffic they make. And those are several mayor spiders. Less frequent spiders are not that important.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: ramystyle on November 12, 2006, 02:20:11 AM
Hi and thanks for the mod !

I installed it on RC3 and installation was successfull !
I have set permissions for guests, members and admin to view bots and I have checked all boxes in the setup page (in features and options --> Googlebot & Spiders )

Now my problem is that I never see any bots on my site (Although yahoo is slurping my page every 10 mins or so..) So I don't even know if the mod is working correctly on my site or not :S

Any ideas why spiders names are not showing ?

(www.multimontreal.com)
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: TheGamer on November 12, 2006, 03:23:09 AM
This is the coolest tip ever. Thanks Owdy. :D
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: DaBoROE09 on November 12, 2006, 09:32:34 PM
thanks i love this file.  it works great.  i owe you big time dude.

mike
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: ramystyle on November 13, 2006, 11:11:51 PM
Anyone ?

I still don't have any spiders showing (although yahoo is slurping my page every 10 mins) !

I tried uninstalling the mod and reinstalling it ! It installed ok !! But can't see anthing :(
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Kindred on November 14, 2006, 12:10:08 AM
Why do people think that trying to install/uninstall/reinstall will have a different effect the second (or third or fourth) time? Computers do not leanr by repetition, they do the same thing, the same way, every time.

maybe you didn't replace the who.template.php in your actual theme directory?

Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: RoarinRow on November 16, 2006, 01:04:01 AM
Anyone have an updated who.template.php file?  Mine is dated 9/10/06 9.44kb in size.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Kindred on November 16, 2006, 02:36:42 AM
why do you need an updated one?   Mine is dated back in July and it works just fine...
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: ramystyle on November 21, 2006, 01:42:52 AM
Good point.. I haven't replaced.. I just downloaded the file from this thread and replaced it..
I'll see if it works now !
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: RoarinRow on November 21, 2006, 10:27:43 AM
Quote from: Kindred on November 16, 2006, 02:36:42 AM
why do you need an updated one?   Mine is dated back in July and it works just fine...

Mine works fine too, just seeing if anyone has a new version with more list of spiders added to the file.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: ramystyle on November 21, 2006, 04:40:50 PM
So strange.. I replaced the file with the one on this thread.. And still nothing..
No clue why... I guess i'm jsut unlucky !
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: ramystyle on November 22, 2006, 12:57:06 AM
I have replaced my Who.template.php which is located at : Themes/default/  (since I'm using default theme)..

I even tried replacing the file with the code Pedja provided on Page 4 of this thread... N o t h i n g :(

All my files are there..   :-\

Also if I go to  index.php?action=who I get:
An Error Has Occurred!
You cannot access Who's Online right now because it is disabled.


And all my Permissions are set to "View Googlebot & Spiders" !

Could it be conflicting with another bot ? :(
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: magica on November 23, 2006, 07:03:07 PM
Perfect
;)
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: ramystyle on November 23, 2006, 11:00:06 PM
Ahhhhhhhhhhhhhhhh

It works :D

Thanks :D
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Niteblade on December 03, 2006, 10:16:54 PM
Quick question ... is this going to work for v1.1 final ?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: MoreBloodWine on December 04, 2006, 07:09:35 PM
Quote from: nite0859 on December 03, 2006, 10:16:54 PM
Quick question ... is this going to work for v1.1 final ?
It should bec I dont believe the who.template.php file changed at al from 1.1 RC3 to 1.1 final... but I could be wrong...
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Witte on December 05, 2006, 11:55:51 AM
Yep, mines working fine on 1,1 final with a custom theme...very little modification of the themes files, and no errors whatsoever...great job!!!
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: ShopHRM on December 07, 2006, 01:34:23 PM
forgive my stupid question, but what does this do that the googlebot mod doesnt? with that mod i see who is a spider/bot seperate from the users and guests. Isnt this the same thing?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: ShopHRM on December 07, 2006, 03:41:03 PM
ooohhhhhhhhhhhhhhhhh ok, thanks
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Niteblade on December 09, 2006, 03:46:57 PM
Quote from: Pedja on October 10, 2006, 04:05:40 PM
One more update. Several more crawlers are added to the list and also template changed to show resolved mnemoninc address together with IP.

Just replace old Who.template.php with this one.




<?php



// The only template in the file.

function template_main()

{

global $context$settings$options$scripturl$txt;

// Display the table header and linktree.

echo '

<div style="padding: 3px;">'
theme_linktree(), '</div>';

$brokendown = array (

'Members' => array(),

'Guests' => array(),

'Spiders' => array(),

);



foreach($context['members'] AS $key => $member)

{

$spider getAgent($member['query']['USER_AGENT'], $context['members'][$key]['name'], $agent$member['id'] == 0);

$context['members'][$key]['agent'] = $agent;

$member['query']['USER_AGENT'] = isset($member['query']['USER_AGENT']) ? $member['query']['USER_AGENT'] : '';

if ( $member['id'] != )

$brokendown['Members'][] = &$context['members'][$key];

else if ( $spider )

$brokendown['Spiders'][] = &$context['members'][$key];

else

$brokendown['Guests'][] = &$context['members'][$key];

}

// echo '<pre>'; print_r($brokendown['Spiders']); echo '</pre>'; return;

foreach($brokendown AS $group => $members)

{

echo '

<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder">

<tr>

<td class="catbg">'
$group'</td>

</tr>

</table>

<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder">

<tr class="titlebg">

<td width="30%"><a href="' 
$scripturl '?action=who;sort=user'$context['sort_direction'] == 'down' && $context['sort_by'] == 'user' ';asc' '''">'$txt['who_user'], ' '$context['sort_by'] == 'user' '<img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" border="0" />' '''</a></td>

<td style="width: 14ex;"><a href="' 
$scripturl '?action=who;sort=time'$context['sort_direction'] == 'down' && $context['sort_by'] == 'time' ';asc' '''">'$txt['who_time'], ' '$context['sort_by'] == 'time' '<img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" border="0" />' '''</a></td>

<td>'
$txt['who_action'], '</td>

</tr>'
;



// This is used to alternate the color of the background.

$alternate true;



// For every member display their name, time and action (and more for admin).

foreach ($members as $member)

{



// $alternate will either be true or false.  If it's true, use "windowbg2" and otherwise use "windowbg".

echo '

<tr class="windowbg'
$alternate '2' '''">

<td>'
;



// Guests don't have information like icq, msn, y!, and aim... and they can't be messaged.

if (!$member['is_guest'])

{

echo '

<div style="float: right; width: 14ex;">

'
$context['can_send_pm'] ? '<a href="' $member['online']['href'] . '" title="' $member['online']['label'] . '">' ''$settings['use_image_buttons'] ? '<img src="' $member['online']['image_href'] . '" alt="' $member['online']['text'] . '" border="0" align="middle" />' $member['online']['text'], $context['can_send_pm'] ? '</a>' '''

'
$member['icq']['link'], ' '$member['msn']['link'], ' '$member['yim']['link'], ' '$member['aim']['link'], '

</div>'
;

}



echo '

<span'
$member['is_hidden'] ? ' style="font-style: italic;"' '''>'$member['is_guest'] ? $member['name'] : '<a href="' $member['href'] . '" title="' $txt[92] . ' ' $member['name'] . '"' . (empty($member['color']) ? '' ' style="color: ' $member['color'] . '"') . '>' $member['name'] . '</a>''</span>';

echo '

</td>

<td nowrap="nowrap">'
$member['time'], '</td>

<td>'
$member['action'], '</td>

</tr>'
;
   if ( !empty($member['ip']) ) {
                echo 
'<tr class="windowbg'$alternate '2' '''"><td colspan="3">';
    
echo '<span class="smalltext">';
echo '<b><a href="' $scripturl '?action=trackip;searchip=' $member['ip'] . '" target="_blank" title="' $member['ip'] . '" class="smalltext2">' $member['ip'] . '</a></b> (' host_from_ip($member['ip'])  . '), <acronym title="' $member['query']['USER_AGENT'] . '">' $member['agent'] . '</acronym>';
 
echo '<br /> User agent: ' $member['query']['USER_AGENT']; 

                echo 
'</span>';
                echo 
'</td></tr>';

                 }

// Switch alternate to whatever it wasn't this time. (true -> false -> true -> false, etc.)

$alternate = !$alternate;

}

echo '</table><br/>';

}

echo '

<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder"><tr><td class="titlebg">

<b>'
$txt[139], ':</b> '$context['page_index'], '

</td></tr></table>'
;



}



function 
getAgent( &$user_agent, &$user_name, &$result$guest )

{

$known_agents = array (

                
//Search Spiders

array (

'agent' => 'WISENutbot',

'spidername' => 'Looksmart spider',

                        
'spider' => true,

),

array (

'agent' => 'MSNBot',

'spidername' => 'MSN spider',

'spider' => true,

),

array (

'agent' => 'W3C_Validator',

'spidername' => 'W3C Validaator',

        'spider' => true,

),

array (

'agent' => 'Googlebot-Image',

'spidername' => 'Google-Image Spider',

'spider' => true,

),

array (

'agent' => 'Googlebot',

'spidername' => 'Google spider',

'spider' => true,

),



array (

'agent' => 'Mediapartners-Google',

'spidername' => 'Google AdSense spider',

'spider' => true,

),



                array (

'agent' => 'Openbot',

'spidername' => 'Openfind spider',

'spider' => true,

                ),

array (

'agent' => 'Yahoo! Slurp',

'spidername' => 'Yahoo spider',

'spider' => true,
),



                array (

'agent' => 'FAST-WebCrawler',

'spider' => true,

                ),

                array (

'agent' => 'Wget',

'spider' => true,

                ),

array (

'agent' => 'Ask Jeeves'

'spider' => true,



),

array (

'agent' => 'Speedy Spider',

'spider' => true,



),

array (

'agent' => 'SurveyBot',

'spider' => true,



),

array (

'agent' => 'IBM_Planetwide',

'spider' => true,



),



                array (

'agent' => 'GigaBot',

'spider' => true,



),

array (

'agent' => 'ia_archiver',

'spider' => true,

),

array (

'agent' => 'FAST-WebCrawler',

'spider' => true,



),

array (

'agent' => 'Inktomi Slurp',

                        
'spider' => true,

),

                

                array (

'agent' => 'appie',

'spidername' => 'Walhello spider',

'spider' => true,

),

                array (

'agent' => 'Pogodak.co.yu',

'spidername' => 'Pogodak',

'spider' => true,

),

                array (

'agent' => 'TridentSpider',

'spider' => true,

),


                array (

'agent' => 'ccubee',

'spider' => true,

),

                array (

'agent' => 'Alcohol Search',

'spider' => true,

),

                array (

'agent' => 'Google Wireless Transcoder',

'spider' => true,

),

                array (

'agent' => 'ichiro',
'spidername' => 'Goo Japan / Inktomi robot',
'spider' => true,

),

                array (

'agent' => 'NaverBot',

'spider' => true,

),

 //mobiles

 array (
'agent' => 'Nokia'
 ),
 array (
'agent' => 'Samsung',
 ),
 array (
'agent' => 'Ericsson',
 ),
array (
'agent' => 'Siemens',
 ),
  array (
'agent' => 'Motorola',
),
                
//Browsers

 
array (

'agent' => 'Opera',

),

array (

'agent' => 'Firefox',

),

array (

'agent' => 'Firebird',

),

array (

'agent' => 'Safari'

),

           
array (

'agent' => 'Netscape',

),

array (

'agent' => 'MyIE2'

),

array (

'agent' => 'Konqueror'

),

array (

'agent' => 'Galeon'

),

array (

'agent' => 'KMeleon',

),

                array (

'agent' => 'NG/2.0',

),



                array (

'agent' => 'Gecko',

'name' => 'Mozilla',

         
),

                array (

'agent' => 'MSIE',



                ),

);



foreach( 
$known_agents AS $poss )

if (strpos(strtolower($user_agent), strtolower($poss['agent'])) !== false)

{

if ( $guest && isset($poss['spider']) && $poss['spider'] )

$user_name = isset($poss['spidername']) ? $poss['spidername'] : (isset($poss['name']) ? $poss['name'] : $poss['agent']); 

$result = isset($poss['name']) ? $poss['name'] : $poss['agent']; 

return isset($poss['spider']) && $poss['spider'];

}

$result $user_agent;

return false;

}



?>




Wow. This is cool.

/me returns to scouring the forum about an old thread about adding Globalopper's flags to the who's online list ..
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: GoHuFlame on December 12, 2006, 05:39:00 PM
 :o is very nice, and work with smf 1.1 final  :D and integration con mkportal  :D
this is screen the who is, with count the administration  :D

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg296.imageshack.us%2Fimg296%2F4181%2Fspiderrn4.jpg&hash=22853e5db5541cb1475c052063f3aae23710b719)
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Niteblade on December 12, 2006, 05:57:04 PM
Ok, does anyone know how to integrate the Country Flags with the Who's Online list ? You know, when you see who's online, you'll see all that information along with the Country of the user online .. I can't find it! And I've been looking.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: SusanTN on December 14, 2006, 12:44:08 AM
I would like for the who list to give priority to Members first then guests then spiders so

show all members first, then show guests, and then spiders

For example I have
223 Spiders, 17 Guests, 7 Users (0 Buddies)  but on the Who's Online it shows

2 members on the first page, 2 Guests, and 56 spiders.

I want it to show as many members as possible if any room then show guests and if any room then show spiders.

Ideas?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: nitins60 on December 17, 2006, 11:38:09 AM
I just want to insert icon of Browser(user agent) of user n online list? Anyone know how to do it? Thankful, if you provid images :P 
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: mrselnombre on December 30, 2006, 06:24:26 AM
Quote from: bl968 on December 14, 2006, 12:44:08 AM
I would like for the who list to give priority to Members first then guests then spiders so

show all members first, then show guests, and then spiders

For example I have
223 Spiders, 17 Guests, 7 Users (0 Buddies)  but on the Who's Online it shows

2 members on the first page, 2 Guests, and 56 spiders.

I want it to show as many members as possible if any room then show guests and if any room then show spiders.

Ideas?
i want this too.. members should take priority on the first page
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: SusanTN on December 30, 2006, 04:28:21 PM
Quote from: Owdy on December 30, 2006, 08:38:25 AM
This topic is about custom who.template.php. So in here, we are talking about this feature: http://www.simplemachines.org/community/index.php?action=who . If you install my file from first post (http://www.simplemachines.org/community/index.php?topic=19243.msg156339#msg156339), you will get members first, then guests, and then spiders in own colums.

I know and that's exactly what I am talking about.  I have the custom Who.template.php and my issue was directly regarding that. I will reinstall your template and double check but I am sure my issue will still exist. Here's the issue again. It is confirmed.

I have 178 users online, it breaks down to roughly 10 members, 24 Guests and 144 Spiders

I have Members per page in member list set to 50 (Applies to who's online as well). On the online users list using your Who.template.php file I show

6 Members (missing 4), 12 guests (missing 12) and the 32 spiders. On page 1.

What do I need to do so that the who function shows all online members first, then you can divide the rest of the page up with guests and spiders for all I care. I am primarily interested in what my members are doing anyway....

Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Gobo on January 01, 2007, 04:09:00 PM
excellent!
thanks for sharing this
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: mark7144 on January 01, 2007, 07:25:42 PM
I simply want to separate Guests from Members ignoring the whether they are spiders or not. However doing the below doesn't keep all the member activities at the top table, in the next page it has more members and guests. Is there a way to have it so ALL the members are first shown THEN the guests?

Delete:
'Spiders' => array(),

Delete:
  //Search Spiders

array (

'agent' => 'WISENutbot',

'spidername' => 'Looksmart spider',

                        'spider' => true,

),

array (

'agent' => 'MSNBot',

'spidername' => 'MSN spider',

'spider' => true,

),

array (

'agent' => 'W3C_Validator',

'spidername' => 'W3C Validaator',

        'spider' => true,

),

array (

'agent' => 'Googlebot-Image',

'spidername' => 'Google-Image Spider',

'spider' => true,

),

array (

'agent' => 'Googlebot',

'spidername' => 'Google spider',

'spider' => true,

),



array (

'agent' => 'Mediapartners-Google',

'spidername' => 'Google AdSense spider',

'spider' => true,

),



                array (

'agent' => 'Openbot',

'spidername' => 'Openfind spider',

'spider' => true,

                ),

array (

'agent' => 'Yahoo! Slurp',

'spidername' => 'Yahoo spider',

'spider' => true,
),



                array (

'agent' => 'FAST-WebCrawler',

'spider' => true,

                ),

                array (

'agent' => 'Wget',

'spider' => true,

                ),

array (

'agent' => 'Ask Jeeves',

'spider' => true,



),

array (

'agent' => 'Speedy Spider',

'spider' => true,



),

array (

'agent' => 'SurveyBot',

'spider' => true,



),

array (

'agent' => 'IBM_Planetwide',

'spider' => true,



),



                array (

'agent' => 'GigaBot',

'spider' => true,



),

array (

'agent' => 'ia_archiver',

'spider' => true,

),

array (

'agent' => 'FAST-WebCrawler',

'spider' => true,



),

array (

'agent' => 'Inktomi Slurp',

                        'spider' => true,

),

               

                array (

'agent' => 'appie',

'spidername' => 'Walhello spider',

'spider' => true,

),
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: mark7144 on January 02, 2007, 11:29:15 AM
Attached is a screenshot of page1 and page2 of Who's Online... it shows that on page 2 members are still listed yet I want all the members to first be displayed on page 1, then the rest be guests.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.murraysworld.com%2Fmark%2Fpage1.PNG&hash=be7b495fb3011fe6f449123fa0ace20d4a6f91d2) (http://www.murraysworld.com/mark/page1.PNG)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.murraysworld.com%2Fmark%2Fpage2.PNG&hash=bc79f85479e73b8edc9ce28e7dad038b0fc0779a) (http://www.murraysworld.com/mark/page2.PNG)
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Pratt on January 18, 2007, 02:23:02 PM
Quote from: bl968 on December 30, 2006, 04:28:21 PM
What do I need to do so that the who function shows all online members first, then you can divide the rest of the page up with guests and spiders for all I care.
Thats exactly what im looking for, searched the entire topic, but didnt got an answer, hope someone can help us out...  ;)
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: mark7144 on January 18, 2007, 03:49:36 PM
Quote from: Pratt on January 18, 2007, 02:23:02 PM
Quote from: bl968 on December 30, 2006, 04:28:21 PM
What do I need to do so that the who function shows all online members first, then you can divide the rest of the page up with guests and spiders for all I care.
Thats exactly what im looking for, searched the entire topic, but didnt got an answer, hope someone can help us out...  ;)
Exactly what I want as well... please someone figure this out.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: teamvtec on January 26, 2007, 07:44:48 PM
I have 2 pages full with this error >:( :

2: Division by zero
File: /home/teamvtec/domains/sirfanaticsholland.com/public_html/forum/Themes/default/languages/Who.english.php (eval?)
Line: 302

Can't seem to find anything wrong on that line, help please
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: nitins60 on January 29, 2007, 06:20:49 AM
The attachment in first post Who.template.php is giving template parser error!
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: nitins60 on January 29, 2007, 06:32:23 AM
problem solved
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: kat on January 29, 2007, 08:16:23 AM
Care to share how it was solved?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: teamvtec on January 30, 2007, 05:02:22 AM
Quote from: teamvtec on January 26, 2007, 07:44:48 PM
I have 2 pages full with this error >:( :

2: Division by zero
File: /home/teamvtec/domains/sirfanaticsholland.com/public_html/forum/Themes/default/languages/Who.english.php (eval?)
Line: 302

Can't seem to find anything wrong on that line, help please

Still having this problem
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: navjotjsingh on January 31, 2007, 06:06:52 AM
Don't use the code from first post. Use this code: http://www.simplemachines.org/community/index.php?topic=19243.msg762733#msg762733

It works wonderfully with GoogleBot Spiders Mod 2.0.2, TP 0.97.1 and SMF 1.1.1
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: teamvtec on January 31, 2007, 07:02:57 PM
Thanks for your replies, the post of navjotjsingh did the trick, guess there was an error somewhere... anyways it's gone now ;D

@ Owdy I couldn't replace the Who.english.php with a fresh one from the orginal smf package because i have more mods installed that affect this Who page.
Thanks anyway ;)
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: mark7144 on February 02, 2007, 08:25:09 AM
Still no clever clogs figured out how to display all the members first then the guest after?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: کíŋ on February 03, 2007, 10:47:28 PM
I'm trying to include a query under the user agent info (added by Pedja) that returns Members from IP (range) results all in the one Who.template.php

Useful to see at a glance if any of the ip's have multiple ID's and may marry up some guest IP's in the process.

The query for Members from IP (range) is drawn from the Profile.php in the sources directory and so far I haven't found any SSI statements as an alternative.

Anyone willing to give this one a hack?

Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: frost4225 on February 15, 2007, 12:43:24 PM
sorry i did the install and everything went fine and it added a new who.template to my themes folder but am i suppose to use the who.template because when i do there is no pictures or anything like it doesn't know where to look.

i am attaching an image

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.computerangelz.com%2Fimages%2Fwho2.bmp&hash=e306e488b501aa33dd70dd45b7ecad24777a40b3)
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: frost4225 on February 15, 2007, 05:56:47 PM
thank you owdy sorry for being so dumb.

i got it
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Zenigata on February 21, 2007, 09:15:54 PM
Hi,
how can I display the version of the browser? For example IE 6.0, Ie 7.0, Firefox 2.0, thanks.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Pedja on February 22, 2007, 07:47:56 AM
Quote from: کíŋ on February 03, 2007, 10:47:28 PM
I'm trying to include a query under the user agent info (added by Pedja) that returns Members from IP (range) results all in the one Who.template.php

I've done this. As I have no option to upload atachmets I am posting source into message. It will ad new column to Whois which wil show IP address and allow list to be sorted by that column. Records are sorted within Memebrs, Guests and Spiders groups separately.

These are updated versions of altered scripts I already posted. It may contain some more spiders too.

Who.php - goes to Sources

<?php
/******************************************************************************
* Who.php                                                                     *
*******************************************************************************
* SMF: Simple Machines Forum                                                  *
* Open-Source Project Inspired by Zef Hemel ([email protected])                *
* =========================================================================== *
* Software Version:           SMF 1.1 RC3                                     *
* Software by:                Simple Machines (http://www.simplemachines.org) *
* Copyright 2001-2006 by:     Lewis Media (http://www.lewismedia.com)         *
* Support, News, Updates at:  http://www.simplemachines.org                   *
*******************************************************************************
* This program is free software; you may redistribute it and/or modify it     *
* under the terms of the provided license as published by Lewis Media.        *
*                                                                             *
* This program is distributed in the hope that it is and will be useful,      *
* but WITHOUT ANY WARRANTIES; without even any implied warranty of            *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                        *
*                                                                             *
* See the "license.txt" file for details of the Simple Machines license.      *
* The latest version can always be found at http://www.simplemachines.org.    *
******************************************************************************/
if (!defined('SMF'))
die('Hacking attempt...');

/* This file is mainly concerned, or that is to say only concerned, with the
Who's Online list.  It contains only the following functions:

void Who()
- prepares the who's online data for the Who template.
- uses the Who template (main sub template.) and language file.
- requires the who_view permission.
- is enabled with the who_enabled setting.
- is accessed via ?action=who.

array determineActions(array urls)
- determine the actions of the members passed in urls.
- urls should be a single url (string) or an array of arrays, each
  inner array being (serialized request data, ID_MEMBER).
    - returns an array of descriptions if you passed an array, otherwise
  the string describing their current location.

Adding actions to the Who's Online list:
---------------------------------------------------------------------------
Adding actions to this list is actually relatively easy....
 - for actions anyone should be able to see, just add a string named
   whoall_ACTION.  (where ACTION is the action used in index.php.)
 - for actions that have a subaction which should be represented
   differently, use whoall_ACTION_SUBACTION.
 - for actions that include a topic, and should be restricted, use
   whotopic_ACTION.
 - for actions that use a message, by msg or quote, use whopost_ACTION.
 - for administrator-only actions, use whoadmin_ACTION.
 - for actions that should be viewable only with certain permissions,
   use whoallow_ACTION and add a list of possible permissions to the
   $allowedActions array, using ACTION as the key.
*/

// Who's online, and what are they doing?
function Who()
{
global $db_prefix$context$scripturl$user_info$txt$modSettings$ID_MEMBER$memberContext;

// Permissions, permissions, permissions.
isAllowedTo('who_view');

// You can't do anything if this is off.
if (empty($modSettings['who_enabled']))
fatal_lang_error('who_off'false);

// Load the 'Who' template.
loadTemplate('Who');

// Sort out... the column sorting.
$sort_methods = array(
'user' => 'mem.realName',
'time' => 'lo.logTime',
'ip' => 'lo.ip'
);

// By default order by last time online.
if (!isset($_REQUEST['sort']) || !isset($sort_methods[$_REQUEST['sort']]))
{
$context['sort_by'] = 'time';
$_REQUEST['sort'] = 'lo.logTime';
}
// Otherwise default to ascending.
else
{
$context['sort_by'] = $_REQUEST['sort'];
$_REQUEST['sort'] = $sort_methods[$_REQUEST['sort']];
}

$context['sort_direction'] = isset($_REQUEST['asc']) ? 'up' 'down';

// Get the total amount of members online.
$request db_query("
SELECT COUNT(*)
FROM 
{$db_prefix}log_online AS lo
LEFT JOIN 
{$db_prefix}members AS mem ON (lo.ID_MEMBER = mem.ID_MEMBER)" . (!allowedTo('moderate_forum') ? "
WHERE IFNULL(mem.showOnline, 1) = 1" 
''), __FILE____LINE__);
list ($totalMembers) = mysql_fetch_row($request);
mysql_free_result($request);

// Prepare some page index variables.
$context['page_index'] = constructPageIndex($scripturl '?action=who;sort=' $context['sort_by'] . (isset($_REQUEST['asc']) ? ';asc' ''), $_REQUEST['start'], $totalMembers$modSettings['defaultMaxMembers']);
$context['start'] = $_REQUEST['start'];

// Look for people online, provided they don't mind if you see they are.
$request db_query("
SELECT
(UNIX_TIMESTAMP(lo.logTime) - UNIX_TIMESTAMP() + " 
time() . ") AS logTime,
lo.ID_MEMBER, lo.url, INET_NTOA(lo.ip) AS ip, mem.realName, lo.session,
mg.onlineColor, IFNULL(mem.showOnline, 1) AS showOnline
FROM 
{$db_prefix}log_online AS lo
LEFT JOIN 
{$db_prefix}members AS mem ON (lo.ID_MEMBER = mem.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))" . (!allowedTo('moderate_forum') ? "
WHERE IFNULL(mem.showOnline, 1) = 1" 
'') . "
ORDER BY 
$_REQUEST[sort] " . (isset($_REQUEST['asc']) ? 'ASC' 'DESC') . "
LIMIT 
$context[start]$modSettings[defaultMaxMembers]"__FILE____LINE__);
$context['members'] = array();
$member_ids = array();
$url_data = array();
while ($row mysql_fetch_assoc($request))
{
$actions = @unserialize($row['url']);
if ($actions === false)
continue;

// Send the information to the template.
$context['members'][$row['session']] = array(
'id' => $row['ID_MEMBER'],
'ip' => allowedTo('moderate_forum') ? $row['ip'] : '',
// It is *going* to be today or yesterday, so why keep that information in there?
'time' => strtr(timeformat($row['logTime']), array($txt['smf10'] => ''$txt['smf10b'] => '')),
'timestamp' => forum_time(true$row['logTime']),
'query' => $actions,
'is_hidden' => $row['showOnline'] == 0,
'color' => empty($row['onlineColor']) ? '' $row['onlineColor']
);

$url_data[$row['session']] = array($row['url'], $row['ID_MEMBER']);
$member_ids[] = $row['ID_MEMBER'];
}
mysql_free_result($request);

// Load the user data for these members.
loadMemberData($member_ids);

// Load up the guest user.
$memberContext[0] = array(
'id' => 0,
'name' => $txt[28],
'group' => $txt[28],
'href' => '',
'link' => $txt[28],
'email' => $txt[28],
'is_guest' => true
);

$url_data determineActions($url_data);

// Setup the linktree and page title (do it down here because the language files are now loaded..)
$context['page_title'] = $txt['who_title'];
$context['linktree'][] = array(
'url' => $scripturl '?action=who',
'name' => $txt['who_title']
);

// Put it in the context variables.
foreach ($context['members'] as $i => $member)
{
if ($member['id'] != 0)
$member['id'] = loadMemberContext($member['id']) ? $member['id'] : 0;

// Keep the IP that came from the database.
$memberContext[$member['id']]['ip'] = $member['ip'];
$context['members'][$i]['action'] = isset($url_data[$i]) ? $url_data[$i] : $txt['who_hidden'];
$context['members'][$i] += $memberContext[$member['id']];
}

// Some people can't send personal messages...
$context['can_send_pm'] = allowedTo('pm_send');
}

function 
determineActions($urls)
{
global $txt$db_prefix$user_info$ID_MEMBER$modSettings;

if (!allowedTo('who_view'))
return array();
loadLanguage('Who');

// Actions that require a specific permission level.
$allowedActions = array(
'admin' => array('moderate_forum''manage_membergroups''manage_bans''admin_forum''manage_permissions''send_mail''manage_attachments''manage_smileys''manage_boards''edit_news'),
'ban' => array('manage_bans'),
'boardrecount' => array('admin_forum'),
'calendar' => array('calendar_view'),
'editnews' => array('edit_news'),
'mailing' => array('send_mail'),
'maintain' => array('admin_forum'),
'manageattachments' => array('manage_attachments'),
'manageboards' => array('manage_boards'),
'mlist' => array('view_mlist'),
'optimizetables' => array('admin_forum'),
'repairboards' => array('admin_forum'),
'search' => array('search_posts'),
'search2' => array('search_posts'),
'setcensor' => array('moderate_forum'),
'setreserve' => array('moderate_forum'),
'stats' => array('view_stats'),
'viewErrorLog' => array('admin_forum'),
'viewmembers' => array('moderate_forum'),
);

if (!is_array($urls))
$url_list = array(array($urls$ID_MEMBER));
else
$url_list $urls;

// These are done to later query these in large chunks. (instead of one by one.)
$topic_ids = array();
$profile_ids = array();
$board_ids = array();

$data = array();
foreach ($url_list as $k => $url)
{
// Get the request parameters..
$actions = @unserialize($url[0]);
if ($actions === false)
continue;

// Check if there was no action or the action is display.
if (!isset($actions['action']) || $actions['action'] == 'display')
{
// It's a topic!  Must be!
if (isset($actions['topic']))
{
// Assume they can't view it, and queue it up for later.
$data[$k] = $txt['who_hidden'];
$topic_ids[(int) $actions['topic']][$k] = $txt['who_topic'];
}
// It's a board!
elseif (isset($actions['board']))
{
// Hide first, show later.
$data[$k] = $txt['who_hidden'];
$board_ids[$actions['board']][$k] = $txt['who_board'];
}
// It's the board index!!  It must be!
else 
{
$data[$k] = $txt['who_index'];
// ...or maybe it's just integrated into another system...
if (isset($modSettings['integrate_whos_online']) && function_exists($modSettings['integrate_whos_online']))
$data[$k] = $modSettings['integrate_whos_online']($actions);
}
}
// Probably an error or some goon?
elseif ($actions['action'] == '')
$data[$k] = $txt['who_index'];

// Some other normal action...?
else
{
// Viewing/editing a profile.
if ($actions['action'] == 'profile' || $actions['action'] == 'profile2')
{
// Whose?  Their own?
if (empty($actions['u']))
$actions['u'] = $url[1];

$data[$k] = $txt['who_hidden'];
$profile_ids[(int) $actions['u']][$k] = $actions['action'] == 'profile' $txt['who_viewprofile'] : $txt['who_profile'];
}
elseif (($actions['action'] == 'post' || $actions['action'] == 'post2') && empty($actions['topic']) && isset($actions['board']))
{
$data[$k] = $txt['who_hidden'];
$board_ids[(int) $actions['board']][$k] = isset($actions['poll']) ? $txt['who_poll'] : $txt['who_post'];
}
// A subaction anyone can view... if the language string is there, show it.
elseif (isset($actions['sa']) && isset($txt['whoall_' $actions['action'] . '_' $actions['sa']]))
$data[$k] = $txt['whoall_' $actions['action'] . '_' $actions['sa']];
// An action any old fellow can look at. (if ['whoall_' . $action] exists, we know everyone can see it.)
elseif (isset($txt['whoall_' $actions['action']]))
$data[$k] = $txt['whoall_' $actions['action']];
// Viewable if and only if they can see the board...
elseif (isset($txt['whotopic_' $actions['action']]))
{
// Find out what topic they are accessing.
$topic = (int) (isset($actions['topic']) ? $actions['topic'] : (isset($actions['from']) ? $actions['from'] : 0));

$data[$k] = $txt['who_hidden'];
$topic_ids[$topic][$k] = $txt['whotopic_' $actions['action']];
}
elseif (isset($txt['whopost_' $actions['action']]))
{
// Find out what message they are accessing.
$msgid = (int) (isset($actions['msg']) ? $actions['msg'] : (isset($actions['quote']) ? $actions['quote'] : 0));

$result db_query("
SELECT m.ID_TOPIC, m.subject
FROM (
{$db_prefix}boards AS b, {$db_prefix}messages AS m)
WHERE 
$user_info[query_see_board]
AND m.ID_MSG = 
$msgid
AND m.ID_BOARD = b.ID_BOARD
LIMIT 1"
__FILE____LINE__);
list ($ID_TOPIC$subject) = mysql_fetch_row($result);
$data[$k] = sprintf($txt['whopost_' $actions['action']], $ID_TOPIC$subject);
mysql_free_result($result);

if (empty($ID_TOPIC))
$data[$k] = $txt['who_hidden'];
}
// Viewable only by administrators.. (if it starts with whoadmin, it's admin only!)
elseif (allowedTo('moderate_forum') && isset($txt['whoadmin_' $actions['action']]))
$data[$k] = $txt['whoadmin_' $actions['action']];
// Viewable by permission level.
elseif (isset($allowedActions[$actions['action']]))
{
if (allowedTo($allowedActions[$actions['action']]))
$data[$k] = $txt['whoallow_' $actions['action']];
else
$data[$k] = $txt['who_hidden'];
}
// Unlisted or unknown action.
else
$data[$k] = $txt['who_unknown'];
}
}

// Load topic names.
if (!empty($topic_ids))
{
$result db_query("
SELECT t.ID_TOPIC, m.subject
FROM (
{$db_prefix}boards AS b, {$db_prefix}topics AS t, {$db_prefix}messages AS m)
WHERE 
$user_info[query_see_board]
AND t.ID_TOPIC IN (" 
implode(', 'array_keys($topic_ids)) . ")
AND t.ID_BOARD = b.ID_BOARD
AND m.ID_MSG = t.ID_FIRST_MSG
LIMIT " 
count($topic_ids), __FILE____LINE__);
while ($row mysql_fetch_assoc($result))
{
// Show the topic's subject for each of the actions.
foreach ($topic_ids[$row['ID_TOPIC']] as $k => $session_text)
$data[$k] = sprintf($session_text$row['ID_TOPIC'], censorText($row['subject']));
}
mysql_free_result($result);
}

// Load board names.
if (!empty($board_ids))
{
$result db_query("
SELECT b.ID_BOARD, b.name
FROM 
{$db_prefix}boards AS b
WHERE 
$user_info[query_see_board]
AND b.ID_BOARD IN (" 
implode(', 'array_keys($board_ids)) . ")
LIMIT " 
count($board_ids), __FILE____LINE__);
while ($row mysql_fetch_assoc($result))
{
// Put the board name into the string for each member...
foreach ($board_ids[$row['ID_BOARD']] as $k => $session_text)
$data[$k] = sprintf($session_text$row['ID_BOARD'], $row['name']);
}
mysql_free_result($result);
}

// Load member names for the profile.
if (!empty($profile_ids) && (allowedTo('profile_view_any') || allowedTo('profile_view_own')))
{
$result db_query("
SELECT ID_MEMBER, realName
FROM 
{$db_prefix}members
WHERE ID_MEMBER IN (" 
implode(', 'array_keys($profile_ids)) . ")
LIMIT " 
count($profile_ids), __FILE____LINE__);
while ($row mysql_fetch_assoc($result))
{
// If they aren't allowed to view this person's profile, skip it.
if (!allowedTo('profile_view_any') && $ID_MEMBER != $row['ID_MEMBER'])
continue;

// Set their action on each - session/text to sprintf.
foreach ($profile_ids[$row['ID_MEMBER']] as $k => $session_text)
$data[$k] = sprintf($session_text$row['ID_MEMBER'], $row['realName']);
}
mysql_free_result($result);
}

if (!is_array($urls))
return isset($data[0]) ? $data[0] : false;
else
return $data;
}

?>



Who.template.php - goes to Themes/default (usualy)

<?php



// The only template in the file.

function template_main()

{

global $context$settings$options$scripturl$txt;

// Display the table header and linktree.

echo '

<div style="padding: 3px;">'
theme_linktree(), '</div>';

$brokendown = array (

'Members' => array(),

'Guests' => array(),

'Spiders' => array(),

);



foreach($context['members'] AS $key => $member)

{

$spider getAgent($member['query']['USER_AGENT'], $context['members'][$key]['name'], $agent$member['id'] == 0);

$context['members'][$key]['agent'] = $agent;

$member['query']['USER_AGENT'] = isset($member['query']['USER_AGENT']) ? $member['query']['USER_AGENT'] : '';

if ( $member['id'] != )

$brokendown['Members'][] = &$context['members'][$key];

else if ( $spider )

$brokendown['Spiders'][] = &$context['members'][$key];

else

$brokendown['Guests'][] = &$context['members'][$key];

}

// echo '<pre>'; print_r($brokendown['Spiders']); echo '</pre>'; return;

foreach($brokendown AS $group => $members)

{

echo '

<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder">

<tr>

<td class="catbg">'
$group'</td>

</tr>

</table>

<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder">

<tr class="titlebg">

<td width="30%"><a href="' 
$scripturl '?action=who;sort=user'$context['sort_direction'] == 'down' && $context['sort_by'] == 'user' ';asc' '''">'$txt['who_user'], ' '$context['sort_by'] == 'user' '<img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" border="0" />' '''</a></td>

<td style="width: 14ex;"><a href="' 
$scripturl '?action=who;sort=time'$context['sort_direction'] == 'down' && $context['sort_by'] == 'time' ';asc' '''">'$txt['who_time'], ' '$context['sort_by'] == 'time' '<img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" border="0" />' '''</a></td>

<td>'
$txt['who_action'], '</td>

<td style="width: 14ex;"><a href="' 
$scripturl '?action=who;sort=ip'$context['sort_direction'] == 'down' && $context['sort_by'] == 'ip' ';asc' '''">'$txt[512], ' '$context['sort_by'] == 'ip' '<img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" border="0" />' '''</a></td>

</tr>'
;



// This is used to alternate the color of the background.

$alternate true;



// For every member display their name, time and action (and more for admin).

foreach ($members as $member)

{



// $alternate will either be true or false.  If it's true, use "windowbg2" and otherwise use "windowbg".

echo '

<tr class="windowbg'
$alternate '2' '''">

<td>'
;



// Guests don't have information like icq, msn, y!, and aim... and they can't be messaged.

if (!$member['is_guest'])

{

echo '

<div style="float: right; width: 14ex;">

'
$context['can_send_pm'] ? '<a href="' $member['online']['href'] . '" title="' $member['online']['label'] . '">' ''$settings['use_image_buttons'] ? '<img src="' $member['online']['image_href'] . '" alt="' $member['online']['text'] . '" border="0" align="middle" />' $member['online']['text'], $context['can_send_pm'] ? '</a>' '''

'
$member['icq']['link'], ' '$member['msn']['link'], ' '$member['yim']['link'], ' '$member['aim']['link'], '

</div>'
;

}



echo '

<span'
$member['is_hidden'] ? ' style="font-style: italic;"' '''>'$member['is_guest'] ? $member['name'] : '<a href="' $member['href'] . '" title="' $txt[92] . ' ' $member['name'] . '"' . (empty($member['color']) ? '' ' style="color: ' $member['color'] . '"') . '>' $member['name'] . '</a>''</span>';

echo '

</td>

<td nowrap="nowrap">'
$member['time'], '</td>

<td>'
$member['action'], '</td>

<td><a href="' 
$scripturl '?action=trackip;searchip=' $member['ip'] . '" target="_blank" title="' $member['ip'] . '" class="smalltext2">' $member['ip'] . '</a></td>

</tr>'
;
   if ( !empty($member['ip']) ) {
                echo 
'<tr class="windowbg'$alternate '2' '''"><td colspan="4">';
    
echo '<span class="smalltext">';
echo '<b><a href="' $scripturl '?action=trackip;searchip=' $member['ip'] . '" target="_blank" title="' $member['ip'] . '" class="smalltext2">' $member['ip'] . '</a></b> (' host_from_ip($member['ip'])  . '), <acronym title="' $member['query']['USER_AGENT'] . '">' $member['agent'] . '</acronym>';
 
echo '<br /> User agent: ' $member['query']['USER_AGENT']; 
//echo '<br />';
//print_r ($context);

                
echo '</span>';
                echo 
'</td></tr>';

                 }

// Switch alternate to whatever it wasn't this time. (true -> false -> true -> false, etc.)

$alternate = !$alternate;

}

echo '</table><br/>';

}

echo '

<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder"><tr><td class="titlebg">

<b>'
$txt[139], ':</b> '$context['page_index'], '

</td></tr></table>'
;



}



function 
getAgent( &$user_agent, &$user_name, &$result$guest )

{

$known_agents = array (

                
//Search Spiders

array (

'agent' => 'WISENutbot',

'spidername' => 'Looksmart spider',

                        
'spider' => true,

),

array (

'agent' => 'MSNBot',

'spidername' => 'MSN spider',

'spider' => true,

),

array (

'agent' => 'W3C_Validator',

'spidername' => 'W3C Validaator',

        'spider' => true,

),

array (

'agent' => 'Googlebot-Image',

'spidername' => 'Google-Image Spider',

'spider' => true,

),

array (

'agent' => 'Googlebot',

'spidername' => 'Google spider',

'spider' => true,

),



array (

'agent' => 'Mediapartners-Google',

'spidername' => 'Google AdSense spider',

'spider' => true,

),



                array (

'agent' => 'Openbot',

'spidername' => 'Openfind spider',

'spider' => true,

                ),

array (

'agent' => 'Yahoo! Slurp',

'spidername' => 'Yahoo spider',

'spider' => true,
),



                array (

'agent' => 'FAST-WebCrawler',

'spider' => true,

                ),

                array (

'agent' => 'Wget',

'spider' => true,

                ),

array (

'agent' => 'Ask Jeeves'

'spider' => true,



),

array (

'agent' => 'Speedy Spider',

'spider' => true,



),

array (

'agent' => 'SurveyBot',

'spider' => true,



),

array (

'agent' => 'IBM_Planetwide',

'spider' => true,



),



                array (

'agent' => 'GigaBot',

'spider' => true,



),

array (

'agent' => 'ia_archiver',

'spider' => true,

),

array (

'agent' => 'FAST-WebCrawler',

'spider' => true,



),

array (

'agent' => 'Inktomi Slurp',

                        
'spider' => true,

),

                

                array (

'agent' => 'appie',

'spidername' => 'Walhello spider',

'spider' => true,

),

                array (

'agent' => 'Pogodak.co.yu',

'spidername' => 'Pogodak',

'spider' => true,

),

                array (

'agent' => 'TridentSpider',

'spider' => true,

),


                array (

'agent' => 'ccubee',

'spider' => true,

),

                array (

'agent' => 'Alcohol Search',

'spider' => true,

),

                array (

'agent' => 'Google Wireless Transcoder',

'spider' => true,

),

                array (

'agent' => 'ichiro',
'spidername' => 'Goo Japan / Inktomi robot',
'spider' => true,

),

                array (

'agent' => 'NaverBot',

'spider' => true,

),

                array (

'agent' => 'MJ12bot',
'spidername' => 'Majestic12',
'spider' => true,

),

                array (

'agent' => 'IsMySiteUp',
'spider' => true,

),

                array (

'agent' => 'MQBOT',
'spidername' => 'MetaQuerier',
'spider' => true,

),

                array (

'agent' => 'PHP version tracker ',

'spider' => true,

),

                array (

'agent' => 'Scooter',
'spidername' => 'AltaVista Scooter',
'spider' => true,

),

                array (

'agent' => 'Baiduspider',

'spider' => true,

),


                array (

'agent' => 'ilial',
'spidername' => 'UCLA Spider',
'spider' => true,

),


                array (

'agent' => 'silk',
'spidername' => 'Spider.com',
'spider' => true,

),


                array (

'agent' => 'Exabot',
'spidername' => 'Exalead',
'spider' => true,

),


                array (

'agent' => 'findlinks',
'spidername' => 'FindLinks',
'spider' => true,

),


 //mobiles

 array (
'agent' => 'Nokia'
 ),
 array (
'agent' => 'Samsung',
 ),
 array (
'agent' => 'Ericsson',
 ),
array (
'agent' => 'Siemens',
 ),
  array (
'agent' => 'Motorola',
),
                
//Browsers

 
array (

'agent' => 'Opera',

),

array (

'agent' => 'Firefox',

),

array (

'agent' => 'Firebird',

),

array (

'agent' => 'Safari'

),

           
array (

'agent' => 'Netscape',

),

array (

'agent' => 'MyIE2'

),

array (

'agent' => 'Konqueror'

),

array (

'agent' => 'Galeon'

),

array (

'agent' => 'KMeleon',

),

                array (

'agent' => 'NG/2.0',

),



                array (

'agent' => 'Gecko',

'name' => 'Mozilla',

         
),

                array (

'agent' => 'MSIE',



                ),

);



foreach( 
$known_agents AS $poss )

if (strpos(strtolower($user_agent), strtolower($poss['agent'])) !== false)

{

if ( $guest && isset($poss['spider']) && $poss['spider'] )

$user_name = isset($poss['spidername']) ? $poss['spidername'] : (isset($poss['name']) ? $poss['name'] : $poss['agent']); 

$result = isset($poss['name']) ? $poss['name'] : $poss['agent']; 

return isset($poss['spider']) && $poss['spider'];

}

$result $user_agent;

return false;

}



?>


Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Pedja on February 22, 2007, 07:51:52 AM
Quote from: Zenigata on February 21, 2007, 09:15:54 PM
Hi,
how can I display the version of the browser? For example IE 6.0, Ie 7.0, Firefox 2.0, thanks.

Altered script I posted shows User agent, which contains browser and version.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Zenigata on February 22, 2007, 09:46:22 AM
Quote from: Pedja on February 22, 2007, 07:47:56 AM
I've done this.

I've this error:

Fatal error: smf_main() [function.require]: Failed opening required '/home/jwwwazen/public_html/forum/Sources/Who.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jwwwazen/public_html/forum/index.php on line 344
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: کíŋ on February 26, 2007, 05:43:11 AM
Wow - thanks so much Pedja, works great!

Is there a way of showing any other user names that these IP's may belong to in that last column?   
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: NativePages on February 26, 2007, 10:59:13 AM
I might have messed up. I downloaded the recommended who.template.php file from http://www.simplemachines.org/community/index.php?topic=19243.msg762733#msg762733.

Because I have 24 other mods installed and couldn't remember if any had written to that file, I pulled the copy downloaded from this thread AND the copy sitting on my server in the default directory both into Winmerge and did a line by line check. 

I updated those lines in the copy from this thread that I'm pretty sure were NOT relevant to differentiating the spiders out from the members and guests. When I was done, the only things not changed between the two were very specific to the members, guests, spiders arrays and the list of spiders.

But I'm gettin' no changes on my forum after uploading the new who.template file. Did I mess up?

Adding question I forgot (on later edit).  How do I change the "name" from spiders to something else? My forum is not a tech-focused forum, and some of the potential members for my forum are paranoid and think the cookie left by the forums = purposefully distributed malware and virii. If I say on the front page there are "spiders" onboard, they may read it wrong. I would like to change it to something less intimidating like SearchBots.

NativePages
http://www.nativepages.com/tnindian
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: DeviantMetal on March 08, 2007, 03:47:08 AM
That works awesome, thanks Pedja!
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: NativePages on March 08, 2007, 07:17:58 PM
Quote from: NativePages on February 26, 2007, 10:59:13 AM
I might have messed up. I downloaded the recommended who.template.php file from http://www.simplemachines.org/community/index.php?topic=19243.msg762733#msg762733.

Because I have 24 other mods installed and couldn't remember if any had written to that file, I pulled the copy downloaded from this thread AND the copy sitting on my server in the default directory both into Winmerge and did a line by line check. 

I updated those lines in the copy from this thread that I'm pretty sure were NOT relevant to differentiating the spiders out from the members and guests. When I was done, the only things not changed between the two were very specific to the members, guests, spiders arrays and the list of spiders.

But I'm gettin' no changes on my forum after uploading the new who.template file. Did I mess up?

Adding question I forgot (on later edit).  How do I change the "name" from spiders to something else? My forum is not a tech-focused forum, and some of the potential members for my forum are paranoid and think the cookie left by the forums = purposefully distributed malware and virii. If I say on the front page there are "spiders" onboard, they may read it wrong. I would like to change it to something less intimidating like SearchBots.

NativePages
http://www.nativepages.com/tnindian

This mod is still not functioning on my forum. Any help would be appreciated!
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: tsmalmbe on March 10, 2007, 07:00:01 PM
How would I change this to display RSS-readers as an own group?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: NativePages on March 11, 2007, 01:53:24 AM
I'd just like to get mine working to start with. :/
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Pedja on March 12, 2007, 04:38:15 AM
Quote from: Zenigata on February 22, 2007, 09:46:22 AM
I've this error:

Fatal error: smf_main() [function.require]: Failed opening required '/home/jwwwazen/public_html/forum/Sources/Who.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jwwwazen/public_html/forum/index.php on line 344

It seems you did not put Who.php on th right place.

Quote from: کíŋ on February 26, 2007, 05:43:11 AM
Is there a way of showing any other user names that these IP's may belong to in that last column?  

Click on IP number and it will open another page, with various info about that IP, including list of other users who visit or post on forum using the very same IP.

Quote from: NativePages on February 26, 2007, 10:59:13 AM
I updated those lines in the copy from this thread that I'm pretty sure were NOT relevant to differentiating the spiders out from the members and guests. When I was done, the only things not changed between the two were very specific to the members, guests, spiders arrays and the list of spiders.

But I'm gettin' no changes on my forum after uploading the new who.template file. Did I mess up?

Sorry, when you alter the code, only you know what you altered.

SME mod system sucks and leads to problem like what you have. My strongest advice is not to mod until it is neccessary :(
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Kindred on March 12, 2007, 08:49:00 AM
Quote from: Pedja on March 12, 2007, 04:38:15 AM
SME mod system sucks and leads to problem like what you have. My strongest advice is not to mod until it is neccessary :(

First of all, what are you talking about?   SMF's mod system is incredibly powerful and easy to use.

Second of all, this is not a mod. This does not install in the package manager... all you do is upload a copy of the revised who.template.php into your theme's directory using FTP.

I will agree with your last comment, though...  you should not mod unless you feel the mod-function is necessary.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: ckgb on March 14, 2007, 02:29:53 AM
Is it possible to split "who" template in 2 parts. On the left Males, on the right Females and to get guests eliminated.

Kinda like this
http://user.33b.ru/view.user.online.php

Thanks
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: MoreBloodWine on March 14, 2007, 08:21:53 AM
Quote from: ckgb on March 14, 2007, 02:29:53 AM
Is it possible to split "who" template in 2 parts. On the left Males, on the right Females and to get guests eliminated.

Kinda like this
http://user.33b.ru/view.user.online.php

Thanks
This is something I can guarantee will never change to gert what your asking you should go post in the mod request forum and just go from there...
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Kindred on March 14, 2007, 08:30:36 AM
more specifically, yes, it would be POSSIBLE to do so...   however, as indicated in the previous post, this is such an arcane request that you will have to have someone mod it for you (if you can't do it yourself) because I doubt anyone else would be interested in having it divided that way...
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: ckgb on March 14, 2007, 09:54:30 PM
Ok. Thank You
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Vinspire on March 17, 2007, 02:27:43 AM
This file can replace SMF 1.1.2 right ?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Kindred on March 17, 2007, 09:15:47 AM
yes...
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: giggetto on March 21, 2007, 02:13:09 PM
noob question...
Can it be used with TP?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Kindred on March 21, 2007, 05:00:37 PM
yes
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Pedja on March 22, 2007, 12:14:28 PM
Quote from: Kindred on March 12, 2007, 08:49:00 AM
First of all, what are you talking about?   SMF's mod system is incredibly powerful and easy to use.

Powerful enough that when you do some mod, you cannot upgrade any more (if you do not deinstall all mods)  and if some other mod changed some code then you cannot implement another mod. The worst case is that you cannot uninstall some mod. But... this is not subject here.

Quote
Second of all, this is not a mod. This does not install in the package manager... all you do is upload a copy of the revised who.template.php into your theme's directory using FTP.

Right, but I think he already installed some mod that changed who.template.php, so if he just replace it with this one, he looses that changes.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Kindred on March 22, 2007, 12:35:00 PM
neither of those issues has anything to do with the power and effectiveness of SMF's mod package system

Obviously, if you try to install two mods that affect the same portion of code, you are going to have issues. That is the nature of the beast, with ANY system that modifies code.


As for upgrading, of course you can...   I do.
Again, yes, when you upgrade major versions, you will lose any mods you have installed (in the code, mod-database tables remain untouched)
So, then you can re-install the mods in the new version.
With minor upgrades, however, you can use the same package manager system to perform the upgrade, thus maintaining your existing mods.

Of course, the more heavily modified your system, the more trouble you will have upgrading (automatically) or even applying more mods...   Again, how is this a problem with SMF's mod package system?  If you modify the code, then it's no longer "standard" and mod-coders can only code for what they KNOW (i.e. baseline files).

So, I say, one more time, what the heck are you talking about?
You seme to imply that there should be som auto-magic effect that applies any modification you want by reading your mind and doing what you want, not what you say....
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: edi67 on March 23, 2007, 02:38:43 AM
nice work

Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: than on March 26, 2007, 05:50:14 PM
Quote from: RBH on August 14, 2006, 12:34:50 PM
recently i have had a swarm of snapbots visiting my site. they are showing as guests so i tried adding them to the who.template as instructed in the first post but they still show as guests. here is what i added to template.

array (

'agent' => 'Snapbot/1.0',

'spidername' => 'Snapbot',

'spider' => true,

),


any ideas on how to get these guys to show up with thier name other then guest?

Hi  :D

Any solution for this???

Regards
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: giggetto on March 27, 2007, 02:52:50 AM
HI
here (attach) is the italian version of the modified who.template.php!
gasp! I can't use the attachment function in this board...

however is someone need the italian version i have hosted it at my site here (http://www.isenzasenzo.com/index.php/topic,125.msg2493/topicseen.html#new).

If I can send this file to someone to insert it in the first post, send me a PM

I hope this could be usefull for someone!
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: ladynada on March 31, 2007, 05:24:55 AM
bless you Pedja!
regards,
nada
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: ladynada on March 31, 2007, 05:27:22 AM
remember people that both files begin with a CAPITAL W

Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Surferbird on March 31, 2007, 06:04:44 AM
Browser detailed info doesn't show up when FireFox browser in use...why?

IE7 shows it nicely.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: ladynada on March 31, 2007, 03:57:37 PM
it shows firefox version on mine

example:

(ppp208-87.adsl.forthnet.gr), Firefox
User agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; el; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3

regards,
nada
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: ladynada on March 31, 2007, 06:52:06 PM
just caught a new bot you can add to Who.template.php





array (

'agent' => 'IRLbot/3.0',

'spidername' => 'IRLbot/3.0',

        'spider' => true,

),




and the info from who is online was

IRLbot/3.0

128.194.135.94 (crawler4.irl.cs.tamu.edu), MSIE
User agent: IRLbot/3.0 (compatible; MSIE 6.0; http://irl.cs.tamu.edu/crawler)

greets

nada


Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: bbulldog on April 02, 2007, 05:35:06 AM
sorry to butt in on this but has this been solved?
Quote from: bl968 on December 14, 2006, 12:44:08 AM
I would like for the who list to give priority to Members first then guests then spiders so

show all members first, then show guests, and then spiders

For example I have
223 Spiders, 17 Guests, 7 Users (0 Buddies)  but on the Who's Online it shows

2 members on the first page, 2 Guests, and 56 spiders.

I want it to show as many members as possible if any room then show guests and if any room then show spiders.

Ideas?
I have changed the line to read users first then guests. i dont have the googlebot mod installed so it has a bit to do with this theme change.

in the file BoardIndex.template.php find this line

Quote
      ', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];

and change it to this

Quote
      ', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'], ', ' . $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'];

important are these two items, they are the counts for guests and users

      ', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'] ,  ', ' . $context['num_guests'] , ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'] ;

this will now
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Pedja on April 04, 2007, 02:01:30 PM
Quote from: Kindred on March 22, 2007, 12:35:00 PMObviously, if you try to install two mods that affect the same portion of code, you are going to have issues. That is the nature of the beast, with ANY system that modifies code.

That is exactly why it sucks. Plugins should not modify code, they should be implemented using trigers andother techniques.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: GPGrieco on April 04, 2007, 02:07:52 PM
So if I want to add a code from here http://www.jafsoft.com/searchengines/webbots.html#browsers I am going to add


array (
'agent' => 'AbachoBOT',
'spidername' => 'AbachoBOT',
'spider' => true,
                ),

to the who.template.php file, right?


This is an example for the first bot on that site
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: GPGrieco on April 04, 2007, 05:56:53 PM
Ok I figured it out.

I have made a large list of spiders and browsers. Here it is.

Spiders

                array (
'agent' => '',
'spidername' => '',
'spider' => true,
                ),
                array (
'agent' => '',
'spidername' => '',
'spider' => true,
                ),
                array (
'agent' => '',
'spidername' => '',
'spider' => true,
                ),
                array (
'agent' => 'Googlebot/2.1',
'spidername' => 'Google Spider',
'spider' => true,
                ),
                array (
'agent' => 'MSNBOT/0.xx ',
'spidername' => 'MSN Spider',
'spider' => true,
                ),

                array (
'agent' => 'msnbot-media/1.0',
'spidername' => 'MSN Spider',
'spider' => true,
                ),
                array (
'agent' => 'msnbot-Products/1.0',
'spidername' => 'MSN Spider',
'spider' => true,
                ),
                array (
'agent' => 'MSNPTC/1.0  ',
'spidername' => 'MSN Spider',
'spider' => true,
                ),
                array (
'agent' => 'SearchSight 2.0',
'spidername' => 'SearchSight Spider',
'spider' => true,
                ),
                array (
'agent' => 'Sensis Web Crawler ',
'spidername' => 'Sensis Web Crawler ',
'spider' => true,
                ),
                array (
'agent' => 'Snappy 1.1',
'spidername' => 'Snappy Spider',
'spider' => true,
                ),
                array (
'agent' => 'Websquash.com',
'spidername' => 'WebSquash Spider',
'spider' => true,
                ),
                array (
'agent' => 'YahooSeeker-Testing v3.9',
'spidername' => 'Yahoo Spider',
'spider' => true,
                ),
                array (
'agent' => 'YahooSeeker 1.2',
'spidername' => 'Yahoo Spider',
'spider' => true,
                ),
                array (
'agent' => 'Scrubby 2.2',
'spidername' => 'Scrub the Web Spider',
'spider' => true,
                ),
                array (
'agent' => 'Scrubby 2.1',
'spidername' => 'Scrub the Web Spider',
'spider' => true,
                ),
                array (
'agent' => 'Googlebot-Image 1.0',
'spidername' => 'Google Image Spider',
'spider' => true,
                ),
                array (
'agent' => 'Googlebot 2.1',
'spidername' => 'Google Spider',
'spider' => true,
                ),
                array (
'agent' => 'Girafabot ',
'spidername' => 'Girafabot ',
'spider' => true,
                ),
                array (
'agent' => 'Gigabot 2.0',
'spidername' => 'Gigablast spider',
'spider' => true,
                ),
                array (
'agent' => 'Gigabot 1.0',
'spidername' => 'Gigablast Spider',
'spider' => true,
                ),
                array (
'agent' => 'genieBot',
'spidername' => 'GenieKnows Spider',
'spider' => true,
                ),
                array (
'agent' => 'FyberSpider',
'spidername' => 'FyberSearch Spider',
'spider' => true,
                ),
                array (
'agent' => 'FurlBot Furl Search 2.0',
'spidername' => 'LookSmart Spider',
'spider' => true,
                ),
                array (
'agent' => 'FAST-WebCrawler 3.8',
'spidername' => 'Fast Spider',
'spider' => true,
                ),
                array (
'agent' => 'FAST-WebCrawler 3.7',
'spidername' => 'Fast Spider',
'spider' => true,
                ),
                array (
'agent' => 'FAST-WebCrawler 3.6',
'spidername' => 'Fast Spider',
'spider' => true,
                ),
                array (
'agent' => 'FAST-WebCrawler 3.x',
'spidername' => 'Fast Spyder',
'spider' => true,
                ),
                array (
'agent' => 'Exabot 2.0',
'spidername' => 'Exava Spider',
'spider' => true,
                ),
                array (
'agent' => 'EsperanzaBot',
'spidername' => 'Expranza Spider',
'spider' => true,
                ),
                array (
'agent' => 'envolk[ITS]spider 1.6',
'spidername' => 'envolk Spider',
'spider' => true,
                ),
                array (
'agent' => 'EmeraldShield.com WebBot',
'spidername' => 'EmeraldShield.com WebBot',
'spider' => true,
                ),
                array (
'agent' => 'DiamondBot',
'spidername' => 'Claria Spider',
'spider' => true,
                ),
                array (
'agent' => 'DataparkSearch 4.37',
'spidername' => 'DataPark Search Spider',
'spider' => true,
                ),
                array (
'agent' => 'DataparkSearch 4.36',
'spidername' => 'DataPark Search Spider',
'spider' => true,
                ),
                array (
'agent' => 'DataparkSearch 4.35',
'spidername' => 'DataPark Search Spider',
'spider' => true,
                ),

                array (
'agent' => 'cosmos',
'spidername' => 'xyleme Spider',
'spider' => true,
                ),
                array (
'agent' => 'ConveraCrawler',
'spidername' => 'Convera Crawler',
'spider' => true,
                ),
                array (
'agent' => 'Cerberian Drtrs',
'spidername' => 'Cerberian Drtrs',
'spider' => true,
                ),
                array (
'agent' => 'boitho.com-robot 1.1',
'spidername' => 'Boitho Spider',
'spider' => true,
                ),
                array (
'agent' => 'boitho.com-robot 1.0',
'spidername' => 'Boitho Spider',
'spider' => true,
                ),
                array (
'agent' => 'boitho.com-dc 0.79',
'spidername' => 'Boitho Spider',
'spider' => true,
                ),
                array (
'agent' => 'boitho.com-dc 0.81',
'spidername' => 'Boitho Spider',
'spider' => true,
                ),
                array (
'agent' => 'boitho.com-dc 0.82',
'spidername' => 'Boitho Spider',
'spider' => true,
                ),
                array (
'agent' => 'boitho.com-dc 0.83',
'spidername' => 'Boitho Spider',
'spider' => true,
                ),
                array (
'agent' => 'boitho.com-dc 0.85',
'spidername' => 'Boitho Spider',
'spider' => true,
                ),
                array (
'agent' => 'Bimbot',
'spidername' => 'Bimbot',
'spider' => true,
                ),
                array (
'agent' => 'BecomeBot',
'spidername' => 'Become Spider',
'spider' => true,
                ),
                array (
'agent' => 'Arachmo',
'spidername' => 'Arachmo',
'spider' => true,
                ),
                array (
'agent' => 'AnyApexBot',
'spidername' => 'Any Apex Spider',
'spider' => true,
                ),
                array (
'agent' => 'Accoona-AI-Agent',
'spidername' => 'Accoona Spider',
'spider' => true,
                ),
                array (
'agent' => 'AbiLogicBot',
'spidername' => 'AbiLogic Spider',
'spider' => true,
                ),
                array (
'agent' => 'ABACHOBot',
'spidername' => 'Abacho Spider',
'spider' => true,
                ),
                array (
'agent' => 'Pogodak.co.yu',
'spidername' => 'Pogodak',
'spider' => true,
),
                array (

'agent' => 'TridentSpider',
'spider' => true,
),
                array (
'agent' => 'ccubee',
'spider' => true,
),
                array (
'agent' => 'Alcohol Search',
'spider' => true,
),
array (
'agent' => 'sogou spider',
'spidername' => 'Sogou spider',
'spider' => true,
),
array (
'agent' => 'Twiceler',
'spidername' => 'Twiceler spider',
'spider' => true,
),
                 array (
'agent' => 'www.fi crawler',
'spidername' => 'www.fi spider',
'spider' => true,
),
array (
                        'agent' => 'WISENutbot',
                        'spidername' => 'Looksmart spider',
                        'spider' => true,
                ),
                array (
                        'agent' => 'MSNBot',
                        'spidername' => 'MSN spider',
                        'spider' => true,
                ),
                array (
                        'agent' => 'W3C_Validator',
                        'spidername' => 'W3C Validator',
                        'spider' => true,
                ),
                array (
                        'agent' => 'Googlebot-Image',
                        'spidername' => 'Google-Image spider',
                        'spider' => true,
                ),
                array (
                        'agent' => 'Googlebot',
                        'spidername' => 'Google spider',
                        'spider' => true,
                ),
                array (
                        'agent' => 'appie',
                        'spidername' => 'Walhello spider',
                        'spider' => true,
                ),
                array (
                        'agent' => 'Mediapartners-Google',
                        'spidername' => 'Google AdSense spider',
                        'spider' => true,
                ),

                array (
                        'agent' => 'Scooter',
                        'spidername' => 'Altavista spider',
                        'spider' => true,
                ),
                array (
                        'agent' => 'FAST-WebCrawler',
                        'spider' => true,
                ),
                array (
                        'agent' => 'Wget',
                        'spider' => true,
                ),
                array (
                        'agent' => 'Ask Jeeves',
                        'spider' => true,

                ),
                array (
                        'agent' => 'Speedy Spider',
                        'spider' => true,

                ),
                array (
                        'agent' => 'SurveyBot',
                        'spider' => true,

                ),
                array (
                        'agent' => 'IBM_Planetwide',
                       'spider' => true,
                ),
                array (
                        'agent' => 'GigaBot',
                        'spider' => true,
                ),
                array (
                        'agent' => 'ia_archiver',
                        'spider' => true,
                ),
                array (
                        'agent' => 'FAST-WebCrawler',
                        'spider' => true,
                ),
                array (
                        'agent' => 'Yahoo! Slurp',
                        'spidername' => 'Yahoo spider',
                        'spider' => true,
                ),
                array (
                        'agent' => 'Inktomi Slurp',
                        'spider' => true,
                ),
array (
'agent' => 'appie',
'spidername' => 'Walhello spider',
),
array (
            'agent' => 'FeedBurner/1.0',
            'spidername' => 'Feedburner',
'spider' => true,
        ),
        array (
            'agent' => 'Feedfetcher-Google',
'spidername' => 'Googlen Feedfetcher',
'spider' => true,
        ),
        array (
            'agent' => 'OmniExplorer_Bot/6.68',
            'spidername' => 'OmniExplorer Bot',
'spider' => true,
        ),
        array (
            'agent' => 'http://www.relevantnoise.com',
            'spidername' => 'relevantNOISE',
'spider' => true,
        ),
        array (
            'agent' => 'NewsGatorOnline/2.0',
            'spidername' => 'NewsGatorOnline',
'spider' => true,
        ),
        array (
            'agent' => 'ping.blo.gs/2.0',
'spider' => true,
        ),
        array (
            'agent' => 'Jakarta Commons-HttpClient/3.0.1',
            'spidername' => 'Amazon',
'spider' => true,
        ),
          array (
            'agent' => 'Jakarta Commons-HttpClient/3.0-rc2',
            'spidername' => 'Amazon',
'spider' => true,
        ),


browsers

                array (
        'agent' => 'Playstation Portable 2.00',
),
                array (
        'agent' => 'Playstation 3 1.00',
),
                array (
        'agent' => 'Playstation 3 1.10',
),
                array (
        'agent' => 'Playstation 3 2.00',
),
                array (
'agent' => 'U',
'name' => 'MSN Explorer',
                ),

                array (
        'agent' => 'Firefox 0.10',
),
                array (
        'agent' => 'Firefox 0.10.1',
),
                array (
        'agent' => 'Firefox 0.8',
),
                array (
        'agent' => 'Firefox 0.9',
),
                array (
        'agent' => 'Firefox 0.9.1',
),
                array (
        'agent' => 'Firefox 0.9.2',
),
                array (
        'agent' => 'Firefox 0.9.3',
),
                array (
        'agent' => 'Firefox 1.0',
),
                array (
        'agent' => 'Firefox 1.0+',
),
                array (
        'agent' => 'Firefox 1.0.1',
),
                array (
        'agent' => 'Firefox 1.0.2',
),
                array (
        'agent' => 'Firefox 1.0.3',
),
                array (
        'agent' => 'Firefox 1.0.4',
),
                array (
        'agent' => 'Firefox 1.0.5',
),
                array (
        'agent' => 'Firefox 1.0.6',
),
                array (
        'agent' => 'Firefox 1.0.7',
),
                array (
        'agent' => 'Firefox 1.0.8',
),
                array (
        'agent' => 'Firefox 1.4',
),
                array (
        'agent' => 'Firefox 1.4.1',
),
                array (
        'agent' => 'Firefox 1.5',
),
                array (
        'agent' => 'Firefox 1.5.0',
),
                array (
        'agent' => 'Firefox 1.5.0.1',
),
                array (
        'agent' => 'Firefox 1.5.0.10',
),
                array (
        'agent' => 'Firefox 1.5.0.10pre',
),
                array (
        'agent' => 'Firefox 1.5.0.11',
),
                array (
        'agent' => 'Firefox 1.5.0.2',
),
                array (
        'agent' => 'Firefox 1.5.0.2;',
),
                array (
        'agent' => 'Firefox 1.5.0.3',
),
                array (
        'agent' => 'Firefox 1.5.0.4',
),
                array (
        'agent' => 'Firefox 1.5.0.5',
),
                array (
        'agent' => 'Firefox 1.5.0.6',
),
                array (
        'agent' => 'Firefox 1.5.0.7',
),
                array (
        'agent' => 'Firefox 1.5.0.8',
),
                array (
        'agent' => 'Firefox 1.5.0.9',
),
                array (
        'agent' => 'Firefox 1.6a1',
),
                array (
        'agent' => 'Firefox 1.9.0.1',
),
                array (
        'agent' => 'Firefox 2.0',
),
                array (
        'agent' => 'Firefox 2.0.0.1',
),
                array (
        'agent' => 'Firefox 2.0.0.2',
),
                array (
        'agent' => 'Firefox 2.0.0.2pre',
),
                array (
        'agent' => 'Firefox 2.0.0.3',
),
                array (
        'agent' => 'Firefox 2.0.0.3pre',
),
                array (
        'agent' => 'Firefox 2.0a1',
),
                array (
        'agent' => 'Firefox 2.0b',
),
                array (
        'agent' => 'Firefox 2.0b1',
),
                array (
        'agent' => 'Firefox 2.0b2',
),
                array (
        'agent' => 'Firefox 2.0b3',
),
                array (
        'agent' => 'Firefox 3.0',
),
                array (
        'agent' => 'Firefox 3.0a1',
),
                array (
        'agent' => 'BonEcho 0.7b1',
),
                array (
        'agent' => 'BonEcho 2.0',
),
                array (
        'agent' => 'BonEcho 2.0.0.1',
),
                array (
        'agent' => 'BonEcho 2.0.0.1pre',
),
                array (
        'agent' => 'BonEcho 2.0.0.2',
),
                array (
        'agent' => 'BonEcho 2.0.0.2pre',
),
                array (
        'agent' => 'BonEcho 2.0.0.3pre',
),
                array (
        'agent' => 'BonEcho 2.0a2',
),
                array (
        'agent' => 'BonEcho 2.0a3',
),
                array (
        'agent' => 'BonEcho 2.0b1',
),
                array (
        'agent' => 'BonEcho 2.0b2',
),
                array (
        'agent' => 'Beonex 0.8-stable',
),
                array (
        'agent' => 'Avant Browser ',
),
                array (
        'agent' => 'AOL 4.0',
),
                array (
        'agent' => 'AOL 5.0',
),
                array (
        'agent' => 'AOL 6.0',
),
                array (
        'agent' => 'AOL 7.0',
),
                array (
        'agent' => 'AOL 8.0',
),
                array (
        'agent' => 'AOL 9.0',
),
                array (
        'agent' => 'AmigaVoyager 3.2',
),
                array (
        'agent' => 'America Online Browser 1.5',
),
                array (
        'agent' => 'America Online Browser 1.1',
),
                array (
                        'agent' => 'Opera',
                 ),
                array (
                        'agent' => 'Firefox',
                ),
                array (
                        'agent' => 'Firebird',
                ),
                array (
                        'agent' => 'Safari',
                ),
array (
'agent' => 'Google Desktop',
),
                array (
                        'agent' => 'Netscape',
                ),
                array (
                        'agent' => 'MyIE2',
                ),
               
                array (
                        'agent' => 'Konqueror',
                ),
                array (
                        'agent' => 'Galeon',
                ),
                array (
                        'agent' => 'KMeleon',
                ),

                array (
                        'agent' => 'NG/2.0',
                ),

                array (
                        'agent' => 'Gecko',
                        'name' => 'Mozilla',
                ),
                array (
                        'agent' => 'MSIE',
                          'name' => 'IE',

                ),


This list includedes the one included in the file attached on the orignal post, so you will need to delete all the spiders and browsers from your current file and paste these.

I hope this can jelp someone out.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: ladynada on April 05, 2007, 04:15:53 AM
thanks for the huge list, I am trying it out!

nada
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: DeviantMetal on April 05, 2007, 05:03:39 PM
oooooo, nice, thanks, let us know how it looks ;) I might try to add it this weekend.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: ladynada on April 07, 2007, 08:58:36 PM
re: the long list

the entries meant to be blank that look like this:


array (
'agent' => '',
'spidername' => '',
'spider' => true,
                ),



cause errors in the log and the string position command

I changed mine to :


array (
'agent' => 'blank',
'spidername' => 'blank',
'spider' => true,
),


now you are good to go

I think there were about three entries with the problem.

nada
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: GPGrieco on April 09, 2007, 07:14:26 PM
Oh, sorry about that. What I was doing was copying and pasting those "blanks" and adding the names later. I decided that was enough, but forgot to delete them.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: ladynada on April 09, 2007, 08:58:44 PM
excellent!  glad to have tracked that down for us.

log errors are no big deal when the mod is actually working quite well, so it is important to track down the minor bug causing the error instead of throwing the baby out with the bathwater.  this past weekend, I would not give up til I figured it out!

nada
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: bbulldog on April 10, 2007, 05:57:16 AM
on the array coding abovee for the browsers depending upon what order the arrays are in it comes up with different listings.
if i take

array (
      'agent' => 'U',
      'name' => 'MSN Explorer',
; ),


and addd it as the last array, then everything that was MSN Explorer becomes just the plain Firefox.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: bbulldog on April 10, 2007, 09:54:04 AM
I have checked this out a bit more and have come to the conclusion that the listing order of the arrays makes a big difference.
I have two users using firefox and if i leave the order and arrays as they are then only firefox comes up.
as follows:

**.***.**.*** (Firefox) User agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1) Gecko/20061010 Firefox/2.0 Web.de

**.**.**.** (Firefox) User agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3


If i change the listing to have the name in it too
array (
'agent' => 'Firefox/2.0',
'name' => 'Firefox 2.0',
),

then they show this

**.***.**.*** (Firefox 2.0) User agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1) Gecko/20061010 Firefox/2.0 Web.de

**.**.**.** (Firefox 2.0) User agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3

If i add this and leave the order as in GPGrieco's post
array (
'agent' => 'Firefox/2.0.0.3',
'name' => 'Firefox 2.0.0.3',
),

then they both show (firefox 2.0)

If i change the order to show this
array (
'agent' => 'Firefox/2.0.0.3',
'name' => 'Firefox 2.0.0.3',
),

array (
'agent' => 'Firefox/2.0',
'name' => 'Firefox 2.0',
),


then this comes up

**.***.**.*** (Firefox 2.0) User agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1) Gecko/20061010 Firefox/2.0 Web.de

**.**.**.** (Firefox 2.0.0.3) User agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3

the correct versions.
So in fact the listing shows the name(without slash) and not the agent (with slash). So the listing will not work

BTW if the version is at the end of the line anyway why change it at the beginning using this long array listing?
**.**.**.** (Firefox) User agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: itsacoaster on April 10, 2007, 06:18:18 PM
This doesn't have anything to do with the mod, but Firefox seems to like truncating whatever's listed in the <acronym> tag, for being too long.  For example, the HTML source says:

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3

but when you mouse over the word, it pops up with:

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2....

Is there a way to change this setting, or is that built into the browser?  Thanks.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Chriss Cohn on May 06, 2007, 11:45:17 AM
Hi, great Modification!
When im looking in it via Firefox2.0.0.3, it shows me the "MSN Explorer" as useragent - but when im hover over it, it shows the right one (Mozilla/5.0) and all that stuff.....
Note, i've changed it using the large list posted by "GPGrieco"

Maybe this depends on the following:
array (        'agent' => 'U',        'name' => 'MSN Explorer',                ),

Regards, Christian
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: GPGrieco on May 06, 2007, 01:26:16 PM
When I was putting that list together, I did not test it. The only test I did is when I went into the who's online list and my browser was wrong. It said that I was using opera (which is "U"), but I was using msn explorer. I changed that. Do you think that was wrong?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: bbulldog on May 07, 2007, 07:01:51 AM
i think to get this listing oing you have to have the smaller versions of the browsers first.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Chriss Cohn on May 07, 2007, 08:05:12 AM
Hi, i just removed the part in my post before and the parts which were empty - now it works  ;D.
Now i have another "Problem"... It shows me some spiders not in the "spider-area" in the who-is-online-view, it shows them up in the "Unregistered Guests area".
Look on the Screen here:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg523.imageshack.us%2Fimg523%2F5769%2Fspiderwm5.th.jpg&hash=b0fcb9a234dc2af4f608d327d36b1c0b6c557d3c)

Regards, Christian
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: EliTe_ThuT on May 13, 2007, 08:56:04 AM
Hey,

I get this "guest" pretty often on my website...

QuoteOrgName:    Global Net Access, LLC
OrgID:      GNAL-2
Address:    55 Marietta St, NW
Address:    Suite 1720
City:       Atlanta
StateProv:  GA
PostalCode: 30303
Country:    US

ReferralServer: rwhois://rwhois.gnax.net:4321

NetRange:   207.210.64.0 - 207.210.127.255
CIDR:       207.210.64.0/18
NetName:    GNAXNET
NetHandle:  NET-207-210-64-0-1
Parent:     NET-207-0-0-0-0
NetType:    Direct Allocation
NameServer: DNS1.GNAX.NET
NameServer: DNS2.GNAX.NET
Comment:   
RegDate:    2005-04-12
Updated:    2006-01-09

OrgAbuseHandle: ABUSE745-ARIN
OrgAbuseName:   GNAX ABUSE
OrgAbusePhone:  +1-404-230-9150
OrgAbuseEmail:  [email protected]

OrgTechHandle: ENGIN7-ARIN
OrgTechName:   GNAX ENGINEERING
OrgTechPhone:  +1-404-230-9150
OrgTechEmail:  [email protected]

I really do not think this is a guest...? Am I wrong?? How can I add it to my spider list?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: chep on May 27, 2007, 01:48:54 PM
Hello,

Forgive my ingorance if this was covered previously. I believe this bot was not listed. I added it to my template.

Now the problem is that no matter if I follow the instructions to add this in the template - the new bots\spiders never show on the board index as bots\spiders. They are lumped in with guests on the count. Please advise to the solution.


         array (
                      'agent' => 'Accelobot',
                      'spidername' => 'Accelovation',
                      'spider' => true,
         ),



Thanks
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: chep on May 27, 2007, 04:41:38 PM
I found the answer to my problem. I added in the spider to the googlebot and spiders mod code inside subs.php
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: locomotion182 on May 30, 2007, 09:33:32 PM
I have a question about this themplate
In my "whos" in the robots table the name displayed is "robotas"
i want to change that to "spiders"
just change the name but im not sure what to change.

any suggetion?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: chep on May 30, 2007, 10:19:57 PM
In the very first post it suggests right in here


$brokendown = array (
                'homies' => array(),
                'visitors' => array(),
                'robotas' => array(),
        );


To change it example would be below. I changed members and spiders.


$brokendown = array (
                'members' => array(),
                'visitors' => array(),
                'spiders' => array(),
        );
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: yume_kokoro on June 10, 2007, 10:37:08 AM
Thanks so much for making this!  So much better.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: kalimocho on July 03, 2007, 12:25:19 PM
It doesn't work for me with SMF 1.1.3 & TP 0.9.8 & "new definition" theme.

After install I get this over the forum:

// OB - Googlebot - Inicio // Cadenas del indice del foro $txt['ob_googlebot_modname'] = 'Googlebot & Spiders'; $txt['ob_googlebot_spider'] = 'Robot'; $txt['ob_googlebot_spiders'] = 'Robots'; $txt['ob_googlebot_spiders_last_active'] = 'Robots activos en los últimos ' . $modSettings['lastActive'] . ' minutos'; // Opciones y configuracion del foro $txt['ob_googlebot_count_all_instances'] = 'Contar todas las instancias del mismo robot'; $txt['ob_googlebot_display_all_instances'] = 'Mostrar todas las instancias del mismo robot
("' . $txt['ob_googlebot_count_all_instances'] . '" debe de estar seleccionado)
'; $txt['ob_googlebot_display_agent'] = 'Mostrar agente en vez del nombre'; $txt['ob_googlebot_display_own_list'] = 'Mostar robots en su propia lista'; $txt['ob_googlebot_count_most_online'] = 'Contar en "Máximo conectados"'; $txt['ob_googlebot_redirect_phpsessid'] = 'Redireccionar PHPSESSID URLs'; // Permisos $txt['permissiongroup_googlebot'] = $txt['ob_googlebot_modname']; $txt['permissionname_googlebot_view'] = 'Ver Googlebot y Robots'; // OB - Googlebot - Fin
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Bigguy on July 03, 2007, 12:31:47 PM
That looks to be a problem with the modifications.english.php file. Look in it and see if:

?>

is right at the very end of the file on it's own line. If not find it and move it there. it should not be right next to ANY code.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Moonlit_Ninja on July 04, 2007, 11:07:35 AM
Forgive my stupidity in advance, but...

Where can I find this modified 'theme file'?, I've looked up and down and cannot see the link anywhere amongst the nine pages of clutter ;D

EDIT: Damn, I am stupid!... had to be logged in to see it lol :P
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: kalimocho on July 04, 2007, 11:16:11 AM
Thx bigguy and owdy!  I obviously installed the mod (Googlebot_v2_0_3_only_smf1.1.x.zip) through SMF package manager and then I got that "strange" text over the SMF on any page :?

(Im using spanish-utf8 if that matter)
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Bulakbol on July 04, 2007, 01:13:54 PM
Quote from: kalimocho on July 04, 2007, 11:16:11 AM
Thx bigguy and owdy!  I obviously installed the mod (Googlebot_v2_0_3_only_smf1.1.x.zip) through SMF package manager and then I got that "strange" text over the SMF on any page :?

(Im using spanish-utf8 if that matter)

Uninstall the Googlebot_v2_0_3_only_smf1.1.x and download the Who.template.php from the first post. Then upload the Who.template.php to your Default Theme directory. You don't have to install it.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: kalimocho on July 04, 2007, 01:45:03 PM
Quote from: JohnyB on July 04, 2007, 01:13:54 PM
Uninstall the Googlebot_v2_0_3_only_smf1.1.x and download the Who.template.php from the first post. Then upload the Who.template.php to your Default Theme directory. You don't have to install it.

thank you!!! ;)
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: muslimways on July 07, 2007, 05:35:52 AM
Simply Fantastic! Thank you soo much!
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: kalimocho on July 07, 2007, 03:48:31 PM
I have it working!! it's impressive! :D

This bot is missing (http://www.noxtrum.com/):

QuoteNoxtrum
(194.x.x.x, noxtrumbot/1.0)
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: au8ust on July 08, 2007, 11:53:39 PM
Mine is look wrong... I don't know why

See http://i15.tinypic.com/52x9cev.jpg
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: aldo on July 14, 2007, 03:00:02 AM
Wow. I am using this(only used for a few seconds so far) and I already love it! Thanks, just what i was looking for to. ;)
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: MinasC on July 18, 2007, 02:11:40 PM
got an error in installation (smf 1.1.3 tp 0.9.8) in ModSettings.php ! i tried to install the latest version of the mod after i first uploaded and overwrote the who.template.php with the one given in the first post of this topic ! did i do anything wrong ? it is supposed to work with 1.1.3 , right ?

thnx !
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Kindred on July 18, 2007, 02:55:17 PM
???   what mod?!?!?   this is a replacement for the who.template.php, so far as I know there is no mod package associated with it.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: MinasC on July 18, 2007, 04:52:32 PM
isn't this mod http://mods.simplemachines.org/index.php?mod=143 associated to it ? i thought it was strongly recommended to custom who.template.php before we use it !
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: MinasC on July 18, 2007, 04:53:47 PM
it's all here :
http://www.simplemachines.org/community/index.php?topic=38003.0
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Kindred on July 18, 2007, 05:23:04 PM
that mod may recommend that you add the custom who.tmeplate first... but that mod is not related to this customization...    and problems with that mod should be asked about in the other thread...

replacing the who.template will not cause errors in any files, most especially not modsettings...
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: MinasC on July 19, 2007, 01:52:28 PM
you are sooooo right , my fault , i am sorry for being off topic here !  :-[
should i ask again in the mod topic ?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: shaiss on August 10, 2007, 04:05:14 PM
this may have been answered before.  But what agents and spiders are already in the template.   And what are the most common ones that arn't in the template?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: brianjw on September 07, 2007, 08:53:01 PM
I have a question -

Since we got this to appear in the who.template.php. Would it be hard to make it show in the 2 following places:

Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: DHC on September 11, 2007, 05:45:31 PM
Quote from: bl968 on December 14, 2006, 12:44:08 AM
I would like for the who list to give priority to Members first then guests then spiders so

show all members first, then show guests, and then spiders

For example I have
223 Spiders, 17 Guests, 7 Users (0 Buddies)  but on the Who's Online it shows

2 members on the first page, 2 Guests, and 56 spiders.

I want it to show as many members as possible if any room then show guests and if any room then show spiders.

Ideas?

I just read all the messages to see if there is a solution to this question, and did not find anything.

Can this be accomplished?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: bbulldog on September 17, 2007, 09:46:34 AM
if you had read them all you would have seen this
http://www.simplemachines.org/community/index.php?topic=19243.msg882787#msg882787

you are talking about a different mod.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: DHC on September 17, 2007, 10:17:19 AM
Quote from: bbulldog on September 17, 2007, 09:46:34 AM
if you had read them all you would have seen this
http://www.simplemachines.org/community/index.php?topic=19243.msg882787#msg882787

you are talking about a different mod.

Nice reply.

"if you had read ...."

I did, indeed, read each and every post - including the one you linked.

Maybe you are correct - although having read every post, I could not find confirmation.

I will repeat - and maybe someone can provide a HELPFUL response.

Can the Who.template be reorganized so that ALL members appear in a continuous block starting on Page 1 - with Guests in a continuous block following Members, and Spiders in a third (and last) continuous block?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: ~n[EO]n~ on September 22, 2007, 07:49:47 AM
Nah... it is not working for me.. can anyone help

I got a theme Silent wave from Bikken.... and i copied who.template.php in 3 places still does not work strange for me

One in Themes/                      folder
one in Themes/default            folder
one in Themse/SilentWave     folder

still does not show up
can anyone help please
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: mrgray on September 24, 2007, 01:16:59 AM
I have had an error with my install from months ago,

If someone here can recommend someone trustworthy to me I would pay to have it fixed.

I have PayPal.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: dazlia on September 29, 2007, 03:53:38 PM
Hi mate,

What the issie your having? error message? not displaying properly? not displaying at all?

Give me more info please and ill see if i can help

daz
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Jade Elizabeth on September 29, 2007, 07:09:07 PM
is there a way to hide the categories that have no entries?
so if theres no guests online, to remove that category until there is?

Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Jade Elizabeth on September 29, 2007, 07:16:20 PM
im aware this probably sounds stupid...
but where is the spiders/user agents things?

like i wanna make a list...but i dont have any existing files with such titles. do i create them, and where?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: sgtcyrex on September 30, 2007, 05:15:15 PM
Hi...

The mod is working, when i press the who's online link at the bottom, it says 0 spiders at the who's online page....

is it possible to make it say 3 users, 4 guests, 2 spiders on the bottom at the main page?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Jade Elizabeth on September 30, 2007, 05:18:45 PM
if you get 3 users and four guests online, and 2 spiders too :P
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: sgtcyrex on September 30, 2007, 05:20:48 PM
now it says on the bottom of the page, 0 guests, 2 members, 0 members?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: chrishicks on September 30, 2007, 07:28:19 PM
I am trying this on my test board and it doesn't show Spiders in my Users Online section. it just shows x guests, x users. if I go into the Who's Online section it will show in the 3 seperate catagories though.

EDIT: i accidently typed a 2 instead of a 3.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: jossanaijr on September 30, 2007, 07:29:59 PM
Quote from: chrishicks on September 30, 2007, 07:28:19 PM
I am trying this on my test board and it doesn't show Spiders in my Users Online section. it just shows x guests, x users. if I go into the Who's Online section it will show in the 2 seperate catagories though.
It only shows spider if there is one at that moment.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Jade Elizabeth on September 30, 2007, 07:38:51 PM
Quote from: Alundra on September 29, 2007, 07:16:20 PM
im aware this probably sounds stupid...
but where is the spiders/user agents things?

like i wanna make a list...but i dont have any existing files with such titles. do i create them, and where?

Quote from: Alundra on September 29, 2007, 07:09:07 PM
is there a way to hide the categories that have no entries?
so if theres no guests online, to remove that category until there is?

can anyone help me yet?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: chrishicks on September 30, 2007, 07:41:26 PM
oops, I just noticed I typed a 2 instead of a 3.

I ran a meta tags test on a bunch of sites in order to get the spiders on my board. at 1 point I had 7 different ones plus myself on it. in the Users Online section on the forum main page it said 7 guests, 1 user. when I did the who's online section I had 3 catagories. I was in the users section, 5 spiders were in the guests section and 2 were in the spiders section. why isn't it showing in the users online section as x guests, x users, x spiders?

EDIT: I just changed my users active time for my testboard. I also enabled guests to be able to view the users online. if someone wants to take a look at what I'm asking about go here: http://testforum.rejectsreststop.com/forum3/index.php?action=forum
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Jade Elizabeth on September 30, 2007, 08:20:39 PM
just change the file so it doesnt say "user" 3 times
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: chrishicks on September 30, 2007, 08:52:39 PM
I just realized that I was confusing this with the googlebot mod. I somehow missed a page in this thread and caught it during a reread.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Jade Elizabeth on October 11, 2007, 05:26:28 PM
OrgName:    Microsoft Corp
OrgID:      MSFT
Address:    One Microsoft Way
City:       Redmond
StateProv:  WA
PostalCode: 98052
Country:    US

NetRange:   65.52.0.0 - 65.55.255.255
CIDR:       65.52.0.0/14
NetName:    MICROSOFT-1BLK
NetHandle:  NET-65-52-0-0-1
Parent:     NET-65-0-0-0-0
NetType:    Direct Assignment
NameServer: NS1.MSFT.NET
NameServer: NS5.MSFT.NET
NameServer: NS2.MSFT.NET
NameServer: NS3.MSFT.NET
NameServer: NS4.MSFT.NET
Comment:   
RegDate:    2001-02-14
Updated:    2004-12-09

RTechHandle: ZM23-ARIN
RTechName:   Microsoft Corporation
RTechPhone:  +1-425-882-8080
RTechEmail:  [email protected]

OrgAbuseHandle: ABUSE231-ARIN
OrgAbuseName:   Abuse
OrgAbusePhone:  +1-425-882-8080
OrgAbuseEmail:  [email protected]

OrgAbuseHandle: HOTMA-ARIN
OrgAbuseName:   Hotmail Abuse
OrgAbusePhone:  +1-425-882-8080
OrgAbuseEmail:  [email protected]

OrgAbuseHandle: MSNAB-ARIN
OrgAbuseName:   MSN ABUSE
OrgAbusePhone:  +1-425-882-8080
OrgAbuseEmail:  [email protected]

OrgNOCHandle: ZM23-ARIN
OrgNOCName:   Microsoft Corporation
OrgNOCPhone:  +1-425-882-8080
OrgNOCEmail:  [email protected]

OrgTechHandle: MSFTP-ARIN
OrgTechName:   MSFT-POC
OrgTechPhone:  +1-425-882-8080
OrgTechEmail:  [email protected]

# ARIN WHOIS database, last updated 2007-10-10 19:10
# Enter ? for additional hints on searching ARIN's WHOIS database.


someone make him on the list, cause im tired of him
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: chep on October 11, 2007, 09:30:27 PM
When I add in a new bot or spider I usually find out what the agent name is by looking at who's online and taking part of that to be matched as the agent string in who.template.php.
Then I assign it a spider name which makes sense.

New bot I added today for example... it had this in the who's online string:
"MSRBOT https://research.microsoft.com/research/sv/msrbot/"

I designated it the Microsoft Research Bot and told it spider true.

           array (
                     'agent' => 'MSRBOT',
                     'spidername' => 'Microsoft Research Bot',
                    'spider' => true,
         ), 
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: chep on October 11, 2007, 09:42:47 PM
One more thing. Since I have the googlebots and spiders mod I also add this code into sources/subs.php
           array (
            'agent' => 'MSRBOT',
            'spidername' => 'MSRBOT',
        ), 
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: nax on October 24, 2007, 10:22:12 AM
We are on ver 1.1.3 and I've uses the code posted in the second version of Who.template.php in this thread, this all works fine except it takes ages to run, often times out and is almost impossible for dial up users to use - any ideas?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Jade Elizabeth on October 24, 2007, 05:37:04 PM
on my page, the text is missing a space

Crazy People Online       1 Guest, 3 Users2 Groupies

should look like this;

Crazy People Online       1 Guest, 3 Users and 2 Groupies
(groupies=buddies, and it was messed up like that before i changed the text)

http://www.imgfree.net/images/1636.jpg

i think this is the right topic lol
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Kindred on October 25, 2007, 12:10:37 AM
This is not the right topic. This topic is specifically for discussion on a modified who.template.php that separates users, guests and spiders... not that displays a count.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Jade Elizabeth on October 25, 2007, 12:49:32 AM
well what on earth was i looking for :S?
doesnt this mod modify the users online to have guests users and spiders?

cause i have just changed the text references thats it. so buddies is groupies, and users online is crazy people online...lol
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Kindred on October 25, 2007, 08:28:36 AM
what does the buddies and text strings have to do with separating the who's online list display?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Jade Elizabeth on October 25, 2007, 04:49:15 PM
:| ....the way its split, from guests and users and spiders and buddies....

it says "4 users2 buddies"
instead of "4 users 2 buddies"
or "4 users, 2 buddies"
or "4 users (2 buddies)"


i want some space in it lol
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: chep on October 25, 2007, 06:29:59 PM
Alundra, I could be wrong but I think the mod which does that is called Googlebot and Spiders
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Jade Elizabeth on October 25, 2007, 07:11:36 PM
:( okay lol

thankyou
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Tidea on November 12, 2007, 10:48:21 AM
I'm getting a lot of undefined parameters with this who file.  Any help?

8: Undefined index: who_action
File: /home/findmysa/public_html/project-tideas.com/forum/Themes/scribbles2_112/Who.template.php (main sub template - eval?)
Line: 119
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Bigguy on November 12, 2007, 11:59:59 AM
What mods do you have installed. Maybe it is due to one of them not playing nice with this template. Just something to check. :)
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Jade Elizabeth on November 12, 2007, 05:30:33 PM
just this and the google bot and spiders...they were it. it was like that upon instillation, no other mods edited that file
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Bigguy on November 12, 2007, 08:25:14 PM
Is the Who.template.php in your custom themes folder. ???
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Jade Elizabeth on November 12, 2007, 08:44:12 PM
nope....but it does it on the default too
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Bigguy on November 12, 2007, 09:32:36 PM
Put it in your custom theme folder and clear your error logs and see what happens.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Jade Elizabeth on November 12, 2007, 10:17:25 PM
nope.

no change still "0 Strangers, 3 Users2 Groupies" instead of "0 Strangers, 3 Users 2 Groupies"

it was still like that BEFORE i changed the text for guests and buddies
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: chep on November 13, 2007, 12:03:44 AM
Quote from: Alundra on October 24, 2007, 05:37:04 PM
on my page, the text is missing a space

Crazy People Online       1 Guest, 3 Users2 Groupies

should look like this;

Crazy People Online       1 Guest, 3 Users and 2 Groupies
(groupies=buddies, and it was messed up like that before i changed the text)

http://www.imgfree.net/images/1636.jpg

i think this is the right topic lol


You need to update BoardIndex.template.php which is not who.template.php but is a part of the googlebot and spiders mod.

Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Jade Elizabeth on November 13, 2007, 12:24:02 AM
// "Users online" - in order of activity.
echo '
<tr>
<td class="titlebg" colspan="2">', $txt[158], '</td>
</tr><tr>
<td rowspan="2" class="windowbg" width="20" valign="middle" align="center">
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', '<img src="', $settings['images_url'], '/icons/online.gif" alt="', $txt[158], '" />', $context['show_who'] ? '</a>' : '', '
</td>
<td class="windowbg2" width="100%">';

echo '
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', (empty($context['spiders']) ? '' : $context['num_spiders'] . ' ' . ($context['num_spiders'] == 1 ? $txt['ob_googlebot_spider'] : $txt['ob_googlebot_spiders']) . ', '), $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];

// Handle hidden users and buddies.
if (!empty($context['num_users_hidden']) || ($context['show_buddies'] && !empty($context['show_buddies'])))
{

// Show the number of buddies online?
if ($context['show_buddies'])
echo $context['num_buddies'], ' ', $context['num_buddies'] == 1 ? $txt['buddy'] : $txt['buddies'];

}

echo $context['show_who'] ? '</a>' : '', '
<div class="smalltext">';

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);

if (!empty($context['spiders']))
{
if ($modSettings['ob_googlebot_display_own_list'])
echo '
<br />
', $txt['ob_googlebot_spiders_last_active'], ':<br />';
else
{
if (empty($context['users_online']))
echo '
', $txt[140], ':<br />';
else
echo ', ';
}

echo implode(', ', $context['spiders']);
}

echo '
<br />
', $context['show_stats'] && !$settings['show_sp1_info'] ? '<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</div>
</td>
</tr>
<tr>
<td class="windowbg2" width="100%">
<span class="middletext">
', $txt['most_online_today'], ': <b>', $modSettings['mostOnlineToday'], '</b>.
', $txt['most_online_ever'], ': ', $modSettings['mostOnline'], ' (' , timeformat($modSettings['mostDate']), ')
</span>
</td>
</tr>';


dunno what to fix...i appreciate you helping though :)
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: chep on November 13, 2007, 12:53:08 AM
is a groupie a buddy?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Jade Elizabeth on November 13, 2007, 12:57:28 AM
yup :) it was doing it before i changed buddy to groupie just so you know
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: chep on November 13, 2007, 01:08:50 AM
Please backup BoardIndex.template.php first

Then attempt this below.

Change this:

// Show the number of buddies online?
if ($context['show_buddies'])
echo $context['num_buddies'], ' ', $context['num_buddies'] == 1 ? $txt['buddy'] : $txt['buddies'];


To this:


  echo ' (';
  // Show the number of buddies online?
  if ($context['show_buddies'])
   echo $context['num_buddies'], ' ', $context['num_buddies'] == 1 ? $txt['buddy'] : $txt['buddies'];
  echo ')';


By the way .. I didn't add it in there for you but it looks like you are missing the code for the hidden members in that same section. Perhaps some mod edited it out , but just thought I would mention it...
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Jade Elizabeth on November 13, 2007, 08:27:08 AM
oh i requested it. it was like that (missing a space) before i removed that part of the code. i didnt want hidden members counted at all :D lol
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Jade Elizabeth on November 13, 2007, 09:01:53 AM
appears to have worked

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimgfree.net%2Fimages%2F1703.jpg&hash=06a221b4e3ae01ec0ff3baaeb993ff9b1bb4cffe)

thankyou! (though i still wont believe it, howd you do it?)
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: chrishicks on November 16, 2007, 08:02:29 PM
I'm about to finally add this to my forum and was wondering if anyone could point me to a place that has a really loaded list of spiders/bots(a copy/paste list for a code newbie)? I have the current version installed on my test board and many bots/spiders actually show up under guests. thank you in advance
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: chrishicks on November 17, 2007, 02:18:27 AM
another thing, I see it was mentioned about the issue with Firefox. when I browse my forum using Firefox everyone is shown with the MSN browser. in IE it works fine however. was a workaround for the Firefox issue ever found?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: DeMar on November 17, 2007, 04:02:33 AM
Do someone have the latest spider list? Can you post it here?

How can I see in the who.template from which country visitors are. But only for admins.

Thanks
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Alejandro1 on November 19, 2007, 08:27:59 AM
I really need some help, sice my forum is live and I don't want to f### it up  ;D

This is my Who.template.php and it doesn't look anything like the one that I downloaded from the topicstart:

<?php
// Version: 1.1; Who

// The only template in the file.
function template_main()
{
global $context$settings$options$scripturl$txt;

// Display the table header and linktree.
echo '
<div style="padding: 3px;">'
theme_linktree(), '</div>
<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder">
<tr class="titlebg">
<td width="30%"><a href="' 
$scripturl '?action=who;start='$context['start'], ';sort=user'$context['sort_direction'] != 'down' && $context['sort_by'] == 'user' '' ';asc''">'$txt['who_user'], ' '$context['sort_by'] == 'user' '<img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" />' '''</a></td>
<td style="width: 14ex;"><a href="' 
$scripturl '?action=who;start='$context['start'], ';sort=time'$context['sort_direction'] == 'down' && $context['sort_by'] == 'time' ';asc' '''">'$txt['who_time'], ' '$context['sort_by'] == 'time' '<img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" />' '''</a></td>
<td>'
$txt['who_action'], '</td>
</tr>'
;

// This is used to alternate the color of the background.
$alternate true;

// For every member display their name, time and action (and more for admin).
foreach ($context['members'] as $member)
{
// $alternate will either be true or false. If it's true, use "windowbg2" and otherwise use "windowbg".
echo '
<tr class="windowbg'
$alternate '2' '''">
<td>'
;

// Guests don't have information like icq, msn, y!, and aim... and they can't be messaged.
if (!$member['is_guest'])
{
echo '
<div style="float: right; width: 14ex;">
'
$context['can_send_pm'] ? '<a href="' $member['online']['href'] . '" title="' $member['online']['label'] . '">' ''$settings['use_image_buttons'] ? '<img src="' $member['online']['image_href'] . '" alt="' $member['online']['text'] . '" align="middle" />' $member['online']['text'], $context['can_send_pm'] ? '</a>' '''
'
$member['icq']['link'], ' '$member['msn']['link'], ' '$member['yim']['link'], ' '$member['aim']['link'], '
</div>'
;
}

echo '
<span'
$member['is_hidden'] ? ' style="font-style: italic;"' '''>'$member['is_guest'] ? $member['name'] : '<a href="' $member['href'] . '" title="' $txt[92] . ' ' $member['name'] . '"' . (empty($member['color']) ? '' ' style="color: ' $member['color'] . '"') . '>' $member['name'] . '</a>''</span>';

if (!empty($member['ip']))
echo '
(<a href="' 
$scripturl '?action=trackip;searchip=' $member['ip'] . '" target="_blank">' $member['ip'] . '</a>)';

echo '
</td>
<td nowrap="nowrap">'
$member['time'], '</td>
<td>'
$member['action'], '</td>
</tr>'
;

// Switch alternate to whatever it wasn't this time. (true -> false -> true -> false, etc.)
$alternate = !$alternate;
}

echo '
<tr class="titlebg">
<td colspan="3"><b>'
$txt[139], ':</b> '$context['page_index'], '</td>
</tr>
</table>'
;
}

?>


Is there someone so helpfull as to help me out with this? I'm using SMF 1.1.4, with TP0.9.8 and Blocs's Enterprise theme.

Already installed the Googlebot v2.0.3 mod, adapted my modifications.dutch-utf8.php and have the functions for that mod available in my adminpanel, but nothing changes in  my users online, so I guessed I first would have to install this mod to get it working properly.

Any help would be greatly appreciated  ;D
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: DeMar on November 26, 2007, 11:21:46 AM
Do someone have the latest spider list? Can you post it here?

How can I see in the who.template from which country visitors are. But only for admins.

Thanks
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: JimM on November 30, 2007, 06:48:26 PM
Here is a site I find quite useful when Spiders/Bots show up that are not in the template.

http://www.user-agents.org/index.shtml
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: john34516 on December 02, 2007, 03:27:06 PM
i upload the new who.template but

on my main page show only for example 2 Guests, 4 Users and not spiders

why that??

what i have to do to show and spiders?



Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Chadrew on December 03, 2007, 10:12:33 AM
QuoteHey,
I installed Googlebot & Spiders mod and this mod on my Safmc theme.
All this mod does is show a separate table for spiders in "Who's Online" page.
What I also want it to do is show "Active spiders in last 15 minutes" like on my default theme. What do I edit and where?

Nevermind, I found out myself.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: DarkCAMV on December 08, 2007, 03:58:36 PM
Hi!, thanks for the mod, it's really usefull, but well here's my trouble...

I've installed this file and the mod Googlebot & Spiders, the Googlebot is doing what I want, for regular users show the spiders as guests, but if a regular user sees the Who's Online List, the spiders are shown...

So my question is, is there a way to show the spiders as guest for regular users on the Who Online List?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Deaks on December 15, 2007, 02:35:48 PM
do you still require help with this??
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: DarkCAMV on December 16, 2007, 06:05:01 PM
Well I'm still waiting for an answer...  :(
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Kindred on December 16, 2007, 08:07:45 PM
in other words... you want to combine two mods to make them both do something that neither was designed to do...


Of course there is a way... but I suggest that you either write the code or request someone to write it for you...   this is not the thread for that, however.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: FotoZone on December 18, 2007, 12:32:27 PM
2. What if i wanna ad more spiders or user agents?

Spiders, find:
Code:

//Search Spiders

ad after:
Code:

array (
         'agent' => 'Openbot',
         'spidername' => 'Openfind spider',
         'spider' => true,
                ),



User agents/browsers, find:
Code:

//Browsers

ad after:
Code:

array (
      'agent' => 'Epiphany',
       ),



not  in who.template
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: DarkCAMV on December 18, 2007, 04:56:25 PM
Quote from: Kindred on December 16, 2007, 08:07:45 PM
in other words... you want to combine two mods to make them both do something that neither was designed to do...

Not exactly, with the Google and Spiders mod I don't have any trouble, all I want is that the Who's Online List show the spiders for admins and moderator only.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: FotoZone on December 18, 2007, 06:11:13 PM
help
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: khokon on January 11, 2008, 03:16:44 PM
Can i use  Googlebot & Spiders mod in SMF 1.1.4?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: JimM on January 13, 2008, 12:40:15 AM
Yep, it works fine in 1.1.4.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: susb on January 14, 2008, 08:25:58 PM
I just installed this - it is great!
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Donovan Cane on January 19, 2008, 07:25:13 PM
Owdy, Can you please Update the Attachment? getting 404 Error.



Thanks
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: lbuisson on January 20, 2008, 04:50:26 AM
Dear all,

You can add this spider in your who.template.php

array (

            'agent' => 'Exabot/3.0',

            'spidername' => 'Exabot',
           
            'spider' => true,

),
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: susb on January 20, 2008, 03:14:12 PM
This is coming up as a regular guest:

(77.91.224.14, WebAlta Crawler/2.0 (http://www.webalta.net/ru/about_webmaster.html) (Windows; U; Windows NT 5.1; ru-RU))

Is this a spider?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: TheWrath! on January 21, 2008, 12:36:07 PM
great. i love it. thanks for the update!
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Bancherd on January 22, 2008, 12:34:30 AM
Same here. :)  Works wonderfully, thanks. :D
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: bigberty on January 23, 2008, 07:38:50 PM
I have replace the Who.template.php in my theme folder with the one from the first post here, but it does not separate the users in tp or at the foot of the forum, only when I click on "users online" do I see a separated list.

All I see is "1 Guest, 1 User" surely it should at least say "0 Spiders, 1 Guest, 1 User" or does this only kick in after I have been spidered?

Also, I tried the updated Who.template.php from half way through this thread, but when I click on "users online" it says

Array
(
)

instead of showing the list.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Kindred on January 24, 2008, 12:58:57 AM
this template ONLY updates the "WHO IS ONLINE" list. It does not update any other files...   so the TP or boardindex list of online users is not modified by this....
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: bigberty on January 24, 2008, 07:55:04 AM
ok thanks for clearing that up, I will try the tread for the mod.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: neotan on February 05, 2008, 09:54:02 AM
Hi,

Could someone post the latest Who.template .php? Thanks
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: neotan on February 06, 2008, 05:01:17 AM
Quote from: Owdy on February 05, 2008, 05:34:41 PM
Quote from: neotan on February 05, 2008, 09:54:02 AM
Hi,

Could someone post the latest Who.template .php? Thanks
Download update package.

Could you elaborate?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: wimvincken on February 07, 2008, 06:55:15 PM
Thank you, thank you and thank you.

Absolutely perfect and wonderful. I was looking for this already for ages and you made my day. Really wonderful addition to SMF. I use it for sure! And my users (especially my (nagging) mods) love it too!

Excellent work.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: l.uca on February 12, 2008, 02:07:35 PM
Hi to all, help me please it give me this error:
Parse error: syntax error, unexpected $end in /web/htdocs/www.risorsedirete.com/home/forum/Sources/ModSettings.php on line 565

this is my modsettings.php

code:
<?php
/**********************************************************************************
* ModSettings.php                                                                 *
***********************************************************************************
* SMF: Simple Machines Forum                                                      *
* Open-Source Project Inspired by Zef Hemel ([email protected])                    *
* =============================================================================== *
* Software Version:           SMF 1.1                                             *
* Software by:                Simple Machines (http://www.simplemachines.org)     *
* Copyright 2006 by:          Simple Machines LLC (http://www.simplemachines.org) *
*           2001-2006 by:     Lewis Media (http://www.lewismedia.com)             *
* Support, News, Updates at:  http://www.simplemachines.org                       *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version can always be found at http://www.simplemachines.org.        *
**********************************************************************************/
if (!defined('SMF'))
die('Hacking attempt...');

/* This file is here to make it easier for installed mods to have settings
and options.  It uses the following functions:

void ModifyFeatureSettings()
// !!!

void ModifyFeatureSettings2()
// !!!

void ModifyBasicSettings()
// !!!

void ModifyLayoutSettings()
// !!!

void ModifyKarmaSettings()
// !!!

Adding new settings to the $modSettings array:
---------------------------------------------------------------------------
// !!!
*/

/* Adding options to one of the setting screens isn't hard.  The basic format for a checkbox is:
array('check', 'nameInModSettingsAndSQL'),

   And for a text box:
array('text', 'nameInModSettingsAndSQL')
   (NOTE: You have to add an entry for this at the bottom!)

   In these cases, it will look for $txt['nameInModSettingsAndSQL'] as the description,
   and $helptxt['nameInModSettingsAndSQL'] as the help popup description.

Here's a quick explanation of how to add a new item:

 * A text input box.  For textual values.
ie. array('text', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

 * A text input box.  For numerical values.
ie. array('int', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

 * A text input box.  For floating point values.
ie. array('float', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

         * A large text input box. Used for textual values spanning multiple lines.
ie. array('large_text', 'nameInModSettingsAndSQL', 'OptionalNumberOfRows',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

 * A check box.  Either one or zero. (boolean)
ie. array('check', 'nameInModSettingsAndSQL', null, &$txt['descriptionOfTheOption'],
'OptionalReferenceToHelpAdmin'),

 * A selection box.  Used for the selection of something from a list.
ie. array('select', 'nameInModSettingsAndSQL', array('valueForSQL' => &$txt['displayedValue']),
&$txt['descriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),
Note that just saying array('first', 'second') will put 0 in the SQL for 'first'.

 * A password input box. Used for passwords, no less!
ie. array('password', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['descriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

For each option:
type (see above), variable name, size/possible values, description, helptext.
OR make type 'rule' for an empty string for a horizontal rule.
OR make type 'heading' with a string for a titled section. */

// This function passes control through to the relevant tab.
function ModifyFeatureSettings()
{
global $context$txt$scripturl$modSettings$sourcedir;

// You need to be an admin to edit settings!
isAllowedTo('admin_forum');

// All the admin bar, to make it right.
adminIndex('edit_mods_settings');
loadLanguage('Help');
loadLanguage('ModSettings');

// Will need the utility functions from here.
require_once($sourcedir '/ManageServer.php');

$context['page_title'] = $txt['modSettings_title'];
$context['sub_template'] = 'show_settings';

$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'googlemap' => 'ModifyGoogleMapSettings',
'googlemap' => 'ModifyGoogleMapSettings',
'ThankYou' => 'ModifyThankYouSettings',
'MemberColorLinks' => 'ModifyMemberColorLinksSettings',
'karma' => 'ModifyKarmaSettings',
'googlebot' => 'ModifyGooglebotSettings',
);

// By default do the basic settings.
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
$context['sub_action'] = $_REQUEST['sa'];

// Load up all the tabs...
$context['admin_tabs'] = array(
'title' => &$txt['modSettings_title'],
'help' => 'modsettings',
'description' => $txt['smf3'],
'tabs' => array(
'basic' => array(
'title' => $txt['mods_cat_features'],
'href' => $scripturl '?action=featuresettings;sa=basic;sesc=' $context['session_id'],
),
'layout' => array(
'title' => $txt['mods_cat_layout'],
'href' => $scripturl '?action=featuresettings;sa=layout;sesc=' $context['session_id'],
),
'ThankYou' => array(
'title' => $txt['Thank_You_Headline'],
'href' => $scripturl '?action=featuresettings;sa=ThankYou;sesc=' $context['session_id'],
),
'MemberColorLinks' => array(
'title' => $txt['MemberColorLinkHeadline'],
'href' => $scripturl '?action=featuresettings;sa=MemberColorLinks;sesc=' $context['session_id'],
),

'sbox' => array(
'title' => $txt['sbox_ModTitle'],
'href' => $scripturl '?action=featuresettings;sa=sbox;sesc=' $context['session_id'],
),

'googlemap' => array(
'title' => $txt['googleMapFO'],
'href' => $scripturl '?action=featuresettings;sa=googlemap;sesc=' $context['session_id'],
),

'googlemap' => array(
'title' => $txt['googleMapFO'],
'href' => $scripturl '?action=featuresettings;sa=googlemap;sesc=' $context['session_id'],
),
'karma' => array(
'title' => $txt['smf293'],
'href' => $scripturl '?action=featuresettings;sa=karma;sesc=' $context['session_id'],
),
'googlebot' => array(
'title' => $txt['ob_googlebot_modname'],
'href' => $scripturl '?action=featuresettings;sa=googlebot;sesc=' $context['session_id'],
),
'googlebot' => array(
'title' => $txt['ob_googlebot_modname'],
'href' => $scripturl '?action=featuresettings;sa=googlebot;sesc=' $context['session_id'],
'is_last' => true,
),
),
);

// Select the right tab based on the sub action.
if (isset($context['admin_tabs']['tabs'][$context['sub_action']]))
$context['admin_tabs']['tabs'][$context['sub_action']]['is_selected'] = true;

// Call the right function for this sub-acton.
$subActions[$_REQUEST['sa']]();
}

// This function basically just redirects to the right save function.
function ModifyFeatureSettings2()
{
global $context$txt$scripturl$modSettings$sourcedir;

isAllowedTo('admin_forum');
loadLanguage('ModSettings');

// Quick session check...
checkSession();

require_once($sourcedir '/ManageServer.php');

$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'ThankYou' => 'ModifyThankYouSettings',
'MemberColorLinks' => 'ModifyMemberColorLinksSettings',
'karma' => 'ModifyKarmaSettings',
'googlebot' => 'ModifyGooglebotSettings',
'googlemap' => 'ModifyGoogleMapSettings',
);

// Default to core (I assume)
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';

// Actually call the saving function.
$subActions[$_REQUEST['sa']]();
}

function 
ModifyBasicSettings()
{
global $txt$scripturl$context$settings$sc$modSettings;

$config_vars = array(
// Big Options... polls, sticky, bbc....
array('select''pollMode', array(&$txt['smf34'], &$txt['smf32'], &$txt['smf33'])),
'',
// Basic stuff, user languages, titles, flash, permissions...
array('check''allow_guestAccess'),
array('check''userLanguage'),
array('check''allow_editDisplayName'),
array('check''allow_hideOnline'),
array('check''allow_hideEmail'),
array('check''guest_hideContacts'),
array('check''titlesEnable'),
array('check''enable_buddylist'),
array('text''default_personalText'),
array('int''max_signatureLength'),
'',
// Stats, compression, cookies.... server type stuff.
array('text''time_format'),
array('select''number_format', array('1234.00' => '1234.00''1,234.00' => '1,234.00''1.234,00' => '1.234,00''1 234,00' => '1 234,00''1234,00' => '1234,00')),
array('float''time_offset'),
array('int''failed_login_threshold'),
array('int''lastActive'),
array('check''trackStats'),
array('check''hitStats'),
array('check''enableErrorLogging'),
array('check''securityDisable'),

array('check''hideVersion'),
'',
// Reactive on email, and approve on delete
array('check''send_validation_onChange'),
array('check''approveAccountDeletion'),
'',
// Option-ish things... miscellaneous sorta.
array('check''allow_disableAnnounce'),
array('check''disallow_sendBody'),
array('check''modlog_enabled'),
array('check''queryless_urls'),
'',
// Action SEF URLS?
array('check''enableActionurls'),
array('check''enableCurls'),
array('check''enablePageurls'),
array('check''enableUseQuestion'),
array('check''enableNoIndex'),

'',
// Width/Height image reduction.
array('int''max_image_width'),
array('int''max_image_height'),
'',
// Reporting of personal messages?
array('check''enableReportPM'),
);

// Saving?
if (isset($_GET['save']))
{
// Fix PM settings.
$_POST['pm_spam_settings'] = (int) $_POST['max_pm_recipients'] . ',' . (int) $_POST['pm_posts_verification'] . ',' . (int) $_POST['pm_posts_per_hour'];
$save_vars $config_vars;
$save_vars[] = array('text''pm_spam_settings');

saveDBSettings($save_vars);

writeLog();
redirectexit('action=featuresettings;sa=basic');
}

// Hack for PM spam settings.
list ($modSettings['max_pm_recipients'], $modSettings['pm_posts_verification'], $modSettings['pm_posts_per_hour']) = explode(','$modSettings['pm_spam_settings']);
$config_vars[] = array('int''max_pm_recipients');
$config_vars[] = array('int''pm_posts_verification');
$config_vars[] = array('int''pm_posts_per_hour');

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=basic';
$context['settings_title'] = $txt['mods_cat_features'];

prepareDBSettingContext($config_vars);
}

function 
ModifyLayoutSettings()
{
global $txt$scripturl$context$settings$sc;

$config_vars = array(
// Compact pages?
array('check''compactTopicPagesEnable'),
array('int''compactTopicPagesContiguous'null$txt['smf235'] . '<div class="smalltext">' str_replace(' ''&nbsp;''"3" ' $txt['smf236'] . ': <b>1 ... 4 [5] 6 ... 9</b>') . '<br />' str_replace(' ''&nbsp;''"5" ' $txt['smf236'] . ': <b>1 ... 3 4 [5] 6 7 ... 9</b>') . '</div>'),
'',
// Stuff that just is everywhere - today, search, online, etc.
array('select''todayMod', array(&$txt['smf290'], &$txt['smf291'], &$txt['smf292'])),
array('check''topbottomEnable'),
array('check''onlineEnable'),
array('check''enableVBStyleLogin'),
'',
// Pagination stuff.
array('int''defaultMaxMembers'),
'',
// This is like debugging sorta.
array('check''timeLoadPageEnable'),
array('check''disableHostnameLookup'),
'',
// Who's online.
array('check''who_enabled'),
'',
// SimpleImageshack mod - SimpleTweaks.co.nr
array('check''SimpleImageShack_enable'),
array('check''SimpleImageShack_permis'),
array('int''SimpleImageShack_width'),
array('int''SimpleImageShack_height'),
array('text''SimpleImageShack_txtclr'),
array('int''SimpleImageShack_uplfld'),
'',
            
// The Streaming Mod Options.
        
array('check''enableEmbeddedStream'),
array('check''enableEmbeddedReal'),
array('check''enableEmbeddedQuick'),
array('check''enableGoogleVideo'),
array('check''enableYouTube'),
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=layout');

loadUserSettings();
writeLog();
}

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=layout';
$context['settings_title'] = $txt['mods_cat_layout'];

prepareDBSettingContext($config_vars);
}

function 
ModifyKarmaSettings()
{
global $txt$scripturl$context$settings$sc;

$config_vars = array(
// Karma - On or off?
array('select''karmaMode'explode('|'$txt['smf64'])),
'',
// Who can do it.... and who is restricted by time limits?
array('int''karmaMinPosts'),
array('float''karmaWaitTime'),
array('check''karmaTimeRestrictAdmins'),
'',
// What does it look like?  [smite]?
array('text''karmaLabel'),
array('text''karmaApplaudLabel'),
array('text''karmaSmiteLabel'),
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=karma');
}

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=karma';
$context['settings_title'] = $txt['smf293'];

prepareDBSettingContext($config_vars);
function 
ModifyGooglebotSettings()
{
global $txt$scripturl$context$settings$sc;

$config_vars = array(
// Count all instances of spiders?
array('check''ob_googlebot_count_all_instances'),
array('check''ob_googlebot_display_all_instances'),
array('check''ob_googlebot_display_agent'),
array('check''ob_googlebot_display_own_list'),
'',
// Count spiders on most online?
array('check''ob_googlebot_count_most_online'),
'',
// Redirect PHPSESSID URLs?
array('check''ob_googlebot_redirect_phpsessid'),
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=googlebot');
}

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=googlebot';
$context['settings_title'] = $txt['ob_googlebot_modname'];

prepareDBSettingContext($config_vars);
}
function 
ModifyThankYouSettings()
{
global $txt$scripturl$context$settings$sc;

$config_vars = array(
//Thank you User Settings?
array('check''Thank_You_UserOrder'),
array('check''Thank_You_MemberColor'),
array('check''Thank_You_AddCounter'),
'',
//ThankYouList or not ;)
array('check''Thank_You_LinkListOnly'),
array('check''Thank_You_AddLink'),
array('int''Thank_You_UserPreview'),
'',
//HideMod DIN1031 Version
array('check''Thank_You_ShowHidden'),
//HideMod Leaf Version
array('check''Thank_You_ShowHidePostReply'),
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=ThankYou');
}

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=ThankYou';
$context['settings_title'] = $txt['Thank_You_Headline'];

prepareDBSettingContext($config_vars);
}
function 
ModifyMemberColorLinksSettings()
{
global $txt$scripturl$context$settings$sc;

$config_vars = array(
// Standard Membercolor?
array('check''MemberColorLink'),
'',
//Some Stat Settings
array('check''MemberColorLatestMember'),
array('check''MemberColorStats'),
array('check''MemberColorWhoIsOnline'),
'',
//Thread and Boardsettings
array('check''MemberColorThreadOwner'),
array('check''MemberColorThreadLastPost'),
array('check''MemberColorThreadChild'),
'',
//Birthday and Calendar 
array('check''MemberColorBoardindex'),
array('check''MemberColorBirthday'),
'',
//Some Recent Things
array('check''MemberColorRecentOwner'),
array('check''MemberColorRecentLastPost'),
'',
// PM Colors
array('check''MemberColorInbox'),
array('check''MemberColorOutbox'),
'',
//Guest Color
array('text''MemberColorGuests'),
//Banned User Color
array('text''MemberColorBanned'),
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=MemberColorLinks');
}

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=MemberColorLinks';
$context['settings_title'] = $txt['MemberColorLinkHeadline'];

prepareDBSettingContext($config_vars);
}

$txt['googleMapsEnable'] = 'Abilita Mappa Utenti Google';
$txt['googleMapsEnableLegend'] = 'Mostra legenda segnaposti';
$txt['googleSidebar'] = 'Dove mostrare la barra laterale';
$txt['googleMapsKey'] = 'Chiave per Google Maps API';
$txt['googleMapsPinGender'] = 'Mostra il sesso sul segnaposto?';
$txt['googleMapsPinNumber'] = 'Numero massimo di segnaposti da mostrare';
$txt['googleMapsType'] = 'Tipo di mappa da mostrare';
$txt['googleMapsDefaultLat'] = 'Latitudine di default';
$txt['googleMapsDefaultLong'] = 'Longitudine di default';
$txt['googleMapsDefaultZoom'] = 'Zoom di default';
$txt['googleMapsEnableClusterer'] = 'Abilita raggruppamento segnaposti';
$txt['googleMapsMinMarkerCluster'] = 'Segnaposto minimi per gruppo';
$txt['googleMapsMaxVisMarker'] = 'Numero massimo di segnaposto visibili';
$txt['googleMapsMaxNumClusters'] = 'Numero massimo di gruppi';
$txt['googleMapsMaxLinesCluster'] = 'Numero massimo di linee nel Info Box del gruppo';
$txt['googleMapFO'] = 'Mappa Utenti';


function 
ModifyGoogleMapSettings()
{
global $txt$scripturl$context$settings$sc;

$config_vars = array(
// Map - On or off?
array('check''googleMapsEnable'),
array('check''googleMapsEnableLegend'),
'',
// Key, pins static/gender/membergroup
array('text''googleMapsKey'),
array('check''googleMapsPinGender'),
array('int''googleMapsPinNumber'),
            array(
'select''googleMapsType', array('G_NORMAL_MAP' => 'Map''G_SATELLITE_MAP' => 'Satellite''G_HYBRID_MAP' => 'Hybrid')),
            array(
'select''googleSidebar', array('No Sidebar''Sidebar Right')),
        
'',
            
// Default Location/Zoom
            
array('float''googleMapsDefaultLat''25'),
            array(
'float''googleMapsDefaultLong''25'),
            array(
'int''googleMapsDefaultZoom'),
        
'',
            
// Clustering Options
            
array('check''googleMapsEnableClusterer'),
            array(
'int''googleMapsMinMarkerCluster'),
            array(
'int''googleMapsMaxVisMarker'),
            array(
'int''googleMapsMaxNumClusters'),
            array(
'int''googleMapsMaxLinesCluster'),
            
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=googlemap');
}

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=googlemap';
$context['settings_title'] = $txt['googleMapFO'];

prepareDBSettingContext($config_vars);
}
?>


thanks
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Kindred on February 12, 2008, 09:57:57 PM
Why would you have modified modsettings.php?  This file JUST replaces the who.template.php and has no other affect on any other file.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: l.uca on February 13, 2008, 07:14:05 AM
sorry for my post, becouse i installed yhe mod and it give me this error  :-[
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: gemigene on February 15, 2008, 12:40:18 AM
Love your custom template, excellent work!

Could it be made that only admins would have access to it? Don't like the idea of users finding out what Admins are doing.

Thanks,
Gene
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Bigguy on February 15, 2008, 12:44:47 AM
This is not a mod but a template replacement.

Quote from: l.uca on February 13, 2008, 07:14:05 AM
sorry for my post, becouse i installed yhe mod and it give me this error  :-[
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Kindred on February 15, 2008, 09:52:23 AM
Quote from: gemigene on February 15, 2008, 12:40:18 AM
Could it be made that only admins would have access to it? Don't like the idea of users finding out what Admins are doing.

That is a standard SMF permission...

Alternatively, admins can HIDE their presence, thus also hiding thier actions from everyone except other admins.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: gemigene on February 15, 2008, 05:22:29 PM
Quote from: Kindred on February 15, 2008, 09:52:23 AM
Quote from: gemigene on February 15, 2008, 12:40:18 AM
Could it be made that only admins would have access to it? Don't like the idea of users finding out what Admins are doing.

That is a standard SMF permission...

Alternatively, admins can HIDE their presence, thus also hiding thier actions from everyone except other admins.

Duhh, I feel like a moron, found it and fixed it...

Thanks a million,
Gene
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: navin.p on March 13, 2008, 09:07:58 PM
Hey everyone,
I have been doing a bit reading in this thread. Just added that file in my default folder, and it works very nice. I was wondering, does anyone here know a way how to show "spiders" as "guests" to all of my members and visitors? I don't want others to know if my visitors are just bots.

Any help would be highly appreciated, thanks :D
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: navin.p on March 13, 2008, 09:17:59 PM
Never mind my previous post. I found a solution already, and that is: permissions.
For those who wanted to do the same should do this:
Put in your feature settings to show the "who is online" list, and put in your settings that only moderators and administrators have access to it. Visitors and members will then only see guests and members :D
Want to see how it works? Visit my website: www.metalsuriname.com
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: unrelenting on March 24, 2008, 09:07:18 PM
Quote from: navin.p on March 13, 2008, 09:07:58 PM
Hey everyone,
I have been doing a bit reading in this thread. Just added that file in my default folder, and it works very nice. I was wondering, does anyone here know a way how to show "spiders" as "guests" to all of my members and visitors? I don't want others to know if my visitors are just bots.

Any help would be highly appreciated, thanks :D

Here is a quick hack that will show only a Members section and a Guest section to regular members and guests. It won't show the Spiders as Spiders, instead it lumps them in with the guests.

It will display as usual to Admins and Mods. It's just a simple if/else addition with a couple lines removed from the 19-12-07 edit. If anyone notices something that needs changed then please let me know. I am not nearly as fluent at php as Owdy or some of the other prodigies here are.  :)

I too preferred to make my site look busier to guests and regular members.

http://www.datafilehost.com/download-aca6841d.html
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: LLandL on March 30, 2008, 05:12:42 AM
Just added this to my forum and it works just great.

Very cool, thanks  8)
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: ! CatHead on April 01, 2008, 12:55:25 AM
thx!  I like this template  :)
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: susb on April 01, 2008, 08:56:30 AM
I have been using this for a while, and I just changed to unrelenting's version.  It is even better!

Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Nibogo on April 01, 2008, 07:23:36 PM
someone can put images of this trick??
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: susb on April 01, 2008, 08:14:56 PM
Here are shots of unrelenting's version:

admin view:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.healingafterloss.org%2Fpics%2Fadminview.jpg&hash=7d914e28504905de03840fe8da82627516a3a946)


regular member view:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.healingafterloss.org%2Fpics%2Fregularuser.jpg&hash=9a3184c7e9056199c69cc22eca98b505a0cebd93)
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: ApplianceJunk on April 06, 2008, 03:21:14 PM
Very cool, thanks!
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Apllicmz on April 07, 2008, 01:29:57 PM
nice work..
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: madmat.it on April 18, 2008, 04:17:55 AM
tnx so much. A very usefull mod. ;)
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Sabreâ„¢ on April 22, 2008, 10:27:42 PM
Quick question.

Would it harm any, if I added another spider list, and would end up having doubles?
Eg..   msn spider from the first list, and also in the second.
Or is it better to go through both lists and delete ALL the duplicates?

Thank You in advance :)
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Kindred on April 22, 2008, 11:07:18 PM
you should delete the duplicates.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Sabreâ„¢ on April 22, 2008, 11:09:32 PM
lol  Yea I know.
I was just tryin to be lazy lol
With 50 in this new list, it'd be a little frustrating.
Guess I'd better see what the mrs is up to tonight!! lol

Cheers mate :)
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: FragaCampos on April 29, 2008, 07:30:58 PM
Quote from: unrelenting on March 24, 2008, 09:07:18 PM
Quote from: navin.p on March 13, 2008, 09:07:58 PM
Hey everyone,
I have been doing a bit reading in this thread. Just added that file in my default folder, and it works very nice. I was wondering, does anyone here know a way how to show "spiders" as "guests" to all of my members and visitors? I don't want others to know if my visitors are just bots.

Any help would be highly appreciated, thanks :D

Here is a quick hack that will show only a Members section and a Guest section to regular members and guests. It won't show the Spiders as Spiders, instead it lumps them in with the guests.

It will display as usual to Admins and Mods. It's just a simple if/else addition with a couple lines removed from the 19-12-07 edit. If anyone notices something that needs changed then please let me know. I am not nearly as fluent at php as Owdy or some of the other prodigies here are.  :)

I too preferred to make my site look busier to guests and regular members.

http://www.datafilehost.com/download-aca6841d.html

Thank you and Owdy (of course)! Great mod! ;)
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: FragaCampos on May 02, 2008, 06:23:54 PM
I have 3 languages in my forum. How can i translate the mod for all of them, instead of just one?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: cleanfiles on May 26, 2008, 04:51:51 AM
Hey guys this is a very good addition thanks for putting it together,
One more thing would make all this perfect and that would be for the who's online page to auto refresh, that way I could sit back and keep track of members without refreshing the page.....Any ideas? :)
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Atheo on May 30, 2008, 10:22:54 AM
Will this work on 1-1-5?  If so...can you link to the DL I can not find this in the mods.
Thank you.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: JimM on May 30, 2008, 03:40:13 PM
Yep, it works great on 1.1.5.  It's not a mod.  The download is on the first post of the thread.

http://www.simplemachines.org/community/index.php?topic=19243.0
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Keeper on June 02, 2008, 07:44:07 AM
Quote from: bl968 on December 14, 2006, 12:44:08 AM
I would like for the who list to give priority to Members first then guests then spiders so

show all members first, then show guests, and then spiders

For example I have
223 Spiders, 17 Guests, 7 Users (0 Buddies)  but on the Who's Online it shows

2 members on the first page, 2 Guests, and 56 spiders.

I want it to show as many members as possible if any room then show guests and if any room then show spiders.

Ideas?

It seems like this went largely unanswered. I'm in the same boat. What do I need to modify so that members are all listed before guests and spiders, now they're spread all over the pages.

Thanks.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Keeper on June 09, 2008, 02:59:16 AM
Anyone, please?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Bulakbol on June 10, 2008, 12:12:20 AM
The attached file in the first post is a replacement of default/who.template.php. It separates members' list from guests and spiders in the who's online link. If you are asking for a list of online members/guests/spiders in the board index, then you have to start a new topic in the support or coding discussion board.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Keeper on June 10, 2008, 01:36:03 AM
No I'm not asking for that.

The attached file in the first post separates lists but it does not order them. If you have ten pages worth of people and spiders online, the chances are that members are spread all over the ten pages as they would be without this replacement who.template.php.

In other words, if first page lists 4 members, 7 guests and 9 spiders, second page may again list another 6 members, 6 guests, 8 spiders, third page 3 members, 5 guests and 10 spiders and so on and on. Each page has separated lists of each, but surely the whole point of this replacement was to have ALL members first, then guests and finally spiders?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Bulakbol on June 10, 2008, 02:20:40 AM
I am not sure about that. Maybe you should request it as a mod here (http://www.simplemachines.org/community/index.php?board=79.0).
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: kai920 on June 10, 2008, 03:07:26 AM
Quote from: unrelenting on March 24, 2008, 09:07:18 PM
Here is a quick hack that will show only a Members section and a Guest section to regular members and guests. It won't show the Spiders as Spiders, instead it lumps them in with the guests.

It will display as usual to Admins and Mods. It's just a simple if/else addition with a couple lines removed from the 19-12-07 edit. If anyone notices something that needs changed then please let me know. I am not nearly as fluent at php as Owdy or some of the other prodigies here are.  :)

I too preferred to make my site look busier to guests and regular members.

http://www.datafilehost.com/download-aca6841d.html (http://www.datafilehost.com/download-aca6841d.html)

Is it possible to edit who.template.php so that the custom guests/spiders separated list is shown *only* to admins? (and not moderators as well)
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: JimM on June 10, 2008, 04:25:53 PM
@Keeper - can you give us a screenshot of what you want changed.  I have this template running on my board and the members are all shown first, then the guest, then the spiders.  I don't have 10 pages of users online at a time though.  At most I have had 2 pages and they were still grouped as I described.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Bulakbol on June 10, 2008, 09:59:29 PM
Quote from: kai920 on June 10, 2008, 03:07:26 AM

Is it possible to edit who.template.php so that the custom guests/spiders separated list is shown *only* to admins? (and not moderators as well)

Yes, you can do it my way though. :) Edit the default Who.template.php to display only logged-in members.
Move the bracket from line 38 and insert it in line 55. Just after "$alternate = !$alternate;"

Then rename this mod to Who_admin.template.php, and then in the Sources/Who.php, replace the
loadTemplate('Who');

with
if ($user_info['is_admin'])
loadTemplate('Who_admin');
else
loadTemplate('Who');
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Keeper on June 11, 2008, 01:26:13 AM
Quote from: JimM on June 10, 2008, 04:25:53 PM
@Keeper - can you give us a screenshot of what you want changed.  I have this template running on my board and the members are all shown first, then the guest, then the spiders.  I don't have 10 pages of users online at a time though.  At most I have had 2 pages and they were still grouped as I described.
I really don't know how to describe it any better than I already have. But I'll try.

Currently the online list goes like this:

PAGE 1

--Users--
User 1
User 2
User 2

--Guests--
Guest 1
Guest 2
Guest 3

-- Spiders--
Spider 1
Spider 2
Spider 3

PAGE 2

--Users---
User 4
User 5
User 6

--Guests--
Guest 4
Guest 5
Guest 6

--Spiders--
Spider 4
Spider 5
Spider 6

And so on and on.

It's supposed to go like this:

Page 1

--Users--
User 1
User 2
User 3
User 4
User 5
User 6
and keep listing until there are no more users to list or list continues from next page

-- Guests---
Guest 1
Guest 2
Guest 3
Guest 4
Guest 5
Guest 6
and keep listing until there are no more guests to list or list continues from next page

And finally list spiders last in one go.

Was this any better explanation?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: JimM on June 11, 2008, 10:12:47 PM
@ Keeper - that's what I thought you were asking.  I don't have the problem so I don't think I can help.  I read back through the topic and Owdy addressed this.  I didn't see a solution though.  Sorry I can't help.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Carlos Gandra on June 17, 2008, 08:07:18 PM
Keeper, this is not a solution, but works:

Go to admin - settings - layout settings and, in the number of members to show in the member list, put a huge number, like 200, 300, 500, depending on what you need. Save and go to the who's online list. Maybe they are all in the first page now. If not, increase the number. I'm using 500 and all members appear in first page, at the top.

Regards from Portugal
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Keeper on June 18, 2008, 12:56:09 AM
A good suggestion for a work-around (and it did work), but unfortunately it affects all member listings, not just who's online.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Carlos Gandra on June 18, 2008, 10:23:48 AM
That's true, so I said this is not a solution. Unfortunately I don't have the suf. knowledge to edit the code itself and solve this issue :(

Regards from Portugal
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: chep on June 21, 2008, 11:09:53 PM
I had a bunch of requests from members who don't want to see the spider list. However I believe it is ok for admins. I am an old perl wanna be hacker and not familiar with php but here is the file I used. It seems to work. The idea is about as simple as this if statement inside the loop and deciding to continue if we are not admins.

  foreach($brokendown AS $group => $members)

{
if ( (! $context['user']['is_admin']) && ($group == "Spiders") )
{ // custom filtering - only admins see the spiders
  continue;
}



My updated template file
<?php
// If you wanna translate this file or ad more spiders, you can find instructions in this post
// http://www.simplemachines.org/community/index.php?topic=19243.msg156339#msg156339

// The only template in the file.
function template_main()

{

 global 
$context$settings$options$scripturl$txt;

 
// Display the table header and linktree.

 
echo '

 <div style="padding: 3px;">'
theme_linktree(), '</div>';

 
$brokendown = array (

  
'Members' => array(),

  
'Guests' => array(),

  
'Spiders' => array(),

 );

 

 foreach(
$context['members'] AS $key => $member)

 {

  
$spider getAgent($member['query']['USER_AGENT'], $context['members'][$key]['name'], $agent$member['id'] == 0);

  
$context['members'][$key]['agent'] = $agent;

  
$member['query']['USER_AGENT'] = isset($member['query']['USER_AGENT']) ? $member['query']['USER_AGENT'] : '';

  if ( 
$member['id'] != )

   
$brokendown['Members'][] = &$context['members'][$key];

  else if ( 
$spider )

   
$brokendown['Spiders'][] = &$context['members'][$key];

  else

   
$brokendown['Guests'][] = &$context['members'][$key];

 }

// echo '<pre>'; print_r($brokendown['Spiders']); echo '</pre>'; return;

 
foreach($brokendown AS $group => $members)

 {
 if ( (! 
$context['user']['is_admin']) && ($group == "Spiders") )
 { 
// custom filtering - only admins see the spiders
  
continue;
 }
  echo 
'

 <table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder">

  <tr>

   <td class="catbg">'
$group'</td>

  </tr>

 </table>

 <table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder">

  <tr class="titlebg">

   <td width="30%"><a href="' 
$scripturl '?action=who;sort=user'$context['sort_direction'] == 'down' && $context['sort_by'] == 'user' ';asc' '''">'$txt['who_user'], ' '$context['sort_by'] == 'user' '<img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" border="0" />' '''</a></td>

   <td style="width: 14ex;"><a href="' 
$scripturl '?action=who;sort=time'$context['sort_direction'] == 'down' && $context['sort_by'] == 'time' ';asc' '''">'$txt['who_time'], ' '$context['sort_by'] == 'time' '<img src="' $settings['images_url'] . '/sort_' $context['sort_direction'] . '.gif" alt="" border="0" />' '''</a></td>

   <td>'
$txt['who_action'], '</td>

  </tr>'
;
 
 
  
// This is used to alternate the color of the background.

  
$alternate true;
 
 
  
// For every member display their name, time and action (and more for admin).

  
foreach ($members as $member)

  {
 
 
   
// $alternate will either be true or false.  If it's true, use "windowbg2" and otherwise use "windowbg".

   
echo '

   <tr class="windowbg'
$alternate '2' '''">

    <td>'
;
 
 
   
// Guests don't have information like icq, msn, y!, and aim... and they can't be messaged.

   
if (!$member['is_guest'])

   {

    echo 
'

     <div style="float: right; width: 14ex;">

      '
$context['can_send_pm'] ? '<a href="' $member['online']['href'] . '" title="' $member['online']['label'] . '">' ''$settings['use_image_buttons'] ? '<img src="' $member['online']['image_href'] . '" alt="' $member['online']['text'] . '" border="0" align="middle" />' $member['online']['text'], $context['can_send_pm'] ? '</a>' '''

      '
$member['icq']['link'], ' '$member['msn']['link'], ' '$member['yim']['link'], ' '$member['aim']['link'], '

     </div>'
;

  }

  if (!
$member['agent'])
  {
   
$member['agent'] = '?';
  }
  if (
$member['agent'] == '')
  {
   
$member['agent'] = '?';
  }

  echo 
'

    <span'
$member['is_hidden'] ? ' style="font-style: italic;"' '''>'$member['is_guest'] ? $member['name'] : '<a href="' $member['href'] . '" title="' $txt[92] . ' ' $member['name'] . '"' . (empty($member['color']) ? '' ' style="color: ' $member['color'] . '"') . '>' $member['name'] . '</a>''</span>';
 
 
  if ( !empty(
$member['ip']) )

   echo 
' <br /> <span class="smalltext">(<b><a href="' $scripturl '?action=trackip;searchip=' $member['ip'] . '" target="_blank" title="' $member['ip'] . '" class="smalltext2">' $member['ip'] . '</a></b>, <acronym title="' $member['query']['USER_AGENT'] . '">' $member['agent'] . '</acronym>)</span>'
 
 
  echo 
'

   </td>

   <td nowrap="nowrap">'
$member['time'], '</td>

   <td>'
$member['action'], '</td>

  </tr>

  

  '
;
 
 
  
// Switch alternate to whatever it wasn't this time. (true -> false -> true -> false, etc.)

  
$alternate = !$alternate;

  }

  echo 
'</table><br/>';
 }

 echo 
'

 <table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder"><tr><td class="titlebg">

  <b>'
$txt[139], ':</b> '$context['page_index'], '

 </td></tr></table>'
;

  

}
 
 
function 
getAgent( &$user_agent, &$user_name, &$result$guest )

{
 
$known_agents = array (
//hakukoneet
  
array (
   
'agent' => 'sogou spider',
   
'spidername' => 'Sogou spider',
   
'spider' => true,
   ),
  array (
   
'agent' => 'Twiceler',
   
'spidername' => 'Twiceler spider',
   
'spider' => true,
   ),
                 array (
   
'agent' => 'www.fi crawler',
   
'spidername' => 'www.fi spider',
   
'spider' => true,
   ),
  array (
                        
'agent' => 'WISENutbot',
                        
'spidername' => 'Looksmart spider',
                        
'spider' => true,
                ),
                array (
                        
'agent' => 'MSNBot',
                        
'spidername' => 'MSN spider',
                        
'spider' => true,
                ),
                array (
                        
'agent' => 'W3C_Validator',
                        
'spidername' => 'W3C Validator',
                        
'spider' => true,
                ),
                array (
                        
'agent' => 'Googlebot-Image',
                        
'spidername' => 'Google-Image spider',
                        
'spider' => true,
                ),
                array (
                        
'agent' => 'Googlebot',
                        
'spidername' => 'Google spider',
                        
'spider' => true,
                ),
                array (
                        
'agent' => 'appie',
                        
'spidername' => 'Walhello spider',
                        
'spider' => true,
                ),
                array (
                        
'agent' => 'Mediapartners-Google',
                        
'spidername' => 'Google AdSense spider',
                        
'spider' => true,
                ),
                array (
                        
'agent' => 'Scooter',
                        
'spidername' => 'Altavista spider',
                        
'spider' => true,
                ),
                array (
                        
'agent' => 'FAST-WebCrawler',
                        
'spider' => true,
                ),
                array (
                        
'agent' => 'Wget',
                        
'spider' => true,
                ),
                array (
                        
'agent' => 'Ask Jeeves'
                        
'spider' => true,
                ),
                array (
                        
'agent' => 'Speedy Spider',
                        
'spider' => true,
                ),
                array (
                        
'agent' => 'SurveyBot',
                        
'spider' => true,
                ),
                array (
                        
'agent' => 'IBM_Planetwide',
                       
'spider' => true,
                ),
                array (
                        
'agent' => 'GigaBot',
                        
'spider' => true,
                ),
                array (
                        
'agent' => 'ia_archiver',
                        
'spider' => true,
                ),
                array (
                        
'agent' => 'FAST-WebCrawler',
                        
'spider' => true,
                ),
                array (
                        
'agent' => 'Yahoo! Slurp'
                        
'spidername' => 'Yahoo spider',
                        
'spider' => true,
                ),
                array (
                        
'agent' => 'Inktomi Slurp',
                        
'spider' => true,
                ),
  array (
   
'agent' => 'appie',
   
'spidername' => 'Walhello spider',
  ),
  array (
              
'agent' => 'FeedBurner/1.0',
          
'spidername' => 'Feedburner',
   
'spider' => true,
         ),
          array (
              
'agent' => 'Feedfetcher-Google',
   
'spidername' => 'Googlen Feedfetcher',
   
'spider' => true,
         ),
         array (
              
'agent' => 'OmniExplorer_Bot/6.68',
              
'spidername' => 'OmniExplorer Bot',
   
'spider' => true,
         ),
         array (
              
'agent' => 'http://www.relevantnoise.com',
              
'spidername' => 'relevantNOISE',
   
'spider' => true,
         ),
         array (
          
'agent' => 'NewsGatorOnline/2.0',
              
'spidername' => 'NewsGatorOnline',
   
'spider' => true,
         ),
         array (
              
'agent' => 'ping.blo.gs/2.0',
   
'spider' => true,
         ),
         array (
              
'agent' => 'Jakarta Commons-HttpClient/3.0.1',
              
'spidername' => 'Amazon',
   
'spider' => true,
         ),
           array (
              
'agent' => 'Jakarta Commons-HttpClient/3.0-rc2',
              
'spidername' => 'Amazon',
   
'spider' => true,
         ),  
           array (
              
'agent' => 'accelobot',
              
'spidername' => 'Accelovation spider',
   
'spider' => true,
         ),  
           array (
              
'agent' => 'NetSeer',
              
'spidername' => 'NetSeer Crawler',
   
'spider' => true,
         ),  
           array (
              
'agent' => 'Ilial',
              
'spidername' => 'Ilial.com Bot',
   
'spider' => true,
         ),  
           array (
              
'agent' => 'LinksManager',
              
'spidername' => 'Linksmanager Bot',
   
'spider' => true,
         ),  
           array (
              
'agent' => 'page-store',
              
'spidername' => 'Page-Store.com Bot',
   
'spider' => true,
         ),  
           array (
              
'agent' => 'MSRBOT',
              
'spidername' => 'Microsoft Research Bot',
   
'spider' => true,
         ),  
           array (
              
'agent' => 'WebAlta',
              
'spidername' => 'WebAlta.net Bot',
   
'spider' => true,
         ),  
           array (
              
'agent' => 'imageshack.us',
              
'spidername' => 'ImageShack Bot',
   
'spider' => true,
         ),  
           array (
              
'agent' => 'PageFetcher-Google',
              
'spidername' => 'PageFetcher-Google Bot',
   
'spider' => true,
         ), 
           array (
              
'agent' => 'majestic',
              
'spidername' => 'Majestic12 Bot',
   
'spider' => true,
         ), 
    
//phones
                
array (
                        
'agent' => 'Nokia'
                ),
                array (
                        
'agent' => 'Samsung',
                ),
                array (
                        
'agent' => 'Ericsson',
                ),
                  array (
                        
'agent' => 'Siemens',
                ),
                 array (
                        
'agent' => 'Motorola',
                ),
                 array (
                        
'agent' => 'BlackBerry',
                ),
    
//browsers
                
array (
                        
'agent' => 'Opera',
                 ),
                array (
                        
'agent' => 'Firefox',
                ),
                array (
                        
'agent' => 'Firebird',
                ),
                array (
                        
'agent' => 'Safari'
                ),
   array (
   
'agent' => 'Google Desktop',
   ),
                array (
                        
'agent' => 'Netscape'
                ),
                array (
                        
'agent' => 'MyIE2'
                ),
                
                array (
                        
'agent' => 'Konqueror'
                ),
                array (
                        
'agent' => 'Galeon'
                ),
                array (
                        
'agent' => 'KMeleon',
                ),
                array (
                        
'agent' => 'NG/2.0',
                ),
                array (
                        
'agent' => 'Gecko',
                        
'name' => 'Mozilla',
                ),
                array (
                        
'agent' => 'MSIE',
                          
'name' => 'IE',
                ),
                
        );
foreach( 
$known_agents AS $poss )

  if (
strpos(strtolower($user_agent), strtolower($poss['agent'])) !== false)

  {

   if ( 
$guest && isset($poss['spider']) && $poss['spider'] )

    
$user_name = isset($poss['spidername']) ? $poss['spidername'] : (isset($poss['name']) ? $poss['name'] : $poss['agent']); 

   
$result = isset($poss['name']) ? $poss['name'] : $poss['agent']; 

   return isset(
$poss['spider']) && $poss['spider'];

  }

 
$result $user_agent;

 return 
false;

}
 
 
?>




Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: avf on June 27, 2008, 07:20:52 AM
sweet and easy !
Thx
AVF
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: FragaCampos on June 27, 2008, 09:55:30 AM
chep, weren't you looking for this?

QuoteHere is a quick hack that will show only a Members section and a Guest section to regular members and guests. It won't show the Spiders as Spiders, instead it lumps them in with the guests.

It will display as usual to Admins and Mods. It's just a simple if/else addition with a couple lines removed from the 19-12-07 edit. If anyone notices something that needs changed then please let me know. I am not nearly as fluent at php as Owdy or some of the other prodigies here are.  :)

I too preferred to make my site look busier to guests and regular members.

http://www.datafilehost.com/download-aca6841d.html

It worked for me.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: chep on June 27, 2008, 07:09:05 PM
Quote
chep, weren't you looking for this?
No. There is a distinct difference.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: khamseen on June 30, 2008, 02:48:22 AM
Absolutely love this, it's fantastic and easy to install (upload), nice job mate.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: ellion on July 10, 2008, 01:51:46 PM
just wondering what this mod does and why is it useful. i am about to install the spiders abots mod and was directed to lok over this mod. can anyone enlightn me?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Kindred on July 10, 2008, 05:57:47 PM
ummmmmm.....

Custom Who.template.php -
it creates a separated list for users, guests and spiders

(just like the thread title says. :) )
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: pinoypetfinder on July 21, 2008, 02:39:36 AM
aah! I finally found it! Thanks Owdy! Been trying to figure out how to put that who's online list back (after i upgrade our forum to 1.1.5, all my mods stopped working and had to reinstall them, then the i got stucked for about 20mins trying to figure out how to separate the bots/users and guests. so yeah, thanks!

and btw, the mod link you posted doesn't seem to be working, i downloaded it (before i found your thread) and tried to installed it but i get a who.template error so i didn't proceed.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: assam_siddibapa on July 31, 2008, 02:55:24 AM
This mod is really cool..

I need to modify tis one


I need first users , guest , spiders .

I mean to saythat now all there are shown on all pages .... how can i make it in the above order.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: blue_shadow on August 18, 2008, 03:27:52 PM
I'm not sure if this has been asked already but is there a way to make it easier to add spiders from a list or even make it update a list such as from http://user-agents.org/ or something?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: karlbenson on August 18, 2008, 03:33:36 PM
If your looking for an uptodate list (without any dead-ones)
http://www.simplemachines.org/community/index.php?topic=233636.msg1507179#msg1507179
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: umulium on August 19, 2008, 02:42:26 PM
hi folks..

adding this to the template is kind of cool..

$spambot = false;
$xml_string = file_get_contents('http://www.stopforumspam.com/api?ip='.$member['ip']);
$xml = new SimpleXMLElement($xml_string);
if($xml->appears == 'yes'){$spambot = true;}

I use the $spambot value to display a imagefile so I can easy track down spammers..   

This will slow down the loading of the who page.. so be smart about how you use the code..
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Mystiquo on August 30, 2008, 05:35:17 AM
scuse me i have 1.1.5 but the file who is a different, and i don't can modify it's manualy thanks for help
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: eslao on September 01, 2008, 11:35:05 PM
is it possible to show user agents images ( firefox, ie, opera) on the who.template. php , instead of writing MSIE Firefox Opera
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Mystiquo on September 12, 2008, 07:54:06 AM
Excuse me i have a problem i don't see this
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.omarbazavilvazo.com%2Fimagenes%2Fgooglebot02.png&hash=40dadf9666e3d265bcad61336b02bd35dcd995e2)

but only guest and user why?? i used smf 1.1.6 theme default
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Kindred on September 12, 2008, 05:04:34 PM
this "mod" does not change that at all... the ONLY thing it changes is the who.template.php to separate the who's online list. This mod does not change the index display, it does not change any board view display, it does not change and message view display

(and this question has been clearly answered a number of times already)

what you are looking for is a different mod.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Sea Mac on September 12, 2008, 08:50:03 PM
I Love it!
(https://www.simplemachines.org/community/Themes/smsite/images/post/thumbup.gif)
VERY Useful: thank you very much!
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Mystiquo on September 17, 2008, 07:39:45 AM
   
Sorry but some spider though with their behalf I appear as guest and guest section why? how can I fix this?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: dbm on September 18, 2008, 03:47:17 PM
How do i add spiders? i mean i cant see any in my who?;(
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: umulium on September 23, 2008, 09:34:03 AM
Have anyone made changes to separate safari and google chrome as the browser?  it would be nice to know if we have any google users on my forum.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: darklord2 on September 24, 2008, 03:49:51 PM
i have uploaded the file to my default theme folder. but when is goto http://mysite.com/index.php?action=who it says: Error! online users are disables.

i went to admin > permisions > guest and turn it On but nothing changes!!!

what should i do?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: darklord2 on October 03, 2008, 06:18:43 AM
anyone?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: JimM on October 03, 2008, 10:37:31 AM
Admin > Features and Options > Layout and Options >

Check "Enable who's online list"
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: darklord2 on October 03, 2008, 10:40:12 AM
thanks alot...
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: MoreBloodWine on October 16, 2008, 08:07:42 PM
Might wana look at adding baidu.com with your next update it seems they whoever they are have spiders that crawl sites.

Heres another one, youdao.com
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: vmgamer on November 18, 2008, 08:08:17 PM
Thankzz....,...
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Ravac on December 06, 2008, 01:01:05 AM
How can i remove Spiders just from here

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi35.tinypic.com%2F205e8aq.png&hash=c10db1b5426aab53deadb1bff512490bba0765b8)
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: HR on December 10, 2008, 12:22:45 AM
Is it just me or is the sort drop missing from the bottom? I ask as I get like 4 pages (admin, guests & spiders put it to the second page and I get more admins and such logged in.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Malpercio on January 01, 2009, 02:28:07 PM
Very, cool, I've been using this quite a bit, I actually edited the script a bit to give each bot an actual name, my community and I have had quite a bit of fun with it!
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: sAce on January 03, 2009, 12:09:11 PM
great option man, thanks for making it
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: vmgamer on January 22, 2009, 05:11:39 AM
Gooooooood work....
Works 4 me
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Chit-Chat ChatterBox Boss on May 12, 2009, 12:29:24 PM
How do I get bots not to be shown as guests but only as spiders in the "Users Online" section, it does do this for the "Who's Online" section it shows spiders as only spiders not as guest and spiders like it does in the "Users Online" section (See Picture). Also how do I change the spider color in the Online User color to something I want other than black?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi667.photobucket.com%2Falbums%2Fvv35%2Fcafontaine%2FSpider_Guest.jpg&hash=648f77bd4c0c7c55c4bbb7371bec53937cdbc8e5)
As you can see in the picture (both pictures taken at same time) they are counting the spider as a guest and a spider at the same time in the "Users Online". I want it to only show it as a spider.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: clashbot on May 15, 2009, 09:46:43 AM
getting an error on using the updated whois:

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /.../Themes/default/Who.template.php on line 14

<?php
// Version: 1.1; Who

// The only template in the file.
function template_main()
{
global $context$settings$options$scripturl$txt;

// Display the table header and linktree.
echo '
<div style="padding: 3px;">'
theme_linktree(), '</div>
$brokendown = array (

'
Members' => array(),
'
Guests' => array(),
'
Spiders' => array(),
);

foreach($context['
members'] AS $key => $member)
{
$spider = getAgent($member['
query']['USER_AGENT'], $context['members'][$key]['name'], $agent, $member['id'] == 0);
$context['
members'][$key]['agent'] = $agent;
$member['
query']['USER_AGENT'] = isset($member['query']['USER_AGENT']) ? $member['query']['USER_AGENT'] : '';

if ( $member['
id'] != 0 )
$brokendown['
Members'][] = &$context['members'][$key];
else if ( $spider )
$brokendown['
Spiders'][] = &$context['members'][$key];
else
$brokendown['
Guests'][] = &$context['members'][$key];

is a sample of the code with the line in question

Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Kindred on May 15, 2009, 10:24:34 AM
<div style="padding: 3px;">', theme_linktree(), '</div>

needs to be
<div style="padding: 3px;">', theme_linktree(), '</div>';
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: oops on May 25, 2009, 11:57:01 AM
This is my latest revision of the agent strings ...   *** should be double checked *** 



  //Search Spiders
 
        array (
'agent' => 'Googlebot-Image 1.0',
'spidername' => 'Google Image Spider',
'spider' => true,
        ),
        array (
'agent' => 'Googlebot',
'spidername' => 'Google Spider',
'spider' => true,
        ),
        array (
                'agent' => 'Mediapartners-Google',
                'spidername' => 'Google AdSense spider',
'spider' => true,
        ),
        array (
'agent' => 'msnbot-Products/1.0',
'spidername' => 'MSN Products Spider',
'spider' => true,
        ),
        array (
'agent' => 'MSNBOT',
'spidername' => 'MSN Spider',
'spider' => true,
        ),
        array (
'agent' => 'MSNPTC/1.0',
'spidername' => 'MSN Spider',
'spider' => true,
        ),
        array (
'agent' => 'YahooSeeker',
'spidername' => 'Yahoo Spider',
'spider' => true,
        ),
        array (
                'agent' => 'Yahoo! Slurp',
                'spidername' => 'Yahoo spider',
                'spider' => true,
        ),
        array (
'agent' => ' Yahoo-MMCrawler/3.x',
'spidername' => 'Yahoo Dash Spider',
'spider' => true,
        ),
array (
'agent' => 'Alcohol Search',
'spidername' => 'Alcohol Search Spider',
'spider' => true,
),
        array (
'agent' => 'Arachmo',
'spidername' => 'Arachmo',
'spider' => true,
        ),
        array (
'agent' => 'AnyApexBot',
'spidername' => 'Any Apex Spider',
'spider' => true,
        ),
        array (
'agent' => 'Accoona-AI-Agent',
'spidername' => 'Accoona Spider',
'spider' => true,
        ),
        array (
'agent' => 'AbiLogicBot',
'spidername' => 'AbiLogic Spider',
'spider' => true,
        ),
        array (
'agent' => 'ABACHOBot',
'spidername' => 'Abacho Spider',
'spider' => true,
        ),
        array (
'agent' => 'AnyApexBot/1.0',
'spidername' => 'AnyApexBot',
'spider' => true,
        ),
        array (
                'agent' => 'appie',
                'spidername' => 'Walhello spider',
                'spider' => true,
        ),
        array (
'agent' => 'ASPseek',
'spidername' => 'ASPeek Spider',
'spider' => true,
        ),
        array (
'agent' => 'AnswerBus',
'spidername' => 'AnswerBus Spider',
'spider' => true,
        ),
        array (
'agent' => 'antibot',
'spidername' => 'Antibot Spider',
'spider' => true,
        ),
        array (
                'agent' => 'Ask Jeeves',
'spidername' => 'Ask Jeaves Spider',
                'spider' => true,
        ),
        array (
'agent' => 'boitho.com',
'spidername' => 'Boitho Spider',
'spider' => true,
        ),
        array (
'agent' => 'Bimbot',
'spidername' => 'Bimbot',
'spider' => true,
        ),
        array (
'agent' => 'BecomeBot',
'spidername' => 'Become Spider',
'spider' => true,
        ),
        array (
'agent' => 'B-l-i-t-z-B-O-T',
'spidername' => 'B-l-i-t-z-B-O-T',
'spider' => true,
        ),
        array (
'agent' => 'btbot/0.4',
'spidername' => 'Bittorrent Spider',
'spider' => true,
        ),
        array (
'agent' => 'cosmos',
'spidername' => 'xyleme Spider',
'spider' => true,
        ),
        array (
'agent' => 'ConveraCrawler',
'spidername' => 'Convera Crawler',
'spider' => true,
        ),
        array (
'agent' => 'Cerberian Drtrs',
'spidername' => 'Cerberian Drtrs',
'spider' => true,
        ),
        array (
'agent' => 'Charlotte',
'spidername' => 'Searchme Spider',
'spider' => true,
        ),
        array (
'agent' => 'cosmos/0.9',
'spidername' => 'Cosmos',
'spider' => true,
        ),
        array (
'agent' => 'ccubee',
'spidername' => 'ccubee Spider',
'spider' => true,
),
        array (
'agent' => 'DataparkSearch',
'spidername' => 'DataparkSearch Spider',
'spider' => true,
        ),
        array (
'agent' => 'DiamondBot',
'spidername' => 'Claria Spider',
'spider' => true,
        ),
       array (
'agent' => ' DotBot/1.1',
'spidername' => 'DotNetDotCom Spider',
'spider' => true,
        ),
        array (
'agent' => 'Exabot',
'spidername' => 'Exava Spider',
'spider' => true,
        ),
        array (
'agent' => 'EsperanzaBot',
'spidername' => 'Expranza Spider',
'spider' => true,
        ),
        array (
'agent' => 'envolk',
'spidername' => 'Envolk Spider',
'spider' => true,
        ),
        array (
'agent' => 'EmeraldShield',
'spidername' => 'EmeraldShield Spider',
'spider' => true,
        ),
        array (
'agent' => 'FyberSpider',
'spidername' => 'FyberSearch Spider',
'spider' => true,
        ),
        array (
'agent' => 'FAST-WebCrawler',
'spidername' => 'Fast Spider',
'spider' => true,
        ),
        array (
'agent' => 'Fluffy the spider',
'spidername' => 'Seach Hippo Spider',
'spider' => true,
        ),
        array (
'agent' => 'FurlBot/Furl',
'spidername' => 'FurlBot Spider',
'spider' => true,
        ),
        array (
'agent' => 'FurlBot Furl Search 2.0',
'spidername' => 'LookSmart Spider',
'spider' => true,
        ),
        array (
                'agent' => 'FPLinkChecker/1.2',
                'spidername' => 'PHP Link Checker',
                'spider' => true,
        ),
        array (
'agent' => 'genieBot',
'spidername' => 'Genie Knows Spider',
'spider' => true,
        ),
        array (
'agent' => 'Girafabot',
'spidername' => 'Girafa Spider',
'spider' => true,
        ),
        array (
'agent' => 'Gigabot',
'spidername' => 'Gigablast spider',
'spider' => true,
        ),
        array (
                'agent' => 'GSiteCrawler',
                'spidername' => 'GSite Spider',
                'spider' => true,
),
        array (
                'agent' => 'HTMLParser/1.6',
                'spidername' => 'HTML Parser Checker',
                'spider' => true,
        ),
        array (
'agent' => 'http://www.relevantnoise.com',
'spidername' => 'Relevant Noise Spider',
'spider' => true,
        ),
        array (
                'agent' => 'ia_archiver',
'spidername' => 'Archiver Spider',
                'spider' => true,
        ),
        array (
                'agent' => 'IBM_Planetwide',
'spidername' => 'IBM Spider',
'spider' => true,
        ),
        array (
'agent' => 'imagefetch/0.1',
'spidername' => 'Image Fetch Spider',
'spider' => true,
        ),
        array (
                'agent' => 'Inktomi Slurp',
'spidername' => 'Inktomi Spider',
                'spider' => true,
        ),
array (
'agent' => 'Jakarta Commons-HttpClient',
'spidername' => 'Amazon Spider',
'spider' => true,
        ),
        array (
'agent' => ' Look.com',
'spidername' => 'Look.com Spider',
'spider' => true,
        ),
        array (
'agent' => 'moget',
'spidername' => 'Moget Spider',
'spider' => true,
        ),
        array (
'agent' => ' metacarta',
'spidername' => 'Metacarta Spider',
'spider' => true,
        ),
        array (
'agent' => 'MSRBOT/0.1',
'spidername' => 'Microsoft Spider',
'spider' => true,
        ),
        array (
'agent' => 'MSIECrawler',
'spidername' => 'MSIE Spider',
'spider' => true,
        ),
        array (
'agent' => 'NewsGatorOnline/2.0',
'spidername' => 'NewsGatorOnline',
'spider' => true,
        ),
        array (
'agent' => 'Nutch',
'spidername' => 'Nutch Spider',
'spider' => true,
        ),
        array (
'agent' => ' Robot: NutchCrawler',
'spidername' => 'Nutch Crawler',
'spider' => true,
        ),
        array (
'agent' => 'Nutscrape',
'spidername' => 'Nutscrape Spider',
'spider' => true,
        ),
        array (
'agent' => 'NWSpider 0.9',
'spidername' => 'NW Spider',
'spider' => true,
        ),
        array (
'agent' => 'ObjectsSearch',
'spidername' => 'ObjectSearch Spider',
'spider' => true,
        ),
        array (
'agent' => 'OffByOne',
'spidername' => 'OffByOne Spider',
'spider' => true,
        ),
        array (
'agent' => 'OmniExplorer',
'spidername' => 'OmniExplorer Bot',
'spider' => true,
        ),
        array (
'agent' => 'OmniWeb',
'spidername' => 'Mac PowerPC Spider',
'spider' => true,
        ),
       array (
'agent' => ' psbot/0.1',
'spidername' => 'Picsearch.com Spider',
'spider' => true,
        ),
        array (
'agent' => 'PHP',
'spidername' => 'The PHP Group Spider',
'spider' => true,
        ),
          array (
'agent' => 'Prism/1.0b1',
'spidername' => 'Prism Desktop Spider',
'spider' => true,
        ),
        array (
'agent' => 'Pogodak.co.yu',
'spidername' => 'Pogodak Spider',
'spider' => true,
),
        array (
                'agent' => 'P3P Validator',
                'spidername' => 'P3P Validator Spider',
                'spider' => true,
        ),
        array (
'agent' => 'ping.blo.gs/2.0',
'spidername' => 'ping.blo Spider',
'spider' => true,
        ),
        array (
'agent' => ' RoboPal',
'spidername' => 'FindPal.com Spider',
'spider' => true,
        ),
        array (
'agent' => 'SafariBookmarkChecker/1.25',
'spidername' => 'SafariBookmark Spider',
'spider' => true,
        ),
       array (
'agent' => ' Scooter',
'spidername' => 'Altavista Spider',
'spider' => true,
        ),
        array (
'agent' => 'Scrubby',
'spidername' => 'Scrub the Web Spider',
'spider' => true,
        ),
        array (
'agent' => 'SearchSight 2.0',
'spidername' => 'SearchSight Spider',
'spider' => true,
        ),       array (
'agent' => 'SearchSpider.com/1.1',
'spidername' => 'SearchSpider.com',
'spider' => true,
        ),
        array (
'agent' => 'Seekbot/1.0',
'spidername' => 'Seek Spider',
'spider' => true,
        ),
        array (
'agent' => 'SpeedySpider',
'spidername' => 'EntireWeb.com Spider',
'spider' => true,
        ),
        array (
'agent' => 'Sensis Web Crawler',
'spidername' => 'Sensis Web Crawler',
'spider' => true,
        ),
        array (
'agent' => 'Snappy',
'spidername' => 'Snappy Spider',
'spider' => true,
        ),
array (
'agent' => 'sogou spider',
'spidername' => 'Sogou spider',
'spider' => true,
),
        array (
                'agent' => 'SurveyBot',
'spidername' => 'Survey Spider',
                'spider' => true,
        ),
        array (
'agent' => 'TridentSpider',
'spidername' => 'Trident Spider',
'spider' => true,
),
array (
'agent' => 'Twiceler',
'spidername' => 'Twiceler spider',
'spider' => true,
),
        array (
'agent' => 'uTorrent',
'spidername' => 'uTorrent Spider',
'spider' => true,
        ),
        array (
'agent' => 'www.fi crawler',
'spidername' => 'www.fi spider',
'spider' => true,
),
        array (
'agent' => 'vspider',
'spidername' => 'V Spider',
'spider' => true,
        ),
        array (
'agent' => ' WebSearch',
'spidername' => ' WebSearch Spider',
'spider' => true,
        ),
array (
                'agent' => 'WISENutbot',
                'spidername' => 'Looksmart spider',
                'spider' => true,
        ),
        array (
                'agent' => 'W3C',
                'spidername' => 'W3C Spider',
                'spider' => true,
        ),
        array (
'agent' => 'Websquash.com',
'spidername' => 'WebSquash Spider',
'spider' => true,
        ),



// Feed Readers


array (
'agent' => 'FeedBurner/1.0',
'spidername' => 'Feedburner',
'spider' => true,
        ),
        array (
'agent' => 'Feedfetcher-Google',
'spidername' => 'Google Feed Reader',
'spider' => true,
        ),
        array (
'agent' => 'YahooFeedSeeker/2.0',
'spidername' => 'Yahoo Feed Reader',
'spider' => true,
        ),
        array (
'agent' => 'Abilon',
'spidername' => 'Abilon Feed Reader',
'spider' => true,
        ),
        array (
'agent' => 'Apple-PubSub',
'spidername' => 'Apple Feed Reader',
'spider' => true,
        ),
        array (
'agent' => 'BlogBridge 6.6.2',
'spidername' => 'BlogBridge Feed Reader',
'spider' => true,
        ),
        array (
'agent' => 'Bloglines/3.1',
'spidername' => 'Bloglines Feed Reader',
'spider' => true,
        ),
        array (
'agent' => 'Dragonfly',
'spidername' => 'Dragonfly Feed Reader',
'spider' => true,
        ),
        array (
'agent' => 'Gregarius',
'spidername' => 'Gregarius Feed Reader',
'spider' => true,
        ),
        array (
'agent' => 'Liferea/1.4.14',
'spidername' => 'Liferea Feed Reader',
'spider' => true,
        ),
        array (
'agent' => 'newsbeuter/1.2',
'spidername' => 'Newsbeuter Feed Reader',
'spider' => true,
        ),
        array (
'agent' => 'Omea',
'spidername' => 'Omea Feed Reader',
'spider' => true,
        ),
        array (
'agent' => 'HomePage Rss Reader 1.0',
'spidername' => 'Seznam Feed Reader',
'spider' => true,
        ),
        array (
'agent' => 'Thunderbird/3.0a1',
'spidername' => 'Thunderbird Feed Reader',
'spider' => true,
        ),
        array (
'agent' => 'Thunderbird/2.0.0.21',
'spidername' => 'Thunderbird Feed Reader',
'spider' => true,
        ),
        array (
'agent' => 'Thunderbird/2.0.0.19',
'spidername' => 'Thunderbird Feed Reader',
'spider' => true,
        ),
        array (
'agent' => 'Thunderbird/2.0.0.14',
'spidername' => 'Thunderbird Feed Reader',
'spider' => true,
        ),



//phones


                array (
                        'agent' => 'Nokia',
'name' => 'Nokia',
                ),   
                array (
                        'agent' => 'Siemens',
'name' => 'Siemens',
                ),
array (
'agent' => 'motorola',
'name' => 'Motorola',
),
array (
                        'agent' => 'MOT-L6/0A.52.45R',
'name' => 'Motorola',
                ),   
                 array (
'agent' => 'MOT-V3i/08.B4.34R',
'name' => 'Motorola',
                ),   
array (
                        'agent' => 'MOT-V3r/0E.C0.13R',
'name' => 'Motorola',
                ),
            array (
                        'agent' => 'BlackBerry',
'name' => 'BlackBerry',
                ),   
                array (
                        'agent' => 'Blazer',
                        'name' => 'Palm - Blazer',
                ),
                array (
                        'agent' => 'Fennec',
                        'name' => 'Fennec - Commercial Mobile',
                ),
                array (
                        'agent' => 'IEMobile',
                        'name' => 'Palm - Blazer',
                ),
            array (
                        'agent' => 'AvantGo',
'name' => 'PalmOS or Windows CE',
                 ),
                array (
                        'agent' => 'Minimo',
                        'name' => 'Minimo - Commercial Mobile',
                ),
array (
                        'agent' => 'Amoi 8709/R14.4',
'name' => 'Netfront',
                ),
            array (
                        'agent' => 'Novarra-Vision/7.3',
'name' => 'Samsung',
                ),
            array (
                        'agent' => 'AU-MIC',
'name' => 'Samsung',
                ),
            array (
                        'agent' => 'samsung',
'name' => 'Samsung',
                ),
            array (
                        'agent' => 'LG',
'name' => 'LG',
                ), 
array (
                        'agent' => 'Polaris/6.0',
'name' => 'LG',
                ),    
            array (
                        'agent' => 'UP.Browser',
'name' => 'Open Wave',
                ),
            array (
                        'agent' => 'SonyEricsson',
'name' => 'SonyEricsson',
),
                array (
                        'agent' => 'Safari/419.3',
'name' => 'iPhone',
                ),
                array (
                        'agent' => 'iPhone',
'name' => 'iPhone',
                ),




//browsers

                array (
'agent' => 'Playstation',
),
                array (
'agent' => 'XBox',
),
                array (
'agent' => 'XBOX',
),
                array (
'agent' => 'Nintendo64',
),
                array (
'agent' => 'amaya',
),
                array (
'agent' => 'Amiga-AWeb',
),
array (
'agent' => 'AmigaVoyager',
),
                array (
'agent' => 'AmigaOS',
),
                array (
'agent' => 'Arora',
),
                array (
'agent' => 'Bolt',
),
                array (
'agent' => 'Camino',
),
                array (
'agent' => 'Chimera',
),
                array (
'agent' => 'Cheshire',
),
                array (
                        'agent' => 'Chrome',
                ),
                array (
'agent' => 'CometBird',
),
                array (
'agent' => 'Crazy Browser',
),
                array (
'agent' => 'Deepnet Explorer',
),
                array (
'agent' => 'Demeter',
),
                array (
'agent' => 'Dillo',
),
                array (
'agent' => 'Doris',
),
                array (
'agent' => 'ELinks',
),
                array (
'agent' => 'Enigma Browser',
),
                array (
'agent' => 'Epiphany',
),
                array (
'agent' => 'Firefox',
),
                array (
'agent' => 'Flock',
),
                array (
'agent' => 'Fluid',
),
                array (
'agent' => 'Galeon',
),
                array (
'agent' => 'GranParadiso',
),
                array (
'agent' => 'HotJava',
),
                array (
'agent' => 'Hv3',
),
                array (
'agent' => 'iCab',
),
                array (
'agent' => 'ICEbrowser',
),
                array (
'agent' => 'IceCat',
),
                array (
'agent' => 'Iceape',
),
                array (
'agent' => 'Iceweasel',
),
                array (
'agent' => 'iRider',
),
                array (
'agent' => 'Iron',
),
                array (
'agent' => 'K-Meleon',
),
                array (
'agent' => 'K-Ninja',
),
                array (
'agent' => 'Kapiko',
),
                array (
'agent' => 'Kazehakase',
),
                array (
'agent' => 'KKMAN',
),
                array (
'agent' => 'KKman',
),
                array (
'agent' => 'Konqueror',
),
                array (
'agent' => 'Links',
),
                array (
'agent' => 'Lobo',
),
                array (
'agent' => 'Lotus-Notes',
),
                array (
'agent' => 'Lunascape',
),
                array (
'agent' => 'Lynx',
),
                array (
'agent' => 'Maxthon',
),
                array (
'agent' => 'MAXTHON',
),
                array (
'agent' => 'Midori',
),
                array (
'agent' => 'Mozilla/4.61',
'name' => 'BrowseX (2.0.0 Windows)',
                ),
                array (
'agent' => 'Mozilla/4.51',
),
                array (
'agent' => 'Mozilla/4.08',
),
                array (
'agent' => 'Mozilla/4.04',
),
                array (
'agent' => 'Mozilla/3.0',
),
                array (
'agent' => 'MultiZilla',
),
                array (
'agent' => 'NCSA_Mosaic',
),
                array (
'agent' => 'Netbox',
),
                array (
'agent' => 'Netscape',
),
                array (
'agent' => 'NetCaptor',
),
                array (
'agent' => 'Navigator',
),
                array (
'agent' => 'NetSurf',
),
                array (
'agent' => 'OffByOne',
),
                array (
'agent' => 'OmniWeb',
),
                array (
'agent' => 'Opera',
),
                array (
'agent' => 'Orca',
),
                array (
'agent' => 'Phoenix',
),
                array (
'agent' => 'Safari',
),
                array (
'agent' => 'SeaMonkey',
),
                array (
'agent' => 'Shiretoko',
),
                array (
'agent' => 'Shiira',
),
                array (
'agent' => 'Sleipnir',
),
                array (
'agent' => 'Stainless',
),
                array (
'agent' => 'Sunrise',
),
                array (
'agent' => 'TheWorld',
),
                array (
'agent' => 'w3m',
),
                array (
                        'agent' => 'MSIE',
                        'name' => 'Internet Explorer',
                ),



// Offline Browsers


                array (
'agent' => 'AvantGo 5.2',
),
                array (
'agent' => 'GetRight/3.2',
),
                array (
'agent' => 'HTTrack 3.0x',
),
                array (
'agent' => 'iSiloX/4.37',
),
                array (
'agent' => 'JoBo/1.4',
),
                array (
'agent' => 'Offline Explorer',
),
                array (
'agent' => 'SiteSucker/1.6.9',
),
                array (
'agent' => 'Teleport Pro/1.2x',
),
                array (
'agent' => 'WebCopier',
),
                array (
'agent' => 'WebZIP',
),
                array (
'agent' => 'Wget',
),



// Mobile Browsers




                array (
'agent' => 'Beonex',
),
                array (
'agent' => 'Avant ',
),
                array (
'agent' => 'America Online Browser',
),
                array (
                        'agent' => 'Firebird',
                ),
array (
'agent' => 'Google Desktop',
),
                array (
                        'agent' => 'MyIE2',
                ),
                array (
                        'agent' => 'KMeleon',
                ),
                array (
                        'agent' => 'NG/2.0',
                ),
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: oops on May 25, 2009, 12:40:01 PM
this is the list of browsers set up to display the version along with the name

/browsers

                array (
'agent' => 'Playstation Portable 2.00',
),
                array (
'agent' => 'Playstation 3 2.00',
),
                array (
'agent' => 'Playstation 3 1.10',
),
                array (
'agent' => 'Playstation 3 1.00',
),
                array (
'agent' => 'XBox 360',
),
                array (
'agent' => 'XBox',
),
                array (
'agent' => 'XBOX',
),
                array (
'agent' => 'Nintendo64/1.7',
),
                array (
'agent' => 'Nintendo64/1.0',
),
                array (
'agent' => 'amaya/9.52',
),
                array (
'agent' => 'amaya/11.1',
),
                array (
'agent' => 'Amiga-AWeb/3.5.07',
),
array (
'agent' => 'AmigaVoyager/3.4.4',
),
                array (
'agent' => 'AmigaVoyager 3.2',
),
                array (
'agent' => 'AmigaVoyager/2.95',
),
                array (
'agent' => 'AmigaOS4.0',
),
                array (
'agent' => 'AmigaOS 3.9',
),
                array (
'agent' => 'Arora/0.6',
),
                array (
'agent' => 'Arora/0.5',
),
                array (
'agent' => 'Arora/0.3',
),
                array (
'agent' => 'Bolt/0.862',
),
                array (
'agent' => 'Camino/1.6pre',
),
                array (
'agent' => 'Camino/1.5.5',
),
                array (
'agent' => 'Camino/1.0.4',
),
                array (
'agent' => 'Camino/0.8.1',
),
                array (
'agent' => 'Chimera/0.6',
),
                array (
'agent' => 'Cheshire/1.0.ALPHA',
),
                array (
                                                'agent' => 'Chrome/1.0.154.65',
                                ),
                array (
                                                'agent' => 'Chrome/1.0.154.53',
                                ),
                array (
                                                'agent' => 'Chrome/1.0.154.36',
                                ),
                array (
                                                 'agent' => 'Chrome/0.2.149.29',
                               ),
                array (
'agent' => 'CometBird/3.0.10',
),
                array (
'agent' => 'CometBird/3.0.5',
),
                array (
'agent' => 'Crazy Browser 3.0.0 Beta2',
),
array (
'agent' => 'Crazy Browser 2.0.1',
),
                array (
'agent' => 'Crazy Browser 1.0.5',
),
                array (
'agent' => 'Deepnet Explorer 1.5.0',
),
                array (
'agent' => 'Demeter/1.0.9',
),
                array (
'agent' => 'Dillo/2.0',
),
                array (
'agent' => 'Dillo/0.8.5',
),
                array (
'agent' => 'Doris/1.15',
),
                array (
'agent' => 'ELinks/0.9.3',
),
                array (
'agent' => 'ELinks/0.13',
),
                array (
'agent' => 'Enigma Browser',
),
                array (
'agent' => 'Epiphany/2.20',
),
                array (
'agent' => 'Epiphany/1.4.7',
),
                array (
'agent' => 'Firefox/3.1b3',
),
                array (
'agent' => 'Firefox/3.1b2',
),
                array (
'agent' => 'Firefox/3.0.8',
),
                array (
'agent' => 'Firefox/3.0.5',
),
                array (
'agent' => 'Firefox/3.0.10',
),
                array (
'agent' => 'Firefox/3.0b5',
),
                array (
'agent' => 'Firefox 3.0a1',
),
                array (
'agent' => 'Firefox 3.0',
),
                array (
'agent' => 'Firefox 2.0b3',
),
                array (
'agent' => 'Firefox 2.0b2',
),
                array (
'agent' => 'Firefox 2.0b1',
),
                array (
'agent' => 'Firefox 2.0b',
),
                array (
'agent' => 'Firefox 2.0a1',
),
                array (
'agent' => 'Firefox 2.0.0.3pre',
),
                array (
'agent' => 'Firefox 2.0.0.3',
),
                array (
'agent' => 'Firefox 2.0.0.2pre',
),
                array (
'agent' => 'Firefox 2.0.0.2',
),
                array (
'agent' => 'Firefox/2.0.0.12',
),
                array (
'agent' => 'Firefox 2.0.0.1',
),
                array (
'agent' => 'Firefox 2.0',
),
                array (
'agent' => 'Firefox 1.9.0.1',
),
                array (
'agent' => 'Firefox 1.6a1',
),
                array (
'agent' => 'Firefox 1.5.0.9',
),
                array (
'agent' => 'Firefox 1.5.0.8',
),
                array (
'agent' => 'Firefox 1.5.0.7',
),
                array (
'agent' => 'Firefox 1.5.0.6',
),
                array (
'agent' => 'Firefox/1.5.0.5',
),
                array (
'agent' => 'Firefox 1.5.0.4',
),
                array (
'agent' => 'Firefox/1.5.0.3',
),
                array (
'agent' => 'Firefox 1.5.0.2',
),
                array (
'agent' => 'Firefox 1.5.0.10pre',
),
                array (
'agent' => 'Firefox 1.5.0.11',
),
                array (
'agent' => 'Firefox 1.5.0.10',
),
                array (
'agent' => 'Firefox 1.5.0.1',
),
                array (
'agent' => 'Firefox 1.5.0',
),
                array (
'agent' => 'Firefox 1.5',
),
                array (
'agent' => 'Firefox 1.4.1',
),
                array (
'agent' => 'Firefox 1.4',
),
                array (
'agent' => 'Firefox 1.0.8',
),
                array (
'agent' => 'Firefox 1.0.7',
),
                array (
'agent' => 'Firefox 1.0.6',
),
                array (
'agent' => 'Firefox 1.0.53',
),
                array (
'agent' => 'Firefox/1.0.5',
),
                array (
'agent' => 'Firefox 1.0.4',
),
                array (
'agent' => 'Firefox 1.0.3',
),
                array (
'agent' => 'Firefox 1.0.2',
),
                array (
'agent' => 'Firefox 1.0+',
),
                array (
'agent' => 'Firefox 1.0.1',
),
                array (
'agent' => 'Firefox 1.0',
),
                array (
'agent' => 'Firefox 0.9.3',
),
                array (
'agent' => 'Firefox 0.9.2',
),
                array (
'agent' => 'Firefox 0.9.1',
),
                array (
'agent' => 'Firefox 0.9',
),
                array (
'agent' => 'Firefox 0.8',
),
                array (
'agent' => 'Firebird/0.7',
),
                array (
'agent' => 'Firefox 0.10.1',
),
                array (
'agent' => 'Firefox 0.10',
),
                array (
'agent' => 'Firefox (Minefield)',
),
                array (
'agent' => 'Flock/2.0b3',
),
                array (
'agent' => 'Flock/0.5.13.2',
),
                array (
'agent' => 'Fluid/0.9.4',
),
                array (
'agent' => 'Galeon/2.0.7',
),
                array (
'agent' => 'Galeon/1.3.21',
),
                array (
'agent' => 'GranParadiso/3.0.8',
),
                array (
'agent' => 'HotJava/1.1.2',
),
                array (
'agent' => 'Hv3/alpha',
),
                array (
'agent' => 'iCab/4.0',
),
                array (
'agent' => 'iCab/3.0.2',
),
                array (
'agent' => 'iCab 2.9.1',
),
                array (
'agent' => 'ICEbrowser/v6_1_2',
),
                array (
'agent' => 'ICE Browser/5.05',
),
                array (
'agent' => 'IceCat/3.0.3-g1',
),
                array (
'agent' => 'IceCat/2.0.0.11-g1',
),
                array (
'agent' => 'Iceape/1.1.6',
),
                array (
'agent' => 'Iceape/1.1.5',
),
                array (
'agent' => 'Iceweasel/3.0.5',
),
                array (
'agent' => 'Iceweasel/2.0.0.1',
),
                array (
'agent' => 'iRider 2.21.1108',
),
                array (
'agent' => 'Iron/1.0.155.0',
),
                array (
'agent' => 'Iron/0.4.155.0',
),
                array (
'agent' => 'Iron/0.2.152.0',
),
                array (
'agent' => 'K-Meleon/1.5.2',
),
                array (
'agent' => 'K-Meleon/1.0',
),
                array (
'agent' => 'K-Ninja/2.1.1',
),
                array (
'agent' => 'K-Ninja/2.0.2',
),
                array (
'agent' => 'Kapiko/3.0',
),
                array (
'agent' => 'Kazehakase/0.5.6',
),
                array (
'agent' => 'Kazehakase/0.4.5',
),
                array (
'agent' => 'KKMAN3.2',
),
                array (
'agent' => 'KKman3.0',
),
                array (
'agent' => 'KKman2.0',
),
                array (
'agent' => 'Konqueror/4.1',
),
                array (
'agent' => 'Konqueror/3.5',
),
                array (
'agent' => 'Konqueror/3.1-rc5',
),
                array (
'agent' => 'Konqueror/2.2.1',
),
                array (
'agent' => 'Links',
),
                array (
'agent' => 'Lobo/0.98.4',
),
                array (
'agent' => 'Lobo/0.98.3',
),
                array (
'agent' => 'Lotus-Notes/6.0',
),
                array (
'agent' => 'Lunascape/5.0.2.0',
),
                array (
'agent' => 'Lunascape/4.9.9.98',
),
                array (
'agent' => 'Lunascape 2.1.3',
),
                array (
'agent' => 'Lynx/2.8.6rel.4',
),
                array (
'agent' => 'Lynx/2.8.5dev.16',
),
                array (
'agent' => 'Lynx/2.8.3dev.6',
),
                array (
'agent' => 'Maxthon',
),
                array (
'agent' => 'MAXTHON 2.0',
),
                array (
'agent' => 'Midori/0.1.5',
),
                array (
'agent' => 'Mozilla/4.61',
'name' => 'BrowseX (2.0.0 Windows)',
                                ),
                array (
'agent' => 'MultiZilla v1.5.0.0f',
),
                array (
'agent' => 'MultiZilla v1.1.32 final',
),
                array (
'agent' => 'NCSA_Mosaic/3.0',
),
                array (
'agent' => 'NCSA_Mosaic/2.6',
),
                array (
'agent' => 'NCSA_Mosaic/2.0',
),
                array (
'agent' => 'Netbox/3.5',
),
                array (
'agent' => 'Netscape/8.1',
),
                array (
'agent' => 'Netscape/7.02',
),
                array (
'agent' => 'Netscape6/6.1',
),
                array (
'agent' => 'NetCaptor 6.5.0RC1',
),
                array (
'agent' => 'Navigator/9.0.0.6',
),
                array (
'agent' => 'Mozilla/3.0',
),
                array (
'agent' => 'Mozilla/4.51',
),
                array (
'agent' => 'Mozilla/4.08',
),
                array (
'agent' => 'Mozilla/4.04',
),
                array (
'agent' => 'NetSurf/1.2',
),
                array (
'agent' => 'NetSurf/2.0',
),
                array (
'agent' => 'OffByOne',
),
                array (
'agent' => 'OmniWeb/4.1.1-v424.6',
),
                array (
'agent' => 'OmniWeb/2.7-beta-3',
),
                array (
'agent' => 'OmniWeb/v595',
),
                array (
'agent' => 'Opera/9.70',
),
                array (
'agent' => 'Opera/9.64',
),
                array (
'agent' => 'Opera/9.63',
),
                array (
'agent' => 'Opera/9.62',
),
                array (
'agent' => 'Opera/9.61',
),
                array (
'agent' => 'Opera/9.60',
),
                array (
'agent' => 'Opera/9.52',
),
                array (
'agent' => 'Opera/9.51',
),
                array (
'agent' => 'Opera/9.50',
),
                array (
'agent' => 'Opera/9.30',
),
                array (
'agent' => 'Opera/9.27',
),
                array (
'agent' => 'Opera/9.26',
),
                array (
'agent' => 'Opera/9.25',
),
                array (
'agent' => 'Opera/9.24',
),
                array (
'agent' => 'Opera/9.23',
),
                array (
'agent' => 'Opera/9.22',
),
                array (
'agent' => 'Opera/9.21',
),
                array (
'agent' => 'Opera/9.20',
),
                array (
'agent' => 'Opera/9.12',
),
                array (
'agent' => 'Opera/9.10',
),
                array (
'agent' => 'Opera/9.02',
),
                array (
'agent' => 'Opera/9.01',
),
                array (
'agent' => 'Opera/9.00',
),
                array (
'agent' => 'Opera/8.65',
),
                array (
                                                'agent' => 'Opera/8.60',
                                ),
                array (
                                                'agent' => 'Opera/8.54',
                                ),
                array (
                                                'agent' => 'Opera/8.53',
                                ),
                array (
                                                'agent' => 'Opera/8.52',
                                 ),
                array (
                                                'agent' => 'Opera/8.51',
                                 ),
                array (
                                                'agent' => 'Opera/8.50',
                                 ),
array (
'agent' => 'Opera/8.10',
),
                array (
                                                'agent' => 'Opera/8.02',
                                ),
                array (
                                                'agent' => 'Opera/8.01',
                                ),
                array (
                                                'agent' => 'Opera/8.00',
                                 ),
                array (
                                                'agent' => 'Opera/7.60',
                                 ),
                array (
'agent' => 'Opera/7.54u1',
),
                array (
'agent' => 'Opera/7.54',
),
                array (
'agent' => 'Opera/7.53',
),
                array (
'agent' => 'Opera/7.52',
),
                array (
'agent' => 'Opera/7.51',
),
                array (
'agent' => 'Opera/7.50',
),
                array (
'agent' => 'Opera/7.23',
),
                array (
'agent' => 'Opera/7.22',
),
                array (
'agent' => 'Opera/7.21',
),
                array (
'agent' => 'Opera/7.20',
),
                array (
'agent' => 'Opera/7.11',
),
                array (
'agent' => 'Opera/7.10',
),
                array (
'agent' => 'Opera/7.03',
),
                array (
'agent' => 'Opera/7.02',
),
                array (
'agent' => 'Opera/7.01',
),
                array (
'agent' => 'Opera/7.0',
),
array (
'agent' => 'Opera/6.12',
),
                array (
'agent' => 'Opera/6.11',
),
                array (
'agent' => 'Opera/6.1',
),
                array (
'agent' => 'Opera/6.06',
),
                array (
'agent' => 'Opera/6.05',
),
                array (
'agent' => 'Opera/6.04',
),
                array (
'agent' => 'Opera/6.03',
),
                array (
'agent' => 'Opera/6.02',
),
                array (
'agent' => 'Opera/6.01',
),
                array (
'agent' => 'Opera/6.0',
),
                array (
'agent' => 'Opera/5.12',
),
                array (
'agent' => 'Opera/5.11',
),
                array (
'agent' => 'Opera/5.02',
),
                array (
'agent' => 'Opera/5.0',
),
                array (
'agent' => 'Opera/4.02',
),
                array (
'agent' => 'Orca/1.1 build 1',
),
                array (
'agent' => 'Orca/1.1 build 2',
),
                array (
'agent' => 'Phoenix/0.4',
),
                array (
'agent' => 'Phoenix/0.5',
),
                array (
'agent' => 'Safari/528.16',
),
                array (
'agent' => 'Safari/523.15',
),
                array (
'agent' => 'Safari/419.3',
),
                array (
'agent' => 'Safari/312.6',
),
                array (
'agent' => 'Safari/125.12',
),
                array (
'agent' => 'Safari/125.9',
),
                array (
'agent' => 'Safari/125.8',
),
                array (
'agent' => 'Safari/125.7',
),
                array (
'agent' => 'Safari/125.11',
),
                array (
'agent' => 'Safari/125.1',
),
                array (
'agent' => 'Safari/125',
),
                array (
'agent' => 'Safari/100.1',
),
                array (
'agent' => 'Safari/100',
),
                array (
'agent' => 'Safari/85',
),
                array (
'agent' => 'Safari/74',
),
                array (
'agent' => 'Safari/73',
),
                array (
'agent' => 'Safari/60',
),
                array (
'agent' => 'Safari/48',
),
                array (
'agent' => 'SeaMonkey/2.0a3pre',
),
                array (
'agent' => 'SeaMonkey/2.0a2',
),
                array (
'agent' => 'SeaMonkey/2.0a1pre',
),
                array (
'agent' => 'SeaMonkey/1.5a',
),
                array (
'agent' => 'SeaMonkey/1.1.9',
),
                array (
'agent' => 'SeaMonkey/1.1.4',
),
                array (
'agent' => 'Shiretoko/3.1b4pre',
),
                array (
'agent' => 'Shiretoko/3.1b3pre',
),
                array (
'agent' => 'Shiira/1.2.3',
),
                array (
'agent' => 'Shiira/1.1',
),
                array (
'agent' => 'Sleipnir/2.8.4',
),
                 array (
'agent' => 'Sleipnir/2.8.1',
),
                array (
'agent' => 'Stainless/0.5.3',
),
                array (
'agent' => 'Stainless/0.4',
),
                array (
'agent' => 'SunriseBrowser/0.853',
),
                array (
'agent' => 'Sunrise/1.7.4',
),
                array (
'agent' => 'Firefox/3.0.10pre (Swiftfox)',
),
                array (
'agent' => 'TheWorld',
),
                array (
'agent' => 'w3m/0.5.2',
),
                array (
'agent' => 'w3m/0.5.1',
),
                array (
                                                'agent' => 'MSIE 8.0',
                                                'name' => 'Internet Explorer 8',
                                ),
                array (
                                                'agent' => 'MSIE 7.0b',
                                                'name' => 'Internet Explorer 7 (Beta 1 pre-release only)',
                                ),
                array (
'agent' => 'MSIE 7.0',
'name' => 'Internet Explorer 7',
),
                array (
                                                'agent' => 'MSIE 6.0b',
                                                'name' => 'Internet Explorer 6 (pre-release)',
                                ),
                array (
                                                'agent' => 'MSIE 6.0',
                                                'name' => 'Internet Explorer 6',
                                ),
                array (
'agent' => 'MSIE 5.5',
'name' => 'Internet Explorer 5.5',
),
                array (
                                                'agent' => 'MSIE 5.01',
                                                'name' => 'Internet Explorer 5.01',
                                ),
                array (
                                                'agent' => 'MSIE 5.0b1',
                                                'name' => 'Internet Explorer 5 (pre-release)',
                                ),
                array (
                                                'agent' => 'MSIE 5.0',
                                                'name' => 'Internet Explorer 5',
                                ),
                array (
'agent' => 'MSIE 4.01',
'name' => 'Internet Explorer 4.01',
),




// Offline Browsers


                array (
'agent' => 'AvantGo 5.2',
),
                array (
'agent' => 'GetRight/3.2',
),
                array (
'agent' => 'HTTrack 3.0x',
),
                array (
'agent' => 'iSiloX/4.37',
),
                array (
'agent' => 'JoBo/1.4',
),
                array (
'agent' => 'Offline Explorer',
),
                array (
'agent' => 'SiteSucker/1.6.9',
),
                array (
'agent' => 'Teleport Pro/1.2x',
),
                array (
'agent' => 'WebCopier',
),
                array (
'agent' => 'WebZIP',
),
                array (
'agent' => 'Wget',
),



// Mobile Browsers



                array (
'agent' => 'Firefox 2.0b3',
),
                array (
'agent' => 'Firefox 2.0b2',
),
                array (
'agent' => 'Firefox 2.0b1',
),
                array (
'agent' => 'Firefox 2.0b',
),
                array (
'agent' => 'Firefox 2.0a1',
),
                array (
'agent' => 'Firefox 2.0.0.3pre',
),
                array (
'agent' => 'Firefox 2.0.0.3',
),
                array (
'agent' => 'Firefox 2.0.0.2pre',
),
                array (
'agent' => 'Firefox 2.0.0.2',
),
                array (
'agent' => 'Firefox/2.0.0.12',
),
                array (
'agent' => 'BonEcho 2.0b2',
),
                array (
'agent' => 'BonEcho 2.0b1',
),
                array (
'agent' => 'BonEcho 2.0a3',
),
                array (
'agent' => 'BonEcho 2.0a2',
),
                array (
'agent' => 'BonEcho 2.0.0.3pre',
),
array (
'agent' => 'BonEcho 2.0.0.2pre',
),
                array (
'agent' => 'BonEcho 2.0.0.2',
),
                array (
'agent' => 'BonEcho 2.0.0.1pre',
),
                array (
'agent' => 'BonEcho 2.0.0.1',
),
                array (
'agent' => 'BonEcho 2.0',
),
                array (
'agent' => 'BonEcho 0.7b1',
),
                array (
'agent' => 'Beonex 0.8-stable',
),
                array (
'agent' => 'Avant Browser ',
),
                array (
'agent' => 'AOL 9.5',
),
                array (
'agent' => 'AOL 9.0',
),
                array (
'agent' => 'AOL 8.0',
),
                array (
'agent' => 'AOL 7.0',
),
                array (
'agent' => 'AOL 6.0',
),
                array (
'agent' => 'AOL 5.0',
),
                array (
'agent' => 'AOL 4.0',
),
                array (
'agent' => 'America Online Browser 1.5',
),
                array (
'agent' => 'America Online Browser 1.1',
),
                array (
                                               'agent' => 'Firebird',
                                ),
array (
'agent' => 'Google Desktop',
),
                array (
'agent' => 'Netscape/7.1',
),
                array (
'agent' => 'Netscape/7.0b1',
),
                array (
'agent' => 'Netscape/7.02 ',
),
                array (
'agent' => 'Netscape/7.01',
),
                array (
'agent' => 'Netscape/7.0',
),
                array (
'agent' => 'Netscape6/6.2.3',
),
                array (
'agent' => 'Netscape6/6.2.2',
),
                array (
'agent' => 'Netscape6/6.2.1',
),
                array (
'agent' => 'Netscape6/6.1',
),
                array (
                                                'agent' => 'MyIE2',
                                ),
                array (
                                                'agent' => 'Konqueror',
                                ),
                array (
                                                'agent' => 'Galeon',
                                ),
                array (
                                                'agent' => 'KMeleon',
                                 ),
                array (
                                                 'agent' => 'NG/2.0',
                                 ),
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: sear on June 14, 2009, 10:19:34 PM
Hey not sure if this is the right section, but didnt the who.template show user ip's also, my other install showed it with the who.template, but this new install isnt showing, What would i need todo to fix it. Thank you
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: FireDitto on June 25, 2009, 07:22:39 AM
Thanks for the updated lists, oops. :P
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Autoteilekauf.com on August 25, 2009, 10:23:31 PM
Thx for the list, oops!!!
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: skydiamond on September 02, 2009, 09:02:32 AM
I want to add the document.referrer on entry. How could I do that?  ???
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Autoteilekauf.com on September 02, 2009, 02:42:46 PM
More agents to add:

Updated: 2009-09-06


array (
            'agent' => 'radian6_linkcheck_',
            'spidername' => 'radian6.com Linkcheck',
            'spider' => true,
),
array (
            'agent' => '[email protected]',
            'spidername' => 'BlitzBOT',
            'spider' => true,
),
array (
            'agent' => 'bitlybot',
            'spidername' => 'bit.ly Bot',
            'spider' => true,
),
array (
            'agent' => '[email protected];',
            'spidername' => 'trendiction.com',
            'spider' => true,
),
array (
            'agent' => 'R6_CommentReader',
            'spidername' => 'radian6.com CommentReader',
            'spider' => true,
),
array (
            'agent' => 'Twitturly',
            'spidername' => 'Twitturly',
            'spider' => true,
),
array (
            'agent' => 'jobs.de-Robot',
            'spidername' => 'jobs.de',
            'spider' => true,
),
array (
            'agent' => 'magpie-crawler/1.1',
            'spidername' => 'brandwatch.net',
            'spider' => true,
),
array (
            'agent' => 'LinguaBot/v0.001-dev',
            'spidername' => 'LinguaSeek',
            'spider' => true,
),
array (
            'agent' => 'Viralheat Bot/1.0',
            'spidername' => 'ViralHeat.com',
            'spider' => true,
),
array (
            'agent' => 'Baiduspider',
            'spidername' => 'Baidu',
            'spider' => true,
),
array (
            'agent' => 'Scarlett/ 1.0',
            'spidername' => 'The Ellerdale Project',
            'spider' => true,
),
array (
            'agent' => 'mxbot/1.0',
            'spidername' => 'chainn.com',
            'spider' => true,
),
array (
            'agent' => 'Feedtrace-bot/0.2',
            'spidername' => 'feedtrace.com',
            'spider' => true,
),
array (
            'agent' => '008/0.83',
            'spidername' => '80legs.com',
            'spider' => true,
),
array (
            'agent' => 'AppEngine-Google',
            'spidername' => 'Google App Engine',
            'spider' => true,
),
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Nutronic on November 03, 2009, 07:12:38 AM
As there is no screenshots how do I actually know this is working
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Arantor on November 03, 2009, 07:51:21 AM
Quote from: Nutronic on November 03, 2009, 07:12:38 AM
As there is no screenshots how do I actually know this is working

You'll see it in the Who's Online page since you'll have separate sections for the guests, for the users and for the spiders; they won't be a single list.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: pjn on July 25, 2010, 09:54:22 AM
you are cooooooooooooooooool :)
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: oridyne on August 24, 2010, 02:32:49 PM
Hi,

Thought I'd add the additions I have made to my who.template.php to share with others as I have found this thread useful in the past.

  //Search Spiders

        array (
'agent' => 'Vagabondo/4.0',
'spidername' => 'webcrawler at wise-guys dot nl;',
'spider' => true,
        ),
        array (
'agent' => 'ScoutJet',
'spidername' => 'Blekko webcrawler',
'spider' => true,
        ),
        array (
'agent' => 'SpeedySpider',
'spidername' => 'EntireWeb.com Spider',
'spider' => true,
        ),
        array (
'agent' => 'Speedy Spider',
'spidername' => 'Entireweb Crawler',
'spider' => true,
        ),

//browsers

        array (
        'agent' => 'Chrome/5.0.375.127',
        ),
        array (
        'agent' => 'Chrome/5.0.375.126',
        ),
        array (
'agent' => 'Firefox/3.6.2',
),
        array (
'agent' => 'Firefox/3.6.1',
),
        array (
'agent' => 'Firefox/3.6',
),
        array (
'agent' => 'Firefox/3.5.8',
),
        array (
'agent' => 'Firefox/3.5.7',
),
        array (
'agent' => 'Firefox/3.0.17',
),
        array (
'agent' => 'Firefox/3.0.16',
),


Hope this is helpful.

Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Kat9119 on August 24, 2010, 06:38:25 PM
This is probably a very stupid question, but I don't understand what this actually does.

I installed Googlebot & Spiders mod and it stated that it was strongly recommended to install this file too, but I have no idea what this file actually does...
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: oridyne on August 25, 2010, 05:27:09 AM
Quote from: Kat9119 on August 24, 2010, 06:38:25 PM
This is probably a very stupid question, but I don't understand what this actually does.

I installed Googlebot & Spiders mod and it stated that it was strongly recommended to install this file too, but I have no idea what this file actually does...

No such thing as a stupid question, this file helps identify what browser / webcrawler etc is visiting your site. so when you go to the "Who's Online" this is referred to.

I am by no means an expert and I am sure one of the many excellent community members can give a better more detailed explanation.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: oridyne on August 25, 2010, 05:28:20 AM
A few more Updates....


  //Search Spiders
 
        array (
'agent' => 'YandexBot/3.0',
'spidername' => 'yandex.com Bot',
'spider' => true,
        ),
        array (
'agent' => 'YandexImages/3.0',
'spidername' => 'yandex.com Bot',
'spider' => true,
        ),
        array (
'agent' => 'YandexVideo/3.0',
'spidername' => 'yandex.com Bot',
'spider' => true,
        ),
        array (
'agent' => 'YandexBlogs/0.99',
'spidername' => 'yandex.com Bot',
'spider' => true,
        ),
        array (
'agent' => 'YandexFavicons',
'spidername' => 'yandex.com Bot',
'spider' => true,
        ),
        array (
'agent' => 'YandexWebmaster/2.0',
'spidername' => 'yandex.com Bot',
'spider' => true,
        ),
        array (
'agent' => 'YandexDirect/3.0',
'spidername' => 'yandex.com Bot',
'spider' => true,
        ),
        array (
'agent' => 'YandexDirect/2.0',
'spidername' => 'yandex.com Bot',
'spider' => true,
        ),
        array (
'agent' => 'YandexMetrika/2.0',
'spidername' => 'yandex.com Bot',
'spider' => true,
        ),
        array (
'agent' => 'YandexNews/3.0',
'spidername' => 'yandex.com Bot',
'spider' => true,
        ),
        array (
'agent' => 'YandexCatalog/3.0',
'spidername' => 'yandex.com Bot',
'spider' => true,
        ),
        array (
'agent' => 'YandexAntivirus/2.0',
'spidername' => 'yandex.com Bot',
'spider' => true,
        ),
        array (
'agent' => 'YandexZakladki/3.0',
'spidername' => 'yandex.com Bot',
'spider' => true,
        ),

// Mobile Browsers

        array (
        'agent' => 'AppleWebKit/530.17',
        ),


Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: Kat9119 on August 25, 2010, 08:57:54 AM
Quote from: oridyne on August 25, 2010, 05:27:09 AM
Quote from: Kat9119 on August 24, 2010, 06:38:25 PM
This is probably a very stupid question, but I don't understand what this actually does.

I installed Googlebot & Spiders mod and it stated that it was strongly recommended to install this file too, but I have no idea what this file actually does...

No such thing as a stupid question, this file helps identify what browser / webcrawler etc is visiting your site. so when you go to the "Who's Online" this is referred to.

I am by no means an expert and I am sure one of the many excellent community members can give a better more detailed explanation.


Thank you.

So, basically when I go to Who's Online page now, it still says Guest for spiders, but if I were to install this it would show MSNBOT or Google Spider instead? Is that all it does or does it change other things as well?

EDIT: Installed it. Like it. Thanks!
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: GreenBean |HH| on September 22, 2010, 11:28:50 PM
1.1.11, works 'pretty well' but not exactly as shown.

Using the SMF default theme all works fine.  Using my custom theme the 'who's online' only shows Guests, Users (no spiders) but if i click on the link for 'who's online' the spiders show up.

Here's the SMF default:
9 Spiders, 11 Guests, 1 User (0 Buddies)
Users active in past 1000 minutes:
GreenBean, MSNBot (5), Speedy Spider, Yahoo! Slurp, Googlebot (2)

And here's what it looks like with my custom theme:
11 Guests, 1 User (0 Buddies)
Users active in past 1000 minutes:
GreenBean

any ideas on how to make it show up?

installed Who.template.php in /htdocs/forum/Themes/default directory
who's online enabled
15.   Googlebot & Spiders Mod   2.0.4 is installed.
Powered by SMF 1.1.11
Forum: http://www.hackhunters.com/forum/index.php

thanks.
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: MoreBloodWine on September 23, 2010, 01:16:51 AM
Owdy, as always great work but why did you blank the main topic ?

Also, whens the last time you updated the attached file with new agents and what not ?
Title: Re: Custom Who.template.php - separated list for users, guests and spiders
Post by: MoreBloodWine on September 23, 2010, 01:22:51 AM
Quote from: Owdy on September 23, 2010, 01:19:09 AM
QuoteOwdy, as always great work but why did you blank the main topic ?

Because im tired to repeat that same line: THIS ISN'T Googlebot & Spiders Mod. I asked to whole topic to be removed.

Second, i cant update that file. Theres error in permissions. I cant even remove it.
Could have always added a new one and commented that the old was bad or something. In any case, I guess its a good thing I just re DL the file and saved this entire post locally to my HD. That aside, just because some peopel wana be freakin retards don't mean you have to ask that this whole post be removed when it benefits more people than those who are like hey man this mod isnt working or whatever.
Title: Re: REMOVE ME PLEASE
Post by: MoreBloodWine on September 23, 2010, 01:31:46 AM
Ok, I get the annoying part for the unread list but still, by having the post removed your pretty much ruining it for evryone else. That aside you can undo all notifications for this post which should settle the unread thing.

In any case, I really hate to see this post go.

SMF 2.0's handling of spiders in whos online is crap compared to this.

And for arguments sake, even their handling of them i nthe board index is crap compared to the googlebot bot which I know this is not lol
Title: Re: REMOVE ME PLEASE
Post by: MoreBloodWine on September 23, 2010, 01:39:20 AM
I'm gonan try to go through the entire post DL that I have and make a complete file using agents thats been posted from day one til now. If and when I finish the file since this is originally your tip/trick. Do I have permission to re-host it here ?

Also, the currently attached file works with 2.0 as well right ?

Just tryin to be clear since I havent tried it for a while.
Title: Re: REMOVE ME PLEASE
Post by: MoreBloodWine on September 23, 2010, 03:37:06 AM
Quote from: Owdy on September 23, 2010, 02:43:44 AM
Quote from: MoreBloodWine on September 23, 2010, 01:31:46 AM
That aside you can undo all notifications for this post which should settle the unread thing.
No, i cant remove it from here: http://www.simplemachines.org/community/index.php?action=unreadreplies

Quoteruining it for evryone else.
Use the mod Luke! http://custom.simplemachines.org/mods/index.php?mod=1148
That mod was last modified over 2 yrs ago, that said I've gone through this entire post and jotted down every agent for browsers, spiders etc and am currently in the process of alphabetizing it to make it easier to manage. That said, if and when this post is deleted do I have your permission to re-host the file with all the work I'm putting into it ?

Edit: I will note that the mod is for 2.0 and since you mentioned it I will guess that no, this file will not work on a 2.0 site which means I will need to work on converting it.
Title: Re: REMOVE ME PLEASE
Post by: MoreBloodWine on September 23, 2010, 03:50:13 AM
Quote from: Owdy on September 23, 2010, 03:40:56 AM
You can rehost it. it works with ALL versions of SMF. No need to convert.
Thx ;-)

Putting a good bit of work into this.
Title: Re: REMOVE ME PLEASE
Post by: SlammedDime on September 23, 2010, 04:28:03 AM
Topic locked, but will not be removed.