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)

Delphiprogrammi 03-07-2006 04:43 PM

Quote:

Originally Posted by sv1cec
That's the worst possible solution, it will require people to alter their existing tables. Neah, I'll give it some more thought when I get some more time. In the mean time, nobody is telling me if the Automatic Warnings are working OK now.

told you it was a dirty solution....Well i'm playing with your debug code.Didn't tested he automatic warnings yet (with the new files) will do that later on now i'm just annoyed that bloody variable isn't passed

sv1cec 03-07-2006 05:15 PM

Welcome to the club, that makes two of us (being frustrated with the bloody ban parameter).

Delphiprogrammi 03-07-2006 06:49 PM

hi,

interesting

PHP Code:

echo "BAN: ";
    if(
$vbulletin->GPC_exists['ban'])
    {
        echo(
$_GET['ban']);
    } 

so the ban variable if for some odd reason not passed going to leave it alone for a while or i throw my computer through the window

sv1cec 03-07-2006 07:41 PM

I tried every trick I knew, and then some I invented at that time, nothing. No way I can pass the ban variable! It's insane.

Delphiprogrammi 03-08-2006 08:29 AM

Quote:

Originally Posted by sv1cec
I tried every trick I knew, and then some I invented at that time, nothing. No way I can pass the ban variable! It's insane.

https://vborg.vbsupport.ru/showthread.php?t=109810

i've asked for help here :speechless:

Delphiprogrammi 03-08-2006 04:19 PM

John,

i've solved that problem with the ban parameter.All parameters are now being returned as it should

other people do not use this file it will mess up your AWS installation

all i did was change the 'p' to 'g' (two times) in the $vbulletin->clean_array_gpc() calls and that did it don't ask me why through :ermm:

Also John automatic warnings do not work for me.I've enabled that options defined the hidden warner and the warning_type ObsceneWords set to Auth

they work fine in pm's but not in threads / posts

Delphiprogrammi 03-10-2006 02:34 PM

John,

Don't ask me how i did that but i've managed to write an admin_warn.php file with ALL parameters passed and they have the correct value.Just tested it and working fine(offcource you can ask me how i did that just kidding about that part) :D

amen

vb 3.5.x rocks :d:)

sv1cec 03-10-2006 02:41 PM

Let us all know my friend and do post that file here, so I can have a look. I am almost sure I've screwed somewhere in the code, but don't say that to anyone. :p

Delphiprogrammi 03-10-2006 03:08 PM

Quote:

Originally Posted by sv1cec
Let us all know my friend and do post that file here, so I can have a look. I am almost sure I've screwed somewhere in the code, but don't say that to anyone. :p

Well John I hate half work.When something doesn't work as it should (or as exspected)i want to know why.So i've look at the html source vb produces and you will see that for the normal warn remove method the form will be submitted with "do_delete".So what i've did is seperating the code that's responsible for displaying the form and add a method like this

PHP Code:

if($_POST['do'] == "do_delete")
{
//here we go


i used the same procedure for the complete warn remove

PHP Code:

if($_POST['do'] == "do_completedelete")
{
//here we go


i think the reason why it didn't work as we exspected because you would need multiple clean_array_gpc() calls by seperating both procedures (form display and the PHP to parse it) we tell vb what todo and when todo it.About screwing up well so did i in the first place.But here's a little tip.On your development board turn on vb's debug code.why ? well if you hover your mouse over the submit button row on forms vb will show you the parameters which are hidden along with there value this way you do not need special coding to track it.Enabling debug mode is easy in "/includes/config.php" add

PHP Code:

$config['Misc']['debug'] = true

this has to bet set in the config.php but i believe there's a plugin here somewhere that allows you to switch it.here's that plugin

that's how i did it now John don't shoot me if something i did is wrong :p the file is attached

sinaluna 03-10-2006 04:10 PM

Is there anyway to allow admin/mods to input the points and maturity numbers on the fly? Instead of having it hard coded?

Not all "conduct" infractions are created equal for instance. I'm having a hard time coming up with a system that is flexible.

Thanks.


All times are GMT. The time now is 06:27 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.02917 seconds
  • Memory Usage 1,750KB
  • 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
  • (4)bbcode_php_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