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 09-11-2005 07:34 PM

Quote:

Originally Posted by sv1cec
Do you have a table pmtext_warned in your database?


Hi John how are you ? still a coffee addict ? :) anyway i had to manually add that table vb3_pmtext_warned now it works fine

Code:

CREATE TABLE vb3_pmtext_warned (
`pmtextid` int(10) unsigned NOT NULL auto_increment,
`fromuserid` int(10) unsigned not null,
`fromusername` varchar(50),
`title` varchar(250),
`before_title` varchar(250),
`message` mediumtext,
`before_message` mediumtext,
`touserarray` mediumtext,
`dateline` int(10) unsigned,
 PRIMARY KEY  (`pmtextid`), key (`fromuserid`)
) TYPE=MyISAM;


Andreas 09-11-2005 07:38 PM

@Delphiprogrammi
There was a slight Typo in the Product Install Code that caused Table pmtext_warned not to be created upon Installation.
But that should be fixed since 1.0.2

aethro 09-12-2005 12:46 PM

Howdy just tried installing it worked like a charm and making new posts works fine however when i go to reply to a post i get this error

Fatal error: Call to a member function on a non-object in /usr/home/**/**/**/includes/class_dm.php(474) : runtime-created function on line 1

Followed the instructions but still dont understand how this error popped up. Any thoughts on this greately appreciated

Andreas 09-12-2005 03:16 PM

I guess you do not run RC3, right?

aethro 09-12-2005 08:52 PM

Oh yeah duh lol i'll go upgrade Thanks for pointing that out

Chris_D 09-12-2005 09:09 PM

Been looking forward to this coming out for 3.5 :D

I liked Zero Tolerance's warning hack. Very well made and lots of nice features, but unfortunately I like this because it gives you the chance to have pre-defined warnings where Zero's all seemed to be free-entry. This is much better for a bigger board.

eNforce 09-12-2005 09:21 PM

I get this error after sending a PM, but the pm does go through.

Parse error: parse error, unexpected '[' in /home/areyous/public_html/includes/class_dm_pm.php(523) : eval()'d code on line 96

I saw someone else had this problem, I skimmed through the posts but didn't see a fix myself. Was a fix posted?

Andreas 09-12-2005 09:33 PM

Plugin: AWS: Check PM-Title/Message for censored Words

Find
PHP Code:

if ($this->info['reparent'] AND $this-info['savecopy']) 

Replace
PHP Code:

if ($this->info['reparent'] AND $this->info['savecopy']) 


wcbryant 09-13-2005 11:56 AM

Just upgraded from RC2 to RC3 this morning, and installed AWS shortly thereafter. Everything seemed to go smoothly, and I've set the new options, but I'm getting some errors;

When warning a dummy account;
Code:

Database error in vBulletin 3.5.0 Release Candidate 3:

Invalid SQL:
update user set warning_level='10', warnings='1' where userid='5264';

MySQL Error  : Unknown column 'warnings' in 'field list'
Error Number : 1054
Date        : Tuesday, September 13th 2005 @ 05:42:18 AM
Script      : http://www.sitename.com/forum/Warn.php
Referrer    : http://www.sitename.com/forum/Warn.php?do=WarnUser&id=5264&post=261259
IP Address  : xx.xx.xx.xx
Username    : Clarity
Classname    : vB_Database_MySQLi

When hitting (in admincp) Statistics - Warnings Per User;

Code:

Database error in vBulletin 3.5.0 Release Candidate 3:

Invalid SQL:
SELECT COUNT(*) AS users FROM user AS user where warnings>0 OR alerts>0;

MySQL Error  : Unknown column 'warnings' in 'where clause'
Error Number : 1054
Date        : Tuesday, September 13th 2005 @ 05:54:06 AM
Script      : http://www.sitename.com/forum/admincp/admin_warn.php?act=viewwarnedusers&type=warnings
Referrer    : http://www.sitename.com/forum/admincp/index.php?do=nav
IP Address  : xx.xx.xx.xx
Username    : Clarity
Classname    : vB_Database_MySQLi

Sounds like I'm missing a column, but not sure how or why. Any ideas? Been poking around for about an hour, not sure where the issue is. I did have the 3.0.x version installed before moving up to 3.5.0, perhaps when it discovered the old tables, it didn't create some new one somehow? No idea.

Andreas 09-13-2005 12:11 PM

If you had the 3.0 Version installed, you should already have the Columns.

Anyway:
Code:

ALTER TABLE user ADD warnings INT(5) DEFAULT '0';
ALTER TABLE user ADD warning_level INT(15) DEFAULT '0';
ALTER TABLE user ADD warning_bans INT(2) DEFAULT '0';
ALTER TABLE user ADD alerts INT(5) DEFAULT '0';
ALTER TABLE user ADD warn_notes SMALLINT DEFAULT '0';

Currently these Colums are being added in 1 Query, so if 1 Column does already exist (but other's don't) it fails completely.
Might be a good idea to change that :)


All times are GMT. The time now is 08:00 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.02022 seconds
  • Memory Usage 1,745KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (1)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