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.
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)
im using smf 1.07 and uin default theme in who.template.php i couldnt find code above :(
Ok, i upload it in themes/default folder. thanx
Once I installed the GoogleBot Mod and THEN uploaded the attached file, everything works great :)
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?
Maybe there weren't any bots around, at the time?
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?)
Is their a way to code it so only the admins can see the spiders, and everyone else sees them as guests?
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..
It does it wil the spider bot mod on the users list at the bottom so I am guessing its possible.
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
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.
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.
I just installed it for my brand new installed SMF 1.1RC2, thanks Owdy, works like a charm
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
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
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..
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!
Could someone help me modify this so that it would only allow those who have permissions to see spiders be able to see them.
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 !
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?
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?
Works Perfect with SMF1.1RC3 also.
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!
in my forum rc3 are not compatible....
why?
Quote from: iettafune on August 27, 2006, 08:27:58 AM
in my forum rc3 are not compatible....
why?
Is it not working?
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.
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...
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
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?
It should be nice to localize the file !
In the Who.template.php
<div style="padding: 3px;">', theme_linktree(), '</div>';
$brokendown = array (
'Members' => array(),
'Guests' => array(),
'Spiders' => array(),
);
<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
$txt['spiders'] = 'Spiders';
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.
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. ;)
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 ?
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
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.
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'] != 0 )
$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;
}
?>
This version works great thanks.
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,
),
Great thanks, I will add this to the php file and also on my site.
Hi Pedja...
thanks for the info.... How to add global mods to see this please ?
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.
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'] != 0 )
$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;
}
?>
Great thanks, I updated the template and have it posted now.
Two more crawlers
array (
'agent' => 'MJ12bot',
'spidername' => 'Majestic12',
'spider' => true,
),
array (
'agent' => 'IsMySiteUp',
'spider' => true,
),
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.
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. ;)
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.
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)
This is the coolest tip ever. Thanks Owdy. :D
thanks i love this file. it works great. i owe you big time dude.
mike
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 :(
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?
Anyone have an updated who.template.php file? Mine is dated 9/10/06 9.44kb in size.
why do you need an updated one? Mine is dated back in July and it works just fine...
Good point.. I haven't replaced.. I just downloaded the file from this thread and replaced it..
I'll see if it works now !
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.
So strange.. I replaced the file with the one on this thread.. And still nothing..
No clue why... I guess i'm jsut unlucky !
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 ? :(
Perfect
;)
Ahhhhhhhhhhhhhhhh
It works :D
Thanks :D
Quick question ... is this going to work for v1.1 final ?
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...
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!!!
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?
ooohhhhhhhhhhhhhhhhh ok, thanks
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'] != 0 )
$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 ..
: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)
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.
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 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
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
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....
excellent!
thanks for sharing this
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,
),
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)
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... ;)
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.
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
The attachment in first post Who.template.php is giving template parser error!
problem solved
Care to share how it was solved?
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
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
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 ;)
Still no clever clogs figured out how to display all the members first then the guest after?
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?
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)
thank you owdy sorry for being so dumb.
i got it
Hi,
how can I display the version of the browser? For example IE 6.0, Ie 7.0, Firefox 2.0, thanks.
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'] != 0 )
$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;
}
?>
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.
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
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?
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
That works awesome, thanks Pedja!
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!
How would I change this to display RSS-readers as an own group?
I'd just like to get mine working to start with. :/
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 :(
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.
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
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...
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...
Ok. Thank You
This file can replace SMF 1.1.2 right ?
yes...
noob question...
Can it be used with TP?
yes
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.
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....
nice work
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
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!
bless you Pedja!
regards,
nada
remember people that both files begin with a CAPITAL W
Browser detailed info doesn't show up when FireFox browser in use...why?
IE7 shows it nicely.
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
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
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
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.
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
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.
thanks for the huge list, I am trying it out!
nada
oooooo, nice, thanks, let us know how it looks ;) I might try to add it this weekend.
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
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.
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
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.
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
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.
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
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?
i think to get this listing oing you have to have the smaller versions of the browsers first.
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
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?
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
I found the answer to my problem. I added in the spider to the googlebot and spiders mod code inside subs.php
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?
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(),
);
Thanks so much for making this! So much better.
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
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.
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
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)
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.
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!!! ;)
Simply Fantastic! Thank you soo much!
I have it working!! it's impressive! :D
This bot is missing (http://www.noxtrum.com/):
QuoteNoxtrum
(194.x.x.x, noxtrumbot/1.0)
Mine is look wrong... I don't know why
See http://i15.tinypic.com/52x9cev.jpg
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. ;)
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 !
??? what mod?!?!? this is a replacement for the who.template.php, so far as I know there is no mod package associated with it.
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 !
it's all here :
http://www.simplemachines.org/community/index.php?topic=38003.0
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...
you are sooooo right , my fault , i am sorry for being off topic here ! :-[
should i ask again in the mod topic ?
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?
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:
- Board Index Who's Online Block - Shows spiders like "Google [BOT]" in the who's online block. Except google would be able to be other search engines ;) We should also be able to set a color for the spiders as if it were in one group somewhere...
- TinyPortal Stats Block - Particulary in the whos online part of the block. I would like the same thing on this as the board index.
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?
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.
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?
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
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.
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
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?
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?
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?
if you get 3 users and four guests online, and 2 spiders too :P
now it says on the bottom of the page, 0 guests, 2 members, 0 members?
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.
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.
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?
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
just change the file so it doesnt say "user" 3 times
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.
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
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,
),
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',
),
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?
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
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.
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
what does the buddies and text strings have to do with separating the who's online list display?
:| ....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
Alundra, I could be wrong but I think the mod which does that is called Googlebot and Spiders
:( okay lol
thankyou
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
What mods do you have installed. Maybe it is due to one of them not playing nice with this template. Just something to check. :)
just this and the google bot and spiders...they were it. it was like that upon instillation, no other mods edited that file
Is the Who.template.php in your custom themes folder. ???
nope....but it does it on the default too
Put it in your custom theme folder and clear your error logs and see what happens.
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
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.
// "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 :)
is a groupie a buddy?
yup :) it was doing it before i changed buddy to groupie just so you know
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...
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
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?)
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
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?
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
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
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
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
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?
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.
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?
do you still require help with this??
Well I'm still waiting for an answer... :(
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.
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
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.
help
Can i use Googlebot & Spiders mod in SMF 1.1.4?
Yep, it works fine in 1.1.4.
I just installed this - it is great!
Owdy, Can you please Update the Attachment? getting 404 Error.
Thanks
Dear all,
You can add this spider in your who.template.php
array (
'agent' => 'Exabot/3.0',
'spidername' => 'Exabot',
'spider' => true,
),
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?
great. i love it. thanks for the update!
Same here. :) Works wonderfully, thanks. :D
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.
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....
ok thanks for clearing that up, I will try the tread for the mod.
Hi,
Could someone post the latest Who.template .php? Thanks
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?
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.
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(' ', ' ', '"3" ' . $txt['smf236'] . ': <b>1 ... 4 [5] 6 ... 9</b>') . '<br />' . str_replace(' ', ' ', '"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
Why would you have modified modsettings.php? This file JUST replaces the who.template.php and has no other affect on any other file.
sorry for my post, becouse i installed yhe mod and it give me this error :-[
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
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 :-[
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.
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
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
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
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
Just added this to my forum and it works just great.
Very cool, thanks 8)
thx! I like this template :)
I have been using this for a while, and I just changed to unrelenting's version. It is even better!
someone can put images of this trick??
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)
Very cool, thanks!
nice work..
tnx so much. A very usefull mod. ;)
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 :)
you should delete the duplicates.
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 :)
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! ;)
I have 3 languages in my forum. How can i translate the mod for all of them, instead of just one?
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? :)
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.
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
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.
Anyone, please?
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.
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?
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).
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)
@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.
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');
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?
@ 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.
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
A good suggestion for a work-around (and it did work), but unfortunately it affects all member listings, not just who's online.
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
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'] != 0 )
$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;
}
?>
sweet and easy !
Thx
AVF
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.
Quote
chep, weren't you looking for this?
No. There is a distinct difference.
Absolutely love this, it's fantastic and easy to install (upload), nice job mate.
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?
ummmmmm.....
Custom Who.template.php -
it creates a separated list for users, guests and spiders
(just like the thread title says. :) )
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.
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.
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?
If your looking for an uptodate list (without any dead-ones)
http://www.simplemachines.org/community/index.php?topic=233636.msg1507179#msg1507179
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..
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
is it possible to show user agents images ( firefox, ie, opera) on the who.template. php , instead of writing MSIE Firefox Opera
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
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.
I Love it!
(https://www.simplemachines.org/community/Themes/smsite/images/post/thumbup.gif)
VERY Useful: thank you very much!
Sorry but some spider though with their behalf I appear as guest and guest section why? how can I fix this?
How do i add spiders? i mean i cant see any in my who?;(
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.
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?
anyone?
Admin > Features and Options > Layout and Options >
Check "Enable who's online list"
thanks alot...
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
Thankzz....,...
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)
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.
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!
great option man, thanks for making it
Gooooooood work....
Works 4 me
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.
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
<div style="padding: 3px;">', theme_linktree(), '</div>
needs to be
<div style="padding: 3px;">', theme_linktree(), '</div>';
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',
),
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',
),
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
Thanks for the updated lists, oops. :P
Thx for the list, oops!!!
I want to add the document.referrer on entry. How could I do that? ???
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,
),
As there is no screenshots how do I actually know this is working
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.
you are cooooooooooooooooool :)
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.
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...
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.
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',
),
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!
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.
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 ?
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.
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
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.
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.
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.
Topic locked, but will not be removed.