Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
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.0.6 Rating:
Released: 02-07-2005 Last Update: 03-19-2005 Installs: 119
 
No support by the author.

This one is a pretty easy hack to install. It shows any spiders that are indexing your site in the what's going on box on the forum home page. Please note. It will only show spiders as spiders and not as guests if it also shows them as spiders and not as guests on online.php.

This hack has been tested on 3.0.6 and 3.0.7.

It's not hard to install, but it does have one drawback. If you have a portal page that shows online users, you will have to edit it yourself to incorporate the changes. Consider yourself warned.

At this point, any problems reported are installation errors. If things don't work for you, make sure you have completed all the steps as written.

As I have upgraded to 3.5, I am withdrawing support for this older version. All the bugs are gone and any issues are now installation errors.

FAQ
1. I get this: [ARG:3 UNDEFINED] spiders on my portal page.
As noted above, because of the large number of portals, you're on your own for integrating them into thie hack.

2. I get this: [ARG:3 UNDEFINED] spiders on other pages.
1. Make sure you have done all of the code changes correctly.
2. Make sure you have updated your style to use the modified templates. If not, that error will occor.

German Translation provided by General. It can be found here:
https://vborg.vbsupport.ru/showpost....&postcount=230

Here is the Advanced CMPS module that y'all have been clamoring for:
https://vborg.vbsupport.ru/showthread.php?t=82339


Amy

-------------
This hack will always be free, however your donations are kindly accepted and will help towards further development. If you donate, please leave me some info (either your forum site or username at vB.org) so that I can thank you.

Show Your Support

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

Comments
  #172  
Old 03-20-2005, 02:19 PM
esfron esfron is offline
 
Join Date: Nov 2002
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by amykhar
Found it. The string needs to be trimmed in two places.

Code:
$loggedin['musername'] = trim(key($spiderlist)) . "(" . $spidername.")";
and

Code:
$loggedin['musername'] = trim(key($spiderlist));
I'll update the directions.

Sorry. It does'nt work for me. I get always the space: user , google , etc.
.
.


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') . '";');
	   next($spiderlist);
	}
Reply With Quote
  #173  
Old 03-20-2005, 02:47 PM
esfron esfron is offline
 
Join Date: Nov 2002
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK fixed it.

I don't undertand why but remove all spaces in template forumhome_loggedinuser fixed it.

FROM:
Code:
<if condition="$loggedin[userid]">
<a href="member.php?$session[sessionurl]u=$loggedin[userid]">$loggedin[musername]</a>$loggedin[invisiblemark]$loggedin[buddymark]
<else />
$loggedin[musername]
</if>
TO:
Code:
<if condition="$loggedin[userid]"><a href="member.php?$session[sessionurl]u=$loggedin[userid]">$loggedin[musername]</a>$loggedin[invisiblemark]$loggedin[buddymark]<else />$loggedin[musername]</if>
Now, it's fine.

Thanks amykhar
Nice hack

Click Install.
Reply With Quote
  #174  
Old 03-20-2005, 03:08 PM
caislander caislander is offline
 
Join Date: Oct 2002
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Amy,

I hate to ask this after all the work it looks like you went throught to get it right but I want to remove the spider from showing in the member list, is that possible? I just want the count in the "currently Active User" line, then if they want to know what bot(s) let them run whois online..
BTW, this is a great hack and works fine, in my case it just provide more info than is needed..

Thanks
Reply With Quote
  #175  
Old 03-20-2005, 03:27 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 caislander
Amy,

I hate to ask this after all the work it looks like you went throught to get it right but I want to remove the spider from showing in the member list, is that possible? I just want the count in the "currently Active User" line, then if they want to know what bot(s) let them run whois online..
BTW, this is a great hack and works fine, in my case it just provide more info than is needed..

Thanks

Just remove this:
Code:
	while ($spidername = current($spiderlist)) 

	{

	    if ($spidername > 1) {

	      $loggedin['musername'] = trim(key($spiderlist)) . "(" . $spidername.")";

	   }

	   else 

	   {

	      $loggedin['musername'] = trim(key($spiderlist));

	   }

	   $loggedin['userid'] = 0;
           $loggedin['musername'] = trim($loggedin['musername']);

	   eval('$activeusers .= ",' . fetch_template('forumhome_loggedinuser') . '";');

	   next($spiderlist);

	}
Reply With Quote
  #176  
Old 03-20-2005, 05:06 PM
IceFanatic IceFanatic is offline
 
Join Date: Jun 2004
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by esfron
OK fixed it.

I don't undertand why but remove all spaces in template forumhome_loggedinuser fixed it.

FROM:
Code:
<if condition="$loggedin[userid]">
<a href="member.php?$session[sessionurl]u=$loggedin[userid]">$loggedin[musername]</a>$loggedin[invisiblemark]$loggedin[buddymark]
<else />
$loggedin[musername]
</if>
TO:
Code:
<if condition="$loggedin[userid]"><a href="member.php?$session[sessionurl]u=$loggedin[userid]">$loggedin[musername]</a>$loggedin[invisiblemark]$loggedin[buddymark]<else />$loggedin[musername]</if>
Now, it's fine.

Thanks amykhar
Nice hack

Click Install.
That worked. Thank you very much.
Reply With Quote
  #177  
Old 03-20-2005, 05:50 PM
funkmeister funkmeister is offline
 
Join Date: Oct 2004
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by esfron
OK fixed it.

I don't undertand why but remove all spaces in template forumhome_loggedinuser fixed it.

FROM:
Code:
<if condition="$loggedin[userid]">
<a href="member.php?$session[sessionurl]u=$loggedin[userid]">$loggedin[musername]</a>$loggedin[invisiblemark]$loggedin[buddymark]
<else />
$loggedin[musername]
</if>
TO:
Code:
<if condition="$loggedin[userid]"><a href="member.php?$session[sessionurl]u=$loggedin[userid]">$loggedin[musername]</a>$loggedin[invisiblemark]$loggedin[buddymark]<else />$loggedin[musername]</if>
Now, it's fine.

Thanks amykhar
Nice hack

Click Install.
Yep, that's working for me too, thanks. Didn't require touching 'index.php' again.
Reply With Quote
  #178  
Old 03-20-2005, 05:59 PM
funkmeister funkmeister is offline
 
Join Date: Oct 2004
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by amykhar
Taking things a step further. If you want guest or guests(12), etc. to show on your list as well,

In index.php Find:
Code:
$numberguest = $numberguest - $numberspiders;
Add After:
Code:
	if ($numberguest > 0)
	{
	   if ($numberguest > 1)
	   {
	       $loggedin['musername'] = "guests(".$numberguest.")" ;
	   }
	   else
	   {
	      $loggedin['musername'] = "guest";
	   }
	   $loggedin['userid'] = 0;
	    eval('$activeusers .= ", ' . fetch_template('forumhome_loggedinuser') . '";');
	}
How can I get the entry 'guest' to display before the spiders? For example, I would like it like this.....Barry, John, Steve, guest, MSNbot - right now 'guest' is shown at the very end...Barry, John, Steve, MSNbot, guest

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

Move that chunk of code up above the chunk of code that displays the spiders. I quoted the spider code in post 174.
Reply With Quote
  #180  
Old 03-20-2005, 06:12 PM
funkmeister funkmeister is offline
 
Join Date: Oct 2004
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When I do that, it does place the 'guest' where I want it, BUT, it also adds 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.

Any ideas? Thanks.
Reply With Quote
  #181  
Old 03-20-2005, 06:23 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Let me think on it a bit.
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 07:29 PM.


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.07336 seconds
  • Memory Usage 2,324KB
  • 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
  • (12)bbcode_code
  • (5)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
  • (2)pagenav_pagelinkrel
  • (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