vBulletin

Thank you for visiting. This is our website archive. Please visit our main website by clicking the banner above.
vBulletin FAQ is dedicated to helping the forum owner build, manage and profit from his vBulletin Forum
vBulletin Web Hosting - Free skins and styles for your vBulletin - Search Engine Optimization




Spider Tracker?

mikelbeck
12-12-2005, 08:31 AM
Is there a hack/mod to track search engine spider visits?

Noppid
12-12-2005, 08:47 AM
Can you be more specific? What exactly are you wanting to track that you can't already with your server tools that come with almost all hosting accounts?

mikelbeck
12-12-2005, 08:56 AM
Can you be more specific? What exactly are you wanting to track that you can't already with your server tools that come with almost all hosting accounts?

When I was running my site on phpBB I had a hack that would show which spiders visited the site, how many pages they viewed, etc. I was looking for something like that for vBulletin.

Noppid
12-12-2005, 09:26 AM
You can get all that in awstats IIRC.

But, I think the info is in the sessions table for a vB hack to draw statistics from. However, I have no idea if one exists and what info is in the sessions table to draw on.

mikelbeck
12-12-2005, 09:41 AM
You can get all that in awstats IIRC.

But, I think the info is in the sessions table for a vB hack to draw statistics from. However, I have no idea if one exists and what info is in the sessions table to draw on.

Ok, thanks. I guess I'll just have to write my own. ;-)

Noppid
12-12-2005, 09:52 AM
Ok, thanks. I guess I'll just have to write my own. ;-)

Cool deal. Let us know how ya do.

mikelbeck
12-13-2005, 01:06 PM
Gettin there... Still needs quite a bit of work.

http://www.happyhourpub.com/spiders.php

Noppid
12-13-2005, 03:14 PM
Pretty good start.

mikelbeck
12-13-2005, 04:46 PM
Hook Location : global_start

(from vb.org)

That'll run on every page load?

As you may have guessed I'm looking for a place to stick the spider tracking code... It checks to see if the user is a guest, and if it is it logs it, using 1 SQL call. So there won't be much overhead there.

Noppid
12-13-2005, 05:02 PM
(from vb.org)

That'll run on every page load?

As you may have guessed I'm looking for a place to stick the spider tracking code... It checks to see if the user is a guest, and if it is it logs it, using 1 SQL call. So there won't be much overhead there.

Yep, if it's a vB page, that hook will preprocess your code before doing the other vB stuff. It replaces the old include_php_start template.

mikelbeck
12-13-2005, 05:31 PM
Yep, if it's a vB page, that hook will preprocess your code before doing the other vB stuff. It replaces the old include_php_start template.

Ah, I was wondering what happened to that. ;-)

One more thing... If it processes that first, how can I determine what the page is that's going to be displayed? There's a variable that's set by each page (THIS_SCRIPT or something like that) that I was going to use to determine where it was... Will that be available at that point?

Noppid
12-13-2005, 05:35 PM
It sure will. THIS_SCRIPT is defined before global.php is called in all the php files.

mikelbeck
12-13-2005, 07:29 PM
It sure will. THIS_SCRIPT is defined before global.php is called in all the php files.

Yep, that works just fine. Thanks!

mikelbeck
12-16-2005, 07:48 AM
It's getting there... Tracking a whole load of 'bots:

http://www.happyhourpub.com/spiders.php

Should I pack this up and release it as a mod? Is anybody aside from myself interested in this?

Any suggestions as to what else I should add to it?

Scribbller
12-17-2005, 03:50 AM
mikel is it only for 3.5 or is there a version for 3.0.x? if there is one for 3.0.x then I am definately interested in this.

mikelbeck
12-17-2005, 10:20 AM
mikel is it only for 3.5 or is there a version for 3.0.x? if there is one for 3.0.x then I am definately interested in this.

The one I'm working on is for 3.5.2, I don't have a 3.0.x version installed to mess with.

I would think that the only thing you'd have to change between the 3.5.2 and the 3.0.x version is where the tracker code is installed. In 3.5.2 it's in the global_start hook, that doesn't exist in 3.0.x, you'd have to put it in include_php_start instead.

Scribbller
12-20-2005, 04:55 AM
The one I'm working on is for 3.5.2, I don't have a 3.0.x version installed to mess with.

I would think that the only thing you'd have to change between the 3.5.2 and the 3.0.x version is where the tracker code is installed. In 3.5.2 it's in the global_start hook, that doesn't exist in 3.0.x, you'd have to put it in include_php_start instead.

So planning to release this?

mikelbeck
12-20-2005, 06:22 AM
So planning to release this?
Soon.

mikelbeck
01-05-2006, 09:09 PM
I finally got around to releasing this... It's up on vbulletin.org:

http://www.vbulletin.org/forum/showthread.php?t=104582


vBulletin

seo book

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum