The Arcive of vBulletin Modifications Site. |
|
Details »»
|
|||||||||||||||||||||||||
I'd like to be able to display a users signature in the getinfo template. Is it defined in a variable somewhere, or any simple way I could go about that?
Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Uhm, this is something i'd like to know too, but so far, no luck with just altering the templates. But I am a bit new to this
|
|
#3
|
||||
|
||||
|
Its defined as $post[signature] in functions.php, however i know how 2 do it with an extra query. It works great on my board, u have 2 add a piece of code in member.php. If you are interested in the extra query method then let it me know
|
|
#4
|
|||
|
|||
|
Well of course I'm interested. I know how to get the sig in, now I just need to parse it for vbcode and line breaks.
|
|
#5
|
||||
|
||||
|
This is how i did it:
Open member.php, find: PHP Code:
PHP Code:
then find: PHP Code:
PHP Code:
Open the template User Info Display Templates -> Getinfo place $userinfo[signature] whereever you want the signature to be displayed Done! |
|
#6
|
||||
|
||||
|
I tried this but it does support HTML, just writes out the code
|
|
#7
|
||||
|
||||
|
It just shows the VB code, how can I get it to convert to html
|
|
#8
|
||||
|
||||
|
before
eval("\$userinfo[signature] = \"".gettemplate("postbit_signature")."\";"); add: $post[signature]=bbcodeparse2($post[signature],0,1,0,1); perhaps you have to cange one 0 to an 1. it means do parse html, smilies, urls and images, the first is html so i took 0
|
|
#9
|
||||
|
||||
|
Why do this query?
PHP Code:
|
|
#10
|
||||
|
||||
|
Post #5 Is Updated
|
![]() |
|
|