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)

sv1cec 12-28-2004 06:24 PM

Quote:

Originally Posted by Delphiprogrammi
hi,

it's me again :D i managed to fix the database crash by running the follwwing SQL query

Code:

ALTER TABLE vb_3userban add column 'reason' char(3) after bandate
but i'm not sure if it's correct can you tell me ?????? :speechless:

That's because you were not running the latest version before version 3.0.

In version 2.3.4, there was a query:

ALTER TABLE `".TABLE_PREFIX."userban` ADD COLUMN `reason` mediumtext

So, now drop the reason you have inserted and add the proper reason, char(3) is not enough.

Rgds

sv1cec 12-28-2004 06:25 PM

Quote:

Originally Posted by Curzon564
The new sort feature rocks.
Thanks for the new version of this hack.

Everything works fine so far.


Thank you Sir!

I have to admit, it gave me some headache to implement it, but thanks to a helpful soul here, Dean C, I got it working fine. And yes, I think that it is a cool feature too, it can provide you with so much information, just with the click of a button.

One other thing that the new version has, and which I really like, is that the routines which do the warning and then send the messages, are in one place now. So, if I want to add an automatic warning somewhere else, all I have to do, is call the routines (now they are ... functions), with the proper parameters. That was the reason why you had to remove the large chunk of code from editpost.php, newreply.php, private.php etc. It makes the code so much easier to maintain.

Rgds

TRStealth 12-28-2004 07:23 PM

I keep getting this error when I try to run the query to update from 2.5 -> 3.0

An error occurred while attempting to execute your query. The following information was returned.
error number: 1103
error desc: Incorrect table name '".TABLE_PREFIX."warning_options'

Delphiprogrammi 12-28-2004 07:58 PM

Quote:

Originally Posted by sv1cec
That's because you were not running the latest version before version 3.0.

In version 2.3.4, there was a query:

ALTER TABLE `".TABLE_PREFIX."userban` ADD COLUMN `reason` mediumtext

So, now drop the reason you have inserted and add the proper reason, char(3) is not enough.

Rgds

that worked fine thank you !! allis working now except the automatic pm feature if a user posts something and that post contains censored words (a pm is not sended althrough i enabled this) and i have cencored words defined but that isn't so bad i always can do this myself

happy holidays John !! :smoke:

Fibe 12-28-2004 08:16 PM

Something has gone wrong or i missed something.

I had Zero Tolerance warning hack 1.5. So I only followed the instructions from WarningSystemInstallationInstructions.txt and the upgrade_warn.php file ran without any error now though:
  • In admincp I have 2 tabs: Warning Systems and the old warning Options.
  • Clicking on "View Warning Logs" results in: Could not find phrase 'no_warnings_found'.
  • "View Banned users" results in:
    Quote:

    Database error in vBulletin 3.0.3:

    Invalid SQL:
    SELECT user.userid, user.username, user.usergroupid AS busergroupid,
    userban.usergroupid AS ousergroupid, userban.reason AS reason,
    IF(userban.displaygroupid = 0, userban.usergroupid, userban.displaygroupid) AS odisplaygroupid,
    bandate, liftdate,
    adminuser.userid AS adminid, adminuser.username AS adminname
    FROM user AS user
    LEFT JOIN userban AS userban ON(userban.userid = user.userid)
    LEFT JOIN user AS adminuser ON(adminuser.userid = userban.adminid)
    WHERE user.usergroupid IN(8)
    ORDER BY userban.liftdate ASC, user.username

    mysql error: Unknown column 'userban.reason' in 'field list'

    mysql error number: 1054
  • And finally when clicking on "view warnings" inside someones posts I get an empty white screen.

So did i miss anything? or just messed up hardcore and should retry ?

Torqued 12-28-2004 11:06 PM

John,

I had v1.3 installed. I ran the uninstaller, and removed the file changes manually. When trying to run the installer for 3.0, I'm getting the following:

Parse error: parse error, unexpected T_STRING in /home/mydomain/public_html/forums/admincp/install_warn.php on line 285

edited to add:

I think I fixed it:

I found this in the install_warn.php file:

Quote:

$DB_site->query("
INSERT INTO `".TABLE_PREFIX."phrase` (languageid, varname, text, phrasetypeid) VALUES (0, 'warning_nremoved', 'The selected warning was not totally removed.', 9000)");
INSERT INTO `".TABLE_PREFIX."phrase` (languageid, varname, text, phrasetypeid) VALUES (0, 'warning_banliftcancelled', 'Unban User Cancelled.', 9000)");
and changed it to this:

Quote:

$DB_site->query("
INSERT INTO `".TABLE_PREFIX."phrase` (languageid, varname, text, phrasetypeid) VALUES (0, 'warning_nremoved', 'The selected warning was not totally removed.', 9000)");
$DB_site->query("
INSERT INTO `".TABLE_PREFIX."phrase` (languageid, varname, text, phrasetypeid) VALUES (0, 'warning_banliftcancelled', 'Unban User Cancelled.', 9000)");
It looks like the $DB_site->query(" was missing. After making that change, the install_warn.php completed successfully. Just have to do the file/template edits now.

Curzon564 12-28-2004 11:18 PM

Quote:

"View Banned users" results in:
Quote:
Database error in vBulletin 3.0.3:

Invalid SQL:
SELECT user.userid, user.username, user.usergroupid AS busergroupid,
userban.usergroupid AS ousergroupid, userban.reason AS reason,
IF(userban.displaygroupid = 0, userban.usergroupid, userban.displaygroupid) AS odisplaygroupid,
bandate, liftdate,
adminuser.userid AS adminid, adminuser.username AS adminname
FROM user AS user
LEFT JOIN userban AS userban ON(userban.userid = user.userid)
LEFT JOIN user AS adminuser ON(adminuser.userid = userban.adminid)
WHERE user.usergroupid IN(8)
ORDER BY userban.liftdate ASC, user.username

mysql error: Unknown column 'userban.reason' in 'field list'

mysql error number: 1054
Check if there is a "reason" field in the userban table. If it isn't there look here . That should fix it.

Quote:

And finally when clicking on "view warnings" inside someones posts I get an empty white screen.
Seems as if there are one ore more templates missing.

Torqued 12-28-2004 11:24 PM

Also, in the current .zip file, it looks like the functions_warning.php, install_warn.php, and mod_warn.php are not in the correct directories in the zip file. There are no files in the /uploads/modcp folder in the zip.

edited to add:

John,

I got AWS v3.0 installed and it seems to be working so far... still have to work through testing a few more things..

Torqued 12-29-2004 01:05 AM

A question for those using this hack:

What sorts of things are you guys setting up warnings for?

skinny 12-29-2004 02:07 AM

I want to install this tonight, from fresh. Can we have confirmation that the files are correct in he latest zip. Having mod_warn outside the modcp folder seems wrong.


All times are GMT. The time now is 09:13 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.01547 seconds
  • Memory Usage 1,756KB
  • 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
  • (1)bbcode_code_printable
  • (8)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