Version: , by Palmer ofShinra
Developer Last Online: Feb 2004
Version: 2.2.x
Rating:
Released: 11-11-2001
Last Update: Never
Installs: 7
No support by the author.
Hack version 0.9
This is a hack that adds an extra class of custom title (VBcode) seperate from HTML allowed and Plain Text.
Anyone with HTML or VBcode as they're title type can now use VBcode in their title and it will display correctly.
This was written for the setup on my board, where I've applied some hacking to change custom title permissions to be Usergroup dependant rather than the VB default of Days Regged or Postcount, but some simple instructions have been added for those that still use this system.
As is, it will work fine if you give out custom titles on an individual basis rather than using the VB default system.
The code is really quite simple, so you should be able to figure out what it's doing on your own if you have problems.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
I tried this out on my test board that I use exclusively for mucking around and it works fine.
PLEASE NOTE:
Under Admin/User.PHP
The code that should be changed on line 218 appears instead on line 220.
For some reason I also had trouble finding it, but whatever, it is lines 60 and 220.
ALL USERS:
Please Pay attention when hacking the admin/user.php file.
There are two instinces that you will need to find and they are changed to different things. Pay attention and if you have trouble - double check what you altered.
If you have IMG enabled, users would be able to use that tag in thier titles. Unless I am mistaken you can disable the img tag in signutures only, and if your interested you could probably alter use an alteration of that to limit the codes that can be used.
This isn't to big of a concern for us at our site because only members who we could probably trust with it are able to use bb titles.
Cyrus - Your already familiar with how bb code works and what the title line looks like sot here is nothing to show there. If you want to see what it looks like in actual use, drop by our forums and look around. We do use alot of custom BB code that can be found at VB.com.
Actually... you really should read up on the functions Reeve my friend.
As it is, users with HTML enabled can use any VBcode in their title, including IMG.
They may also use smileys.
Users with JUST VBcode allowed cannot use IMG or smileys.
See...
HTML - bbcodeparse2($post[usertitle],1,1,1,1);
No HTML - bbcodeparse2($post[usertitle],0,0,0,1);
The 4 digits represent, in order
Allow HTML (will do an htmlspecialchars() if no)
Allow IMG (will not parse)
Allow Smileys (will not parse)
Allow VBcode (will not parse... kinda pointless to turn off)
The HTML level has them all set to 1 (yes) because, well... if you can use HTML, you can put an image in your title.
But for normal users it's disabled.
If you want to change that, adjust the zeroes to ones as appropriate.