vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Show Spiders Online on ForumHome (https://vborg.vbsupport.ru/showthread.php?t=75986)

amykhar 02-07-2005 10:00 PM

Show Spiders Online on ForumHome
 
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. :)
https://vborg.vbsupport.ru/external/2010/02/12.gif

Polo 02-08-2005 09:49 PM

like it :)

kall 02-08-2005 10:37 PM

Marvellous!

Woah. I didn't even notice this was in the vb2 forum.

Just installed it and was away laughing. :)

corsacrazy 02-08-2005 10:59 PM

hmm is this not a bad idea?

i had over 500 spiders on my site once , and it happens often now so will displaying that many not overload something or cause any problems ?

corsacrazy 02-08-2005 11:00 PM

or does it only show the name of one spider ?

Boofo 02-09-2005 12:29 AM

Nice one, amy. ;)

Is there a way to show to amount of spiders online also?

Polo 02-09-2005 01:12 AM

Quote:

Originally Posted by kall
Marvellous!

Woah. I didn't even notice this was in the vb2 forum.

Just installed it and was away laughing. :)

well the title says : [vB 3.0.6]

amykhar 02-09-2005 02:19 AM

oops. Wrong forum. I'll move it. I keep forgetting there is a vb2 beta forum still.

Regarding the number of spiders, I have it showing only one instance of a given spider. Therefore, it doesn't count how many spiders are on at a time. Why? Because I liked the way it looked on my board.

If more than three of you want me to do another version that shows every single instance of them and keeps a count, I'll do that for you.

Boofo 02-09-2005 02:38 AM

Maybe have it do the amount behiond the spider name? Like this:

MSNBot (2)

I'd also like to have the amount in the line that says

(1 member and 3 guests)

Like this:

(1 member, 3 guests and 2 spiders)

if it is possible. ;)

rex_b 02-09-2005 03:22 AM

Works great. Thanks.

Guy G 02-09-2005 11:12 AM

Finally.... someone has done it. Thanks!

Installing 4 sure.

Dan 02-09-2005 11:42 AM

Quote:

Originally Posted by Guy G
Finally.... someone has done it. Thanks!

Installing 4 sure.

Nice one amy ;) I'll install this when I get home. Thanks!

Polo 02-09-2005 12:23 PM

Quote:

Originally Posted by Boofo
Maybe have it do the amount behiond the spider name? Like this:

MSNBot (2)

I'd also like to have the amount in the line that says

(1 member and 3 guests)

Like this:

(1 member, 3 guests and 2 spiders)

if it is possible. ;)

Are you reading my mind? that is exactly what I was going to ask for :) that would be great wouldnt be?

DR?@M W?@V?R 02-09-2005 01:31 PM

Good Stuff...

Are you useing a cloured whos online hack or is that a admincp option?

eva01_ 02-09-2005 02:14 PM

that is in the admincp when you manage a usergroup you can set the HTML setup of the user group

rex_b 02-09-2005 03:13 PM

How would one turn this off of invisible mode?

richiepearce 02-09-2005 08:25 PM

How do I get other bots to be listed such as Yahoo and MSN. At present only Google shows up as a bot. Is there another MOD for this.

eva01_ 02-09-2005 09:01 PM

you have to add their strings into your admincp in the "whos online" thinger in vBulletin options

Durtay 02-09-2005 09:27 PM

Quote:

Originally Posted by Boofo
Maybe have it do the amount behiond the spider name? Like this:

MSNBot (2)

I'd also like to have the amount in the line that says

(1 member and 3 guests)

Like this:

(1 member, 3 guests and 2 spiders)

if it is possible. ;)

I'll be the third to concur, I'll install with the added features... Great Hack!

Soto 02-09-2005 09:56 PM

Does this only work with 3.0.6? I'm running base 3.0.3 init.php patched to 0.5 as I've got a load of hacks installed and so am putting off upgrading. I've installed as per the instructions but no change, so have I answered my own question?

amykhar 02-09-2005 10:11 PM

Quote:

Originally Posted by rex_b
How would one turn this off of invisible mode?

I'm not sure what you're asking?

amykhar 02-09-2005 10:12 PM

Quote:

Originally Posted by Soto
Does this only work with 3.0.6? I'm running base 3.0.3 init.php patched to 0.5 as I've got a load of hacks installed and so am putting off upgrading. I've installed as per the instructions but no change, so have I answered my own question?

It works with 3.0.6, but I assume it would work with 3.0.3 as well. Try it and see. It's only one file to edit.

amykhar 02-09-2005 10:14 PM

Quote:

Originally Posted by Durtay
I'll be the third to concur, I'll install with the added features... Great Hack!

OK. Now that we have three requests I'll try to do the variation. But, I'm not promising that I can do it so that it shows Google(3) for example. I know I can get the total number of spiders, but I am trying to think of a clean efficient way to sum up the different ones online rather than just showing them as being there like the online.php page does.

eva01_ 02-09-2005 11:00 PM

thank-you amykhar ^^ i love it

and i would like to see more features as well

Soto 02-10-2005 06:41 AM

I've got it installed - it shows in the Who's Online section that it's a bot, but on the Currently active users on the front page shows x users and x guests with only the member names. Must be a 3.0.3 thing.

richiepearce 02-10-2005 11:26 AM

Quote:

Originally Posted by eva01_
you have to add their strings into your admincp in the "whos online" thinger in vBulletin options

Thanks

shadiguy1 02-10-2005 11:47 AM

this is what i get when i install it.

Database error in vBulletin 3.0.3:

Invalid SQL:
SELECT DISTINCT user.username, session.useragent,user.userid,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
FROM session AS session
LEFT JOIN user AS user USING (userid)
WHERE session.lastactivity >

ORDER BY session.userid

mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY session.userid' at line 7

mysql error number: 1064

Date: Thursday 10th of February 2005 08:46:21 AM
Script: http://nextelelite.com/forums/index.php?
Referer: http://nextelelite.com/
Username: Shadiguy1
IP Address: 205.188.116.7

yoyoyoyo 02-10-2005 11:59 AM

Quote:

Originally Posted by richiepearce
How do I get other bots to be listed such as Yahoo and MSN. At present only Google shows up as a bot. Is there another MOD for this.

Quote:

Originally Posted by eva01_
you have to add their strings into your admincp in the "whos online" thinger in vBulletin options

Attached is a list of all known 'Robot Agent' Strings, and the list is pretty current (only 2 days old at this point).

babolo 02-10-2005 01:03 PM

IT WORKS! thanks this hack is great especially since I submitted my site to a lot of search engines and want to make sure it works.

amykhar 02-11-2005 12:18 AM

Quote:

Originally Posted by shadiguy1
this is what i get when i install it.

Database error in vBulletin 3.0.3:

Invalid SQL:
SELECT DISTINCT user.username, session.useragent,user.userid,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
FROM session AS session
LEFT JOIN user AS user USING (userid)
WHERE session.lastactivity >

ORDER BY session.userid

mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY session.userid' at line 7

mysql error number: 1064

Date: Thursday 10th of February 2005 08:46:21 AM
Script: http://nextelelite.com/forums/index.php?
Referer: http://nextelelite.com/
Username: Shadiguy1
IP Address: 205.188.116.7

OK. Then it doesn't work under 3.0.3. Sorry.

amykhar 02-11-2005 12:19 AM

Support will be slow for the next couple of days. My home DSL is down and I can't spend a lot of time on the web at work.

shadiguy1 02-11-2005 11:00 AM

can anyone find out why it wont work with 3.0.3 i would relly like to use it . Thanks in advance.

Couch 02-11-2005 04:50 PM

Works Perfectly. Thank you :)

richiepearce 02-11-2005 05:13 PM

Quote:

Originally Posted by shadiguy1
can anyone find out why it wont work with 3.0.3 i would relly like to use it . Thanks in advance.


I am using 3.0.3 and it works OK.

Viks 02-14-2005 02:42 PM

problem appears to be the syntax...not the mod.
try this
in line -> SELECT DISTINCT user.username, session.useragent,user.userid

there sud be a space between "session.useragent," AND "user.userid"

like below:

SELECT DISTINCT user.username, session.useragent, user.userid





Quote:

Originally Posted by shadiguy1
this is what i get when i install it.

Database error in vBulletin 3.0.3:

Invalid SQL:
SELECT DISTINCT user.username, session.useragent,user.userid,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
FROM session AS session
LEFT JOIN user AS user USING (userid)
WHERE session.lastactivity >

ORDER BY session.userid

mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY session.userid' at line 7

mysql error number: 1064

Date: Thursday 10th of February 2005 08:46:21 AM
Script: http://nextelelite.com/forums/index.php?
Referer: http://nextelelite.com/
Username: Shadiguy1
IP Address: 205.188.116.7


amykhar 02-14-2005 03:54 PM

I have the requested changes made. I am just testing them - need to wait for more spiders to hit my site.

amykhar 02-14-2005 04:37 PM

If you have spiders on your site now and are willing to try out raw code , please follow the directions in this text file AFTER you have installed the original hack.

I have not been able to verify that this works because the spiders aren't crawling in hordes at my site today. If you install this test code and need help, you must be willing to share your forum url and have the who's online page available to guests. I can't debug otherwise.

(Attachment removed and posted down below.)

eva01_ 02-14-2005 05:31 PM

it wont let me edit the phrase O_o

kall 02-14-2005 06:47 PM

Quote:

Originally Posted by amykhar
If you have spiders on your site now and are willing to try out raw code , please follow the directions in this text file AFTER you have installed the original hack.

I have not been able to verify that this works because the spiders aren't crawling in hordes at my site today. If you install this test code and need help, you must be willing to share your forum url and have the who's online page available to guests. I can't debug otherwise.

It works fine for me.

http://forums.nzboards.com :)

For now, unregistereds can view the who's online.

*edit* although...I have google showing up multiple times.

Quote:

Originally Posted by forumhome.php
Most users ever online was 260, 06-Dec-2004 at 09:48 PM.
kall , google(1) , yahoofeedseeker(1) , google(2) , google(3) , google(4) , yahoo! slurp(1) , google(5) , yahoo! slurp(2)

*edit2*
And whosonline is spitting out the foul taste of an error:
Quote:

Originally Posted by online.php
1 members and 16 guests and [ARG:3 UNDEFINED] search engine spiders


eva01_ 02-14-2005 07:06 PM

curses why wont it let me edit the phrase ><!!!!

is it because we found a bug in vB when using safari?


All times are GMT. The time now is 04:52 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02916 seconds
  • Memory Usage 1,828KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete