diff --git a/plugins/forum/vbulletin4_users b/plugins/forum/vbulletin4_users new file mode 100644 index 00000000..5f6ee7e5 --- /dev/null +++ b/plugins/forum/vbulletin4_users @@ -0,0 +1,94 @@ +#!/usr/bin/perl +# +# Plugin to monitor the number of guests/users on a vbulletin4 forum +# Since we are using a regexp, this will work for EN forum only... adapt the regexp if your forum is not using that language. +# visual-regexp is a great help for tuning the regexp (package exists on Debian and Ubuntu repositories) +# +# +# Parameters supported: +# +# config +# autoconf +# +# Configurable variables +# +# url to online.php, this page is part of vbulletin distribution, pp=1 so the page is fast to load and doesn't give us too many unwanted info +# +# $Log$ +# +# +# Not sure about those lines... +# +# Magic markers: +#%# family=auto +#%# capabilities=autoconf + +my $ret = undef; + +if (! eval "require LWP::UserAgent;") +{ + $ret = "LWP::UserAgent not found"; +} + +# CHANGE ME +my $URL = exists $ENV{'url'} ? $ENV{'url'} : "http://www.url.to/forums/online.php?pp=1"; + + +# We will use this variable, not on this release ;-) +my $forum_type = exists $ENV{'type'} ? $ENV{'type'} : "vbulletin"; + +# same here +my %regexp = ("vbulletin"=> "