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)

Xplorer4x4 09-19-2005 03:12 AM

Either way the Yahoo Icon was the least of my worries....what about the database error? :-\ I haven't seen anyone else report it.

Anyways thanks all three of you for portin this. Zero's hack for 3.5 is an exact replica of the Invision Free warning sytem. This is much nicer and organized IMO.

Andreas 09-19-2005 03:48 AM

Quote:

Originally Posted by Xplorer4x4
It erassed all the previous warning data.

It for sure does not delete anything - unless you uninstall it.

Well, I can't help you as I don't know what could be going wrong.
Feel fre to send me a PM with an AdminCP account and i'll take a look.

@Chad F.
Confirmed.
Please report this as a Bug so it won't get lost.

eNforce 09-19-2005 08:45 PM

Quote:

Originally Posted by KirbyDE
No, this is currently not possible.
I'll have to check if there is a way to do this for future Versions though.

Just wondering if you have looked into this at all or made progress on it.

(being able to specify which user groups can use the warning system, i only wanted admins and super mods)

Andreas 09-19-2005 10:16 PM

No. As said, i'll might look into this for future Versions but not any time soon.

sv1cec 09-20-2005 02:43 AM

Quote:

Originally Posted by Xplorer4x4
I had an old product version, but still having a database problem when I try to edit a user. I uploaded the new PHP files just to be safe. It does not happen if I disable this hack.

The database errors show that at least two columns, the warnings and the alerts, are missing from your user table. You can manually create them, by running the following query:

Code:

ALTER TABLE `".TABLE_PREFIX."user` add `warnings` int(5) default '0', add `alerts` int(5) default '0'
But I would suggest that you verify that no other columns are missing. These are the columns that AWS adds to your user table.

`warnings` int(5) default '0',
`warning_level` int(15) default '0',
`warning_bans` int(2) default '0',
`alerts` int(5) default '0',

Xplorer4x4 09-20-2005 05:49 AM

Ok well i gave Kirby and Admin acount which I already deleted. Kirby got this instaled but there is still a problem. When i warned my friend to test the hack i get this error when i try to remove or Completley remove the warning:

Not Found

The requested URL /forums//admin_warn.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Thanks again Kirby but how can i remove the warning?

sv1cec 09-20-2005 09:26 AM

admin_warn.php is supposed to be in admincp directory, I do not see it there in the error. Maybe you have not defined it? If I am not mistaken, that is defined in config.php or something.

Xplorer4x4 09-20-2005 05:39 PM

How would I define it? I tried the configuration below:
PHP Code:

 $config['Misc']['admincpdir'] = '/forums/admincp'

And this did not seem to change anything. I tried logging out of my ACP and logging in and this did not resolve it.

Thanks

Xplorer4x4 09-21-2005 12:26 AM

An error has occured, the following message has been left below:

Invalid User ID Input

And then I get this error when trying to use the non post related warning function.

Als note that this was my previous configuration:
PHP Code:

$config['Misc']['admincpdir'] = 'admincp'


Xplorer4x4 09-21-2005 10:37 PM

I know this hack is causing my user editing problem because if i disable the warning hack then it works fine.

Help please? Thanks.

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.

Andreas 09-22-2005 04:40 AM

Fix for "Unable to find Warning Type":

admin_warn.php
FIND
PHP Code:

// ##################### Do Delete Warn Type ######################
if ($_POST['do'] == "do_delete_warn"


BELOW that ADD
PHP Code:

    $vbulletin->input->clean_array_gpc('p', array(
        
'tid' => TYPE_INT,
        
'verify' => TYPE_INT
    
)); 


sv1cec 09-22-2005 04:41 AM

OK guys, the bug which didn't allow you to delete a Warning Type is now fixed. Just download the latest zip file and upload the file admin_warn.php to your web server.

Sorry, my bad.

sv1cec 09-22-2005 04:46 AM

Quote:

Originally Posted by Xplorer4x4
*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

I tried editing a user and I have no problems. Anyone else has this issue?

Andreas 09-22-2005 04:52 AM

Quote:

Originally Posted by acidburn0520
If the comment for a warning has quotation marks in it, they'll be displayed as &quot; when a message regarding the warning is posted.

I don't seem to be able to reproduce this.
Can you tell me exactly which steps are necessary?

Xplorer4x4 09-22-2005 04:53 AM

Quote:

Originally Posted by sv1cec
I tried editing a user and I have no problems. Anyone else has this issue?

So far I have seen no reports of it, BUT as I said aperently it did work its self out. So if I have another problem I will let you know but please do make note of the other errors I have mentioned as this was proabbly one of my favorite hacks for 3.0.X.

It apears that when you make the template mods a view warnings options should apear in the postbit_legacy template like in the hold hack. It doesn;t show up for me, or was that not ported into this hack?

Please note I am using RC3! Just FYI!

Andreas 09-22-2005 05:04 AM

Quote:

Originally Posted by Xplorer4x4
t apears that when you make the template mods a view warnings options should apear in the postbit_legacy template like in the hold hack. It doesn;t show up for me, or was that not ported into this hack?

You mean the Link "View {username}'s Warnings"?
It's there for me.

Xplorer4x4 09-22-2005 05:10 AM

Quote:

Originally Posted by KirbyDE
You mean the Link "View {username}'s Warnings"?
It's there for me.

Yes I see the link to Warn a user but not view there warnings. Also isn;t there suppose to be some sort of warning indicator in the user information around the Instant Message icons?

Again not sure these are observations i Was picking up on from the template edits. Neither of them show up.

Andreas 09-22-2005 05:23 AM

Does show up for me
https://vborg.vbsupport.ru/

Check your Template Edits.

sv1cec 09-22-2005 05:25 AM

Indeed I haven't ported the postbit_legacy template to the new version. KirbyDE can you take care of that, or shall I do it?

Andreas 09-22-2005 05:28 AM

@sv1cec
There are Template Edit instructions in the readme.txt and they seem to work out fine for me on RC3, as shown in the screenshot above.

sv1cec 09-22-2005 05:30 AM

Do they? I didn't check the instructions, I just went to the test site and checked the template. But in your picture, shouldn't there be something like:

Warnings: 1
Warning Points: 10
Bans: 1

or similar?

Andreas 09-22-2005 05:35 AM

Right ... the instructions are a bit misleading.
Gonna clarify them now.

Xplorer4x4 09-22-2005 05:42 AM

None of those template edits are showing up for me. :-\ As i said I notice all of these when I instaled the template mods but they are not showing up for me, but the warn option is. I coppied and pasted your directions EXACTLY so I do not understand why only the warn link shows up.

Just a note I do have two custom edits to my postbit_Legacy template. One of which is I copied the code for the "top" link at the bottomg of the forum to show up next to the post count number. Also edited it to where thread titles do not show up in the posts them selves. Any chance this could intefere with your edits?

Xplorer4x4 09-23-2005 08:18 AM

Ok i reverted my postbit_legacy template. This fixed the fast edit problem I was having(not related to this hack). Seeing as I am using my postbit_legacy option are the postbit edits needed?

I assume i just did my template edits wrong again because they turned out liek this: http://img385.imageshack.us/img385/7...tlegacy3fo.jpg

Kirk Y 09-23-2005 09:21 PM

No, postbit edits aren't needed so long as you're only going to use postbit_legacy.

Kirby or sv1cec, I've got a request. Would it be possible to create a dropdown bar on certain Warning Types? Say for example, I've got a Warning Type called "Spam". Let's say that this user I'm warning spammed a lot, infact he was so bad that I'd like to give him more warning points, than the normal amount. Instead of warning him several times for the same offense, I'd like a little dropdown bar for a Level of Severity. Low, Mild, Severe perhaps? Depending on the selection of this dropdown, the user in question could be given 2, 5, 15, etc... points, instead of the standard amount. It sounds like a good idea and if it's not too hard to implement I'm sure other users could also benefit from it.

sv1cec 09-24-2005 04:27 AM

If this was to be done, it would mean that each warning type no longer carries a fixed points penalty, but a variable one. This is not something easy to implement.

At first approach, it looks as if another field in the warning form, with a "Severity" or "Multiplicity" factor. and then the warning points are multiplied by this factor before being entered in the user's account. However, deep inside, that would require changing the tables, since at this moment, the warning points are not kept in the warnings table, they are read from the Warning Types table, by associating the type of the warning issued with the warning type characteristics.

Why don't you just create some more warning types? For example Spam Level 1, Spam Level 2 and Spam Level "you are out of here"?

Rgds

Kirk Y 09-24-2005 04:41 AM

Yeah I suppose I could just do that, I just figured I'd throw it out here to see what you thought.

sv1cec 09-24-2005 04:59 AM

It's not undoable, but it will mean a complete reorganization of the way warnings are handled. So I do not think it will happen. LoL

Marco van Herwaarden 09-24-2005 11:34 AM

Just installed this on my testboard, and found the following issues while going through setting up (some might already have been reported, didn't check):
- Setting group called Warning Hack, why not Advanced Warning System?
Settings:
- Use Hierarchical Schema?: Why not allow both pre-defined and manual descriptions?
- Use Warning Type Description, as moderator comment, in Post-Related warnings?: Missing description
- Restore Usergroup: What will happen if this is left blank?
- Send E-mail to the warned member?: Description: 'f both the above options are set to Yes, ....'. This is the first setting of this type, so this remark don't make sense.
- Use Buttons for warning links? What options i can put here? Shouldn't this be a dropdown list?
- What can Moderators see in ModCP?: See previous.
- Protected Usergroups (hidden) : Description 'ATTENTION: These are additional groups, to the ones used by the program.' Which are the groups 'used' by the program?
- Super Moderator Usergroups : Wrong description, talking about Administrators instead of (super) Moderators.
- Moderator Usergroups : See previous
- Message Tag. Should this be a textfield where you can enter a tag, instead of yes/no?
- Save copy of Warning Message in a predefined forum? / Forum in which the message will be saved? Can't these 2 be combined? If forumid is given, this option is turned on.

Will post more later if i have time.

sv1cec 09-24-2005 01:18 PM

Quote:

Originally Posted by MarcoH64
- Setting group called Warning Hack, why not Advanced Warning System?

That's what it was initially called, no one bothered to change it.

Quote:

Originally Posted by MarcoH64
- Use Hierarchical Schema?: Why not allow both pre-defined and manual descriptions?

I am not sure if I understand that. Hierarchical means that moderators can warn normal members, super moderators can warn moderators and members, while admins can warn anyone. If hierarchical is set to no, then admins/mods/smods can only warn normal members, not each other.

Quote:

Originally Posted by MarcoH64
- Use Warning Type Description, as moderator comment, in Post-Related warnings?: Missing description

Maybe it was ommited in porting? KirbyDE can you have a look at this?

Quote:

Originally Posted by MarcoH64
- Restore Usergroup: What will happen if this is left blank?

It can't be left blank, you have to select an option from the drop-down menu.

NOW I FIGURE THIS OUT. You are trying to edit the options from the VBulletin Options menus. No, no, at the left of your screen there is a new menu group called "Warning System". Open it up and use the "Manage Warning Options" from that menu.

Sorry, but I think this is included in the instructions, at least it was in the 3.x.x version. Use that menu for anything related to AWS.

Rgds


All times are GMT. The time now is 10:53 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.02080 seconds
  • Memory Usage 1,857KB
  • 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
  • (3)bbcode_code_printable
  • (4)bbcode_php_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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