Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Advanced Warning System 3.6.7 Details »»
Advanced Warning System 3.6.7
Version: 3.6.9(C), by Delphiprogrammi Delphiprogrammi is offline
Developer Last Online: Aug 2015 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 3.6.8 Rating:
Released: 08-19-2006 Last Update: 10-02-2007 Installs: 211
DB Changes Uses Plugins Template Edits
Code Changes Additional Files Is in Beta Stage  
No support by the author.

Advaned Warning System

This is a port of aws and i release this with permission...(yes i did ask the original author)

This version of the warning includes
  • 1 vbulletin 3.6.x product file (XML)
  • 1 admincp navigation XML
  • 1 functions file(functions_warning.php)
  • 3 images
  • 3 cronjobs
  • 1 modcp file to allow moderators to view warnings information without having to give admincp access(mod_warn.php)
  • 1 admincp file to manage the system options(admin_warn.php)
  • 1 XML to control permissions(bitfield_aws.xml)
For a completer list of the system features you can refer to this

This version will also require vbulletin 3.6.x to run.If you run 3.5.x or any other release then 3.6.x you will see a message.

This system is tested for a long time and i believe it's stable enough for a public release HOWEVER since this is a major hack and i'm just human please consider this first public run still as "beta"

instructions ow howto install can be found in the docs directory within the zip

statistics
  • 25 plugins
  • 27 templates
  • 5 new MySQL tables
  • 3 standard vbulletin tables alterd (user,post,and usergroup)
  • 827 phrases
  • 47 settings
updates

A problem has been found where no link is provided to view your own warnings(normal users) in the member profile only i fixed this.To get the fix you will need to reedit your "MEMBERINFO" template and reimport product-aws.xml (set allow overwrite to yes)

15-9-2006
I moved the cron jobs from the install/uinstall code to the product file.
version check url now uses https://vborg.vbsupport.ru/misc.php?...rsion&t=124477

to upgrade read upgrade.txt in the docs directory

24-9-2006

a product depency whas added the system will no longer install on PHP 5 (in response to continued error reports on that PHP version)

to report a possible bug

please go the system bugtracker here you can use the folowwing account

username:bugreporter
password:awsbug

no need to register yourself


30-11-2006
People on PHP 5 can follow this instructions to avoid the PHP version related error message BUT remember you are on your own if you do this.I won't upgrade my PHP until PHP 5 is there main stable release (www.php.net)


1-1-2007
A bug has been reported in the system.This bug whas causing vbulletin to throw an error when you try to use admincp => users=> add a new user

Quote:
Fatal error: Call to a member function clean_gpc() on a non-object in class_dm_user.php(2385) : eval()'d code on line 35
Solution

Edit plugin "AWS:warn link in usermanager" and replace all code with this

PHP Code:
$quicklinks["../Warn.php?" $vbulletin->session->vars['sessionurl'] . "do=WarnUserNoPost&id=" $vbulletin->GPC['userid']] = $vbphrase['aws_warn_user_admin']; 
i'll update the package when i get home


Another Bug is fixed

This release includes a fix for the problem "call to member function on a non object class_dm_user.php)" when you try to add a new user manaually (after submitting the form)

Supporters / CoAuthors

Show Your Support

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

Comments
  #222  
Old 02-10-2007, 10:21 AM
Celtkin Celtkin is offline
 
Join Date: Dec 2005
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Delphiprogrammi View Post
hi,

That bug is now confirmed here a temporary workaround is disabling he plugin at hook location private_insertpm_process i will see what i cando about it

Problem solved

open plugin at hook location private_insertpm_process at tyhe verry top before any other code add

PHP Code:
global $vbulletin

save enable plugin

done

test users => add a new user

ciao
I tried to access the reference link but you registration to your board has been turned off.

What was the error that you addressed.
Reply With Quote
  #223  
Old 02-11-2007, 06:56 PM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Junkie View Post
Is there a way to remove the vBulletin "Give Infraction" link that shows in the user's profile and the icon that shows in the postbit?
There is no "switch" eg a setting that controls this (so you would be allowed to enable / disable it) but you can always edit the templates and remove that code but personally i would recommend not to touch this or comment it out

HTML Code:
<!-- this is a comment --> <- the comment ends here
you would have to edit postbit & postbit_legacy and MEMBERINFO as an example look at the attached picture this is my postbit_legacy template (teststyle) i use this for testing things only.Now where did the infraction icons go ? open postbit_legacy and look for

HTML Code:
<if condition="$show['infractionlink']"><a href="infraction.php?$session[sessionurl]do=report&amp;p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/infraction.gif" alt="<phrase 1="$post[username]">$vbphrase[add_infraction_for_x]</phrase>" border="0" /></a></if>
replace that with

HTML Code:
<!--<if condition="$show['infractionlink']"><a href="infraction.php?$session[sessionurl]do=report&amp;p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/infraction.gif" alt="<phrase 1="$post[username]">$vbphrase[add_infraction_for_x]</phrase>" border="0" /></a></if>-->
look for

HTML Code:
<if condition="$show['redcard']">
			<a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/redcard.gif" alt="$vbphrase[received_infraction]" border="0" /></a>
		<else />
			<if condition="$show['yellowcard']">
				<a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]" border="0" /></a>
		</if>
			</if>
replace with

HTML Code:
<!--<if condition="$show['redcard']">
			<a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/redcard.gif" alt="$vbphrase[received_infraction]" border="0" /></a>
		<else />
			<if condition="$show['yellowcard']">
				<a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]" border="0" /></a>
		</if>
			</if>-->
look for

HTML Code:
<if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
and replace with

HTML Code:
<!--<if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>-->
postbit_legacy is done now.This is just an example to get you started.This way the code is never removed if you need it later on you can uncomment it and ...
Reply With Quote
  #224  
Old 02-11-2007, 06:59 PM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Steeler Nation View Post
Fatal error: Call to undefined function: check_user() in /home/www/steelernation/forums/Warn.php on line 605
did you uploaded the file functions_warning.php to your vBulletin includes directory ? also make sure it has the correct permissions and your server / host is not in any way disallowing it's execution (openbase_dir PHP protection is known todo this sometimes)
Reply With Quote
  #225  
Old 02-14-2007, 09:10 AM
alexhirurg alexhirurg is offline
 
Join Date: Jan 2007
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bugreport ! i've not understood the condition - when it happening, but it happening often...

Look at first comma after VALUES - there is strange... no userid, no username. Why it can be ?
this report from one of the administrators account.

Code:
Invalid SQL:

                       INSERT INTO pmtext_warned
                       (fromuserid, fromusername, title, before_title, message, before_message, touserarray, dateline)
                       VALUES
                       (,
                       '',
                       '',
                       '<i>The user did not enter a title</i>',
                       'B?*um b?*um bambaló \nBambaló og dillidillidó\nMy little friend I lull to rest\nBut outside, a face looms at the window\n\nWhen the mighty mountains\nfill your chest with burning desire,\nI will play the langspil [violin-fiddle-like instrument]\nand soothe your mind\n\nB?*um b?*um bambaló \nBambaló og dillidillidó\nMy little friend I lull to rest\nBut outside, a face looms at the window\n\nWhen the cruel storms rage\nand the dark blizzard crouches above,\nI shall light five candles\nand drive away the winter/twilight shadows',
                       'B?*um b?*um bambaló \nBambaló og dillidillidó\nMy little friend I lull to rest\nBut outside, a face looms at the window\n\nWhen the mighty mountains\nfill your chest with burning desire,\nI will play the langspil [violin-fiddle-like instrument]\nand soothe your mind\n\nB?*um b?*um bambaló \nBambaló og dillidillidó\nMy little friend I lull to rest\nBut outside, a face looms at the window\n\nWhen the cruel storms rage\nand the dark blizzard crouches above,\nI shall light five candles\nand drive away the winter/twilight shadows',
                       '',
                       1171311326);

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '
                       '',
                       '',
                       '<i>The user did not enter a title</i>',
                       'B?*um b?*um b' at line 4
Error Number : 1064
Date         : Monday, February 12th 2007 @ 12:15:26 PM
Script       : http://www.linkinparkforums.com/editpost.php?do=updatepost&postid=463949
Referrer     :
IP Address   : 194.144.42.227
Username     : Friðbjörn
Classname    : vB_Database
Reply With Quote
  #226  
Old 02-14-2007, 09:19 AM
alexhirurg alexhirurg is offline
 
Join Date: Jan 2007
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

also i want to ask authors - is it possible to embed manual changes to templates to the xml ?
like as parse_templates plugin, or - i don't know the way to change templates in install/uninstall scripts - may be somebody know ?
only one way that i can invent - get it by fetch_template, change and store directly to the database by SQL query..
Any thinks ?
Reply With Quote
  #227  
Old 02-14-2007, 11:29 AM
chikkoo chikkoo is offline
 
Join Date: Mar 2005
Posts: 223
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Though I wanted to install AWS in 3.5, since it was in Beta, I was using Inferno Warning System. Now I am still continuing with it, though it is not 100% working (adding warnings but not banning).

Now I am planning to switch to AWS 3.6.1, before that some queries:

1) Can I import the Warning points from Inferno Warning System?
2) Inferno had some warning blocks (green+yellow+red), does your warning levels/points have such blocks/pictures?
3) Does every one can see other members warning points and warning reason?

Thanks for your support.
Reply With Quote
  #228  
Old 02-14-2007, 03:25 PM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Even though I am no longer directly involved with either the development or the support of AWS, I think I can safely answer your questions. Maybe Delphi can elaborate more on some points, if he feels like it.

Quote:
1) Can I import the Warning points from Inferno Warning System?
I have no idea how the Inferno Warning System works, but I think it is higlly unlikely. AWS stores the member's warning points in the user table, while the details about each warning are stored in a different table called warnings. Unless the Inferno WS uses the exact same column names in both of these tables, to store the exact same information, there is no way to use the old information you have about your members. Of course, writing a small program to do the import is NOT impossible, but it has to be done by someone who is aware of how the IWS and AWS store their data.

Quote:
2) Inferno had some warning blocks (green+yellow+red), does your warning levels/points have such blocks/pictures?
Hmm, no AWS doesn't have any "blocks", at least not "visual" blocks, which categorize the member in one of the three categories mentioned. Frankly it's not so difficult to add such a thing, AWS has already some "categories" in the sense that it uses some cut-off limits (avatar cut-off limit, signature cut-off limit, PM cut-off limit).

Quote:
3) Does every one can see other members warning points and warning reason?
This is a selectable option in AWS. You have the option to allow only Management to see the warning information or everyone, however normal members can NOT see the details for each warning another member has received. Only how many warnings he/she has, how many warning points, how many bans etc.

I hope this helps.
Reply With Quote
  #229  
Old 02-15-2007, 05:02 PM
GoTTi GoTTi is offline
 
Join Date: Jun 2002
Posts: 1,346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

im sure this has been answered...

can we upgrade from 3.5.4 to 3.6.x?
Reply With Quote
  #230  
Old 02-16-2007, 12:55 PM
alexhirurg alexhirurg is offline
 
Join Date: Jan 2007
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Authors Ignorred My Posts ?
Reply With Quote
  #231  
Old 02-16-2007, 02:52 PM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, I am not ignoring your question, it's just that I do not have an answer to give you. That obviously should happen when a warning is automatically issued for usage of censored words in a PM. Unformtunately, I do not have a working system to test it and tell you, so you will have to wait for Delphi to check it out.

As for your question about the templates, I am not sure I understand the question. Yes, you can alter a template in the xml file, it's a text file, so you should be able to edit it, but somehow I do not think this is what you are asking.
Reply With Quote
Reply


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 03:58 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05574 seconds
  • Memory Usage 2,352KB
  • Queries Executed 26 (?)
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
  • (1)bbcode_code
  • (7)bbcode_html
  • (2)bbcode_php
  • (7)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
  • (2)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_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