vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   how to stop signature from pm (https://vborg.vbsupport.ru/showthread.php?t=208392)

ahmed-samara 03-15-2009 12:03 PM

how to stop signature from pm
 
Hello friends

can someone give me code to stop my members to view the signature in add new pm ..?

i searched in postbit but it will delet from all the signature forum .. only i want to do that in privet pms

thanks:)

Dismounted 03-15-2009 12:09 PM

Code:

<if condition="THIS_SCRIPT == 'private'">SIGNATURE</if>

ahmed-samara 03-15-2009 12:19 PM

Quote:

Originally Posted by Dismounted (Post 1768616)
Code:

<if condition="THIS_SCRIPT == 'private'">SIGNATURE</if>

great ... thanks:)

sorry ... what is mean THIS_SCRIPT ? and where i put this code in postbit i see

PHP Code:

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


Mr-Moo 03-15-2009 02:34 PM

From my understand, you want to eliminate all signatures in new private messages, if I am mistaken, ignore my code and correct me.

To remove signatures in new PMs you must modify the correct file (pm_newpm). Search "pm_newpm" in your templates.

Then locate and remove the following code:
PHP Code:

<if condition="$bbuserinfo['signature']">
<
div>
<
label for="cb_signature">
<
input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" $checked[signature] />
$vbphrase[show_your_signature]
</
label></div></if> 

Note: Please backup all documents to ensure no information is lost.

ahmed-samara 03-15-2009 02:47 PM

Quote:

Originally Posted by Mr-Moo (Post 1768710)
From my understand, you want to eliminate all signatures in new private messages, if I am mistaken, ignore my code and correct me.

To remove signatures in new PMs you must modify the correct file (pm_newpm). Search "pm_newpm" in your templates.

Then locate and remove the following code:
PHP Code:

<if condition="$bbuserinfo['signature']">
<
div>
<
label for="cb_signature">
<
input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" $checked[signature] />
$vbphrase[show_your_signature]
</
label></div></if> 

Note: Please backup all documents to ensure no information is lost.

i was thinking do to something like that ... thanks man :up:

Dismounted 03-16-2009 05:01 AM

Or just do... (It will hide all signatures regardless of the above setting.)
Code:

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


Lynne 03-16-2009 02:11 PM

I think he meant (right?):
HTML Code:

<if condition="THIS_SCRIPT != 'private' AND $post['signature']">

Dismounted 03-17-2009 06:03 AM

Thanks for that, Lynne. :) Yes, that's what I meant.


All times are GMT. The time now is 01:02 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.00990 seconds
  • Memory Usage 1,739KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_html_printable
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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