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
Warnings System Hack v1.0 Details »»
Warnings System Hack v1.0
Version: 1.00, by g-force2k2 g-force2k2 is offline
Developer Last Online: May 2008 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 08-30-2002 Last Update: Never Installs: 61
 
No support by the author.

Please Notice Warnings System Hack v2.0 has been released.
View Thread Here

Yeah i promised a release of this one... its pretty self explanatory... its a warning system devised to help keep forums more secure... allows a new way for moderators to ban users...

First off big thanks to GoldKnight for helping me square thing away again and for beta testing

Edit: See quick update [ Here ] for a quick template fix thanks to mulimum regards

Features?
Config Features - Warn Config
- includes moderator exemption inclusion of warings by other moderators
- includes special usergroup for banned by warnings
- includes setable warninglvl limit before banning

Warning System ::
- includes the warning tabs on posts for warning members
- includes viewable lists of warnings per each member (postbit)
- also includes viewable lists on getinfo template
- includes auto log of each warning issued
- includes pm feature to send the user being warned a warning notification
- includes auto banning once the user's warninglvl has reached the banlimit

Admin Features -
Admin CP Based Setup ::
- include a log of all warnings that have been given out... includes who warned who and the viewable post that the warning was issued on, as well as the date. (with a page navigation feature)
- includes a list of all the users who have been issued warnings as well as different options of revoking warnings and unbanning users who were banned by warnings...

whew... on to the to do list

What to do?
// ++++++++++++++++++++
Queires to Run (2)
File Modifications (4)
Template Modifications (4)
Templates to Add (15)
Files to Upload (3)

Instructions in the install_warning.php

If you like this hack please click install thanks in advance... regards... and as always enjoy

g-force2k2

Show Your Support

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

Comments
  #142  
Old 09-05-2002, 12:14 AM
ZiRu$'s Avatar
ZiRu$ ZiRu$ is offline
 
Join Date: Jan 2002
Location: Manitoba, Canada
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by g-force2k2
Zirus i'll code up your addon as well once i get home from college :P regards...

g-force2k2
???????? hehe
Reply With Quote
  #143  
Old 09-05-2002, 12:18 AM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

my bad mate... i'll do it now regards...

open admin/functions.php

find:

PHP Code:
        if($bbuserinfo[usergroupid] == OR $bbuserinfo[usergroupid] == OR $bbuserinfo[usergroupid] == 7) {
          
$post[warnings] = "<b>Warning Level:</b> $post[warninglvl]&nbsp;<a href='javascript:showwarnings($post[userid])'>[ View User Warnings ]</a>&nbsp;<a href='javascript:addwarnings($post[postid])'>[ Warn This User ]</a>";
        } else {
          
$post[warnings] = "";
        } 
replace with:

PHP Code:
        if($bbuserinfo[usergroupid] == OR $bbuserinfo[usergroupid] == OR $bbuserinfo[usergroupid] == OR $bbuserinfo[usergroupid] == 99) {
          
$post[warnings] = "<b>Warning Level:</b> $post[warninglvl]&nbsp;<a href='javascript:showwarnings($post[userid])'>[ View User Warnings ]</a>&nbsp;<a href='javascript:addwarnings($post[postid])'>[ Warn This User ]</a>";
        } else {
          
$post[warnings] = "";
        } 
open member.php

find:

PHP Code:
if(($bbuserinfo[usergroupid] == OR $bbuserinfo[usergroupid] == OR $bbuserinfo[usergroupid] == 7) AND ($userinfo[warninglvl] > 0)) {
    eval(
"\$getinfo_warning = \"".gettemplate("getinfo_warning")."\";");
  } else {
    
$getinfo_warning "";
  } 
replace with:

PHP Code:
if(($bbuserinfo[usergroupid] == OR $bbuserinfo[usergroupid] == OR $bbuserinfo[usergroupid] == OR $bbuserinfo[usergroupid] == 99) AND ($userinfo[warninglvl] > 0)) {
    eval(
"\$getinfo_warning = \"".gettemplate("getinfo_warning")."\";");
  } else {
    
$getinfo_warning "";
  } 
And then i'll do the php file right away sorry man... college is >_O btw im working on version 2 it'll be much more versitile... regards...

edit: just upload the new warn.php to the forum directory ... regards again...

g-force2k2
Reply With Quote
  #144  
Old 09-05-2002, 02:46 AM
bonnmac bonnmac is offline
 
Join Date: Mar 2002
Location: United States
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by ryans


Ok I figured it out. Edit function.php and where you made the changes, change "java script" to "javascript". This is done in two place i believe.
Thanks very much! That fixed the problem. Much appreciated
Reply With Quote
  #145  
Old 09-05-2002, 09:44 AM
X-Fan's Avatar
X-Fan X-Fan is offline
 
Join Date: Jan 2002
Location: Adelaide, Australia
Posts: 496
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by g-force2k2
regards hope that works
Looks like it worked indeed, thanks gf!
Reply With Quote
  #146  
Old 09-05-2002, 09:50 AM
thefreestyler thefreestyler is offline
 
Join Date: Mar 2002
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello
I have just installed your lovely hack but when i click on a on view warm for a member who haven't yet any warming the following message appears:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in c:\easyphp\www\public_html\forums\warn.php(32) : eval()'d code on line 1

Can you tell me if its a bug or me who have made mistake

thank you
Reply With Quote
  #147  
Old 09-05-2002, 05:07 PM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thefreestyle can you attach the warn.php file? thanks in advance... i will debug it if necessary... regards...

g-force2k2
Reply With Quote
  #148  
Old 09-05-2002, 05:59 PM
thefreestyler thefreestyler is offline
 
Join Date: Mar 2002
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hy g-force2k2 for the file it's the same as in the zip you have attached may be i have made a mistake when i installed it

please tell me if it works fine for you when a member have no warm and you click on view warm if so i will reinstall
thank you in advance
regards
Reply With Quote
  #149  
Old 09-05-2002, 07:24 PM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not really sure thefreestyler it seems fine on my side? have any idea if you made any changes to the php file? because its saying that there's a parse error with the file... regards...

g-force2k2
Reply With Quote
  #150  
Old 09-06-2002, 09:42 AM
thefreestyler thefreestyler is offline
 
Join Date: Mar 2002
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok thank you for your help i will reinstall it
Reply With Quote
  #151  
Old 09-06-2002, 08:46 PM
Matt87 Matt87 is offline
 
Join Date: Mar 2002
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You say that I can't edit it, that means I can't even modify it to fix the postbit template more nicely?
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 12:23 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.09661 seconds
  • Memory Usage 2,332KB
  • 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
  • (4)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
  • (3)pagenav_pagelink
  • (1)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