vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Advanced Warning System (Beta Version) (https://vborg.vbsupport.ru/showthread.php?t=95921)

Andreas 09-21-2005 11:04 PM

Which Problems, and where exactly did you get the error from Post #166?

Xplorer4x4 09-21-2005 11:14 PM

Yes and post 169. Thanks for the help Kirby.

Andreas 09-21-2005 11:21 PM

I can't help if you don't answer my questions ...

1) Where exactly did you get the errors you described in Posts #166 and #169?

2) Which "user editing" Problems do you have?

Xplorer4x4 09-21-2005 11:57 PM

1)
A)(Post #166)When i warned my friend to test the hack i get this error when i try to remove or Completley remove the warning: 404 Error

B)(Post 169)And then I get this error(Invalid User ID) when trying to use the non post related warning function.

2)I could have been clear on the user editing part. I can not save after making any changes to a user due to a DB error.

Kirk Y 09-22-2005 01:19 AM

If the comment for a warning has quotation marks in it, they'll be displayed as " when a message regarding the warning is posted.

EdQ 09-22-2005 02:14 AM

Quote:

Originally Posted by Chad F.
When I try to delete a warning type it says "Unable To Find Warning Type [ Go Back ]"

Same issue

Quote:

Unable To Find Warning Type [ Go Back ]

sv1cec 09-22-2005 03:42 AM

OK, I checked the admin_warn.php code again. It looks as if I have forgotten some code, which is now required by vB.

Try this and let me know if it works:

In admin_warn.php find:

Code:

// ###################### Delete Warn Type #######################
if($_GET['act']=="delete")
{
       
        print_cp_header("Advanced Warning System Version {$AWS_VERSION}");
        if(!$warn=$db->query_first("select * from ".TABLE_PREFIX."warning_types where tid='{$_GET['tid']}'"))
        {
                echo "Unable To Find Warning Type [ <a href='javascript:history.go(-1);'>Go Back</a> ]";
                exit;
        }

Replace that with:

Code:

// ###################### Delete Warn Type #######################
if($_GET['act']=="delete")
{
                $vbulletin->input->clean_array_gpc('g', array(
                'tid'=> TYPE_INT,
                'warn_name'=> TYPE_STR,
                'warn_desc'=> TYPE_STR,
                'warn_points'=> TYPE_INT,
                'warn_maturity'=> TYPE_INT,
                'warn_permban'=> TYPE_STR,
                'warn_type'=> TYPE_STR,
                'warn_alert'=> TYPE_STR,
                'warn_alertcomment'=> TYPE_STR,
        ));
        print_cp_header("Advanced Warning System Version {$AWS_VERSION}");
        if(!$warn=$db->query_first("select * from ".TABLE_PREFIX."warning_types where tid=tid='{$vbulletin->GPC['tid']}'"))
        {
                echo "Unable To Find Warning Type [ <a href='javascript:history.go(-1);'>Go Back</a> ]";
                exit;
        }

Let me know if this solves the issue of deleting a warning type.

Xplorer4x4 09-22-2005 03:49 AM

*goes to test* and ummm it seems that I can now save any edits to users without getting a DB error. I have no idea how that worked itself out:ermm:

EDIT:No that did not fix the issue with removeing a warning TYPE.

Hehe i thought this was the fix to remove warnings from a user. :(

EdQ 09-22-2005 04:25 AM

Does not work.

Andreas 09-22-2005 04:31 AM

Quote:

Originally Posted by Xplorer4x4
1)
A)(Post #166)When i warned my friend to test the hack i get this error when i try to remove or Completley remove the warning: 404 Error

B)(Post 169)And then I get this error(Invalid User ID) when trying to use the non post related warning function.

2)I could have been clear on the user editing part. I can not save after making any changes to a user due to a DB error.

I still don't know where you get these errors :(
Please tell me exactly where you get them, eg.
- Which PHP File
- Where do I have to click
- What do I have to enter.

Thank you.

@acidburn0520
Gonna take a look at that.


All times are GMT. The time now is 07:18 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.01933 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete