View Full Version : Has this been done before?
Lethal
06-09-2003, 10:03 AM
I searched for this here but had no luck. I think I have seen this before, I am wondering if there is a hack where you can view the users signature in there profile. I tried to do this by copying this from member.php:
$userinfo[avatarurl]=getavatarurl($userinfo[userid]);
if ($userinfo[avatarurl]=="") {
$userinfo[avatarurl]="{imagesfolder}/clear.gif";
}
and just changing avatar to signature but that didn't work. How would you do this?
squawell
06-09-2003, 11:12 AM
is this u looking for??
https://vborg.vbsupport.ru/showthread.php?s=&threadid=40402&highlight=signature
Boofo
06-09-2003, 11:29 AM
Open member.php, find:
// ############################### start get info ###############################
if ($action=="getinfo") {
$templatesused = "getinfo_sendpm,aol,icq,yahoo,getinfo_birthday,geti nfo_customfields,getinfo" ;
include("./global.php");
Add below:
global $allowsignatures,$allowsmilies;
then find:
if ($userinfo[yahoo]!="") {
eval("\$userinfo[yahooicon] = \"".gettemplate("yahoo")."\";");
} else {
$userinfo[yahoo]=" ";
}
Add below:
if ($userinfo[signature]!="" AND $allowsignatures) {
$post[signature]=bbcodeparse($userinfo[signature],0,$allowsmilies);
eval("\$userinfo[signature] = \"".gettemplate("postbit_signature")."\";");
} else {
$userinfo[signature]="None";
}
Close member.php
Open the template User Info Display Templates -> Getinfo and place $userinfo[signature] where ever you want the signature to be displayed.
Done!
Lethal
06-09-2003, 11:43 AM
ty
Boofo
06-09-2003, 11:52 AM
If you want to take the hr line out above the signature for the profile, let me know and I can give you the code for that, too.
Lethal
06-10-2003, 03:28 AM
well, it works sometimes but sometimes it don't. I have the Signature Image system 2.0, and the Usercp Signature hack by NanoEntity installed and it acts funny. Sometimes it shows the sig image and sometimes it just shows the html code and not the image. Any ideas why it does that? And taking the <hr> out of it would be cool too.
Boofo
06-10-2003, 03:35 AM
I don't have either one of those hacks installed. I've been using the code I gave you for over a year now and it works great for me. ;)
To take the hr line out, do the following after you install the code that I gave you above:
Open member.php and find:
eval("\$userinfo[signature] = \"".gettemplate("postbit_signature")."\";");
And change it to:
eval("\$userinfo[signature] = \"".gettemplate("getinfo_signature")."\";");
Save and upload member.php.
Make a new template named: getinfo_signature
Put this in it:
$post[signature]
NOTE: Don't forget to add getinfo_signature to the templatesused line in the member.php to save an extra query.
Done.
Lethal
06-10-2003, 05:13 AM
ty, I don't know what was wrong but it seems to be working fine now ty boofo
Lethal
06-10-2003, 06:08 AM
well it started acting wierd again, I have no Idea why but this is what I did to get it working right.
In member.php after:
$userinfo['signature'] = bbcodeparse($userinfo['signature'],0,0);
I added:
if ($userinfo[signature]!="") {
$post[signature]=bbcodeparse($userinfo[signature],0);
eval("\$userinfo[sig] = \"".gettemplate("getinfo_signature")."\";");
} else {
eval("\$userinfo[sig] = \"".gettemplate("getinfo_signature_none")."\";");
}
and added the 2 new templates to the templatesused part and put how I wanted it to look in the the templates and it works great now. I think the allowsmilies part was messing it up for some reason. I don't know but it works now lol. Ty again boofo.
Boofo
06-10-2003, 07:16 AM
Glad you got it working. ;)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.