View Full Version : how to stop signature from pm
ahmed-samara
03-15-2009, 12:03 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
<if condition="THIS_SCRIPT == 'private'">SIGNATURE</if>
ahmed-samara
03-15-2009, 12:19 PM
<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
<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:
<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
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:
<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.)
<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?):
<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.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.