The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Has this been done before?
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:
PHP Code:
|
#2
|
||||
|
||||
|
#3
|
||||
|
||||
Open member.php, find:
// ############################### start get info ############################### if ($action=="getinfo") { $templatesused = "getinfo_sendpm,aol,icq,yahoo,getinfo_birthday,get info_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! |
#4
|
|||
|
|||
ty
|
#5
|
||||
|
||||
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.
|
#6
|
|||
|
|||
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.
|
#7
|
||||
|
||||
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. |
#8
|
|||
|
|||
ty, I don't know what was wrong but it seems to be working fine now ty boofo
|
#9
|
|||
|
|||
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. |
#10
|
||||
|
||||
Glad you got it working.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|