PDA

View Full Version : Signature in profil


StarBuG
01-09-2002, 01:32 AM
Is there a hack or will someone write one so that you can see the
signature of a user in his profile??

Greetings

StarBuG

Scrub
01-09-2002, 11:28 AM
Well, this is a start, but it does not do the breaks in the lines. Maybe someone else can figure that part out. :).

In your User Info Display Templates.

Open getinfo.
Add this anywhere you want. I added it to the bottom of my profile.


<tr>
<td bgcolor="{*firstaltcolor*}"><normalfont><b>Signature:</b></normalfont></td>
<td bgcolor="{*firstaltcolor*}"><normalfont>$userinfo[signature]</a></normalfont></td>
</tr>


Remove the * in the Alt colors. :).

To put it at the bottom of the profile, add it right below this.


$referrals
$birthday
$customfields

Moonwolf
01-09-2002, 11:58 AM
I'd imaging that you'd want to put in member.php somewhere

$userinfo['signature'] = nl2br($userinfo['signature']);


nl2br, as the name suggests, take newline character from a string and converts them to HTML &lt;BR&gt; tags.

You can read about it at www.php.net/nl2br

Kathi

StarBuG
01-09-2002, 06:28 PM
Hehe! OK!

Thats a Start!

Thx

But i want also the [img] tag working there!

Any suggestions?

Greetings

StarBuG

Admin
01-09-2002, 06:39 PM
Originally posted by Moonwolf
I'd imaging that you'd want to put in member.php somewhere

$userinfo['signature'] = nl2br($userinfo['signature']);


nl2br, as the name suggests, take newline character from a string and converts them to HTML &lt;BR&gt; tags.

You can read about it at www.php.net/nl2br

Kathi
*cough* why not using bbcodeparse2() *cough* :)

Moonwolf
01-09-2002, 06:51 PM
Nasty cough you got there Chen :P

I didn't know bbcodeparse2() would translate nl2br's :p

I'm still trying to figure out how to make Dane/tubedogg's installer work properly for me ;)

Can I plead extreme blondeness? :)

Kathi

StarBuG
01-10-2002, 06:01 PM
And how can i implement the signature img??

Greetings

StarBuG

Parker Clack
01-10-2002, 08:50 PM
In the modifyoptions template I changed:

<td bgcolor="*secondaltcolor*"><textarea name="signature" rows="6" cols="40">$bbuserinfo[signature]</textarea></td>

to

<td bgcolor="*secondaltcolor*"><textarea name="signature" rows="6" cols="40">$bbuserinfo[signature]</textarea><p><smallfont><b>Example of your signature:</b></smallfont><p>$signature2<p></td>

replace the * with { and }

then in member.php I looked for

$signature=htmlspecialchars($bbuserinfo[signature]);

and then right below this added

$signature2=bbcodeparse($bbuserinfo[signature]);

This will show them them a preview of their signature including images.

Parker

StarBuG
01-11-2002, 09:19 AM
Originally posted by Parker Clack
In the modifyoptions template I changed:
This will show them them a preview of their signature including images.

Parker

Sorry but that?s not what I?m looking for (have already installed A Signature Editor :D)

I want the user Sig shown in there profile including there Sig IMG
(HTML and vB Code for images!)

Greetings

StarBuG

Moonwolf
01-11-2002, 01:28 PM
in member.php

Find:

if ($userinfo['receivepm'] and $usergroupperms['canusepm']) {

Add Above:

if($userinfo['showsignatures']) {
$userinfo['signature'] = bbcodeparse($userinfo['signature'],0,$allowsmilies);
}


In template getinfo
Figure out where you want the signature to appear, and put there

$userinfo[signature]


Kathi

StarBuG
01-11-2002, 07:55 PM
BINGO!!

Works perfekt!

THank you so much! :D

Greetings

StarBuG