dss -

This mod was made specifically to test the index page. It just occurred to me last night that I could have written the mod to allow bots to be detected on all pages.

If you wish to do so, it is quite simple really. Open up your 'index.php' file and do the following:

FIND AND REMOVE THIS:

require('botdetect.php');
    $botStatus = isBotOnline();

Now open up include/common.php and go to the end of the file and place the text back in:

require('botdetect.php');
    $botStatus = isBotOnline();

Upload both and now bots can be detected on any page.

I will write a re-write for my installation guide later with these new steps included.

I would give that a go, in my database the table is lower-cased.

- Fixed 1st issue by simply renaming botsConfig to botsconfig.
- Is very weird that it isn't showing up -- did you use the googlebot spoofer and try viewing your index.php page? I've got it running on my forums fine.

If the default bot definitions weren't added, you should add them in -- for Googlebot you could put Googlebot for the alias and googlebot for the User Agent String. Also make sure bot detection is enabled. I don't know what else could be causing the problems.

##
##
##       Mod title:  BotDetect
##
##       Mod version:  1.5
##       Works on PunBB:  1.2.10, 1.2.*
##       Release date:  2005-11-29
##       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:  Yes - tables added: bots, botsconfig
##
##
##
##       Notes: This is a DRAMATIC update from my last version -- it now
##       supports integration with the SQL database and allows custom
##       configuration from the Administrative Plug-in options. Quick and
##       easy to install.
##
##
##
##       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.
##
##
##

If you're interested in downloading it, click *here*.

Documentation on how to upgrade/install is provided at the given link.

For detecting bots on all pages of the forums see my response: http://punbb.org/forums/viewtopic.php?pid=58076#p58076


I found another potential problem. When case sensitive is not selected, that means if you type the bot string in upper case then it potentially could have problems as it would lowercase the useragent but NOT the user agent string you defined. I now updated it in the same zip file download. Go to the link I provided and reupload the botdetect.php file and that should do the trick -- this could make a LOT of the bots show up now.

Hope you guys like it smile

^ Did you try testing out the googlebot spoofer? For the URL you may need to put /index.php for it to successfully crawl. What forums do you have it on? URL?

Ps. dss, do you have msn/yahoo/aim messenger? Please email me at services@programming-designs.com so we can talk further smile

Until I write the update that works directly with the punbb sql database I think your out of luck. Perhaps I could set up a script that you can include on your website until then? If so, would be nice if you could tell ppl about my site on your forums big_smile

Very weird, you must have done something wrong... Are you sure you modified the index.php correctly? Did you make sure to include the two files into your /forums root folder? Maybe there isn't write permission in that folder?

##
##
##        Mod title:  Display Post/Reply topic for guests
##
##      Mod version:  1.0.0
##   Works on PunBB:  1.2.x
##     Release date:  2005-11-27
##           Author:  Daniel Moxon (http://programming-designs.com)
##
##      Description:  Display Post new topic / Post reply links for guests
##      and direct them to the login page instead of displaying nothing.
##
##   Affected files:  viewforum.php
##                    viewtopic.php
##
##       Affects DB:  No
##
##
##       Notes: The usefulness of this is so that guests don't get confused and
##       will have the opportunity to login/register. If they login, it will automatically
##       redirect them to the page they were at previously. (This is by default.)
##     This mod should work on all releases but has only been tested on v1.2.10, is a 
##       very simple mod.
##
##     POLL USERS:  If you use the poll mod, you will need to replace the
##       text with alternate information. To find out what you the text with,
##     find the first "$post_link =" text in both viewforum.php and viewtopic.php
##       and copy the text until you reach the first semicolon ";"
##
##       This is essentially what the mod does, just with the original files
##       provided with PunBB.
##
##       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.
##
##

==============================[ 1.     OPEN     ]========================

viewforum.php

=========================================================================
==============================[ 2.     FIND     ]========================

$post_link = '';

=========================================================================
==============================[ 3. REPLACE WITH ]========================

$post_link = "\t\t".'<p class="postlink conr"><a href="login.php">'.$lang_forum['Post topic'].'</a></p>'."\n";

=========================================================================
==============================[ 4.     OPEN     ]========================

viewtopic.php

=========================================================================
==============================[ 5.     FIND     ]========================

$post_link = ' ';

=========================================================================
==============================[ 6. REPLACE WITH ]========================

$post_link = '<a href="login.php">'.$lang_topic['Post reply'].'</a>';

=========================================================================
==============================[ 7. SAVE/UPLOAD  ]========================

Read the above, it contains the whole mod. Poll Mod users may have questions, if so feel free to ask. This is a very simple mod.

Provide me with the url to your forums and I can see if it works or not for myself. If it doesn't I can help you further.

85

(1,382 replies, posted in General discussion)

Designs =P

86

(7 replies, posted in PunBB 1.2 show off)

Made some updates to the forums -- includes extra mods such as BotDetect mod, referral count mod, collapsable categories mod, polls, and some slight changes in visual appearances. smile

87

(224 replies, posted in PunBB 1.2 modifications, plugins and integrations)

^ I was also thinking that as well, but I guess this will have to do.

88

(1,382 replies, posted in General discussion)

breasts

Pretty impressive, looks like something I'v seen on Squidoo Beta's lensmaster dashboard. smile

90

(1,382 replies, posted in General discussion)

flake

^ Yes, if you want, you can move the code from index.php to common.php and it would work fine, I was actually thinking about this last night.

92

(1,382 replies, posted in General discussion)

pop

93

(121 replies, posted in PunBB 1.2 discussion)

This is great. The only thing I'm worried about is potentially having to re-install and re-do all the work I've done thus far on my forums once the update is available xD

Glad you like, may include other features such as tracking highest referrers, displaying highest referrers, possibly showing who each person referred, etc..

95

(224 replies, posted in PunBB 1.2 modifications, plugins and integrations)

Hey I installed this mod on my forums but have a question -- what is moderatepoll.php for? How do I use this with the mod? Also, a bug (well not really a bug but an issue), is that when the person edits a post in the poll response, it will go to viewtopic rather than viewpoll.php.

96

(4 replies, posted in Programming)

^ Same thought here. Won't really mean a lot until it becomes standardized amoungst hosting companies.

97

(2 replies, posted in Feature requests)

I just released it, get it here: http://punbb.org/forums/viewtopic.php?id=9648

##
##
##        Mod title:  Referral Count Mod
##
##      Mod version:  1.0.0
##   Works on PunBB:  1.2.x
##     Release date:  2005-11-26
##           Author:  Daniel Moxon (http://programming-designs.com)
##
##      Description:  Track how many people your members are referring to your
##              forums with this easy to implement mod.
##
##   Affected files:  index.php
##                    register.php
##                    profile.php
##
##       Affects DB:  New column: (in users table)
##                       'referral_count'
##
##       Notes: install_mod.php has only 1.2.10 listed in working versions, if you
##       have another version, feel free to include it in the install_mod.php, most
##       versions should work with it. I have only tested it with 1.2.10 though.
##
##
##
##       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 it here.

Working example is on my forums: http://programming-designs.com/forums
To see how it works, go to the forums and view the profile of one of the members. You should see both "Referral Count:" and "Referral URL:".

Enjoy.

IdleFire, I may write the botdetect mod update sooner than expected. I just made myself a mod to count signup referrals from members on the forums using mysql and will be posting that soon, then I'll work on the botdetect mod smile

100

(2 replies, posted in Feature requests)

Would be cool if somebody refers somebody that it could automatically add a cookie so when a person goes to something like: http://programming-designs.com/forums/i … =member_id

The cookie would be stored on that person's machine so if they are at the register page it would automatically fill the box "Referred by:" with member_id.

The member's "Referral Count" would be incremented once verified, and also would be cool to have that in their Profile, the amount of visitors they referred.

This would be useful if you were to have a contest that involved referring people to join -- "First person to refer 10 people to this forums wins a free Ipod!" Or people could even implement bonus features on the forums depending on how many people they referred.

I think this would be a great idea to implement smile

Anyone up for the job?

EDIT: I posted the request but was bored and decided to make it myself. I have a working version on my forums and will post the mod up for download within the next day or so.

You can view it in the works here: http://programming-designs.com/forums/profile.php?id=2