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)
-   -   Advanced Warning System (Beta Version) (https://vborg.vbsupport.ru/showthread.php?t=95921)

sv1cec 07-12-2006 08:38 AM

Phiber, you are not reading the proper instructions. The part that you posted above, is from the instructions on how to add the Notes capability, in an already installed AWS. Check the instructions included in the AWS zip file.

AzzidReign 07-12-2006 02:39 PM

I think I figured out my problem...I just dont know how to fix it. There is a glitch with the signature tag (at least in firefox, I havent tested in IE). When there is no signature, the post will be made centered vertically.

Do you know how to fix them sv1cec?

sv1cec 07-12-2006 05:38 PM

Start with a new template and edit it according to the instructions.

phiber 07-16-2006 09:33 AM

sv1cec thanks for your previous answer!

And now another... xD, yesterday I had a "problem" with a Moderator because he remove accidentaly my warn to a user... How can I avoid that? How can only a Mod remove their own? And SMods their own and Moderators ones, and Admins all? or SMods and Admins all...

Thanks in advance!

Edit: Oh, I have just seen and answer for that problem, but for unable the remove warning to mods and smods... How to remove only for mods? And there you said only "fake" remove, but not delete... How to restore a Warn removed by a Mod?

Thanks again, and sorry my English!

sv1cec 07-16-2006 11:39 AM

It's doable, but you have to run an SQL query, and since this can mess up your database, I would not like to give you more details. You'd better remove the warning all together, and explain the member that if he does the same, he is doomed.

phiber 07-16-2006 11:44 AM

LOL, Ok, Thanks ^^

Delphiprogrammi 07-16-2006 01:54 PM

how about a permission control the admin can set "can issue warnings" to yes and "can remove warnings" to no .... that would solve his problem

Restoring a removed warning is possible but like John already said it's kind of risky.

1)open /includes/xml/bitfield_aws.xml and find

Code:

<bitfield name="canviewwarnings" group="awspermissions" phrase="canview_warnings">8</bitfield>
below that add

Code:

<bitfield name="canremovewarnings" group="awspermissions" phrase="canremove_warns">16</bitfield>
save this file and upload it to /includes/xml folder

2)go into your admincp and add a new phrase

varname:canremove_warns
text:can remove warnings ?
phrasetype:permissions
product:aws

save the phrase

3)open Warn.php and find

PHP Code:

if($_GET['do'] == "RemoveWarning")
{
$vbulletin->input->clean_array_gpc('g',array(
        
'id'      => TYPE_INT,
        
'post'    => TYPE_INT,
        
'do'      => TYPE_STR,
        
'return'  => TYPE_STR,
    )); 

just below that

PHP Code:

if (!($vbulletin->userinfo['permissions']['awspermissions'] & $vbulletin->bf_ugp_awspermissions['canremovewarnings']))
    {
        
RunErrorAws("you do not have permission to remove warnings");
    } 

4) edit your usergroups where you want to enable / disable the new permission usergroups => edit also remember to rebuild the vbulletin bitfieldcache you can do this by pointing your browser to

http://www.yourserver.com/forums/adm...buildbitfields

that should do it if not give me a yell

barca4ever 07-16-2006 09:43 PM

Is there's a way to prevent super-moderators and moderators from removing warnings?

In other words, I want only administrators can remove a warning

Thanks in advance ;)

bigM 07-17-2006 08:16 AM

I have forgotten to refresh the AdminCP. Problem has been fixed ;)

Delphiprogrammi 07-17-2006 09:02 PM

Quote:

Originally Posted by barca4ever
Is there's a way to prevent super-moderators and moderators from removing warnings?

In other words, I want only administrators can remove a warning

Thanks in advance ;)

here hint set that permission to no for moderators and supermoderators


All times are GMT. The time now is 07: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.02435 seconds
  • Memory Usage 1,746KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (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