View Full Version : [img] in sig...
GaleForce
10-06-2002, 06:34 PM
I know there is a hack for this, but is there anyway that I can just allow [img] code in sigs?
Xenon
10-06-2002, 07:26 PM
well you can use a little trick:
open admin/functions.php
find: $post[signature]=bbcodeparse($post[signature],0,$allowsmilies);
eval("\$post[signature] = \"".gettemplate("postbit_signature")."\";");
$sigcache["$post[userid]"] = $post[signature];
change it to:
$post[signature]="<img src=\"".bbcodeparse($post[signature],0,$allowsmilies)."\">;
eval("\$post[signature] = \"".gettemplate("postbit_signature")."\";");
$sigcache["$post[userid]"] = $post[signature];
then tell your users they have to enter just the url of their pic into the sig...
GaleForce
10-06-2002, 08:05 PM
That would work well if every member wanted to use an image as a signature, but unfortunately only around half my forum wants it :(
Xenon
10-06-2002, 08:33 PM
hmm, than you can use this trick:
create a new profilefield editable and viewable by users and then change the original block i poste above into this:
if(trim($post[fieldX]=="")) {
$post[signature]=bbcodeparse($post[signature],0,$allowsmilies);
} else {
$post[signature]="<img src=\"".$post[fieldX]."\">";
}
eval("\$post[signature] = \"".gettemplate("postbit_signature")."\";");
$sigcache["$post[userid]"] = $post[signature];
replace the X with the new fieldid
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.