Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

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
  #82  
Old 08-20-2003, 10:49 PM
Beorn Beorn is offline
 
Join Date: Jun 2002
Location: Long Island, NY
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The only thing that I can think may be causing it is a few queries running that shouldn't be.

Open global.php. Find:
PHP Code:
if($today $last_warn_update && $WarnOnOff) { 
Add after it, but put in your e-mail address:
PHP Code:
mail("my@emailaddress.com","Updating","Updating warnings at timestamp: ".time()); 
Upload the file, browse your forums for 5 minutes, then reupload the file without that line. If that is where the problem is, you should get a bunch of e-mails. If not, you won't. Let me know what the result is.
Reply With Quote
  #83  
Old 08-22-2003, 05:40 AM
Morgalis Morgalis is offline
 
Join Date: Oct 2002
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
08-15-03 at 01:20 PM Beorn said this in Post #76
I'm not sure what the problem is. Change the while line to the about 20 lines provided in the hacking instructions...
if i am to understand correctly i would change this code

PHP Code:
while ($post=$DB_site->fetch_array($posts) and $counter++<$perpage) { 

  if (
$postdone[$post[postid]]) { 
    
$counter--; 
    continue; 
  } else { 
    
$postdone[$post[postid]]=1
  } 

  
$onlinestat ""
  if((
$post[miserable] == 1) || ($post[stunned] & 4)){ 
    if((
$bbuserinfo[usergroupid] == 5) or ($bbuserinfo[usergroupid] == 6) or ($bbuserinfo[usergroupid] == 7)) { 
      
$onlinestat "$onlinestat<br><font color="red"><b>Miserable User</b></font>"
    } 
  } 
  
$post[posts]="$post[posts]$onlinestat"
to this code?
PHP Code:
// Copyright ? 2003 Michael Benza. All Rights Reserved 
// <a href="http://www.benza.us" target="_blank">[url]http://www.benza.us[/url]</a> 

$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")."";"); 
        }
 
 if (
$postdone[$post[postid]]) { 
    
$counter--; 
    continue; 
  } else { 
    
$postdone[$post[postid]]=1
  } 

  
$onlinestat ""
  if((
$post[miserable] == 1) || ($post[stunned] & 4)){ 
    if((
$bbuserinfo[usergroupid] == 5) or ($bbuserinfo[usergroupid] == 6) or ($bbuserinfo[usergroupid] == 7)) { 
      
$onlinestat "$onlinestat<br><font color="red"><b>Miserable User</b></font>"
    } 
  } 
  
$post[posts]="$post[posts]$onlinestat";
// END WARNING SYSTEM! 
one bracket can mess everything up, i want to be certain i am doing this correct
Reply With Quote
  #84  
Old 08-22-2003, 05:41 AM
Morgalis Morgalis is offline
 
Join Date: Oct 2002
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
08-15-03 at 11:40 AM Morgalis said this in Post #75
youch.. ran into another major problem! o.O

i have commented it all out as i can do without the expiring for the time being

when i add this in following
$header='';
$footer='';
PHP Code:
// ###################### Start Decrease Warning Points ###################### 
i lose my forum style!!

I have vbportal hacked in so this must tie in somewhere.. imagine my surprise when my forums are reverted to the default and no header

i can live without expiring warnings, but i would rather have them

thanks in advance and cheers!

* Morgalis installs.. well most of it anyway

this is still an issue which does not allow me to fully use this back

can you comment on it?
Reply With Quote
  #85  
Old 08-22-2003, 12:42 PM
Beorn Beorn is offline
 
Join Date: Jun 2002
Location: Long Island, NY
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 02:40 AM Morgalis said this in Post #82


one bracket can mess everything up, i want to be certain i am doing this correct [/B]

No, that is not correct. Start with the code you have BEFORE installing the hack. REPLACE the line
PHP Code:
while ($post=$DB_site->fetch_array($posts) and $counter++<$perpage) { 
with the code provided in the instructions.

Quote:
this is still an issue which does not allow me to fully use this back

can you comment on it?
The instructions do not say to add
PHP Code:
$header='';
$footer=''
anywhere. You want to add code after that.
Reply With Quote
  #86  
Old 08-23-2003, 03:01 PM
Morgalis Morgalis is offline
 
Join Date: Oct 2002
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

maybe i have not made myself clear, let me try again

i NEED to keep this code in, as it is part of another hack

PHP Code:
$onlinestat ""
  if((
$post[miserable] == 1) || ($post[stunned] & 4)){ 
    if((
$bbuserinfo[usergroupid] == 5) or ($bbuserinfo[usergroupid] == 6) or ($bbuserinfo[usergroupid] == 7)) { 
      
$onlinestat "$onlinestat<br><font color="red"><b>Miserable User</b></font>"
    } 
I cannot just leave that out or the functionality of another hack will not work

are you saying that all of your code should go before that if statement and to only keep that if statement there?

in respect to adding the code in after this
PHP Code:
$header='';
$footer=''
when i do that, i lose my forum style.. i am not adding that in, i am referring to when i add in the code that is provided

again, i use vbPortal and wonder if that has affected this hack

i'm trying to understand this, it's just a little tricky once you have other hacks involved
Reply With Quote
  #87  
Old 08-24-2003, 10:54 PM
Beorn Beorn is offline
 
Join Date: Jun 2002
Location: Long Island, NY
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please PM me your showthread.php. My e-mail address will be in your inbox...
Reply With Quote
  #88  
Old 08-26-2003, 11:34 PM
Exo's Avatar
Exo Exo is offline
 
Join Date: Nov 2001
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

when will the next version released?
Reply With Quote
  #89  
Old 09-06-2003, 08:51 PM
ciaranirl ciaranirl is offline
 
Join Date: Jul 2003
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do you change the text size in it?
Reply With Quote
  #90  
Old 09-06-2003, 09:48 PM
Beorn Beorn is offline
 
Join Date: Jun 2002
Location: Long Island, NY
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 05:51 PM ciaranirl said this in Post #88
How do you change the text size in it?

Use <smallfont></smallfont> and <normalfont></normalfont> in the templates...
Reply With Quote
  #91  
Old 09-06-2003, 09:53 PM
lasto lasto is offline
 
Join Date: Jan 2002
Posts: 1,514
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can we choose any usergroup to ban em to ?

say i never wanted em to go to total ban but had certain bits of board restricted is this possible
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 04:27 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.04472 seconds
  • Memory Usage 2,350KB
  • 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
  • (9)bbcode_php
  • (5)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