Oct 05 2008

VBulletin Antivirus

Category: PortfolioFractalizeR @ 5:45 pm

What does it do?

It scans every attachment any user uploads to your forum for viruses and allows to execute various actions if any virus is found. Hack requires PHP 5.x. and (depending on driver) PHP AV extensions or some antivirus software installed on PC

Points of interest:

  • Modular architecture (can be attached to almost any antivirus. Just a few lines of code needed to write a driver)
  • Allows to exclude certain usergroups from check
  • Allows to exclude certain threats (viruses)
  • Can autoban user, that uploaded infected attachment
  • Can send PM notifications about virus to selected usergroups or users. Message text and options to send are customizable.
  • Can warn user, that uploaded virus by PM about his action. Message text and options to send are customizable.
  • Can change usergroup of the user, uploaded infected attachment
  • Can create a post in specific thread or a thread in specific forum with customized text about user and virus he tried to upload
  • Can execute arbitrary PHP code when the virus is found

How to install?

  • Unpack archive into forum root
  • Install *.xml file via Admin Control Panel (Product management)

Driver is bundled for phpLibClamAV extension which uses ClamAV antivirus natively from PHP.
Installation instructions and sources are here: http://trickie.org/code/phplibclamav.php

For other antivirus engines you will need to write a driver or at least give me full docs on antivirus you use.

How to update to latest version?

Overwrite all files by new ones from latest zip and reimport product XML file via Admin Control Panel with “Allow Overwrite” option checked.

You can download the latest version of this addon at it’s official page at VBulletin Community Website


Oct 05 2008

VBulletin: Registration form AJAX enhancements

Category: PortfolioFractalizeR @ 5:44 pm

What does it do?

  • Checks for username validity as you type it in registration form
  • Checks for email validity as you type it in registration form
  • Checks for password validity as you type it in registration form
  • Suggests good passwords
  • Shows strength of your password as you type it in registration form

Points of interest:

  • No template or code changes. All is done using VBulletin Product API.
  • Only several custom phrase is used. All others are taken from VBulletin. So, product localization is VERY easy.
  • All validity checks are implemented using VBulletin API

How to install?

  • Unpack archive into forum root
  • Install *.xml file via Admin Control Panel (Product management)

What is NOT done:

  • No checks implemented for entering captchas as it may seriously lower forum anti-spam security

You can download the latest version of this addon on VBulletin Community Website page of this addon.


Oct 05 2008

VBulletin: Javascript Editor Toolbar Controls Framework

Category: PortfolioFractalizeR @ 5:43 pm

Writting VBulletin addons, especially those, related to BBCodes extending, I always had difficulties with adding BBCode buttons to editor toolbar. Standard way is too limited: you cannot select which editor to add buttons to, you cannot choose to what line to add these buttons, you cannot create a new toolbar for them… Adding buttons to AJAX-produced editor windows causes troubles… You are TOO limited…

Thinking about the solution I tried to do that via plugins and didn’t come to any acceptable solution. I always care about my code beauty so I am strongly against modifying VBulletin PHP code (because that makes updating VBulletin complicated for user. Each new update vanishes your code hacks).

The solution I suggest is DHTML way. I have written a small frawework to control editor toolbar. Let me first consider it from the surface.

More information about this framework can be found in this article.