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 03-12-2006 09:46 AM

Quote:

Originally Posted by sv1cec
I can not duplicate the problem with the Automatic Warnings from Posts. It works fine in my test environment, even before uploading the edited files for the quoted $vbulletin parameters.

There is an issue with the warning being entered as non-post related. To correct that, open the following plugin.

AWS: Check Post-Title/Message for censored Words

Find:

Code:

warn_calculations($warn_type['tid'], $wcomment, $this->fetch_field['postid'], $userinfo, $this->registry->options['warn_automatic_warner'], $alert);
Replace that with:

Code:

$wpost=$this->fetch_field('postid');
warn_calculations($warn_type['tid'], $wcomment, $wpost, $userinfo, $this->registry->options['warn_automatic_warner'], $alert);

Try this out.

Also, in several of the templates shown in the XML file, there are still references to $vboptions parameters. However, I do not know if it is worth it to correct these references, since I do not know if a corrected XML file can be used to alter the existing templates or not. If someone knows, please advise.

nope can't get this to work.But if it does in your testenvirement it must be something i do wrong.I will chck your old posts regarding this :)

Xplorer4x4 03-12-2006 11:39 PM

I noticed today that a mod warned a members twice, and was banned even though the third warning would be a ban.

Last time i tested I was not able to produce this problem warning a member as an admin, so i think maybe it deals only with mods issuing warnings.

senkin 03-13-2006 07:33 PM

Very nice hack but when I want to warn somone I cannot see any options about warning somone in a post at all. I don't know what I could have done wrong so if I need to I an give a temporary admin user acc and pass to see what I did wrong. I followed everything word by word and everywhere works but I do not see anything warning wis on my style even though it has the code in the Postbit_legacy (Which I use legacy). I don't know what elce to say to help so yeah. Thanks ahead of time.

http://forums.santacruzpcsupport.com = my fourms.

Xplorer4x4 03-13-2006 07:36 PM

Did you turn on the usergroup settings? ;)

Ziki 03-13-2006 07:38 PM

Will this be BEAT forever ir what???

Delphiprogrammi 03-13-2006 08:19 PM

Quote:

Originally Posted by senkin
Very nice hack but when I want to warn somone I cannot see any options about warning somone in a post at all. I don't know what I could have done wrong so if I need to I an give a temporary admin user acc and pass to see what I did wrong. I followed everything word by word and everywhere works but I do not see anything warning wis on my style even though it has the code in the Postbit_legacy (Which I use legacy). I don't know what elce to say to help so yeah. Thanks ahead of time.

http://forums.santacruzpcsupport.com = my fourms.

did you defined warning types ? at least one NPR(non post related) did you made your settings on the manage warnings options page ? an example of warningtypes can be seen here

Quote:

Originally Posted by Xplorer4x4
Did you turn on the usergroup settings? ;)

what usergroup setings ?

senkin 03-13-2006 08:45 PM

Quote:

Originally Posted by Delphiprogrammi
did you defined warning types ? at least one NPR(non post related) did you made your settings on the manage warnings options page ? an example of warningtypes can be seen here

Lol I didn't make a non-post related one. Thanks.

'walks away in shame'
*Damn I feal dumb now.*

Xplorer4x4 03-13-2006 08:49 PM

Quote:

Originally Posted by Delphiprogrammi
what usergroup setings ?

Actually I think the usergroup settings are in the main warning page options. You need to define which groups are mods, supermods and so forth.;)

Delphiprogrammi 03-16-2006 10:04 AM

John,

I've solved another problem i found where the system would redirect to invalid user id input.It involves the "view user warnings" option

i think admin_warn.php is ready for a testrun BUT BACKUP YOUR DATABASE FIRST can't say this loud enough

MorrisMcD 03-16-2006 04:38 PM

Quote:

Originally Posted by Delphiprogrammi
John,

I've solved another problem i found where the system would redirect to invalid user id input.It involves the "view user warnings" option

i think admin_warn.php is ready for a testrun BUT BACKUP YOUR DATABASE FIRST can't say this loud enough

Could this be why I got 60000 invalid PMs generated when I changed the functions? If so I can use this again maybe

Delphiprogrammi 03-16-2006 05:21 PM

Quote:

Originally Posted by MorrisMcD
Could this be why I got 60000 invalid PMs generated when I changed the functions? If so I can use this again maybe

i don't think so no 60000 ???? woow that can count.You changed the functions because you use inferno hacks right ?

MorrisMcD 03-16-2006 05:33 PM

Quote:

Originally Posted by Delphiprogrammi
i don't think so no 60000 ???? woow that can count.You changed the functions because you use inferno hacks right ?

Yep.. I went through and changed all the functions... I was so proud I got it working.. lol

But then 1 day later, I was investigating a PM issue where sometimes when you reply it tries to reply to the wrong pmid (therefore giving a permissions error pissing my users off... lol) or giving them a new pm submit form.. Very wierd.. I am probably going to have to deleted the entire pm system...

Anyway.. While in there I noticed about 60000 pms from user 0 to user 0.. They kept generating until I disabled your hack

dai-kun 03-16-2006 10:12 PM

When I try to run the kill_warn.php script, it gives me error

Code:

Fatal error: Call to a member function on a non-object in /home/domain/domain.com/forum/global.php on line 243
What that means?

Also, when Im in the admincp, trying to view the warn logs, when i press the view next page, it loads but then it doesn't go to the next page. it's still on page one.

Delphiprogrammi 03-17-2006 08:34 AM

Quote:

Originally Posted by dai-kun
When I try to run the kill_warn.php script, it gives me error

Code:

Fatal error: Call to a member function on a non-object in /home/domain/domain.com/forum/global.php on line 243
What that means?

Also, when Im in the admincp, trying to view the warn logs, when i press the view next page, it loads but then it doesn't go to the next page. it's still on page one.

that means there is a function call in that script which isn't declarerd anywhere most likely there are references to $DB_site while it should be $db in 3.5.x you need to download the kill_warns attached

Delphiprogrammi 03-17-2006 02:21 PM

hi,

I've changed the settings page a bit (not admin_warn.php?act=manageoptions) but the vbulletin->options->warning hack

changed the way of setting the usergroups.Now you can choose from a dropdown list

you can do this like this while being in debug mode click edit setting and in the option code field

Code:

<select name=\"setting[$setting[varname]]\" tabindex=\"1\" class=\"bginput\">
<option value=\"8\" " . iif($setting['value']=='8','selected="selected"') . ">(COPPA) Users Awaiting Moderation(id4)</option>
<option value=\"6\" " . iif($setting['value']=='6','selected="selected"') . ">Administrators(id6)</option>
<option value=\"7\" " . iif($setting['value']=='7','selected="selected"') . ">Moderators(id7)</option>
<option value=\"2\" " . iif($setting['value']=='2','selected="selected"') . ">Registered Users(id2)</option>
<option value=\"5\" " . iif($setting['value']=='5','selected="selected"') . ">Super Moderators(id5)</option>
<option value=\"1\" " . iif($setting['value']=='1','selected="selected"') . ">Unregistered / Not Logged In(id1)</option>
<option value=\"4\" " . iif($setting['value']=='4','selected="selected"') . ">Users Awaiting Email Confirmation(id3)</option>
<option value=\"8\" " . iif($setting['value']=='8','selected="selected"') . ">Banned Users(id8)</option>
<option value=\"9\" " . iif($setting['value']=='9','selected="selected"') . ">Permanent_Ban(id9)</option>
</select>

all done

Delphiprogrammi 03-17-2006 09:32 PM

Quote:

Originally Posted by dai-kun
Also, when Im in the admincp, trying to view the warn logs, when i press the view next page, it loads but then it doesn't go to the next page. it's still on page one.

yeah i could reproduce the problem but so far can't get it to work as it should (i'm honest) :D however for people with a big board that use this hack that could become verry annoying

Delphiprogrammi 03-18-2006 02:04 PM

Quote:

Originally Posted by dai-kun
When I try to run the kill_warn.php script, it gives me error

Code:

Fatal error: Call to a member function on a non-object in /home/domain/domain.com/forum/global.php on line 243
What that means?

Also, when Im in the admincp, trying to view the warn logs, when i press the view next page, it loads but then it doesn't go to the next page. it's still on page one.

i fixed that problem in the admincp where it's staying on page 1 even through you click the next button that was annoying me :cross-eyed: if you want it give a yell :)

I also fixed the mod_warn.php file there whas an issue with missing navigation buttons when viewing the complete warning log

another fix i did is with the product XML if you install this system there is an issue with the colspan of tables used i fixed that it auto installs everythings needed for the system to work

dai-kun 03-19-2006 02:40 AM

can u send me all the fixed files please? thanks

i've also reuploaded the kill_warn.php... and it gives me this error now:

Fatal error: Call to a member function on a non-object in /home/user/domain.com/forum/includes/functions_warning.php on line 31

and line 31+32 is..
Code:

        $to=$db->query_first("select * from ".TABLE_PREFIX."user where userid='{$to}'");  // Grab Member Its Going TO
        $from=$db->query_first("select * from ".TABLE_PREFIX."user where userid='{$from}'"); // Grab Member Its Coming FROM


Delphiprogrammi 03-19-2006 10:10 AM

hi,

Well i just did a testrun with kill_warns.php and it returned no error messages ....... your php is acting weird i guess.... on line 14 off the file functions_warning.php there is

PHP Code:

global $vbulletin

you have that ?

all fixed files are attached

people if you use any of the attached files specially the product xml or admin_warn.php please ensure you have a recent complete backup off your database so IN CASE anything goes wrong you still have your complete database which can be restored if needed

files which start with "kill_" need to be uploaded to /forum/includes/cron
mod_warn.php to /forum/modcp
admin_warn.php to /forum/admincp
product-aws.xml needs to be imported using the product manager (carefull with this as you may not need this it just corrects some template issues and a bug where you would get "inavlid user id input" when trying to warn from the admincp)

Roadster2004 03-19-2006 11:23 PM

Thanks for this hack.. But I don't seem to get it working :( (I must say that I'm a n00b @ vbulletin, but eager to learn)

I've first installed the hack, after that installed Delpih's new files to all the correct places ! But when I want to warn a member from the admincp. I get the error message:

Invalid User ID Input

Also I can only warn people in the admincp and not in the modcp.. When I log in to the modcp I only see:
View Issued Warnings
And nothing else..

Then my last (and probaly stupid question) but in the readme.txt It says to change some code in:
In Template postbit
and
Template postbit_legacy

But where can I find this Templates ?? :$ :$

Thanks in advance !

Delphiprogrammi 03-20-2006 08:29 AM

Quote:

Originally Posted by Roadster2004
Thanks for this hack.. But I don't seem to get it working :( (I must say that I'm a n00b @ vbulletin, but eager to learn)

I've first installed the hack, after that installed Delpih's new files to all the correct places ! But when I want to warn a member from the admincp. I get the error message:

Invalid User ID Input

Also I can only warn people in the admincp and not in the modcp.. When I log in to the modcp I only see:
View Issued Warnings
And nothing else..

Then my last (and probaly stupid question) but in the readme.txt It says to change some code in:
In Template postbit
and
Template postbit_legacy

But where can I find this Templates ?? :$ :$

Thanks in advance !

to solve the 'invalid user id input' you can download the attached updated XML (it's a problem i solved agers ago just forgot to put it in lol )

you can find templates in your admincp under the heading "style& templates" => style manager => choose the style you want to use and hit <<>> next to it (you will find the postbit templates under "postbit templates" in the list

you must make all needed changes for EVERY style you want to use


in the modcp there is 1 link "view issued warnings" which will show you either the complete warning log or just the warnings you issued yourself this depends on your AWS settings

Roadster2004 03-21-2006 10:56 PM

Thank you !

This really helped me much !

ka81 03-22-2006 07:10 AM

Would you please tell - when at least abou you're going to place final version?

Thank you any way for a GREAT job!!!!

sv1cec 03-22-2006 08:25 AM

Hey Delphi, you are doing a great work here. For some reason, I do not get email notifications from this thread, so I haven't followed up to all this.

OK, packaging-wise, do you think the code is stable enough to try coming up with a package?

Krose 03-22-2006 11:42 AM

just installed but not yet tested... *clicked install*

great job! sv1cec & delphiprogrammi ;)

MThornback 03-22-2006 12:27 PM

Quote:

Originally Posted by sv1cec
Hey Delphi, you are doing a great work here. For some reason, I do not get email notifications from this thread, so I haven't followed up to all this.

OK, packaging-wise, do you think the code is stable enough to try coming up with a package?

I think its been stable for awhile....the few tweaks that have been made along the way could have been fixed and it still could have been called a stable release.

The only suggestion I have....maybe to put this over the top....is to be able to ban users from x page....which would be useful more for hacked boards than anything I think....say for example someone has googlemap and ibproarcade installed....the arcade comes with the ability to ban users or groups of users from the arcade, the googlemap doesn't....its not permission based at all really....not on the front end. Maybe a script where you can put in a username, and ban x user from x page? I dunno if anyone else might find that useful....but I would :bunny:


aside from my little thought...i'd say go for it :)

Roadster2004 03-22-2006 02:47 PM

I've yet another question :) Where Can I change the message that will be send to the warned users ?!

Delphiprogrammi 03-22-2006 04:32 PM

Quote:

Originally Posted by sv1cec
Hey Delphi, you are doing a great work here. For some reason, I do not get email notifications from this thread, so I haven't followed up to all this.

OK, packaging-wise, do you think the code is stable enough to try coming up with a package?

yes with a big note to people that they should backup there database

specially i'm curious how you did the automatic warnings i can't get the bloody thing to work :D

Delphiprogrammi 03-22-2006 04:39 PM

Quote:

Originally Posted by Roadster2004
I've yet another question :) Where Can I change the message that will be send to the warned users ?!

that would depend on what message you want to change.The notification messages about warnings being removed are (mostly) hardcoded take a look at the "advanced warning system" templates group in your admincp it should explain itself ...

sv1cec 03-24-2006 05:31 AM

Delphi, I have to go back a couple of pages to see what I've posted about the Automatic Warnings. What seems to be your problem with that?

sv1cec 03-24-2006 05:34 AM

Delphi, check this out https://vborg.vbsupport.ru/showpost....&postcount=740

Delphiprogrammi 03-24-2006 06:55 AM

Quote:

Originally Posted by sv1cec

yeah i did that automatic warning work fine from private messages but they refuse to work from post / threads i already did that step described there.I even disabled all other products i have installed to sensure it isn't conflicting nope it's insane

Borisch 03-24-2006 07:16 AM

Hey,

I've been trying to get this one working all night but to no avail. All the files have been uploaded correctly and the templates have been changed accordingly. The problem is when installing the xml file. It seems as though none of the tables are created. At first I figured that it might be so that it stops on some SQL (ie a table already exists) and doesn't resume. However, this happens even if I make sure that there are no offending tables and columns in the database.

So I tried creating the tables and columns manually by simply executing the sql that the installation is supposed to take care of. However, this doesn't help since I still can't warn anyone. I get errors that the column doesn't exist.

Here is an excerpt of errors I get:

This is what I get when trying to warn someone:
Code:

Database error in vBulletin 3.5.3:
 
Invalid SQL:
update user set warning_level='4', warnings='1' where userid='111';
 
MySQL Error  : Unknown column 'warnings' in 'field list'

This is what I get when trying to view some statistics in the control panel:
Code:

Database error in vBulletin 3.5.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'

And so on and so forth. Now, some things works. I can add different warning types and change options and such. But I have no idea where this values are saved. If I create a warning type, it's not saved in the warning_types table as it is completely empty at all times. Even searching for the warning type in the database turns up empty. It's very strange and I have no idea what might be causing this. Has anyone else experienced these kinds of issues and been able to solve them somehow?

As can be seen from the error messages, I'm running vB 3.5.3. I'm also using the latest files posted in this thread.

sv1cec 03-24-2006 08:53 AM

Delphi,

Try using this plugin instead of the standard "AWS: Check Post-Title/Message for censored Words" one. Also, try using this functions_warning.php file, I do not remember if I've done any changes to it.

sv1cec 03-24-2006 08:53 AM

Are you using a table prefix, by any chance?

Borisch 03-24-2006 10:06 AM

Where do I check that?

EDIT: Nevermind, in config.php obviously. It's empty, so no, I', not using a table prefix.

What's really baking my noodle is why isn't the installer creating the proper tables? Is there some log which I can check for errors?

Delphiprogrammi 03-24-2006 10:50 AM

Quote:

Originally Posted by Borisch
Where do I check that?

EDIT: Nevermind, in config.php obviously. It's empty, so no, I', not using a table prefix.

What's really baking my noodle is why isn't the installer creating the proper tables? Is there some log which I can check for errors?

you could try and open product-aws.xml and just before the SQL queries put this code

PHP Code:

$db->reporterror=

that should show you all errors occuerd when tryting to import the product.Do the same in the unistall code.When you get an error message from MySQL post it here .....

Delphiprogrammi 03-24-2006 10:53 AM

Quote:

Originally Posted by sv1cec
Delphi,

Try using this plugin instead of the standard "AWS: Check Post-Title/Message for censored Words" one. Also, try using this functions_warning.php file, I do not remember if I've done any changes to it.

thank you John but it still refuses to work it's insane not your fault and not that big problem either.I think it has something todo with vbportal just guessing here but it worked fine before i purchased and installed vbportal

Borisch 03-24-2006 12:06 PM

Quote:

Originally Posted by Delphiprogrammi
When you get an error message from MySQL post it here .....

Thanks for putting effort into helping me. However, I'm sad to admit that I don't get any error messages. At least not immediat errors. Are these errors supposed to show while your installing or in some log? The installation just looks as previously, ie. as it's supposed to look I presume.

GoTTi 03-25-2006 12:05 AM

question: this is upgradeable from 3.0.x correct?

if yes, whats the details on that for upgrading.

if no, what should i do about the current version of aws on my 308?


All times are GMT. The time now is 11:01 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.02354 seconds
  • Memory Usage 1,868KB
  • 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
  • (9)bbcode_code_printable
  • (2)bbcode_php_printable
  • (19)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