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
  #2  
Old 07-03-2005, 05:45 PM
Frenck's Avatar
Frenck Frenck is offline
 
Join Date: Dec 2001
Location: Hengelo, The Netherlands
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can't this be done with a plugin only?
Reply With Quote
  #3  
Old 07-03-2005, 05:48 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Frenck
Can't this be done with a plugin only?
Not that I know of because it has to change some existing code.
Reply With Quote
  #4  
Old 07-04-2005, 08:06 AM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Typo in your FORUMHOME replace block: missing the $ from $numberspiders



(otherwise, perfection.)
Reply With Quote
  #5  
Old 07-04-2005, 01:19 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you
Reply With Quote
  #6  
Old 07-13-2005, 12:27 AM
Extreme John Extreme John is offline
 
Join Date: Nov 2004
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Im a bit of an amateur, but I like the idea of this, so does my current version of vBulletin which is 3.0.6 allow me to use this?? I know .. damn amateurs.. Just not sure if Im using a "Portal" to display my who's online.
Reply With Quote
  #7  
Old 07-13-2005, 01:50 AM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Extreme John
Im a bit of an amateur, but I like the idea of this, so does my current version of vBulletin which is 3.0.6 allow me to use this?? I know .. damn amateurs.. Just not sure if Im using a "Portal" to display my who's online.
I released it for 3.0.x, you can find it in the forum home modification section of 3.0 mods. Just look at my profile page here and you'll see the link.
Reply With Quote
  #8  
Old 07-31-2005, 11:47 AM
Rover416 Rover416 is offline
 
Join Date: Jun 2005
Location: United Kingdom
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks amy.
Reply With Quote
  #9  
Old 07-31-2005, 09:53 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you want to show them on your forumdisplay page, here's what you do.
In forumdisplay.php
Find:
Code:
'iconcache',
Add After:
Code:
'wol_spiders',
Find:
Code:
$numberguest = 0;
Add After:
Code:
  $numberspiders = 0;
  $spiderlist = array();
Find:
Code:
	$forumusers = $db->query_read("
		SELECT user.username, (user.options & " . $vbulletin->bf_misc_useroptions['invisible'] . ") AS invisible, user.usergroupid, session.userid, session.inforum, session.lastactivity,
			IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
		FROM " . TABLE_PREFIX . "session AS session
		LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = session.userid)
		WHERE session.lastactivity > $datecut
		ORDER BY" . iif($vbulletin->options['showforumusers'] == 1, " username ASC,") . " lastactivity DESC
	");
Replace with:
Code:
	$forumusers = $db->query_read("
		SELECT user.username, (user.options & " . $vbulletin->bf_misc_useroptions['invisible'] . ") AS invisible, user.usergroupid, session.userid, session.inforum, session.lastactivity,session.useragent,
			IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
		FROM " . TABLE_PREFIX . "session AS session
		LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = session.userid)
		WHERE session.lastactivity > $datecut
		ORDER BY" . iif($vbulletin->options['showforumusers'] == 1, " username ASC,") . " lastactivity DESC
	");
Find:
Code:
// this is a guest
$numberguest++;
Add Above:
Code:
					if (!empty($vbulletin->wol_spiders))
	        {
	   				if (preg_match('#(' . $vbulletin->wol_spiders['spiderstring'] . ')#si', $loggedin['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;
				     
							}
		
						}
	   		 }
	   		 else 
	   		 {
Find:
Code:
// this is a guest
$numberguest++;
$inforum["$loggedin[inforum]"]++;
Add After:
Code:
}
Find:
Code:
	$totalonline = $numberregistered + $numberguest;
Replace with:
Code:
				while ($spidername = current($spiderlist)) 
	    {
	    	if ($spidername > 1) 
	    	{
	     	 	$loggedin['musername'] = trim(key($spiderlist)) . "(" . $spidername.")";
	   		}
	   		else 
	   		{
	     	 $loggedin['musername'] = trim(key($spiderlist));
	  		}
	   		$loggedin['userid'] = 0;
	   		eval('$activeusers .= ", ' . fetch_template('forumhome_loggedinuser') . '";');
	  	 $numberspiders = $numberspiders + $spidername;
	  	 next($spiderlist);
			}
	$totalonline = $numberregistered + $numberguest + $numberspiders;
Now, in your forumdisplay template, Find:
Code:
(<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_y_guests]</phrase>)
Replace With:
Code:
(<phrase 1="$numberregistered" 2="$numberguest" 3="$numberspiders">$vbphrase[x_members_and_y_guests]</phrase>)
Let me know how these directions work for you. If they are good, I'll add them to the zip later.

Amy
Reply With Quote
  #10  
Old 07-31-2005, 10:17 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And, if you want spiders to show up on your showthread.php, try these directions.

As above, let me know how they work. If they are good, I'll add them to the hack zip.
Reply With Quote
  #11  
Old 08-02-2005, 06:59 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works on RC1?
Reply With Quote
  #12  
Old 08-02-2005, 07:11 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes.
Reply With Quote
  #13  
Old 08-03-2005, 08:09 AM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Alright thanks.
Reply With Quote
  #14  
Old 08-03-2005, 11:54 PM
Rich's Avatar
Rich Rich is offline
 
Join Date: Mar 2004
Location: U.S.A
Posts: 921
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

Quote:
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.

VBadvanced CMPS portal works on RC1.
Reply With Quote
  #15  
Old 08-03-2005, 11:59 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Now it does. It didn't when I wrote that sentence
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 02:33 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.08842 seconds
  • Memory Usage 2,356KB
  • Queries Executed 28 (?)
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
  • (14)bbcode_code
  • (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
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (15)post_thanks_box
  • (15)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (15)post_thanks_postbit_info
  • (14)postbit
  • (15)postbit_onlinestatus
  • (15)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