vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Default Signature (https://vborg.vbsupport.ru/showthread.php?t=141594)

Bratz-Designs 03-08-2007 10:00 PM

Default Signature
 
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:

Code:

$post[signature]
And replace with

Code:

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


- Save

2.) In the postbit legacy template find

Code:

$post[signature]
And replace with

Code:

                                <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:

Code:

<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:

Code:

<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 ;)

Code:

<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

Code:

$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

Quote:

Originally Posted by MDK-Indy (Post 1212251)
@wengi

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

Sorry for my bad english, im from Germany.



Code:

$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

Quote:

Originally Posted by wengi (Post 1212266)
Code:

$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

Code:

<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

Code:

<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

Code:

        <!-- / 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

Code:

        <!-- / 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

Code:

<!-- 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

Quote:

Originally Posted by citroenar (Post 1361488)
I get it to work in 3.6.8

postbit_legacy

Code:

<!-- 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:

PHP Code:

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

Replace with:

PHP Code:

<!-- 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:

PHP Code:

<center>
$post[signature

Replace with:

PHP Code:

<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

Quote:

Originally Posted by TrioxX (Post 1395932)
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:

PHP Code:

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

Replace with:

PHP Code:

<!-- 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:

PHP Code:

<center>
$post[signature

Replace with:

PHP Code:

<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.


All times are GMT. The time now is 05:49 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01414 seconds
  • Memory Usage 1,840KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (16)bbcode_code_printable
  • (8)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (31)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete