vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Advanced Warning System (AWS) (https://vborg.vbsupport.ru/forumdisplay.php?f=105)
-   -   Restricting who can remove warnings (https://vborg.vbsupport.ru/showthread.php?t=83341)

Abe Babe 06-18-2005 03:42 PM

Restricting who can remove warnings
 
I am wondering if there is a way so that only admins [and maybe smods] can remove warnings.

I can do it through the templates using conditionals, but mods can still remove warnings through the mod cp.

Abe Babe...

sv1cec 06-19-2005 05:37 AM

LoL, quite a few things here:

1. Moderators and Supermods can only "remove" warnings. Remove means "artificially mature" sooner than the normal maturity date.
2. Only Admins can "Completely Remove" a warning, i.e. make it look as if it was never issued.

What you want is that mods and supermods cannot even "artificially mature" a warning?

If so, you need to add those conditionals in the templates, and in mod_warn.php, find:

PHP Code:

$y="<a href='{$vboptions[bburl]}/Warn.php?do=RemoveWarning&id={$warn[wid]}'>Remove</a>"

Replace that with:

PHP Code:

$y=''

That will remove the ... "Remove" link from the modcp table.

To do it more properly, I need to come up with a more elaborate permissions scheme, where you define what the smods and mods can and cannot do. However, given that vBulletin 3.5 is out, and a lot of people have asked for this hack to be ported to 3.5, I have too much work to do, just checking if this can be done, so I do not have time for such changes in the existing version.

Rgds

Abe Babe 06-23-2005 03:38 PM

Thanks John. That worked. Quick fix is fine for what I need at the moment. :)

Abe Babe...

sv1cec 06-23-2005 08:34 PM

Most welcome Sir, most welcome.


All times are GMT. The time now is 10:42 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.00894 seconds
  • Memory Usage 1,721KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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