Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Show Spiders Online on ForumHome Details »»
Show Spiders Online on ForumHome
Version: 1.00, by amykhar amykhar is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 07-02-2005 Last Update: 02-02-2006 Installs: 125
Template Edits
Code Changes  
No support by the author.

This is a port of my 3.0.x modification. It shows, on your forumhome page, any spiders that are present (ones that show as a spider on your who's online page)

NOTE: If you are using a portal that shows who's online, this mod will mess up your portal. As of this date, I do not know of any working portals for 3.5 and I do not have the code to fix portals.

Please understand what this mod does before you start crying that it doesn't work. This mod will show any spiders who show up as a spider on who's online as a spider on the forumhome page. It will NOT show a spider who shows up as a guest on who's online as a spider. It does not add additional spiders to the list either.

PLEASE DO NOT INSTALL THIS IF YOU ARE UNABLE TO ADJUST YOUR OWN PORTAL TEMPLATES SO THAT THE PHRASE DOES NOT CONTAIN AN ERROR.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #102  
Old 11-01-2005, 04:30 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What a shame...
Reply With Quote
  #103  
Old 11-02-2005, 12:39 PM
john_robot john_robot is offline
 
Join Date: Jun 2005
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is this really working? I checked when the msn bot on our site but this didnt show me the msn bot
Reply With Quote
  #104  
Old 11-02-2005, 12:59 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First question. When you look at your online.php, do you know it's a bot because the username says its a spider, or do you know it's a bot based on the ip address?
Reply With Quote
  #105  
Old 11-04-2005, 08:45 PM
funkmeister funkmeister is offline
 
Join Date: Oct 2004
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do I correct the guest count? In otherwords, it's adding the total number of guests and spiders together and places that total in the parentheses for the guests.

So it looks like guests (6), MSNbot (4) when in fact there are are only 2 guests and 4 spiders. It doesn't effect the spider reporting, so in other words, in this example, MSNbot (4), is shown correctly.

Thanks in advance.
Reply With Quote
  #106  
Old 11-04-2005, 10:55 PM
funkmeister funkmeister is offline
 
Join Date: Oct 2004
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by funkmeister
How do I correct the guest count? In otherwords, it's adding the total number of guests and spiders together and places that total in the parentheses for the guests.

So it looks like guests (6), MSNbot (4) when in fact there are are only 2 guests and 4 spiders. It doesn't effect the spider reporting, so in other words, in this example, MSNbot (4), is shown correctly.

Thanks in advance.
After some experimentation I was able to figure it out....just the change the code in index.php in this chunk....to this, if you want the same desired effect:

Quote:
$spiderlist = array();
while ($spidercand = $db->fetch_array($spiders))
{
$userid = $spidercand['userid'];
if (!empty($vbulletin->wol_spiders))
{
if (preg_match('#(' . $vbulletin->wol_spiders['spiderstring'] . ')#si', $spidercand['useragent'], $agent))
{
$agent = strtolower($agent[1]);
$spider = $vbulletin->wol_spiders['agents']["$agent"];
$key = $spider['name'];
if(array_key_exists($key,$spiderlist))
{
$spiderlist[$key] = $spiderlist[$key] + 1;
}
else
{

$spiderlist[$key] = 1;

}


$numberspiders++;

}
}
}

$numberguest = $numberguest - $numberspiders;

if ($numberguest > 0)
{
if ($numberguest > 1)
{
$loggedin['musername'] = "Guest (".$numberguest.")" ;
}
else
{
$loggedin['musername'] = "Guest";
}
$loggedin['userid'] = 0;
eval('$activeusers .= ", ' . fetch_template('forumhome_loggedinuser') . '";');
}

while ($spidername = current($spiderlist))
{
if ($spidername > 1) {
$loggedin['musername'] = key($spiderlist) . " (" . $spidername.")";
}
else
{
$loggedin['musername'] = key($spiderlist);
}
$loggedin['userid'] = 0;
eval('$activeusers .= ", ' . fetch_template('forumhome_loggedinuser') . '";');
next($spiderlist);
}

// memory saving
unset($userinfos, $loggedin);

$activeusers = substr($activeusers, 2); // get rid of initial comma

$db->free_result($forumusers);

$totalonline = $numberregistered + $numberguest + $numberspiders;
$numberinvisible = $numberregistered - $numbervisible;
Reply With Quote
  #107  
Old 11-05-2005, 04:33 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey is there anyone who could fix the issue for the vBadvanced Portal please?
Reply With Quote
  #108  
Old 11-07-2005, 09:04 AM
divided_by_fear's Avatar
divided_by_fear divided_by_fear is offline
 
Join Date: Oct 2005
Posts: 451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bro i been asking the same thing... but it seems amykhar dont care to work on it for vBadvanced.... she had said it in her previous post... so it seems were left high and dry...
Reply With Quote
  #109  
Old 11-07-2005, 12:02 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No. You are not left high and dry. You were warned before you ever installed the mod. It's in the very first post. You decided to install the mod anyway. That is not nearly the same as me leaving you high and dry.
Reply With Quote
  #110  
Old 11-07-2005, 03:34 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

christian have figured it out to make it to work on vBa, but as you may know he's not fully done with it. The spiders shows up but it doesn't count up the number of spiders that is currently online on a board.

Have a look: http://mgszone.com
Reply With Quote
  #111  
Old 11-07-2005, 05:11 PM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Umm... is anyone else experiencing weirdness on 3.5.1?
Quote:
Currently Active Users: 127 (2 members and -103 guests and 114 spiders)
View Who's Online

Most users ever online was 608, 07-Jun-2005 at 01:24 AM.
kall, vobbi, WiseNut(2), Yahoo! Slurp(108), Google AdSense, MSNBot, Gigabot, e-Society, Yahoo! Slurp (108), WiseNut (2), Google AdSense, MSNBot, Gigabot, e-Society
The spider names are doubled-up, and the number of guests is negative.

I double-checked my code edits..
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:39 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09557 seconds
  • Memory Usage 2,310KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete