Version: 3.6.9(C), by Delphiprogrammi
Developer Last Online: Aug 2015
Category: Administrative and Maintenance Tools -
Version: 3.6.8
Rating:
Released: 08-19-2006
Last Update: 10-02-2007
Installs: 211
DB Changes Uses Plugins Template Edits
Code Changes Additional Files Is in Beta Stage
No support by the author.
Advaned Warning System
This is a port of aws and i release this with permission...(yes i did ask the original author)
This version of the warning includes
1 vbulletin 3.6.x product file (XML)
1 admincp navigation XML
1 functions file(functions_warning.php)
3 images
3 cronjobs
1 modcp file to allow moderators to view warnings information without having to give admincp access(mod_warn.php)
1 admincp file to manage the system options(admin_warn.php)
1 XML to control permissions(bitfield_aws.xml)
For a completer list of the system features you can refer to this
This version will also require vbulletin 3.6.x to run.If you run 3.5.x or any other release then 3.6.x you will see a message.
This system is tested for a long time and i believe it's stable enough for a public release HOWEVER since this is a major hack and i'm just human please consider this first public run still as "beta"
instructions ow howto install can be found in the docs directory within the zip
statistics
25 plugins
27 templates
5 new MySQL tables
3 standard vbulletin tables alterd (user,post,and usergroup)
827 phrases
47 settings
updates
A problem has been found where no link is provided to view your own warnings(normal users) in the member profile only i fixed this.To get the fix you will need to reedit your "MEMBERINFO" template and reimport product-aws.xml (set allow overwrite to yes)
a product depency whas added the system will no longer install on PHP 5 (in response to continued error reports on that PHP version)
to report a possible bug
please go the system bugtracker here you can use the folowwing account
username:bugreporter
password:awsbug
no need to register yourself
30-11-2006
People on PHP 5 can follow this instructions to avoid the PHP version related error message BUT remember you are on your own if you do this.I won't upgrade my PHP until PHP 5 is there main stable release (www.php.net)
1-1-2007
A bug has been reported in the system.This bug whas causing vbulletin to throw an error when you try to use admincp => users=> add a new user
Quote:
Fatal error: Call to a member function clean_gpc() on a non-object in class_dm_user.php(2385) : eval()'d code on line 35
Solution
Edit plugin "AWS:warn link in usermanager" and replace all code with this
This release includes a fix for the problem "call to member function on a non object class_dm_user.php)" when you try to add a new user manaually (after submitting the form)
And also about USERCP template - it's not changed by install instructions, but how user can see his warnings in user CP ?
The user can see his warnings from his User Profile. There are links in there to show him his warnings. It's a minor job to add a similar link in User CP, and frankly that's a good idea.
The user can see his warnings from his User Profile. There are links in there to show him his warnings. It's a minor job to add a similar link in User CP, and frankly that's a good idea.
Done BUT there is something wrong the warning information is not showing where it should ... look at the pic .I wrote this small plugin for this thing
PHP Code:
$user = & $vbulletin->userinfo;
$warn_page = "";
eval('$warn_page .= "' . fetch_template('usercp_warn_view_top') . '";');
$get_warns=$db->query_read("SELECT w.*,u.username as wusername,u.userid as wuserid,wt.* FROM
".TABLE_PREFIX."warnings w
LEFT JOIN ".TABLE_PREFIX."user u ON(u.userid=w.warned_by)
LEFT JOIN ".TABLE_PREFIX."warning_types wt ON(wt.tid=w.warned_warning_id)
WHERE w.warned_user='{$user['userid']}' ORDER BY w.warned_time DESC");
while($warn=$db->fetch_array($get_warns))
{
$warn['date'] = vbdate($vbulletin->options['dateformat'],$warn['warned_time']);
$warn['time'] = vbdate($vbulletin->options['timeformat'],$warn['warned_time']);
$wmessage=stripslashes($warn['warned_reason']);
eval('$warn_page .= "' . fetch_template('usercp_warn_view_row') . '";');
}
eval('$warn_page .= "' . fetch_template('usercp_warn_view_end') . '";');
used hook location "usercp_start" for some reason the template "usercp_warn_view_row" is not being fetched i don't get it
Well, I am not sure, but since this user has no warning points, hence no warnings, what did you expect the warn_view_row to show? LoRL, did you try it with a warned user?
Well, I am not sure, but since this user has no warning points, hence no warnings, what did you expect the warn_view_row to show? LoRL, did you try it with a warned user?
The user i whas testing didn't have a warning this is something for the "our stupidest mistakes thread" the thing is working ok now
When I click on the "comment" from the admincp warnings log, I get the following:
"The requested URL /forums/admincp/admin_warn.php was not found on this server".
My admin control panel is named something other than 'admincp' so where would I need to replace 'admincp' with what I labeled mine as?
That should be already there but i forgot to add it to that section.To make that work if you have a "custom" admincp directory open admin_warn.php and find (if it is not there add it)
to explain more clearly you need to replace "admincp" with $admincpdir this variable contains the correct complete path to your admincp (it reads from /includes/config.php)
save file upload that should do it