##
##
##       Mod title:  BotDetect
##
##       Mod version:  1.0
##       Works on PunBB:  1.2.*
##       Release date:  2005-11-25
##       Author:  Daniel Moxon (services@programming-designs.com)
##       Website: http://programming-designs.com
##
##       Description:  This Mod allows you to detect when a bot is online.
##
##       Affected files:  index.php
##
##
##       Affects DB:  No
##
##
##       Notes: May write this mod to create a table in the DB and be
##                 modified as a plugin, but at the moment this should
##                 suffice. Next version of this mod should focus on that.
##
##       DISCLAIMER:  Please note that "mods" are not officially supported by
##                    PunBB. Installation of this modification is done at your
##                    own risk. Backup your forum database and any and all
##                    applicable files before proceeding.
##
##
##

Download the file here.

Testing this mod: Visit this page and type in the URL to your forums and press submit. This will "spoof" the googlebot user agent and should be visible on your forums.

102

(13 replies, posted in Feature requests)

^ Will do, busy at the moment, but will probably write one tomorrow. Then if anybody is interested they can choose to re-write it if they'd like using the PunBB sql database.

103

(13 replies, posted in Feature requests)

^ I can't notice a slow down really, but until I learn more about PunBB and creating tables/modifying them this will have to do xD

104

(13 replies, posted in Feature requests)

Connorhd, I actually found a simple solution to this. Instead of using ANY database connectivity I keep a file that stores information about the Bot's Display Name, the Bot's Identity (HTTP_USER_AGENT), and the timestamp for the bot's last visit. Has delimiters and such for multiple bots. I just have it so that it displays the bot's name if it has visited in the last 5 minutes.

So all I had to do was include the php file i wrote that does all that, and determine what I want to do if it returns data when I call the function. smile

EDIT:
If you're interested in seeing in action, first go here: http://www.smart-it-consulting.com/inte … /index.htm (a bot spoofer)

Enter the url http://programming-designs.com/forums/index.php and choose either Google, MSN, Yahoo, Alexa-1, or the Yahoo-Slurp bot.

After you spoofed the visit, go to my forums and look at users online: http://programming-designs.com/forums

105

(12 replies, posted in General discussion)

Rickard, nice to hear that you're well recognized, I hope that one day I'll have the same recognition smile

106

(13 replies, posted in Feature requests)

Connorhd, do you know how I would go about getting this to work? I'd be interesting in writing the mod myself if somebody could point me to the right tables/information to access/modify for it to work.

Thanks.

107

(13 replies, posted in Feature requests)

af3, are you sure that will work? I thought that would only show googlebot on for google bot wouldn't it? Because it's seeing if the user agent is googlebot, so if it isn't google bot nobody else will see google bot listed as online would they?

I'm pretty sure there is more to it than that.

I have a problem with this addon. I get the error below:

Fatal error: Maximum execution time of 30 seconds exceeded in C:\location\forums\include\email.php on line 107

Any one know why? Please help!

109

(7 replies, posted in General discussion)

It works in both IE & FireFox!

110

(13 replies, posted in Feature requests)

I saw another forum that would show whenever GoogleBot was visiting their forum, so I was wondering if anybody could write a lil mod that would show "GoogleBot" in the user's online list whenever it comes around.

I know there isn't really any point of this, but I think it'd be a cool little feature to add smile

I found out how to detect googlebot, with this code snippet:

if(strstr(strtolower($HTTP_USER_AGENT), "googlebot")){
        do_work_here;
}

How would I include him into the "online users" list?

111

(7 replies, posted in PunBB 1.2 show off)

Wow so many views but no replies? Come on people!

112

(7 replies, posted in PunBB 1.2 show off)

Hello, I have just updated my forums -- it is the cellfuse style, but modified. I think it looks pretty good now. It uses 100% span rather than what he used normally and a change of fonts and sizes. Tell me what you think!

113

(7 replies, posted in PunBB 1.2 show off)

I am running punBB and since this place is to show off the usage of it I guess I will smile

The URL to my punBB is http://programming-designs.com/forums

I'll be keeping tabs on this site as I am really interested in seeing what new features arrive and what forum styles are developed. I may decide to make my own sometime soon as well smile

I have recently updated my forums style which in my opinion looks pretty darn nice now. Tell me what you think smile

I added features to my forums such as the Private Messaging System, my own key guide for the forum style I'm using (explain what icons indicate such as new post has been made, etc..), and last topic title in forum.