Well for anyone who's interested, I managed to work this out although it meant adding code to two php files (class_bbcode.php and class_bbcode_alt.php) and adding a function to vbulletin_global.js.
Basically I'm using the php function base64_encode within the class_bbcode.php call when parsing the text for the tag, and returning a html string that contains a javascript call to a decode64 function that I've added to the .js file. Seems to work great, and the html return string can also have a 'span style=color:' tag to highlight the obfuscated word.
If anyone wants the code and instructions (I have no idea how to write it up as a plugin etc) let me know.
|