The Arcive of vBulletin Modifications Site. |
|
Details »»
|
|||||||||||||||||||||||||
Since I'm not a programmer or PHP guy, I need some help here:
I want the signature that is diplayed at the end of every message (at least, if people add a signature) to be displayed in a different font size & color than the actual message. Since you cannot do that with the provided templates, I guess someone will need to hack some php code for this wish-feature. Is there anyone out there who wants to help me? It could also be a nice feature for upcoming releases of vBulletin btw. Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
In showthread.php find:
if ($post[showsignature]==1 and $allowsignatures==1 and trim($userinfo[signature])!="") { $signature= "\n__________________\n$userinfo[signature]"; and put your html tags between the " " |
|
#3
|
|||
|
|||
|
I tried that, but the HTML tags are not parsed for forums where the HTML code is not allowed unfortunately
![]() And since most of our forums don't allow HTML code, I need another solution :-( |
|
#4
|
|||
|
|||
|
im sure you can use a php code to resize the text but I dont know PHP so youl need someone else to help you.
|
|
#5
|
|||
|
|||
|
We provided a series of custom BBCodes to our users and allow them to use those and smilies to create unique and interesting signatures.
We don't however force the signatures to be a certain size or color. |
|
#6
|
|||
|
|||
|
You would add it in this line:
Code:
$signature= "\n__________________\nYour Opening HTML Here$userinfo[signature]Your Closing HTML here"; That should work for you. -jim |
|
#7
|
|||
|
|||
|
JimF: that only works when HTML parsing is turned on, but like I said, we don't allow HTML on most of our forums, so the solution is a bit more complicated than your suggestion.
I think it has something to do with this line @showthread.php: $message=bbcodeparse($post[pagetext],$forumid,$post[allowsmilie]).bbcodeparse($signature,0,$allowsmilies); How can I include my two font tags <font size=1> & </font> in there? ---------- BTW, editing this message reminds me: I also want to do the same for the |Edited by ....| line, but that's even more complicated I guess, becaus it's a real part of the message ![]() [Edited by Fritzz on 01-05-2001 at 03:58 PM] |
|
#8
|
|||
|
|||
|
I don't know why having HTML parsing on or off would have an effect on that code. I didn't try it, but if it didn't work, than no HTML would work without having code parsing on. Which would make it hard to have a forum that is supposed to send HTML to the browser.
![]() -jim |
|
#9
|
|||
|
|||
|
add a new replacement bbcode/var
replace Code:
\n__________________\n Code:
begin html goes here\n__________________\nend html goes here
|
![]() |
|
|