PDA

View Full Version : Default signature ?


phonexpo
02-02-2006, 01:43 AM
Hi,

I had a look but can't find one, is there a code/plug-in to set a default signature for members who don't use one?

Iain M
02-02-2006, 02:59 PM
a simple template edit :)

EDIT Template: postbit/postbit_legacy

FIND:

<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>

REPLACE WITH:

<if condition="!$post['signature']">
<!-- default sig -->
<div>
__________________<br />
INSERT DEFAULT SIG HERE
</div>
<!-- / default sig -->
<else />
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>


replace INSERT DEFAULT SIG HERE with what you want shown :)

phonexpo
02-02-2006, 03:14 PM
Ah thanks man, ;)...

I want to set a pic as the default sig, here's the code;


<if condition="!$post['signature']">
<!-- default sig -->
<div>
__________________<br />
<img>http://phonexpo.net/images/banners_logos/phonexpo_use_bar.jpg</img>
</div>
<!-- default / sig -->
<else />
<!-- sig -->
<div>


But I get this - http://phonexpo.net/showpost.php?p=8937&postcount=204

Is my part of the code wrong or is it a setting I need to change.

TIA :ermm:

Iain M
02-02-2006, 03:23 PM
np :)

replace <img>http://phonexpo.net/images/banners_logos/phonexpo_use_bar.jpg</img>

with
<img src="http://phonexpo.net/images/banners_logos/phonexpo_use_bar.jpg" alt="" />

and it should work :)

phonexpo
02-07-2006, 09:17 AM
Sorry CP1, I just seen your reply now YES thank you that worked. :) Thank you very much for the code.

Patrick ;)

AllenMead
01-01-2007, 04:15 PM
Have just stumbled across this, excellent mod.

What I would like to do though is to use this on one particular typ of user, how do I specifiy this?

Thanks!

Doh Doh Doh!!! just re-read the code, ignore me, lol

Mr_Snob
01-11-2007, 01:13 AM
Advanced Default Signature Hack ----> https://vborg.vbsupport.ru/showthread.php?threadid=136153