vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Default signature ? (https://vborg.vbsupport.ru/showthread.php?t=106948)

phonexpo 02-02-2006 01:43 AM

Default signature ?
 
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:
Code:

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

REPLACE WITH:
Code:

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

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

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

<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/showthrea...hreadid=136153


All times are GMT. The time now is 05:26 AM.

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.01574 seconds
  • Memory Usage 1,724KB
  • 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
  • (5)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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