![]() |
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. |
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 " " |
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 :-( |
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.
|
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. |
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 |
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] |
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.
:rolleyes: -jim |
add a new replacement bbcode/var
replace Code:
\n__________________\n Code:
begin html goes here\n__________________\nend html goes here |
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:
|