PDA

View Full Version : Default Signature


Bratz-Designs
03-08-2007, 10:00 PM
Default Signature!

Sometimes i just dont like it when people dont use a signature...That empty space below th posts...So i came up with this sollution to ad a default sigature!

1. In the postbit template find:

$post[signature]

And replace with

<if condition="$post[signature]">$post[signature]
<else />
<img src="$stylevar[imgdir_misc]/nosignature.jpg"/></if>


- Save

2.) In the postbit legacy template find

$post[signature]

And replace with

<if condition="$post[signature]">$post[signature]
<else />
<img src="$stylevar[imgdir_misc]/nosignature.jpg"/></if>

- Save

3. Upload nosignature.jpg to your misc images folder and your ready to go!

Note, if you need a custom signature made, please post here so i will make it!

wengi
03-24-2007, 01:36 PM
Installed and did the templates edits but still not showing .... any idea !!!

MDK-Indy
03-24-2007, 03:03 PM
Probably you have to replace/delete a previous <if condition ...> concerning $post['signature']. In our board now it looks like that:

before:


<if condition="$post['signature'] AND (($vboptions[warn_sig_thresshold]<0 AND $post[warning_level]>=$vboptions[warn_sig_thresshold]) OR $vboptions[warn_sig_thresshold]==0)">
<!-- sig -->
<div>
<br /><br /><br /><hr>
<span class="smallfont"><center>$post[username]`s Signatur: </center></span><br />
<br />
<span class="smallfont">
<center>
$post[signature]
</center>
</span>
<br />
</div>
<!-- / sig -->


after:


<if condition="(($vboptions[warn_sig_thresshold]<0 AND $post[warning_level]>=$vboptions[warn_sig_thresshold]) OR $vboptions[warn_sig_thresshold]==0)">
<!-- sig -->
<div>
<br /><br /><br /><hr>
<span class="smallfont"><center>$post[username]`s Signatur: </center></span><br />
<br />
<span class="smallfont">
<center>
<if condition="$post[signature]">
$post[signature]
<else />
<img src="$stylevar[imgdir_misc]/nosignature.jpg"/>
</if>
</center>
</span>
<br />
</div>
<!-- / sig -->

wengi
03-24-2007, 06:09 PM
Thnks for the help m8 ive done a little edit so tht i took off the line ;)

<if condition="(($vboptions[warn_sig_thresshold]<0 AND $post[warning_level]>=$vboptions[warn_sig_thresshold]) OR $vboptions[warn_sig_thresshold]==0)">
<!-- sig -->
<div>
<br />
<legend align="center"><span class="smallfont">$post[username]`s Signatur: <br /></span></legend>
<br />
<span class="smallfont">
<center>
<if condition="$post[signature]">
$post[signature]
<else />
<img src="$stylevar[imgdir_misc]/nosignature.jpg"/>
</if>
</center>
</span>
<br />
</div>
<!-- / sig -->


PS just 1 quest ... which line do i have to edit to make the words bold and colourd

Regards
Wengi

Bratz-Designs
03-25-2007, 01:54 PM
4th line

$post[username]`s Signature:

Wrap the codes around that :)

hotmasala4u
03-25-2007, 07:05 PM
It's working fine .. thx mate

MDK-Indy
03-25-2007, 11:10 PM
@wengi

dont understand your Quest, sorry... Can you the question rewrite?

Sorry for my bad english, im from Germany.

@Bratz-Designs

That is a individual signature in ours Forum.

See attach Picture...

wengi
03-25-2007, 11:21 PM
@wengi

dont understand your Quest, sorry... Can you the question rewrite?

Sorry for my bad english, im from Germany.



$post[username]`s Signature: i would like to change colour of this and make it bold .... tryed to add a code but i must of done it wrong.

Regards
Wengi

Atakan KOC
03-26-2007, 06:26 AM
Thanks....

MDK-Indy
03-26-2007, 09:56 AM
$post[username]`s Signature: i would like to change colour of this and make it bold .... tryed to add a code but i must of done it wrong.

Regards
Wengi


Mmh, just edit the css-class "smallfont" or create a new one and replace it:

<span class="smallfont">$post[username]`s Signatur: <br /></span>

TVNettet
03-31-2007, 09:27 AM
Um... I tried the code and it didn't work, when I tried som of the other posts code it gave me an error when I viewed a PM...

Is there anyway you could update the txt file pls?

Bratz-Designs
04-06-2007, 08:17 AM
can you post a screenshot of the error?

DoSe
05-08-2007, 07:44 AM
My little addition to this mod

This will let you set a default sig by usergroup. Just change $post[usergroupid] == 6 for every usergroup you want to set.

<if condition="$post[signature]">$post[signature]
<else />
<if condition="$post[usergroupid] == 6"><img src="http://www.yoursite.com/yourimage.gif"></if>
</if>

RVM
06-20-2007, 04:26 AM
This is such a simple edit, why is it not working for me? :confused:

Question: will only newly registered members have a sig show up, or anyone with no sig added?

Brandon Sheley
06-20-2007, 05:37 AM
it should affect all sigs with nothing in them, if I understand it correct.

Snider
06-21-2007, 10:28 AM
Is there any way to add BB code or allow for text links with this ?

MDK-Indy
07-22-2007, 09:57 PM
Sal?,

Signatur always at the lower edge of Posting...
Perhaps it can use someone.

Testing with vB 3.6.7

postbit_legacy


find

<tr valign="top">
<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">

replace with

<tr valign="top">
<td class="alt2" width="175" rowspan="2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">


find


<!-- / attachments -->
</if>

<if condition="(($vboptions[warn_sig_thresshold]<0 AND $post[warning_level]>=$vboptions[warn_sig_thresshold]) OR $vboptions[warn_sig_thresshold]==0)">
<!-- sig -->
<div>
<br /><br /><br />
<hr>
<span class="smallfont"><center>$post[musername]`s Signatur: </center></span><br />
<br />
<span class="smallfont">
<if condition="$post[signature]">$post[signature]<else /><img src="$stylevar[imgdir_misc]/nosignature.jpg"/></if>
</span>
<br />
</div>
<!-- / sig -->
</if>

<if condition="$show['postedited']">
<!-- edit note -->
<div class="smallfont"> <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<em>
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
<if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
</em>
</div>
<!-- / edit note -->
</if>

</td>
</tr>



replace with


<!-- / attachments -->
</if>

<if condition="$show['postedited']">
<!-- edit note -->
<div class="smallfont"> <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<em>
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
<if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
</em>
</div>
<!-- / edit note -->
</if>

</td>
</tr>
<tr>
<td class="alt1" valign="bottom" style="border-right: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
<if condition="(($vboptions[warn_sig_thresshold]<0 AND $post[warning_level]>=$vboptions[warn_sig_thresshold]) OR $vboptions[warn_sig_thresshold]==0)">
<!-- sig -->
<div>
<hr>
<span class="smallfont"><center>$post[musername]`s Signatur: </center></span><br />
<br />
<span class="smallfont">
<if condition="$post[signature]">$post[signature]<else /><img src="$stylevar[imgdir_misc]/nosignature.jpg"/></if>
</span>
<br />
</div>
<!-- / sig -->
</if>
</td>
</tr>




greeting Indy

RVM
07-25-2007, 04:36 AM
Still not working for me.. I really like this mod.. :(

bilgiform
08-20-2007, 11:56 PM
Thanks_______

Vesica
08-27-2007, 08:18 PM
Very good mod, though I had to edit to get it to work with 3.6.8

citroenar
10-16-2007, 10:45 AM
I get it to work in 3.6.8

postbit_legacy

<!-- sig -->
<div valign="bottom">
__________________<br />
<if condition="$post[signature]">$post[signature]<else /><img src="$stylevar[imgdir_misc]/nosignature.jpg"/></if>

</div>
<!-- / sig -->

KTP
10-20-2007, 04:13 PM
I get it to work in 3.6.8

postbit_legacy

<!-- sig -->
<div valign="bottom">
__________________<br />
<if condition="$post[signature]">$post[signature]<else /><img src="$stylevar[imgdir_misc]/nosignature.jpg"/></if>

</div>
<!-- / sig -->

i added this into the postbit and postbit legacy templates but it doesnt seem to be showing in users sigs.?

lauxanh
10-20-2007, 11:14 PM
Does not work for me, i replaced the images with some text instead.

But does not work. Why?

manraj21
10-23-2007, 03:49 AM
$stylevar[imgdir_misc]/nosignature.jpg chage that to the image url

Spank
10-26-2007, 04:01 PM
Not working for me either =(

turbo.:R
12-06-2007, 01:52 AM
didnt work any way i tried it

TrioxX
12-06-2007, 03:00 AM
You should do the following:

Theres a little bug on the install note (i've tested on vb 3.6.8pl2)

open postbit and postbit_legacy and find:

<if condition="$post['signature']">
<!-- sig -->

Replace with:

<!-- sig -->

If you have installed another hacks before, it can be, that the code is not the same. But note, that you must delete $post['signature'] above <!-- sig -->.

Then find:

<center>
$post[signature]

Replace with:

<if condition="$post[signature]">
$post[signature]
<else />
<img src="$stylevar[imgdir_misc]/nosignature.jpg"/>
</if>

It works fine on my VB 3.6.8pl2.

turbo.:R
12-06-2007, 01:51 PM
You should do the following:

Theres a little bug on the install note (i've tested on vb 3.6.8pl2)

open postbit and postbit_legacy and find:

<if condition="$post['signature']">
<!-- sig -->

Replace with:

<!-- sig -->

If you have installed another hacks before, it can be, that the code is not the same. But note, that you must delete $post['signature'] above <!-- sig -->.

Then find:

<center>
$post[signature]

Replace with:

<if condition="$post[signature]">
$post[signature]
<else />
<img src="$stylevar[imgdir_misc]/nosignature.jpg"/>
</if>

It works fine on my VB 3.6.8pl2.

this worked perfectly.... thanx....

Punjabi.Warri0r
12-10-2007, 04:20 PM
i m still having difficulty its still not showing up

megabyte366
12-17-2007, 08:03 AM
Thanks for the hack... but i'm running into a problem... i tried everything that was posted here in the thread and i get it to work but some where in the code it messing with the private messenger. I had several user say that can't get into it.. when i remove the code in postbit and postbit lagency then it works.... any help would be greatful.. as the hack is great.!!
thanks

yotsume
09-15-2009, 03:26 AM
I latered this to include profile fields that are filled out during registration rather then an image file.