vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Moderators Functions - Disable Signature Per User Plugins (https://vborg.vbsupport.ru/showthread.php?t=277597)

vijayninel 01-25-2012 11:00 PM

Disable Signature Per User Plugins
 
1 Attachment(s)
Hi,

Sometimes we get some members who misuse the signature facility and violate forum rules. While vBulletin allows you to edit their signatures, it doesn't allow you to disable them. The following plugins will disable signatures per user.

I don't have proper knowledge to make a full product out of these plugins. Anyone is welcome to convert these plugins into a full vBulletin product.

The members signature occurs on two places in the site. The Forum threads and on their profile pages.

To Disable Signatures in Forum Threads :

Go to Admin Control Canel > Plugins and Products > Add New Plugin and put down the following.

Product : vbulletin

Hook Location : postbit_display_complete

Title : Thread signature remover

Plugin PHP Code :

PHP Code:

if (in_array($post['userid'], array(1,2)))
{
$post['signature'] = false;


Plugin is Active : yes

Instead of 1,2 in the plugin add the userid's of the members whose signature you want to disable.

------------------------------------------------------------------

To Disable Signatures in Members Profile :

Go to Admin Control Canel > Plugins and Products > Add New Plugin and put down the following.

Product : vbulletin

Hook Location : member_profileblock_fetch_unwrapped

Title : Profile page signature remover

Plugin PHP Code :

PHP Code:

if (in_array($prepared['userid'], array(1,2)))
{
$prepared['signature'] = false;


Plugin is Active : yes

Instead of 1,2 in the plugin add the userid's of the members whose signature you want to disable.

----------------------------------------------------------------

Hope that helps keep your forum clean. :)

Boofo 01-26-2012 04:28 PM

I made a product for this quite a while back for my site. Good to see it out in the wild. ;)

temsamane 01-26-2012 08:49 PM

i need this for vb 4.x.x

BlownFiveLiter 02-06-2012 03:24 PM

Doesn't creating a usergroup that disallows signatures accomplish the same thing? Create a usergroup based off of whatever group you want to copy, but select no in usergroup manager under "can use signatures."

vijayninel 02-07-2012 08:42 AM

Quote:

Originally Posted by BlownFiveLiter (Post 2296827)
Doesn't creating a usergroup that disallows signatures accomplish the same thing? Create a usergroup based off of whatever group you want to copy, but select no in usergroup manager under "can use signatures."

Then you will have to set that usergroup as the primary usergroup for that member. This can lead to other kinds of permission problems and is not always desirable.

trotskid 02-27-2012 05:37 PM

Works perfect on 3.8.4 PL2 :up:

Installed!

bestone96 02-29-2012 10:54 AM

thanks a lot


All times are GMT. The time now is 10:50 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.01216 seconds
  • Memory Usage 1,730KB
  • 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
  • (1)bbcode_quote_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