![]() |
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! :p
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 :D |
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 While User2 continues to look exactly the same. |
What kind of statement would you put in your phpinclude template? :confused:
|
sorry, i'm being a bit of a troll. :(
erm, you can put php code in your phpinclude template. you should be able to set up the condition in there, right? |
Quote:
|
Quote:
|
Quote:
Quote:
|
Of course I remember typing my quote, and I already read your quote...so what's the point? Nothing new to add?
|
Quote:
|
All times are GMT. The time now is 01:45 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|