Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Advanced Warning System (Beta Version) Details »»
Advanced Warning System (Beta Version)
Version: 3.5.0, by sv1cec sv1cec is offline
Developer Last Online: Mar 2022 Show Printable Version Email this Page

Version: 3.5.0 RC3 Rating:
Released: 09-08-2005 Last Update: 05-30-2006 Installs: 221
DB Changes Uses Plugins Template Edits
Additional Files Is in Beta Stage  
No support by the author.

Advanced Warning System


IF YOU ARE RUNNING vB 3.6, THERE IS A NEW THREAD FOR THIS HACK UNDER THAT VERSION. vB 3.6 USERS GO HERE:

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


This is a direct port of the Advanced Warning System, as it was implemented in vB 3.0.x. This port has all the features of AWS version 3.4.16, except the Notes.

For a complete description of AWS capabilities, please refer to the following thread:

https://vborg.vbsupport.ru/showthread.php?p=574374

The vB 3.5 compliant version of AWS includes:

1 Product XML (17 Plugins, 107 Phrases, 26 Templates, 43 Settings)
1 ACP Navigation XML
1 PHP Functions File
3 Images
2 PHP Frontend Files
1 PHP Admin CP File
1 PHP Mod CP File
3 PHP Cronjob Files

This port would not be possible, without the help of KirbyDE, to whom I am greatful. KirbyDE will also be responsible for supporting you here, with questions related to this particular release. Also, this port would not have been possible, without the help of Juan P hernandez, who offered me a free test system, in which the porting was performed.

The hack has been tested and it is believed to be bug-free, however since this is a major hack, I release it today (September 9th 2005) as beta.

I hope you all enjoy it.

History (Productversion)
3.5.b
Initial Version

3.5.b1
Fixed a typo that caused Errors in User Datamanager.
Fixed a wrong object reference in functions_warning.php

3.5.b2
Fixed a Bug that caused PHP Error Messages.
Fixed a Typo in the Install Code that causes mySQL Errors.
Updated the Template Edit instructions to be (hopefully) compatible with RC3

3.5.b3
Fixed User not showing up in automatic warning PMs
Fixed 2 missing Phrases
Fixed Hidden Warner being Used for Automatic Warnings
Fixed "View x's Warnings" Button in Usermanager not working

3.5.b4
Removed one unsued Phrase, added one missing Phrase
Fixed a Typo that caused PHP Errors when sending PMs
Fixed a Typo that caused PHP Errors upon Installation
Changed Product ID for Admin CP Navigation XML from vbulletin to aws, so it won't show up any longer if AWS is uninstalled/disabled.

A bug was found which didn't allow you to delete an entered Warning Type. Bug fixed in the current distribution file.

If you found a Bug, please report it at http://bugs.kirbydemos.ath.cx

This helps to keep issues organized, which can't be guaranteed if it's only posted in the Thread.
Thank you.

P.S.1: After you install the hack per the instructions, please update your installation with the separate files listed. They are newer files not included in the zip.

P.S.2: If you want to use the Notes feature, as it existed in AWS 3.4.16, please install AWS per the instructions in the zip file, and THEN follow the instructions included in the warn_notes_update_instructions.txt.

IMPORTANT NOTE: Please keep in mind that this hack is not supported. What this means is that I have no obligation to support it. The reason for that, is because I have no access to a vB 3.5 system any more, so I can't work on this hack any more. Andreas (or KirbyDE) who undertook the support of this version of the AWS hack in the beginning, is obviously too busy to support it. So you are on your own, at least as far as the interaction with vB is concerned. If you have an issue with the hack files themselves, I'll do my best to solve it, but without a test environment, it is not easy. So users of vB 3.5 beware!

P.S. May 31st 2006: The zip file uploaded today, should contain all the debugging done by Delphi, so it should be fine as it is. You do not need the other files listed at the right, only the zip. Download it and follow the instructions in it, for installing the hack. I leave the other files there, just in case some one needs them, they will be deleted later.

SV1CEC

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #732  
Old 03-02-2006, 01:06 PM
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 1,968
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Delphiprogrammi
hi people,

i've spotted and fixed the urls linking problem.In emails aws sends out.If you have "send email to warned member" turned on and you get this

Code:
Dear tester,
			
			A warning you have received for violating Array[bbtitle] Rules has been totally removed from your account, by the Forums team. The removed warning concerned: 
			
			you are crossposting
			(Warning Type = 'CrossPosting') 
			
			The post for which you were warned, and whose warning has now been totally removed, can be seen here:
			
			Array[bburl]/showthread.php?p=165
			
			With this warning being removed, 4 point(s) have been removed from your total.
			
			Your total Warning Level at the moment is: 0 point(s).
			
			Please reply back if you have a dispute.
			
			----------------
			
			Array[bbtitle] Team
there should be a proper link to the post for which the member got warned in the first place

Code:
Dear tester,
			
			A warning you have received for violating Array[bbtitle] Rules has been totally removed from your account, by the Forums team. The removed warning concerned: 
			
			you posted urls before 15 posts
			(Warning Type = 'links') 
			
			The post for which you were warned, and whose warning has now been totally removed, can be seen here:
			
			http://www.server.com/forums/showthread.php?p=165
			
			With this warning being removed, 1 point(s) have been removed from your total.
			
			Your total Warning Level at the moment is: 0 point(s).
			
			Please reply back if you have a dispute.
			
			----------------
			
			Array[bbtitle] Team
in admincp/admin_warn.php find the $thread2 variable BUT ONLY if it is a post related warning ... and change it to

PHP Code:
$thread2="{$vbulletin->options['bburl']}/showthread.php?p={$warn['warned_post']}"
that should do it that's one more problem sorted out
I think that will also sort out the problem with doing a complete warning removal in the admincp, when it sends a PM to the user that has had the warning removed from them, it is the same Array[bbtitle] problem.

So, your solution should actually kill that problem as well, will test it out and let you know
Reply With Quote
  #733  
Old 03-02-2006, 01:39 PM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jdsinclair
I think that will also sort out the problem with doing a complete warning removal in the admincp, when it sends a PM to the user that has had the warning removed from them, it is the same Array[bbtitle] problem.

So, your solution should actually kill that problem as well, will test it out and let you know
actually that annoys me to and i'm looking into that one the problem is i bet $vbulletin->options['bbtitle'];

if i get that one sorted out i'll post it

problem found

replace

PHP Code:
$vbulletin->options[bbtitle]; 
with

PHP Code:
$vbulletin->options['bbtitle']; // notice the '' 
and make sure you set a value in vb options under bbtitle mke this changes in admin_warn.php

So people to keep the things we've fixed together.To solve the bad urls in email aws sends out you need to edit two files
  • Warn.php
  • /admincp/adminwarn.php


in Warn.php find

PHP Code:
$thread2="$vbulletin->options[bburl]/showthread.php?p=$vbulletin->GPC[post]"
replace by

PHP Code:
$thread2="{$vbulletin->options['bburl']}/showthread.php?p={$vbulletin->GPC['post']}"
still in Warn.php find

PHP Code:
$thread2="$vbulletin->options[bburl]/showthread.php?p=$warn[warned_post]"
replace with

PHP Code:
$thread2="{$vbulletin->options['bburl']}/showthread.php?p={$warn['warned_post']}"
in admin_warn.php do the same (only for postrelated warnings) and replace all instances of

PHP Code:
$vbulletin->options[bbtitle]; 
with
PHP Code:
$vbulletin->options['bbtitle']; 
amen
Reply With Quote
  #734  
Old 03-02-2006, 03:34 PM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi people,

people with a verry busy forum can try this quick plugin to cache templates used by this sytem.Caching templated reduces the amount of MySQL queries needed ...

admincp => plugin system => plugin manager => add a new plugin

product => AWS (advanced warning system)
hook location => cache templates
title => AWS cache templates
plugin PHP code

PHP Code:
if(THIS_SCRIPT =='warn')
{
       
$actiontemplates = array (
           
'ViewMyWarnings' => array (
               
'warn_view_end',
               
'warn_view_row',
               
'warn_view_top',
               
'warn_viewtype_end',
               
'warn_viewtype_row',
               
'warn_viewtype_top',
           ),
           
'WarnUser' => array (
               
'warn_addwarn',
               
'warn_pm',
               
'warn_em',
               
'warn_viewtype_end',
               
'warn_viewtype_row',
               
'warn_viewtype_top',
           ),
           
'WarnUserNoPost' => array (
               
'warn_addwarn_nopost',
               
'warn_pm',
               
'warn_em',
               
'warn_viewtype_end',
               
'warn_viewtype_row',
               
'warn_viewtype_top',
           ),
           
'ViewWarnings' => array (
               
'warn_viewb_end',
               
'warn_viewb_row',
               
'warn_viewb_top',
               
'warn_viewtype_end',
               
'warn_viewtype_row',
               
'warn_viewtype_top',
           ),
           
'ViewPostWarnings' => array (
               
'warn_viewc_end',
                
'warn_viewc_row',
                
'warn_viewc_top',
                
'warn_viewtype_end',
                
'warn_viewtype_row',
                
'warn_viewtype_top',
            )
       );

active (choose yes if you want to use you can choose no if you are having problems with it)

submit the form

done

amen

enough coding for today
Reply With Quote
  #735  
Old 03-02-2006, 08:26 PM
Drewish Drewish is offline
 
Join Date: Feb 2006
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, I've installed the Advanced warning hack on a vB 3.5.4 board. It seems to work great except for a couple little problems I've been having. The Auto-warning system doesnt seem to be working. I've created a supermod "bot" and used it as the auto-warning bot and the hidden warner. Also, I've created the "ObseneWords" warning type and designated it to be "auto." Using a test username and having an actual member use censored words in posts, it doesnt seem to be delivering the warning, even though the words used were blocked out by the vBulletin censor system. Also, Email notification works great, but it doesnt private message the warned user, only emails them. I dont know if maybe you have to have emailing disabled to use the private message feature, but right now they are both enabled. Is this compatible with my version of vB? Other than this, its a very useful hack and im very happy with it.
Reply With Quote
  #736  
Old 03-02-2006, 08:37 PM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Drewish
Hi, I've installed the Advanced warning hack on a vB 3.5.4 board. It seems to work great except for a couple little problems I've been having. The Auto-warning system doesnt seem to be working. I've created a supermod "bot" and used it as the auto-warning bot and the hidden warner. Also, I've created the "ObseneWords" warning type and designated it to be "auto." Using a test username and having an actual member use censored words in posts, it doesnt seem to be delivering the warning, even though the words used were blocked out by the vBulletin censor system. Also, Email notification works great, but it doesnt private message the warned user, only emails them. I dont know if maybe you have to have emailing disabled to use the private message feature, but right now they are both enabled. Is this compatible with my version of vB? Other than this, its a very useful hack and im very happy with it.
i noticed that to the automatic warnings do not seem to work.You did everything requirerd to make it work but i've tested it to and i don't get a pm or email either
Reply With Quote
  #737  
Old 03-03-2006, 02:11 AM
Michael-DLR Michael-DLR is offline
 
Join Date: Feb 2002
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sv1cec? I know I have said this before but this is the best hack for vbulletin. Thank you again for supporting it. I have one small issue that I need help with. I have the warning system set-up to create a thread in a hidden forum when a moderator issues an alert or warning. For reasons when an alert is issued, the thread information indicates it is an alert. How can I fix this so the thread displays an alert and not a warning? The information below is in two parts. The first one is a copy of the thread in the hidden forum. The 2nd one is a copy of the private message sent to the user.

Thank you in advance!

Michael




User mitest received the following Warning/Alert by Michael on 03-02-2006 at 07:22 PM :


Quote:
Dear mitest,

You have been warned for one of your posts, which violated (website names) Rules. The reason you have been warned is because:

User makes ignores direct directions given from a moderator.
(Warning Type = Ignoring Moderator Directions)

For this violation, you have been given : 3 point(s).
The point(s) will remain in your account for 180 days.
After that, they will be removed automatically.

The post for which you are warned can be seen here:

=======================================

Quote:
Originally Posted by Nemo88
I agree,I wish nothing came up when you are "ignoring" another member...


It's a small notification though...
=======================================

The admin/moderator who warned you, entered this comment:

=======================================
User makes ignores direct directions given from a moderator.
=======================================

Your total Warning Level at the moment is: 0 point(s).

If you reach the maximum of 7, you will be banned from the Forums, for 2 days.

To see details about all the warnings you have received, until now, please click here.

Please reply back if you have a dispute.

-------------------------------------------------------------------------
Dear mitest,

This is an alert for one of your posts, which violated MouseInfo.com Rules. The reason you have been alerted is because:

User makes ignores direct directions given from a moderator.
(Warning Type = Ignoring Moderator Directions)

For this violation, you would normally have been given : 3 point(s).
The point(s) would remain in your account for 180 days.
After that, they would be removed automatically.

If you ever reach the maximum of 7 points, you will be banned from the Forums, for 2 days.

However, the moderator decided not to warn you at this time, and only issue an alert, instead of a warning. So no points have been added in your account, this time. Next time however, you will be warned.

PLEASE RESPECT THE FORUM RULES.

The post for which you are alerted can be seen here:

=======================================
Quote:
Originally Posted by Nemo88
I agree,I wish nothing came up when you are "ignoring" another member...



It's a small notification though...
=======================================

The admin/moderator who issued this alert, entered this comment:

=======================================
User makes ignores direct directions given from a moderator.
=======================================

To see details about all the warnings and alerts you have received, until now, please click here.

Please reply back if you have a dispute.
Reply With Quote
  #738  
Old 03-03-2006, 10:18 AM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi,

Automatic warnings seem to work fine in private messages try to send a pm which contains censored words you'll get a pm back telling you that you've been warned.But automatic warnings fail to work in posts / threads No error messages but no pm or emails either

if you ask me those plugins that should handle the automatic warnings have the wrong hook locations and therefor the code doesn't get fired in the right spot
Reply With Quote
  #739  
Old 03-07-2006, 06:04 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, I have just uploaded new admin_warn.php and Warn.php files, with the quotes! Darn those quotes. I'll try and check everything else for this issue.
Reply With Quote
  #740  
Old 03-07-2006, 06:14 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can not duplicate the problem with the Automatic Warnings from Posts. It works fine in my test environment, even before uploading the edited files for the quoted $vbulletin parameters.

There is an issue with the warning being entered as non-post related. To correct that, open the following plugin.

AWS: Check Post-Title/Message for censored Words

Find:

Code:
warn_calculations($warn_type['tid'], $wcomment, $this->fetch_field['postid'], $userinfo, $this->registry->options['warn_automatic_warner'], $alert);
Replace that with:

Code:
$wpost=$this->fetch_field('postid');
warn_calculations($warn_type['tid'], $wcomment, $wpost, $userinfo, $this->registry->options['warn_automatic_warner'], $alert);
Try this out.

Also, in several of the templates shown in the XML file, there are still references to $vboptions parameters. However, I do not know if it is worth it to correct these references, since I do not know if a corrected XML file can be used to alter the existing templates or not. If someone knows, please advise.
Reply With Quote
  #741  
Old 03-07-2006, 08:56 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, I am completely stuck here. Delphi, or whoever else can check out the admin_warn.php code for me, I need some ... support.

When viewing the Warnings Log, there are two links, one saying "Remove" and the other saying "Complete Removal". My problem is this:

The first one, when clicked, shows the next screen correctly, i.e. all the information is there. The second one, does not passes all the parameters to the next screen, it does not pass all the TYPE_STR fields. As a result, the name of the warned user, and type of warning and the parameter which shows if this warning has caused a ban or no, are not passed.

The code in these two routines (remove and completeremove) is exactly the same. The code from which the two routines are called, is also exactly the same, it's shown below:

Routine remove call:

Code:
$y="<a href='{$vbulletin->options['bburl']}/$admincpdir/admin_warn.php?act=remove&id={$warn[wid]}&userid={$warn[warned_userid_v]}&uname={$warn[warned_username_v]}&wname={$warn[warn_name]}&postid={$warn[warned_post]}&ban=$warn[caused_ban]&orderstring={$order}'>Remove</a>";
Routine completeremove call:

Code:
$cy="<a href='{$vbulletin->options['bburl']}/$admincpdir/admin_warn.php?act=completeremove&id={$warn[wid]}&userid={$warn[warned_userid_v]}&uname={$warn[warned_username_v]}&wname={$warn[warn_name]}&postid={$warn[warned_post]}&ban=$warn[caused_ban]&orderstring={$order}'>Complete Removal</a>";
The strange thing is that if you hover your cursor above the two links, you can see that the parameters are shown, in other words, they are passed.

Anyone has any ideas?????

It's not affecting the operation of the program per se, the warnings are completely removed, but I do not like it when I can't figure out what's going on and why things do not work as expected.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:43 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.10656 seconds
  • Memory Usage 2,372KB
  • Queries Executed 28 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (10)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete