View Full Version : VBcode in titles
Palmer ofShinra
11-11-2001, 10:00 PM
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.
squawell
11-12-2001, 06:13 PM
one question:is this work on 220??
Palmer ofShinra
11-12-2001, 06:20 PM
It says 2.0.3
I have 2.0.3
I do not have 2.2.0
Therefore I cannot test it in 2.2.0, so I have no clue.
Oh, and redownload the file... I fixed a couple typos.
Logan
11-12-2001, 06:44 PM
Does this cause problems for people adding [img] tags or things of that nature? Or can you turn img off for the title only?
cyrus
11-12-2001, 07:11 PM
got a demo ?
Reeve of shinra
11-13-2001, 01:05 AM
WORKS ON VB 220
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.
Other than that you should have no probs. =)
Reeve of shinra
11-13-2001, 01:16 AM
Logan -
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.
Our main site is www.shinraonline.com however you can jump straight to the forums at http://130.94.171.148/board/
Palmer ofShinra
11-13-2001, 09:48 AM
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.
Reeve of shinra
11-13-2001, 12:13 PM
I stand corrected =)
dotagious
01-03-2002, 09:06 PM
[QUOTE]Originally posted by Palmer ofShinra
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.
Palmer ofShinra
01-03-2002, 09:43 PM
By default, without hacking the board...
User's editing their titles from the User CP can only use plain text.
VB code does not work. Nor do smilies.
If an admin edits a user's title through the Admin CP, then they CAN use HTML.
VB code still does not work, nor do smilies.
dotagious
01-03-2002, 11:31 PM
Ok.. so even with this new vBcode option.. I still have to manually enter the text via the admincp for it to work? Because, I tried to set the vBCode option and let them enter the text via usercp and it did not work.
Ummmm I would like to get this to work in 2.2.5 have any ideas Palmer?
Note: I have my own version now.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.