vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   signatures in pms (https://vborg.vbsupport.ru/showthread.php?t=96531)

Boofo 09-18-2005 11:10 PM

signatures in pms
 
Is there any way to do a plug-in to be able to use a profile field to turn signatures on/off for pms? The old way of doing it required adding the condition to the end of the build sig statement (you know what I mean, Kirby ;)). There's no hook even close to that part in private.php. Any ideas? ;)

Andreas 09-18-2005 11:16 PM

> (you know what I mean, Kirby )
Actually I don't, but I am not sure if that matters anyway ;)

postbit_display_complete
PHP Code:

if (THIS_SCRIPT == 'private' AND $this->registry->userinfo['fieldxx'] == 'No')
{
unset(
$post['signature'];


Or smth. like this?

Boofo 09-18-2005 11:24 PM

I was referring to the build sig statement line. LOL I'm sure there was a better way to describe it. ;)

That should do it, but will that work with a yes or no option?

I keep froegtting that the postbit and pm stuff is all together now. ;)

EDIT: Yes it will. I just scrolled the box and saw No. :)

Andreas 09-18-2005 11:26 PM

You might have to tweak the condition, but otherwise it should work.

Boofo 09-18-2005 11:31 PM

Quote:

Originally Posted by KirbyDE
You might have to tweak the condition, but otherwise it should work.

Tweak it? You mean because of the $this->registry->userinfo part?

I'll play with it but I'm sure it will work. Thank you, sir. ;)

Boofo 09-19-2005 01:56 AM

Ok, here's what I got and I can't get it to work, As a matter of fact, even with this disabled, my signature doesn't show up in pms (to myself, since that is all I checked it with).

Quote:

Profile Field 11
Type: Multiple Selection Checkbox
Options: No, do not show my signature in private messages.
And a setting in the vb options defaulting to 11.
Here's the code I am using:

PHP Code:

$sigpms_field "field{$vbulletin->options[sigpms]}";
if (
THIS_SCRIPT == 'private' AND $this->registry->userinfo["$sigpms_field"] != 1)
{
unset(
$post['signature']);


What else could be stopping the sigs from showing up in pms?


All times are GMT. The time now is 09:57 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.00921 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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