vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Allows Signature turn off by Forum (https://vborg.vbsupport.ru/showthread.php?t=93737)

Hoffi 08-05-2005 10:00 PM

Allows Signature turn off by Forum
 
Updated and added a german Version.

I don't know what happen with the updated Setting, but it is not really neccesary to update.

With this little Plugin you can disable the Users Signature for every single Forum.

One Product-XML File with 1 Query, Uninstall, 3 Plugins and two Phrases.

It Works also on 3.5.1 - Nothing really changed in this Part of vBulletin.
Works from 3.5.x to 3.6.x

CMX_CMGSCCC 08-06-2005 02:53 PM

Nice idea, I was wondering if I could disable signatures for my news forum or something.

Installed. :)

EDIT: When I first installed it, forumid 1 was off by default, I enabled it, and the rest seemed to be activated already.

-CMX

Hoffi 08-06-2005 05:04 PM

I must look where this "feature" come from. Thx.

CMX_CMGSCCC 08-06-2005 05:46 PM

Maybe I did something wrong too, but in any case, it's working.

Nice job!

-CMX

Chris M 08-06-2005 07:39 PM

You will need to include this query in your installation part of your product:

PHP Code:

$db->query_write("UPDATE " TABLE_PREFIX "forum SET allowsig = 1"); 

You ought to consider altering:
PHP Code:

$db->hide_errors();
$db->query("ALTER TABLE " TABLE_PREFIX "forum ADD allowsig SMALLINT( 3 ) UNSIGNED NOT NULL DEFAULT '1'");

$db->query "ALTER TABLE `".TABLE_PREFIX."forum` ADD (
  `allowsig` smallint(3) NOT NULL default '1')"
;
$db->show_errors(); 

so that query becomes query_write :)

Also - Since you have a Control Panel Global phrase there is no need for the second phrase :)

Satan

Chris M 08-07-2005 03:38 PM

As requested by Boobiefool I've uploaded the file again with my corrections to it :)

Feel free to use it Hoffi :)

Satan

normandyq8 08-07-2005 07:02 PM

nice

can include enable/disable avatars to this ?

Chris M 08-08-2005 12:26 AM

https://vborg.vbsupport.ru/showthread.php?t=93826 :)

Satan

Hoffi 08-08-2005 06:52 AM

thakx hellsatan. I will update.

Boofo 08-08-2005 07:18 AM

You might want to change this:

HTML Code:

this->validfields['allowsig'] = array(TYPE_STR, REQ_NO);
to this:

HTML Code:

this->validfields['allowsig'] = array(TYPE_INT, REQ_NO);
in your xml file. ;)


All times are GMT. The time now is 12:22 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.01175 seconds
  • Memory Usage 1,737KB
  • 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_html_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete