Thanks falter. I will merge your code in my next release. With the Stadler's updated xml file. It will be better using the xml file than my string. I should be able to make that into plugins. So that no code needs to be changed regarding search engine crawler detection.
I also have an idea that I should make threads with new posts higher sitemap priority. So a new version is not far away.
It is good to see hackers work together creating better code. It makes it more interesting than explaining how to set permissions.
I have attached patch.diff for the two files.
Quote:
Originally Posted by falter
hey lierduh,
I've been playing around a bit with the robot detection. I snagged a bunch of code from "online.php", hacked it up a bit, and came up with this (as a drop-in replacement for the "is_robot_visit" function. This one uses the spiders_vbulletin.xml file, which I recommend people updating. The 3.5.0 gold version is fairly vanilla. I got an updated one from here: http://www.vbulletin.com/forum/showp...5&postcount=12
Anyway, here's the change to global.php (this is assuming that you have the very latest version of lierduh's code  )
There's all sorts of extra markup in the xml for ip ranges and such, but I'm just goign to match against the user-agents, for now.
|