vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - Disable User Signature (https://vborg.vbsupport.ru/showthread.php?t=73613)

tnguy3n 12-31-2004 10:00 PM

Disable User Signature
 
Modded by tnguy3n (Thinh Nguyen)
This mod allows admin to disable a user's signature if one violates or abusing forum's signature rule.

File Mod: 3
Queries: 1
Phrases: 3

Installation Time: 3-4 mins

Pls click "INSTALL" if you use it.

daFish 01-01-2005 11:53 AM

Is it possible to add the function so moderators and super moderators are allowed to use this mod?

SVTOA 01-01-2005 12:05 PM

Nice work, don't get me wrong, but what about just creating a usergroup that can't use signatures and assigning troublemakers to that group? Will this add extra queries each time that member's userinfo is called up be it in a post or when you check profile, etc?

daFish 01-02-2005 07:43 AM

Fter installing this hack, i've found oiut that some things are missing.

1. There is no such line in usercp.php
PHP Code:

     if (!$vboptions['allowsignatures'])
     {
         eval(
print_standard_error('error_signaturedisabled'));
     } 

2. When getting into the user settings in the acp, nolabel is shown for Disable Sig and when you select "Yes" and save, the settings won't be saved (maybe missing query for the update).

tnguy3n 01-03-2005 01:12 PM

Quote:

Originally Posted by daFish
Fter installing this hack, i've found oiut that some things are missing.

1. There is no such line in usercp.php
PHP Code:

     if (!$vboptions['allowsignatures'])
     {
         eval(
print_standard_error('error_signaturedisabled'));
     } 

2. When getting into the user settings in the acp, nolabel is shown for Disable Sig and when you select "Yes" and save, the settings won't be saved (maybe missing query for the update).

sorry, it should be profile.php , and the link to edit Signature still there; however, when the user clicks on it, it'd display the error message saying that the signature is disabled.

@ SVTOA: if one user on the board violates your signature rules, you'd disable signature option of the whole group? that's just sound unfair.

SVTOA 01-03-2005 01:31 PM

Quote:

Originally Posted by tnguy3n
sor

@ SVTOA: if one user on the board violates your signature rules, you'd disable signature option of the whole group? that's just sound unfair.


How is that unfair??? It's a group you assign people to so they have no signature!!! They can't be assigned to it unless you put them there.
Not any more unfair than doing it with this hack. We must not be understanding each other...

SnowBot 01-03-2005 01:53 PM

nice little hack :)

SnowBot 01-03-2005 02:47 PM

Only problem is, is that the default is set to know so you you are editing anything else and forget to re-tick it to YES the sig will be disabled. Can you make it so the default is set to YES?

SnowBot 01-03-2005 03:20 PM

hhmm well after installing this it doesnt work correctly at all. For me i can only disable my own sig and not others.

daFish 01-03-2005 04:29 PM

Quote:

Originally Posted by tnguy3n
sorry, it should be profile.php , and the link to edit Signature still there; however, when the user clicks on it, it'd display the error message saying that the signature is disabled.

Thanks. Got that, but what about the second issue?


All times are GMT. The time now is 08:37 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.00992 seconds
  • Memory Usage 1,738KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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