vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Advanced Warning System (AWS) (https://vborg.vbsupport.ru/showthread.php?t=71992)

sifuhall 01-12-2005 11:23 AM

I just installed the latest version (upgraded from zero tolerance's version, boy has this hack grown!) and somehow I ended up without any warnng templates at all!

In the admincp everthing seems to be working, but when I try to issue a warning all I get is a blank page. That is when I noticed I do not have any templates that begin with 'warn'.

Torqued 01-12-2005 11:45 AM

Quote:

Originally Posted by sifuhall
I just installed the latest version (upgraded from zero tolerance's version, boy has this hack grown!) and somehow I ended up without any warnng templates at all!

In the admincp everthing seems to be working, but when I try to issue a warning all I get is a blank page. That is when I noticed I do not have any templates that begin with 'warn'.

Is your default style a child style?

Torqued 01-12-2005 11:52 AM

Quote:

Originally Posted by sv1cec
Torqued,

Space thingy, you are right, some stupid editor must have brought that in, sorry I'll correct that.

Saving the warning options? Does it come up with any message? It's wierd, 'cause it works fine in both my test site and in the production one. Try downloading the zip again and upload the admin_warn.php to your server's admincp directory.

The two division by zero errors you get, are because the warning_options are not saved and the program tries to divide by the number of lines per page, the last field in the warning_options, which is zero, since the value you entered didn't get saved.

Try what I suggested and come back to me.

Rgds

Ok. did the above.. here is what happens:

I set all my warning options and click on Update Warning Options.. It then takes me to the next screen that says:

Your Warning System menu has been modified.
AdminCP will be reloaded.
Your AWS Options have been updated.

When it refreshes and I go back into warning options, none of my options have been saved.. :(

sv1cec 01-12-2005 11:55 AM

Quote:

Originally Posted by sifuhall
I just installed the latest version (upgraded from zero tolerance's version, boy has this hack grown!) and somehow I ended up without any warnng templates at all!

In the admincp everthing seems to be working, but when I try to issue a warning all I get is a blank page. That is when I noticed I do not have any templates that begin with 'warn'.

Yes you do, but if you followed the installation instructions, all the warn templates are now in a section called "Advanced Warning System Templates" which is towards the bottom of your template list. Open that, and you will get all your templates collected in one place.

As for the blank page, could you please be more specific? Where are you trying to warn from? There are several places you can issue a warning now, from a post, from a user's public profile (non-post-related) and for AdminCP itself (again, non-post-related).

Also what Torqued said, is that your default style?

sv1cec 01-12-2005 12:13 PM

Quote:

Originally Posted by Torqued
Ok. did the above.. here is what happens:

I set all my warning options and click on Update Warning Options.. It then takes me to the next screen that says:

Your Warning System menu has been modified.
AdminCP will be reloaded.
Your AWS Options have been updated.

When it refreshes and I go back into warning options, none of my options have been saved.. :(

Strange! Can you please tell me what options do you set? I might have find an issue with the messages that are shown after the saving, but the saving itself shouldn't have any problem.

sv1cec 01-12-2005 12:28 PM

Torqued,

I am checking the saving routine and I can find no reason why the options are not saved. If you check the file admin_warn.php, at the section called 'do_update_warnopt', you will see that there is no way that the options cannot be saved. A couple of checks in the ifs and then a update.

Doesn't make sense, unless something is wrong in the setup of your forums or your database.

I did find a small problem with a } in that routine, which prevented the correct return of the program to the Options screen or the AdminCP index, but that is after the insert query.

Please tell me the options you are using, so that I can duplicate your scenario. If you want, you may download the new zip, I changed the position of that bracket, but I know this is not what causes your problem.

Delphiprogrammi 01-12-2005 12:41 PM

sv1cec,

i'm having SQL errors when i try to view "view banned users" in my admincp also i noticed AWS is not showing the version number anymore it just shows 'advanced warning system version (this is empty)'

Code:

Database error in vBulletin 3.0.5:

Invalid SQL: select b.*, u.*, a.username AS warner, w.*, wt.*  from vb3_ban_dates as b
LEFT JOIN vb3_user AS u ON(u.userid = b.banned_user)
LEFT JOIN vb3_user AS a ON(a.userid = b.banned_by)
LEFT JOIN vb3_warnings AS w ON(w.wid = b.banned_warning)
LEFT JOIN vb3_warning_types AS wt ON(wt.tid = w.warned_warning_id)
ORDER BY b.banned_user, b.banned_ban LIMIT 0,
mysql error: You have an error in your SQL syntax near '' at line 6

mysql error number: 1064
script admin_warn.php?act=viewbans

now i'm totally stucked

regards

Omikaru 01-12-2005 12:43 PM

I'm having the same problem as Torqued.

But I've also got a few more:

I cannot warn people for post-related offences but they can be warned outside of that. I did the templates as your instructions told me.

Also, I cannot save the warn options. No matter what settings I put, it won't save.

I installed it just as your instructions said, so there shouldn't be a problem.

By the way, I'm using 3.0.5.

sv1cec 01-12-2005 01:00 PM

Quote:

Originally Posted by Delphiprogrammi
sv1cec,

i'm having SQL errors when i try to view "view banned users" in my admincp also i noticed AWS is not showing the version number anymore it just shows 'advanced warning system version (this is empty)'

Code:

Database error in vBulletin 3.0.5:

Invalid SQL: select b.*, u.*, a.username AS warner, w.*, wt.*  from vb3_ban_dates as b
LEFT JOIN vb3_user AS u ON(u.userid = b.banned_user)
LEFT JOIN vb3_user AS a ON(a.userid = b.banned_by)
LEFT JOIN vb3_warnings AS w ON(w.wid = b.banned_warning)
LEFT JOIN vb3_warning_types AS wt ON(wt.tid = w.warned_warning_id)
ORDER BY b.banned_user, b.banned_ban LIMIT 0,
mysql error: You have an error in your SQL syntax near '' at line 6

mysql error number: 1064
script admin_warn.php?act=viewbans

now i'm totally stucked

regards

Delphi, did you enter a number of warnings per page, when viewing logs?

Your error is because the program cannot find how many lines per page to show.

Maybe you too have the same problem with the saving???

I am totally confused with this issue.

As for the Version number, did you run the query which updates that to the latest version number, when you upgraded?

Torqued 01-12-2005 01:04 PM

Quote:

Originally Posted by sv1cec
Torqued,

I am checking the saving routine and I can find no reason why the options are not saved. If you check the file admin_warn.php, at the section called 'do_update_warnopt', you will see that there is no way that the options cannot be saved. A couple of checks in the ifs and then a update.

Doesn't make sense, unless something is wrong in the setup of your forums or your database.

I did find a small problem with a } in that routine, which prevented the correct return of the program to the Options screen or the AdminCP index, but that is after the insert query.

Please tell me the options you are using, so that I can duplicate your scenario. If you want, you may download the new zip, I changed the position of that bracket, but I know this is not what causes your problem.

Here are the options I am trying to save:

Quote:

Use Hierarchical Schema? YES

Protected Usergroups [blank]

Maintain Historical Records? YES

Allow Non-Post-Related Warnings? YES

Allow multiple warnings for the same post? NO

Automation Options
Use Automatic Warnings from Posts? NO

Use Automatic Warnings from Private Messages? NO

Use Warning Type Description, as moderator comment, in Post-Related warnings? YES

Viewing Options
Who can view the Warning Points and bans? MGM

Warners
Who will be your Automatic Warner? 1

Use a Hidden Warner? 1

User ID of the Collector of disputes? 1

Banning Options
Ban Duration 3

Warning Points Limit 10

Warnings Number Limit 10

Banned Usergroup Banned Users

Permanent Ban Usergroup Banned Users

Restore Usergroup Previous Group

Use incremental banning periods? NO

Number of bans, before permanent banned? 3

Bans Maturity Period 180

Member Notification Options
Send PM to the warned member? YES

Send E-mail to the warned member? YES

Send E-mail to the banned members? YES

Warning Reports Options
Number of warnings per page, when viewing logs? 30


All times are GMT. The time now is 11:26 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.02196 seconds
  • Memory Usage 1,763KB
  • 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
  • (7)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