Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > Advanced Warning System (AWS)
FAQ Community Calendar Today's Posts Search

Closed Thread
 
Thread Tools
i found a bug Details »»
i found a bug
Version: , by Delphiprogrammi Delphiprogrammi is offline
Developer Last Online: Aug 2015 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 02-19-2005 Last Update: Never Installs: 0
 
No support by the author.

hi,

in the admincp if you try to add a warning type aws doesn't check if the forum is properly filled in and the warning type just get added with blank fields (and 0 for numerical values) this is a small problem and doesn't reaaly affect the operation of the hack but John if you got 10 times off time please fix that

Show Your Support

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

Comments
  #2  
Old 02-20-2005, 11:20 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Delphiprogrammi
hi,

in the admincp if you try to add a warning type aws doesn't check if the forum is properly filled in and the warning type just get added with blank fields (and 0 for numerical values) this is a small problem and doesn't reaaly affect the operation of the hack but John if you got 10 times off time please fix that
Delphi,

This is in AdminCP. If an admin enters nothing, or enters stupid values, it is his fault. I agree with you that checks are better than no checks, but if I start checking everything, then programming those checks will eat up all my time. Maybe if I get some free time, I'll add those checks.

Rgds
  #3  
Old 02-21-2005, 10:59 AM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi John,

i added a few checks myself if the warningtypename description or points is empty an error message is displayed that was quite simple one small code edit and three new phrases the rest of the form cannot be left as it is cause those are personal choices and always have a value ...
Attached Files
File Type: (21.3 KB, 12 views)
  #4  
Old 02-21-2005, 11:48 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Delphiprogrammi
hi John,

i added a few checks myself if the warningtypename description or points is empty an error message is displayed that was quite simple one small code edit and three new phrases the rest of the form cannot be left as it is cause those are personal choices and always have a value ...
Delphi,

If you keep up like that, at the end you will be able to write your own AWS! That's how I started with ZT's hack and see where I end up with.

LoL, Good work my friend.

I'll have a new version out today or tomorrow, with a couple of new additions, like the ability to define a cut-off point, after which the user's signature or avatar will not show, if he has exceeded that limit of warning points.

Stay tuned.
  #5  
Old 02-23-2005, 01:42 PM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi,

if anybody wants it .Here's howto do that.In the file /admincp/admin_warn.php
find this code

PHP Code:
if ($warn_opts['allowoffpost']=='No' AND $_POST['warn_type']=='No')
    {
        
define('CP_REDIRECT''admin_warn.php?act=view');
        
print_stop_message('warning_warn_typeconflict');
    } 
below that add

PHP Code:
if(empty($_POST['warn_name']) OR $_POST['warn_name'] == '')
    {
        
print_stop_message('warning_warn_emptywarntype');
    }
    if(empty(
$_POST['warn_desc']) OR $_POST['warn_desc'] == '')
    {
        
print_stop_message('warning_warn_emptydesc');
    }
    if(empty(
$_POST['warn_points']) OR $_POST['warn_points'] == '')
    {
        
print_stop_message('warning_warn_emptypoints');
    }
    if(empty(
$_POST['warn_maturity']) OR $_POST['warn_maturity'])
    {
        
print_stop_message('warning_warn_maturity');
    } 
create 4 new phrases named as in the print_stop_message() call

in your admincp you cando this with the phrasemanager
like this

1)type = controlpanel stop message
varname=warning_warn_emptywarntype
text=Please provide a proper name for the warning type
2)type control panel stop message
varname=warning_warn_emptydesc
text = please provide a proper description for the warningtype
3)type = control panel stop message
varname=warning_warn_emptypoints
text=please provide proper points for the warning type
4) type=control panel stop message
varname=warning_warn_maturity
text=please provide a proper maturity for the warning type

that's it easy...
  #6  
Old 02-23-2005, 06:32 PM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Delphiprogrammi
hi,

if anybody wants it .Here's howto do that.In the file /admincp/admin_warn.php
find this code

PHP Code:
if ($warn_opts['allowoffpost']=='No' AND $_POST['warn_type']=='No')
    {
        
define('CP_REDIRECT''admin_warn.php?act=view');
        
print_stop_message('warning_warn_typeconflict');
    } 
below that add

PHP Code:
if(empty($_POST['warn_name']) OR $_POST['warn_name'] == '')
    {
        
print_stop_message('warning_warn_emptywarntype');
    }
    if(empty(
$_POST['warn_desc']) OR $_POST['warn_desc'] == '')
    {
        
print_stop_message('warning_warn_emptydesc');
    }
    if(empty(
$_POST['warn_points']) OR $_POST['warn_points'] == '')
    {
        
print_stop_message('warning_warn_emptypoints');
    }
    if(empty(
$_POST['warn_maturity']) OR $_POST['warn_maturity'])
    {
        
print_stop_message('warning_warn_maturity');
    } 
create 4 new phrases named as in the print_stop_message() call

that's it easy ...
If you are doing the good thing, do it complete, list the phrases as well.

Rgds
  #7  
Old 02-23-2005, 06:45 PM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sv1cec
If you are doing the good thing, do it complete, list the phrases as well.

Rgds
post updated with the phrases :up:
  #8  
Old 02-24-2005, 08:18 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good work Delphi, I added those phrases to the installation instructions.

Rgds
Closed Thread


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 05:16 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.05509 seconds
  • Memory Usage 2,304KB
  • Queries Executed 22 (?)
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
  • (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
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (1)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)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
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete