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)

jluerken 01-11-2005 04:35 PM

Hi,

I upgraded to 3.0.8 and have two questions.

1.

In the user section in the admincp I have now two different links with the same name and output. See attachment. Can I delete one or are they really different?

2.

I entered a lot of censored words but still the users don't get warned automatically when using them. sv1cec do you think you'll find time to take a look at this at my board next days?

Kind regards
jluerken

sv1cec 01-11-2005 05:45 PM

Quote:

Originally Posted by jluerken
Hi,

I upgraded to 3.0.8 and have two questions.

1.

In the user section in the admincp I have now two different links with the same name and output. See attachment. Can I delete one or are they really different?

2.

I entered a lot of censored words but still the users don't get warned automatically when using them. sv1cec do you think you'll find time to take a look at this at my board next days?

Kind regards
jluerken

On issue 1, yes, the first line can be deleted. The code for the two buttons is the one I have in the UpgradeToLatestVersion.txt file.

PHP Code:

print_description_row("<center><a href=\"../Warn.php?$session[sessionurl]do=WarnUserNoPost&return=user&id=$userid\"><img src=\"../images/misc/warnuser.gif\" border='0'></a>&nbsp;<a href=\"admin_warn.php?act=do_finduserwarnings&userid=$userid\"  onclick=\"window.open('admin_warn.php?act=do_finduserwarnings&userid=$userid','','width=1024, height=500, resizable=yes, scrollbars=yes'); return false;\" target=\"_blank\"><img src=\"../images/misc/viewuserwarnings.gif\" border='0'></a></center>"); 

On the second issue, in order for the automatic warnings to work you have to have defined:

- censored words
- set the automatic warnings for posts to 'yes'
- define an automatic warner
- define a warning type called 'ObsceneWords' and charaterize it as automatic

If one of them is not done, the warnings cannot be issued. If you have done all these and you still have problems, I can have a look at your site and try to figure out what's the problem.

Rgds

rinkrat 01-11-2005 05:51 PM

OK it looks like it worked!! Thanks so much for taking the time to see this through and for the prompt replies. This is part of what makes VB so cool is the great community. You rule!

Oh yeah, after I get the success message it gets forwarded to the wrong address

"The requested URL /admincp/user.php was not found on this server."

It's actually in /bbs/admincp/user.php Where can I fix this?

jluerken 01-11-2005 05:59 PM

Quote:

Originally Posted by sv1cec
- define a warning type called 'ObsceneWords' and charaterize it as automatic

I did not had this in my installation.
I will add it an test this in the next days.

Thanks for the fast feedback.

One more question.

I have only one cron called: delete_old_warnings in my sheduled task folder but in the cron folder of 3.0.8 there are two files called kill_bans.php and kill.warns.php.

Do I have forgotten to add a second sheduled job?

sv1cec 01-11-2005 06:09 PM

Quote:

Originally Posted by jluerken
I did not had this in my installation.
I will add it an test this in the next days.

Thanks for the fast feedback.

One more question.

I have only one cron called: delete_old_warnings in my sheduled task folder but in the cron folder of 3.0.8 there are two files called kill_bans.php and kill.warns.php.

Do I have forgotten to add a second sheduled job?

Yes, the kill_bans is used to kill bans which expire, from the user account. See the related Option, on Bans Maturity. If you do not plan to use that, no need to install it.

sv1cec 01-11-2005 06:11 PM

Quote:

Originally Posted by rinkrat
OK it looks like it worked!! Thanks so much for taking the time to see this through and for the prompt replies. This is part of what makes VB so cool is the great community. You rule!

Oh yeah, after I get the success message it gets forwarded to the wrong address

"The requested URL /admincp/user.php was not found on this server."

It's actually in /bbs/admincp/user.php Where can I fix this?

First of all, I do not remember what you are trying to do. Please remind me. I mean after all these posts, I do not remember what you were doing when you got the error, so let me know.

Also, what is your $vboptions[bburl] ?

rinkrat 01-11-2005 07:05 PM

Quote:

Originally Posted by sv1cec
First of all, I do not remember what you are trying to do. Please remind me. I mean after all these posts, I do not remember what you were doing when you got the error, so let me know.

Also, what is your $vboptions[bburl] ?


When I am in Admincp and issue a warning I get the success message "You have issued a warning" or whatever, then I'm forwarded to /admincp/user.php instead of /bbs/admincp/user.php (the correct location of bbs root is /bbs/).

Torqued 01-12-2005 12:57 AM

John,

I found a small typo in the instructions for 3.0.7 -> 3.0.8:

For the code after // ########################## REQUIRE BACK-END :

in this code:

Quote:

else
{
$DB_site->reporterror = 1;
$warn_opts=$DB_site->query_first("select * from ".TABLE_PREFIX." warning_options where oid='1'");
$aws='1';
}
There is an extra space between ".TABLE_PREFIX." and warning_options

Instead of ".TABLE_PREFIX." warning_options

Should be ".TABLE_PREFIX."warning_options

I was getting an error when trying to access my AdminCP before I fixed this.

edited to add:

Also, it is not saving my options when I click on "Update Warning Options"

:(

I had initially installed up to 3.0.3, so I ran the uninstaller script, uploaded the 3.0.8 files, then the 3.0.8 installer script, and then did the file edits for 3.0.3 -> 3.0.8. I figured that would be quicker/easier than all of the manual table/template edits. :D

I'm also getting "Warning: Division by zero in /admincpanel/admin_warn.php on line 672" when trying to view "Statistics - Warnings per user" via the admincp.

and "Warning: Division by zero in /admincpanel/admin_warn.php on line 1889"
when trying to view "Statistics - Bans per User" via the admincp

sv1cec 01-12-2005 04:03 AM

Rinkrat

OK, edit your Warn.php file and search for :

PHP Code:

$url="/$admincpdir/user.php?do=edit&userid={$_POST['id']}"

Replace that with:

PHP Code:

$url="$vboptions[bburl]/$admincpdir/user.php?do=edit&userid={$_POST['id']}"

rgds

sv1cec 01-12-2005 04:44 AM

Quote:

Originally Posted by Torqued
John,

I found a small typo in the instructions for 3.0.7 -> 3.0.8:

For the code after // ########################## REQUIRE BACK-END :

in this code:



There is an extra space between ".TABLE_PREFIX." and warning_options

Instead of ".TABLE_PREFIX." warning_options

Should be ".TABLE_PREFIX."warning_options

I was getting an error when trying to access my AdminCP before I fixed this.

edited to add:

Also, it is not saving my options when I click on "Update Warning Options"

:(

I had initially installed up to 3.0.3, so I ran the uninstaller script, uploaded the 3.0.8 files, then the 3.0.8 installer script, and then did the file edits for 3.0.3 -> 3.0.8. I figured that would be quicker/easier than all of the manual table/template edits. :D

I'm also getting "Warning: Division by zero in /admincpanel/admin_warn.php on line 672" when trying to view "Statistics - Warnings per user" via the admincp.

and "Warning: Division by zero in /admincpanel/admin_warn.php on line 1889"
when trying to view "Statistics - Bans per User" via the admincp

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


All times are GMT. The time now is 03:23 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.02178 seconds
  • Memory Usage 1,767KB
  • 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_php_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