Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Mike's Warning System 1.0 Details »»
Mike's Warning System 1.0
Version: 1.00, by Beorn Beorn is offline
Developer Last Online: Feb 2006 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 05-30-2003 Last Update: Never Installs: 66
 
No support by the author.

Hello all. This is a sort of alternative to g-force2k2's Warnings System Hack. He gets all credit for the idea.

Before anyone starts to accuse me of trying to steal his glory, let me explain. The admin of a well sized board that I super-mod asked me to revise g-force2k2's warning system (it was already installed). I downloaded it, looked through it, and decided that I couldn't: he requested that people respect his hack, and not modify it. So, I didn't, and decided to take a swing at it. Since people don't like change, I made it look the same as the original, but work differently.

Features:
  • Expireable warnings. Each warning type has a default length and value. (can turn this off too)
  • Warning values can be selected by issuer as per severity of the offense. This can be disabled by the administrator; the default value of warning will be used.
  • Warning lengths can be selected by issuer as per severity of the offense. This can be disabled by the administrator; the default length of warning will be used.
  • Relatively quick install: a few file mods, template mods, and then running a script.
  • Email on warning option (Never, Issuer's choice, Always)
  • PM on warning option (Never, Issuer's choice, Always)
  • Email on banning option (yes, no)
  • Changeable banning threshold
  • Which usergroups can warn, which can view the sum, which can view all the warnings
  • Mostly template driven
  • Add, remove, edit warnings
  • Add, remove, edit warning types
  • Stronger admin interface.

That's all I can think of now....

Stats:
  • Queries added per page: 0
  • Queries modified: 3 (indirectly: $templatesused needs to be modified)
  • Queries extra per day: 3+ceil(TheNumberOfUsersWithPointsExpiringToday/10)
  • Files to modify: 3
  • Files to add: 3
  • Install time: 10-15 minutes

Stipulations
  • Support requests will take a bit (a day or two) to reply due to a somewhat tight schedule.
  • Please click Install if you use it
  • DO NOT install this if you have g-force2k2's hack in place. USE THE UPGRADE if you have g-force2k2's hack installed

The package is attached. Screenshots are zipped next. Please click install if you use it.

If you are upgrading from g-force2k2's verison, use MWS-Upgrade.txt, and warn-upgrade.php.

Show Your Support

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

Comments
  #22  
Old 06-18-2003, 12:57 AM
sajjid sajjid is offline
 
Join Date: Jul 2002
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sajjid requests a conversion script.
Reply With Quote
  #23  
Old 06-19-2003, 07:32 PM
sonic3d's Avatar
sonic3d sonic3d is offline
 
Join Date: Jan 2002
Location: Chicago
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is this hack stable enuff to use?

l8er
sonic
Reply With Quote
  #24  
Old 06-23-2003, 04:04 PM
sajjid sajjid is offline
 
Join Date: Jul 2002
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

in your instruction step 1 you state OPEN global.php
which one ? one in forum dir or admin dir
Reply With Quote
  #25  
Old 06-25-2003, 04:44 PM
Beorn Beorn is offline
 
Join Date: Jun 2002
Location: Long Island, NY
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
06-23-03 at 01:04 PM sajjid said this in Post #23
in your instruction step 1 you state OPEN global.php
which one ? one in forum dir or admin dir
All the paths are from the forum root, so that refers to the forum one.

Quote:
is this hack stable enuff to use?
As far as I know, it is. The only

I'm going to send in an update in a minute. What you need to do is replace the files, and go to 'Resum' in the admin panel. That's all.

Now, the conversion script:
After (seemingly) everything that could possibly go wrong in my life, I think I'll have time for that conversion. I'll try to get it out by Friday (I hope).

Mike
Reply With Quote
  #26  
Old 06-28-2003, 01:26 AM
Beorn Beorn is offline
 
Join Date: Jun 2002
Location: Long Island, NY
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello all,

I finally finished that upgrade script. If you have g-force2k2's Warning System (v. 2.0 or higher), you can use the upgrade instructions included in the package posted in the first post of this thread. If you are upgrading, use MWS-Upgrade.txt, and warn-upgrade.php.

I'll ask a mod to move this to the 'Full Releases' forum .

Thank you everyone for beta testing. Please spread the word, and click Install if you install it. By clicking Install, you will receive updates when I do update it.
Reply With Quote
  #27  
Old 06-28-2003, 09:15 AM
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Location: Sheffield, UK
Posts: 1,757
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've just upgraded from g-force2k2's mod, and so far everything seems to be running well..

Just a little thing i picked up on with the upgrade instructions:
Code:
FIND:
---------------------------------	
<BR>
	$post[warnlink]
---------------------------------	
ADD AFTER IT:
---------------------------------	
$post[warnlink]
---------------------------------	
CLOSE postbit
I'm expecting that should be replace instead of add after, since there'd be no reason for wanting 2 instances of warnlink, and your code seems to add a <br> already.

Also.. I wouldn't recommend doing this step:
Code:
1.	OPEN admin/template.php
	FIND AND REMOVE:
---------------------------------
// +++++++ Warning Hack 2.0 [ g-force2k2 ] +++++++
  $only['warn'] = 'Warning System Hack';
// +++++++ Warning Hack 2.0 [ g-force2k2 ] +++++++
---------------------------------
	CLOSE admin/template.php
Since it leaves the templates without a category in the Default templates..

[high]* Oblivion Knight clicks install.[/high]
Reply With Quote
  #28  
Old 06-29-2003, 02:43 AM
Beorn Beorn is offline
 
Join Date: Jun 2002
Location: Long Island, NY
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 06:15 AM Oblivion Knight said this in Post #26
I'm expecting that should be replace instead of add after, since there'd be no reason for wanting 2 instances of warnlink, and your code seems to add a <br> already.
Yearh, it should be...fixed it...

Quote:
Also.. I wouldn't recommend doing this step:
Code:
1.	OPEN admin/template.php
	FIND AND REMOVE:
---------------------------------
// +++++++ Warning Hack 2.0 [ g-force2k2 ] +++++++
  $only['warn'] = 'Warning System Hack';
// +++++++ Warning Hack 2.0 [ g-force2k2 ] +++++++
---------------------------------
	CLOSE admin/template.php
Since it leaves the templates without a category in the Default templates..
Again, my preferences seem different than those of others...I like it without...so I added a note saying that part is optional.

Finally, anyone who ran the upgrade before this post, please run this query, which I seemed didn't paste into the final upgrade file....but I'll do that now.

Code:
DELETE FROM template WHERE title IN('warn_warnlink','warn_viewlink','warn_userinfo','warn_show_warn','warn_show','warn_seelink','warn_redirect_warnsuccess','warn_redirect_userban','warn_pmyes','warn_pmno','warn_pmemail_subject','warn_pmemail_notify','warn_listing','warn_list','warn_Getinfo_warning','warn_error_whywarnself','warn_error_noexist','warn_error_nowarnings','warn_error_noaccess','warn_error_maxwarnlimit','warn_error_emptyreason','warn_error_cantwarngroup','warn_banemail_subject','warn_banemail_notify','warn_add');
*sigh* Screw the wicked...there is no peace unto me...
Reply With Quote
  #29  
Old 06-29-2003, 04:54 AM
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Location: Sheffield, UK
Posts: 1,757
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fair point to make I guess..
Ran the extra query, thanks for your support with this modification
Reply With Quote
  #30  
Old 06-29-2003, 03:51 PM
sonic3d's Avatar
sonic3d sonic3d is offline
 
Join Date: Jan 2002
Location: Chicago
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

upgraded flawlessly. thanx.

l8er
sonic
Reply With Quote
  #31  
Old 07-04-2003, 04:23 AM
Paris Holley Paris Holley is offline
 
Join Date: Jun 2003
Location: Iowa
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

when i add the code

Code:
$WarnUserGroups = explode(",",$WarnUserGroups);
$WarnUserGroupsView = explode(",",$WarnUserGroupsView);
$WarnUserGroupsSum = explode(",",$WarnUserGroupsSum);
$WarnUserGroupsUnwarnable = explode(",",$WarnUserGroupsUnwarnable);


while ($post=$DB_site->fetch_array($posts) and $counter++<$perpage) {
	if($WarnOnOff) {
		if(in_array($bbuserinfo['usergroupid'],$WarnUserGroupsSum)) {
			eval("\$post['warninglvlwords'] = \"".gettemplate("warn_postbitsum")."\";");
		}
		if(in_array($bbuserinfo['usergroupid'],$WarnUserGroupsView)) {
			eval("\$post['viewwarnings'] = \"".gettemplate("warn_postbitview")."\";");
		}
		if(in_array($bbuserinfo['usergroupid'],$WarnUserGroups) && !in_array($post['usergroupid'],$WarnUserGroupsUnwarnable)) {
			eval("\$post['addwarning'] = \"".gettemplate("warn_postbitadd")."\";");
		}
	
		if($post['warninglvlwords'] || $post['viewwarnings'] || $post['addwarning']) {
			eval("\$post[warnlink] = \"".gettemplate("warn_postbitaddin")."\";");
		}
	}
iget unexcept $ on the very last line.......which is after ?> which doesn't exsist
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 04:38 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.12259 seconds
  • Memory Usage 2,312KB
  • Queries Executed 25 (?)
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
  • (5)bbcode_code
  • (4)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
  • (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