Version: 1.00, by JJR512
Developer Last Online: Jun 2006
Version: 2.2.x
Rating:
Released: 02-10-2002
Last Update: Never
Installs: 13
No support by the author.
This is a small hack that I wrote several months ago. Originally it was only a template mod, then turned into a hack but remained in the template mods forum at vbulletin.com, so it never made it over here.
Basically, all it does is show both a custom title, selected by the user, and the user's standard title (Junior Member, Member, Moderator, etc.) in posts. It uses a custom profile field that you create through the admin cp to store the custom title.
As I said, it's an older hack by me, and was originally tested on 2.0.3. It still works for me on 2.2.2, though.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Jakeman, in this hack, you DO add the custom profile field through the admin cp.
What the file modification does it prevents a blank line from showing up on the thread page if a user has not put in a custom title. It's just a simple little routine that checks for a value in $post[fieldX], and if there is one, it assigns the value of $post[fieldX] to $extratitle, and $extratitle is formatted to include a line break. If there is no value in $post[fieldX], a blank string is assigned to $extratitle. When you put $extratitle in the postbit template, you do NOT put a linebreak between it and the next line (which is the standard title); that way, if it's blank, there will be no empty line, but if it's not blank, the variable includes a line break to keep the flow right.
In other words, it's done strictly for appearance.
As I said, originally, this was just a template modification that I pointed out at vbulletin.com. Someone asked me how to surpress the blank line that would show up for users with no custom title, and that's how it evolved into a file modification hack.
glowing isn't compatible accross all browsers and platforms so nya!
and glowing does work with custom fields, i just tested it.
meh, if it was me i would put a statement in my phpinclude instead of editing php files, but that's me, either way works for the spacing thingy. i hate editing php files, i will take templates over file mods any day, even if it adds more overhead to every page
It's my understanding that if a browser does not support glowing, the plain text will still be seen. And as I just said, the main point of it being a hack is not to support glowing; that's just a neat side-effect that was possible, and I showed how to do it. As I just said, the MAIN purpose to this being a hack is so that a blank line does not show up in between the user name and standard title if there is no custom title.
What I mean is this. If this was NOT a hack, a user with no custom title would look like this in the author info area of a message: User1
Registered
While a user WITH a custom title would look like this: User2
Super-Cool Dude
Registered
It's the blank line for User1 in below his name and above his title ("Registered") that someone asked me to make not show up. That's why I had to turn it into a hack, so that now, User1 looks like this: User1
Registered
Originally posted by Jakeman and glowing does work with custom fields, i just tested it.
I'd like to know how your Edit Profile page looks like if you've got an HTML glow in it. With me, it f*cked up the layout of the page... (due to the "-sign in glow codes)
Originally posted by JJR512
Yeah, but there's a reason why vBulletin is made up of a bunch of separate files, rather than all the code being in the phpinclude template.
Quote:
Originally posted by Jakeman i will take templates over file mods any day, even if it adds more overhead to every page