PDA

View Full Version : Advanced Warning System (Beta Version)


Pages : [1] 2 3 4 5

sv1cec
09-08-2005, 10:00 PM
Advanced Warning System


IF YOU ARE RUNNING vB 3.6, THERE IS A NEW THREAD FOR THIS HACK UNDER THAT VERSION. vB 3.6 USERS GO HERE:

https://vborg.vbsupport.ru/showthread.php?t=124477


This is a direct port of the Advanced Warning System, as it was implemented in vB 3.0.x. This port has all the features of AWS version 3.4.16, except the Notes.

For a complete description of AWS capabilities, please refer to the following thread:

https://vborg.vbsupport.ru/showthread.php?p=574374

The vB 3.5 compliant version of AWS includes:

1 Product XML (17 Plugins, 107 Phrases, 26 Templates, 43 Settings)
1 ACP Navigation XML
1 PHP Functions File
3 Images
2 PHP Frontend Files
1 PHP Admin CP File
1 PHP Mod CP File
3 PHP Cronjob Files

This port would not be possible, without the help of KirbyDE, to whom I am greatful. KirbyDE will also be responsible for supporting you here, with questions related to this particular release. Also, this port would not have been possible, without the help of Juan P hernandez, who offered me a free test system, in which the porting was performed.

The hack has been tested and it is believed to be bug-free, however since this is a major hack, I release it today (September 9th 2005) as beta.

I hope you all enjoy it.

History (Productversion)
3.5.b
Initial Version

3.5.b1
Fixed a typo that caused Errors in User Datamanager.
Fixed a wrong object reference in functions_warning.php

3.5.b2
Fixed a Bug (https://vborg.vbsupport.ru/showpost.php?p=770632&postcount=36) that caused PHP Error Messages.
Fixed a Typo (http://bugs.kirbydemos.ath.cx/view.php?id=9) in the Install Code that causes mySQL Errors.
Updated the Template Edit instructions to be (hopefully) compatible with RC3

3.5.b3
Fixed User not showing up in automatic warning PMs (https://vborg.vbsupport.ru/showpost.php?p=770851&postcount=46)
Fixed 2 missing Phrases (https://vborg.vbsupport.ru/showpost.php?p=770911&postcount=47)
Fixed Hidden Warner being Used for Automatic Warnings
Fixed "View x's Warnings" Button in Usermanager not working

3.5.b4
Removed one unsued Phrase, added one missing Phrase
Fixed a Typo (https://vborg.vbsupport.ru/showpost.php?p=771874&postcount=67) that caused PHP Errors when sending PMs
Fixed a Typo (https://vborg.vbsupport.ru/showpost.php?p=772553&postcount=77) that caused PHP Errors upon Installation
Changed Product ID for Admin CP Navigation XML from vbulletin to aws, so it won't show up any longer if AWS is uninstalled/disabled.

A bug was found which didn't allow you to delete an entered Warning Type. Bug fixed in the current distribution file.

If you found a Bug, please report it at http://bugs.kirbydemos.ath.cx

This helps to keep issues organized, which can't be guaranteed if it's only posted in the Thread.
Thank you.

P.S.1: After you install the hack per the instructions, please update your installation with the separate files listed. They are newer files not included in the zip.

P.S.2: If you want to use the Notes feature, as it existed in AWS 3.4.16, please install AWS per the instructions in the zip file, and THEN follow the instructions included in the warn_notes_update_instructions.txt.

IMPORTANT NOTE: Please keep in mind that this hack is not supported. What this means is that I have no obligation to support it. The reason for that, is because I have no access to a vB 3.5 system any more, so I can't work on this hack any more. Andreas (or KirbyDE) who undertook the support of this version of the AWS hack in the beginning, is obviously too busy to support it. So you are on your own, at least as far as the interaction with vB is concerned. If you have an issue with the hack files themselves, I'll do my best to solve it, but without a test environment, it is not easy. So users of vB 3.5 beware!

P.S. May 31st 2006: The zip file uploaded today, should contain all the debugging done by Delphi, so it should be fine as it is. You do not need the other files listed at the right, only the zip. Download it and follow the instructions in it, for installing the hack. I leave the other files there, just in case some one needs them, they will be deleted later.

SV1CEC

turksengel
09-09-2005, 11:18 AM
first thanks coming from me thanks

wcbryant
09-09-2005, 11:21 AM
Today is a good day!

Thanks so much, to both of you. Svc, for creating something so integral to my site that it's been hard to go without it, and certainly Kirby for making it 3.5.0 ready. I don't know where you find the time or energy, Kirby, but between this, vBookie, and a number of your own unique projects, I'm incredibly glad you do. ;)

Off to install now.

TTG
09-09-2005, 11:25 AM
Are there any major benefits over Zero's (https://vborg.vbsupport.ru/showthread.php?t=93669&highlight=warning) warning system ?

sv1cec
09-09-2005, 11:31 AM
Are there any major benefits over Zero's (https://vborg.vbsupport.ru/showthread.php?t=93669&highlight=warning) warning system ?

Well, read the description of what AWS can do here:

https://vborg.vbsupport.ru/showthread.php?p=574374

I am sure you will find that AWS is much more feature-loaded.

Diana Notacat
09-09-2005, 11:53 AM
HURRAY! I wouldn't have been able to get alone without this! ^o^ I am so glad to see this ported!

Kru
09-09-2005, 02:05 PM
I installed it and everything looks good until I tried to make some changes on an excisting user account. After I hit save I got the following error message:

Fatal error: Field alerts is not defined in $validfields in class vb_datamanager_user in /includes/class_dm.php on line 485

I logged out and tried to make a new account and received this error message:

Parse error: parse error, unexpected '[' in /var/www/vhosts/mirzone.net/httpdocs/forum/includes/class_dm_pm.php(523) : eval()'d code on line 96

After I disabled the warning hack everything was ok again.

mholtum
09-09-2005, 02:31 PM
Installed like a champ

LittleBoy1
09-09-2005, 02:36 PM
Please capture =)

RoryF
09-09-2005, 03:45 PM
Question, does this allow me to send warning messages to user... not via PM, but it actually interupts the user?

TruthElixirX
09-09-2005, 04:11 PM
Database error in vBulletin 3.5.0 Release Candidate 3:

Invalid SQL:
select * from vb3_warning_types order by warn_points, warn_maturity, warn_name;

MySQL Error : Table 'vb3x5.vb3_warning_types' doesn't exist
Error Number : 1146
Date : Friday, September 9th 2005 @ 01:11:16 PM
Script : http://www.supportcore.org/testvb/admincp/admin_warn.php?act=view
Referrer : http://www.supportcore.org/testvb/admincp/index.php?do=nav
IP Address : 69.154.2.3
Username : Chris
Classname : vb_database

Where are the queries to run..I never saw them..O_o. also in my admincp the Warning options section (The drop down box) is jsut a blank box that expands to fil lthe options. Also when I go to the user's oage in the admincp to warn them it has no option to do this in the user quick links.


EDIT:: Okay the queries are in the product xml file. What could be causing it not to run the right queries though?

Andreas
09-09-2005, 04:37 PM
@Kru
Hmm, there is a Plugin that sets the Fields.
Did you import it as a Product?
And yre you using vBulletin 3.5?

@RoryF
No, it sends a PM or eMail.

@TruthElixirX
There should be a Warn-Button ad the bottom of the left Column in User Editor.
The Tables should be created automatically, did you import it as a Product?

Kru
09-09-2005, 04:48 PM
@Kru
Hmm, there is a Plugin that sets the Fields.
Did you import it as a Product?
And yre you using vBulletin 3.5?


Yes I imported it as a Product and of course I am using vb 3.5. otherwise I would have some problems to install this hack. ;)

Everything works fines besides of registering a new user after I install this hack.

I removed hack and reinstalled it again but still same error. :(

Andreas
09-09-2005, 04:55 PM
Registering works fine for me. Where exactly do you get Problems?
Btw: I meant are you using RC3? ;)

TCM
09-09-2005, 07:01 PM
Awesome! Thanks a ton!

* TCM installs.

EDIT: Or not, it bugged up my boards.

Kirk Y
09-09-2005, 07:17 PM
Yipee! I'm so glad you ported this over, this is what I've been waiting for. This is by far the best Warning Hack... ever.

* acidburn0520 jumps for joy!

TruthElixirX
09-09-2005, 07:45 PM
@TruthElixirX
There should be a Warn-Button ad the bottom of the left Column in User Editor.
The Tables should be created automatically, did you import it as a Product?


Yes it is set as a product and no that column is not there.

TosaInu
09-09-2005, 07:49 PM
Same problem as Kru. I'm using vb 3.5 rc3 on a fresh database.

Fatal error: Field alerts is not defined in $validfields in class vb_datamanager_user in /includes/class_dm.php on line 485

It's so much easier to get this installed now. I think though that the template notes require a bit of an update (possibly because rc3 has some changes in postbit-legacy).

Example

- <td class="alt1">
<if condition="$show['messageicon'] OR $post['title']">
<!-- icon and title -->
<div class="smallfont">
<if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
<if condition="$post['title']"><strong>$post[title]</strong></if>
</div>
<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
</if>

is without <td class="alt1"> and the replace should also be without that.

-The warningpoints are added for postbit, but not for postbit-legacy.

-Need to find <div>$post[message]</div>
<!-- / message --> in postbit-legacy
But only <!-- message -->
<div id="post_message_$post[postid]">$post[message]</div>
<!-- / message --> can be found.

I like this plugin system :)

TosaInu
09-09-2005, 07:58 PM
I'm not a coder, but I guess the problem is in class_dm_user.php.
This hack adds 5 fields to the database table user, but the script doesn't know what to do with those when a new user is added.

Here's a fix (WAIT for a real coder to really fix it)

Open includes/class_dm_user.php and find (located at top of file in var $validfields = array()

'pmunread' => array(TYPE_UINT, REQ_NO),

Add below that

'warnings' => array(TYPE_INT, REQ_NO),
'warning_level' => array(TYPE_INT, REQ_NO),

'warning_bans' => array(TYPE_INT, REQ_NO),
'alerts' => array(TYPE_INT, REQ_NO),
'warn_notes' => array(TYPE_UINT, REQ_NO),

This allows to add users.

Michael-DLR
09-10-2005, 03:48 AM
Same problem as Kru. I'm using vb 3.5 rc3 on a fresh database.

Fatal error: Field alerts is not defined in $validfields in class vb_datamanager_user in /includes/class_dm.php on line 485

It's so much easier to get this installed now. I think though that the template notes require a bit of an update (possibly because rc3 has some changes in postbit-legacy).

Example

- <td class="alt1">
<if condition="$show['messageicon'] OR $post['title']">
<!-- icon and title -->
<div class="smallfont">
<if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
<if condition="$post['title']"><strong>$post[title]</strong></if>
</div>
<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
</if>

is without <td class="alt1"> and the replace should also be without that.

-The warningpoints are added for postbit, but not for postbit-legacy.

-Need to find <div>$post[message]</div>
<!-- / message --> in postbit-legacy
But only <!-- message -->
<div id="post_message_$post[postid]">$post[message]</div>
<!-- / message --> can be found.

I like this plugin system :)

This is the one place I am stuck to get the code in the template correct. The rest I was able to figure out. Does anyone know the right code to put in the template for this one?

Also, after clicking add warning from a post I get the following error:
Fatal error: Call to a member function on a non-object in C:\Program Files\Ensim\Sitedata\***\forums\includes\functions _warning.php on line 581

Andreas
09-10-2005, 04:01 AM
1) Regarding the $validfields error:
There was a slight Typo in Plugin "AWS: Setup UserDM", should have been $this->validfields instead of $this->validvields.
Dunno why I didn't notice any errors though ...

2) The Error in functions_warning.php should be fixed as well now.

As sv1cec stated, this is Beta so such Bugs are to be expected :)

hydrostatic
09-10-2005, 04:07 AM
This seem to conflict with ZT's RPG Inferno hack... as when I installed this, I cannot run his.

It comes up with this error when I try to access inferno... I know that you guys don't really support this kind of stuff, but I would like to know if there's a possible way to fix it :nervous:

Fatal error: Cannot redeclare sendpm() (previously declared in /home/blootix/public_html/forums/inferno.php:576) in /home/blootix/public_html/forums/includes/functions_warning.php on line 23

Michael-DLR
09-10-2005, 04:07 AM
1) Regarding the $validfields error:
There was a slight Typo in Plugin "AWS: Setup UserDM", should have been $this->validfields instead of $this->validvields.
Dunno why I didn't notice any errors though ...

2) The Error in functions_warning.php should be fixed as well now.

As sv1ec stated, this is Beta so such Bugs are to be expected :)

Thank You!

Michael

Andreas
09-10-2005, 04:08 AM
Nope, no way to fix this any time soon.
But in the furure it will use the Datamangers anyway, so this function becomes somewhat obsolete.

hydrostatic
09-10-2005, 04:11 AM
Nope, no way to fix this any time soon.
But in the furure it will use the Datamangers anyway, so this function becomes somewhat obsolete.

Awww... oh well. I guess I'll have to wait for future versions then.

I'll not click uninstall though, because I want to be notified for future versions and to show my support :).

Kru
09-10-2005, 04:31 AM
1) Regarding the $validfields error:
There was a slight Typo in Plugin "AWS: Setup UserDM", should have been $this->validfields instead of $this->validvields.
Dunno why I didn't notice any errors though ...

2) The Error in functions_warning.php should be fixed as well now.

As sv1cec stated, this is Beta so such Bugs are to be expected :)

Perfect works, now. Great work!!! :)


INSTALLED ;)

TruthElixirX
09-10-2005, 07:04 AM
Yes it is set as a product and no that column is not there.


Any idea yet on what could be my roblem?

Andreas
09-10-2005, 07:09 AM
No idea, sorry.
Feel free to send me a PM with an ACP Login and i'll take look.
Mental note to myself: You need a support ticket system.

TosaInu
09-10-2005, 07:21 AM
You mean adding the Warningpoints bit in postbit-legay Michael-DLR? I got something. I added it after <if condition="$show['reputation']">
<div><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower]</if>$post[reputationdisplay]</div></if>

I didn't get an error when warning a member.

TruthElixirX
09-10-2005, 07:28 AM
No idea, sorry.
Feel free to send me a PM with an ACP Login and i'll take look.
Mental note to myself: You need a support ticket system.


Just thought of something. If in my config.php I ave it set to where no one, not even myself, can run queries could this be affecting it?

TosaInu
09-10-2005, 07:39 AM
1) Regarding the $validfields error:
There was a slight Typo in Plugin "AWS: Setup UserDM", should have been $this->validfields instead of $this->validvields.
Dunno why I didn't notice any errors though ...


Nice. Wasn't the note field also added by this hack. Shouldn't it have a $this line in that plugin too?

Andreas
09-10-2005, 07:39 AM
No. Queries are run by the System.

kommuni
09-10-2005, 11:47 AM
Registering works fine for me. Where exactly do you get Problems?
Btw: I meant are you using RC3? ;)

Hi Kirby,

i'm using a blank RC3-Installation and it is reproducable the AWS - when i deactivate it the problems go away. :( strange thingy.

Andreas
09-10-2005, 12:00 PM
Did you try Product Version 1.0.1?

TosaInu
09-10-2005, 12:44 PM
These fields are added to MySQL table users (by the installer of course).
'warnings' 'warning_level' 'warning_bans' 'alerts' 'warn_notes'

And this is (oddly?) required in plugin manager AWS: Setup UserDM to get it working for adding new members. I say oddly, because I fail to see the logic of warning stuff for registering new members. I'ld expect that the SQL server just uses default values when there's no info supplied by the board.

$this->validfields['alerts'] = array(TYPE_INT, REQ_NO);
$this->validfields['warnings'] = array(TYPE_INT, REQ_NO);
$this->validfields['warning_level'] = array(TYPE_INT, REQ_NO);
$this->validfields['warning_bans'] = array(TYPE_INT, REQ_NO);

Why not

$this->validfields['alerts'] = array(TYPE_INT, REQ_NO);
$this->validfields['warnings'] = array(TYPE_INT, REQ_NO);
$this->validfields['warning_level'] = array(TYPE_INT, REQ_NO);
$this->validfields['warning_bans'] = array(TYPE_INT, REQ_NO);
$this->validfields['warn_notes'] = array(TYPE_UINT, REQ_NO);

TruthElixirX
09-10-2005, 04:07 PM
I uninstalled AWS and reinstalled it and everything works fine. Tables got added. :).

EDIT:: Heh. I just tried Alerting a user for something and got this after clicking "Add Warning"

print_standard_error(...)
is now redundant. Instead, use
standard_error(fetch_error(...))

GoTTi
09-10-2005, 06:53 PM
your instructions are off i think. are you following instructions off a clean copy of vbulletin? when im searching for things in the template to modify, im getting not found errors. i gotta search for partial codes to get the right spot. so far this problem has been in the postbit areas.

installing on 350 rc3

sv1cec
09-10-2005, 07:43 PM
This seem to conflict with ZT's RPG Inferno hack... as when I installed this, I cannot run his.

It comes up with this error when I try to access inferno... I know that you guys don't really support this kind of stuff, but I would like to know if there's a possible way to fix it :nervous:

Fatal error: Cannot redeclare sendpm() (previously declared in /home/blootix/public_html/forums/inferno.php:576) in /home/blootix/public_html/forums/includes/functions_warning.php on line 23

Please compare the two routines with that name, the one used by AWS and the one used by the other hack. If the two are the same (and I think they will be), you can delete one of the two. I think ZT is using this routine in his new hacks, if it is not changed from the one he used in his initial Warning hack, then the one or the other can be deleted. If it is, then you have to somehow rename the routine in one of the two hacks, and change the callings to that routine, to use the new name.

Does this make sense?

Andreas
09-10-2005, 08:19 PM
@TosaInu
The Code is not required when a new User registers.
But it is necessary if you add a new User through ACP, as the User Manager shows these Fields.
So they get set to the Datamanager when saving, and thus must be decalred as being valid.
warn_notes was not added becasue the Code this Version is based off does not support
them.

@GoTTi
I didn't check the instructions for RC3, but they were fine for RC1.
Gonna check that now.

@TruthElixirX
Thanks for pointing this out, will be fixed soon.

TruthElixirX
09-10-2005, 09:21 PM
@TruthElixirX
Thanks for pointing this out, will be fixed soon.


Awesome. Thank you. :).

eNforce
09-10-2005, 09:33 PM
This is sweet.

Some problems I have are:

I removed the joindate bit out of my postbit_legacy so I have no where to put the warned sign code, i've tried to put it in a bunch of other places but it never worked and screwed up some tables.

And, I need to know if it's possible to NOT allow a certain usergroup to use the warning system. I don't want my Moderators to be able to use it, I want to allow admins and super mods only?

Andreas
09-10-2005, 09:44 PM
No, this is currently not possible.
I'll have to check if there is a way to do this for future Versions though.

eNforce
09-10-2005, 10:39 PM
Here's my current postbit_legacy:

<!-- post #$post[postid] -->
<if condition="$show['spacer']">
$spacer_open
<if condition="!$post['islastshown']">
<div style="padding:0px 0px 0px 0px">
<else />
<if condition="$post['toppadding']">
<div style="padding:$stylevar[cellpadding]px 0px 0px 0px">
</if>
</if>
<div id="edit$post[postid]">
</if>

<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr valign="top">
<td class="<if condition="$post[postcount] % 2">alt2<else />alt1</if>" width="200">

<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
</div>

<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
<if condition="$show['avatar']">
<div class="smallfont">
&nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
</if>
<if condition="$show['warning']"><br /><br /><div class="smallfont">$post[warning]</div></if>
<div class="smallfont">
&nbsp;<br />
<!-- checks for warning system -->
<if condition="THIS_SCRIPT=='showthread' AND $buttons=='Text'">
<if condition="$showwarnlink==1">
<if condition="$vboptions['warn_allownotes']==1">
<a href='Warn.php?do=NoteUser&id=$post[userid]&post=$post[postid]'>Add Note for $post[username]</a>&nbsp;</if>
<a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'>Warn $post[username]</a>&nbsp;
</if>
<if condition="$showviewwarnlink==1">
<a href='Warn.php?do=ViewWarnings&id=$post[userid]'>View Warnings</a>&nbsp;
</if>
<if condition="$showviewyourslink==1">
<a href='Warn.php?do=ViewMyWarnings'>View My Warnings</a> &nbsp;
</if>
</if>
<if condition="THIS_SCRIPT=='showthread' AND $buttons=='Buttons'">
<if condition="$showwarnlink==1">
<if condition="$vboptions['warn_allownotes']==1">
<a href='Warn.php?do=NoteUser&id=$post[userid]&post=$post[postid]'><input type="button" class="button" name="warn" value="Add Note for $post[username]" accesskey="n" onClick="window.location='Warn.php?do=NoteUser&id=$post[userid]&post=$post[postid]'"></a> &nbsp;
</if>
<a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'><input type="button" class="button" name="warn" value="Warn $post[username]" accesskey="w" onClick="window.location='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'"></a> &nbsp;
</if>
<if condition="$showviewwarnlink==1">
<a href='Warn.php?do=ViewWarnings&id=$post[userid]'><input type="button" class="button" name="warn" value="View Warnings" accesskey="v" onClick="window.location='Warn.php?do=ViewWarnings&id=$post[userid]'"></a>&nbsp;
</if>
<if condition="$showviewyourslink==1">
<a href='Warn.php?do=ViewMyWarnings'><input type="button" class="button" name="warn" value="View My Warnings" accesskey="v" onClick="window.location='Warn.php?do=ViewMyWarnings'"></a>&nbsp;
</if>
</if>
<!-- end of warning system -->

<if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower]</if>$post[reputationdisplay]</div></if>
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>

</div>

</td>
<if condition="$show['moderated']">
<td class="<if condition="$post[postcount] % 2">alt2<else />alt1</if>" id="td_post_$post[postid]">
<else />
<td class="<if condition="$post[postcount] % 2">alt2<else />alt1</if>" id="td_post_$post[postid]">
</if>

<if condition="$show['messageicon'] OR $post['title']">
<!-- icon and title -->
<div class="smallfont">
<if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
<if condition="$post['title']"><strong>$post[title]</strong></if>
</div>
<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<!-- / icon and title -->
</if>

<!-- message -->
<div id="post_message_$post[postid]">$post[message]</div>
<!-- / message -->

<if condition="$show['attachments']">
<!-- attachments -->
<div style="padding:$stylevar[cellpadding]px">

<if condition="$show['thumbnailattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_thumbnails]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[thumbnailattachments]
</div>
</fieldset>
</if>

<if condition="$show['imageattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[imageattachments]
</div>
</fieldset>
</if>

<if condition="$show['imageattachmentlink']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[imageattachmentlinks]
</table>
</fieldset>
</if>

<if condition="$show['otherattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_files]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[otherattachments]
</table>
</fieldset>
</if>

<if condition="$show['moderatedattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attachments_pending_approval]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[moderatedattachments]
</table>
</fieldset>
</if>

</div>
<!-- / attachments -->
</if>

<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>

<if condition="$show['postedited']">
<!-- edit note -->
<div class="smallfont"> <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<em>
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
<if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
</em>
</div>
<!-- / edit note -->
</if>

</td>
</tr>
<tr>
<td class="<if condition="$post[postcount] % 2">alt2<else />alt1</if>">
$post[onlinestatus]
<if condition="$show['reputationlink']"><a href="#" onclick="reputation($post[postid]); return false;"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" border="0" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" /></a></if>
<if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a></if>
$post[iplogged]
&nbsp;
<span class="smallfont">
<if condition="!$show['start_until_end']">
$post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
<else />
<phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
</if>
</span>
</td>
<if condition="$show['moderated']">
<td class="<if condition="$post[postcount] % 2">alt2<else />alt1</if>" align="$stylevar[left]">
<else />
<td class="<if condition="$post[postcount] % 2">alt2<else />alt1</if>" align="$stylevar[left]">
</if>
<!-- controls -->
<if condition="$post['editlink']">
<a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
</if>
<if condition="$post['forwardlink']">
<a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
</if>
<if condition="$post['replylink']">
<a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
</if>
<if condition="$show['quickreply'] AND !$show['threadedmode']">
<a href="$post[replylink]" rel="nofollow" id="qr_$post[postid]" onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
</if>
<if condition="$show['moderated']">
<img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" />
</if>
<if condition="$show['postcount']">#&nbsp;<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow"><strong>$post[postcount]</strong></a></if>
<if condition="$show['inlinemod']">
<input type="checkbox" name="plist[$postid]" id="plist_$postid" style="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]" onclick="inlineMod.toggle(this)" /></if>

</td>
<!-- / controls -->
</td>
</tr>
</table>

<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$post[username]</td>
</tr>
<if condition="$show['profile']">
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
</if>
<if condition="$show['pmlink']">
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['emaillink']">
<tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['homepage']">
<tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
</if>
<if condition="$show['search']">
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_more_posts_by_x]</phrase></a></td></tr>
</if>
<if condition="$post['userid'] AND $show['member']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
</if>
</table>
</div>
<!-- / post $post[postid] popup menu -->

<if condition="$show['spacer']"></div><if condition="!$post['islastshown']"></div></if>$spacer_close</if>
<!-- / post #$post[postid] -->

can someone tell me where I could put the code to diplay the warned image?

Andreas
09-10-2005, 10:57 PM
Updated, details see first Post.

eNforce
09-10-2005, 11:39 PM
Thanks for that update, worked perfectly!

IceBurn3000
09-11-2005, 01:13 AM
I am using v1.0.2 of this product on a live RC3 Forum.

The automatic warnings work fine, except, when a PM is sent to the user from the Automatic Warner, it doesn't actually show who the PM was sent by.

Also, in the AdminCP AWS navgroup, when i click on "View Auto-Warned PMs" i get this vBulletin message: Could not find phrase 'warning_warn_noautomaticpm'

Otherwise, all is good at the moment. :)

TruthElixirX
09-11-2005, 04:07 AM
I am using v1.0.2 of this product on a live RC3 Forum.

The automatic warnings work fine, except, when a PM is sent to the user from the Automatic Warner, it doesn't actually show who the PM was sent by.

Also, in the AdminCP AWS navgroup, when i click on "View Auto-Warned PMs" i get this vBulletin message: Could not find phrase 'warning_warn_noautomaticpm'

Otherwise, all is good at the moment. :)

I too am missing phrases.

I am missing:

error_moveillegalforum
warning_warn_noautomaticpm

I'm guessing just two phrases got skipped over in the new XML document. I also tried opening up a phrase and saving it as I've seen other hacks ask you to do before to update the phrase system and this did not help.


I signed up for the bug tracker but, I'm still waiting on the confirmation e-mail.

Andreas
09-11-2005, 04:52 AM
Don't know where these Phrases came from (they don't seem to be in the 3.0 Version), but I've added them.
But as this is just a cosmetic issue I will not update the ZIP now ...w wating for more problems ;)

@TruthElixirX
You should have gotten the eMail immediately. Spam Filter?
Edit: I guess you will never get it ... xyz@gmailc.om is what you've entered :D
Gonna change that manually now.

TruthElixirX
09-11-2005, 05:08 AM
Don't know where these Phrases came from (they don't seem to be in the 3.0 Version), but I've added them.
But as this is just a cosmetic issue I will not update the ZIP now ...w wating for more problems ;)

@TruthElixirX
You should have gotten the eMail immediately. Spam Filter?
Edit: I guess you will never get it ... xyz@gmailc.om is what you've entered :D
Gonna change that manually now.

wow...xyz@gmailc.om.....O_o.... I might need to go check my deskto's keyboard out. Thanks for changing it. :D




So can we jsut add those phrases into the system and make thier text jsut a blank space?

Andreas
09-11-2005, 05:24 AM
Leave the phrases as-is at the moment, they will be included when the ZIP gets the next Update.

sv1cec
09-11-2005, 05:25 AM
I am missing:

error_moveillegalforum
warning_warn_noautomaticpm

Strange, I do not have them in my system either.

IceBurn3000
09-11-2005, 05:35 AM
The automatic warnings work fine, except, when a PM is sent to the user from the Automatic Warner, it doesn't actually show who the PM was sent byWhat about this?

Andreas
09-11-2005, 05:36 AM
I think that works for me ... gonna check

Andreas
09-11-2005, 06:43 AM
Updated. Details see first Post.

TosaInu
09-11-2005, 08:26 AM
Thanks for explaining KirbyDE.

Delphiprogrammi
09-11-2005, 12:34 PM
hi people,

i installed this i was waiting for the vb3.0.5(RC3) version all went fine but went i click the "view autowarned pm's " link in my control panel i get this MySQL error


Database error in vBulletin 3.5.0 Release Candidate 3:

Invalid SQL:
SELECT COUNT(*) AS pms FROM vb3_pmtext_warned AS pm;

MySQL Error : Table 'delphipr_forums.vb3_pmtext_warned' doesn't exist
Error Number : 1146
Date : Saturday, September 10th 2005 @ 08:25:29 PM
Script : http://www.delphiprogramming.be/admincp/admin_warn.php?act=viewwarnedpms
Referrer : http://www.delphiprogramming.be/admincp/index.php?do=nav
IP Address : ********
Username : ****
Classname : vb_database


now what's up with that ?

eNforce
09-11-2005, 01:13 PM
When I try to do a complete removal of a warning it takes me to my sites 404 page.

http://www.mysite.com//admin_warn.php?act=completeremove&id=1&userid=19&uname=John%20Doe&wname=Off%20Topic%20in%20General%20Discussions%20f orums&postid=7940&orderstring=
^ note there is an extra back slash but even removing this and trying the link doesn't work

sv1cec
09-11-2005, 01:52 PM
delphipr_forums.vb3_pmtext_warned

Do you have a table pmtext_warned in your database?

sv1cec
09-11-2005, 02:22 PM
KirbyDE, I may have added those two phrases manually, when I was working on the vB 3.5 port. Check in the test system for the proper wording.

Sorry gentlemen, asynchronous communications, caused by me. do not blame KirbyDE for that.

TruthElixirX
09-11-2005, 03:27 PM
Thanks guys. You're awesome. ^_^.

Edit: I tested it out and everything appears ot run fine on my RC3 Testboard.

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


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

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


Replace

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;

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;


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:

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 :)

Delphiprogrammi
09-13-2005, 12:38 PM
hi people,

is it normal i get such an "ugly" area in the warning system ? you can see what i mean in the attached screenshot now that's ugly !

wcbryant
09-13-2005, 02:06 PM
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 :)


Thanks a bunch, Kirby.

I ran into another area with 'caused_ban', but was able to figure out how to add that from the product.

Tested the system after, and the test warning went through.

I don't know what version of AWS for 3.0.0 I was running, but clearly I was missing some columns.

Now I'm wondering if I'm missing others and just don't know it yet. Will have to watch it as the mods start using it.

sv1cec
09-13-2005, 02:13 PM
hi people,

is it normal i get such an "ugly" area in the warning system ? you can see what i mean in the attached screenshot now that's ugly !

When does this appear?

EdQ
09-13-2005, 07:28 PM
I get an error when I send a PM

/forums/includes/class_dm_pm.php(523) : eval()'s code on line 96

Also users could not view their PM's

"this page can not be displayed."

eNforce
09-13-2005, 09:00 PM
I get an error when I send a PM

/forums/includes/class_dm_pm.php(523) : eval()'s code on line 96


Also users could not view their PM's

"this page can not be displayed."

https://vborg.vbsupport.ru/showpost.php?p=771882&postcount=68

This fixed worked for me :)

EdQ
09-13-2005, 09:03 PM
Doh, I did a search and that post didn't come up. ;)

EdQ
09-13-2005, 09:19 PM
Well I cannot uninstall it completely. I wanted to start over.

The AWS is still in the AdminCP.

I get this error when trying to reinstall.

plugin.php (1192) : eval ()'d code on line 12

thecool
09-13-2005, 11:15 PM
okay, i got this work before (when i using 1.0) i disabled it because it messed with my user options as well as my pms.

reinstalled it today (uploaded all the appropriate files, etc), but it doesn't show up anywhere on the actual board itself. I see it in the admin control panel, but i don't have the same warn this user options i had before on the actual board itself.


QUESTION? where there any changes made in the readme for the templates?

thanks

TruthElixirX
09-13-2005, 11:34 PM
Well I cannot uninstall it completely. I wanted to start over.

The AWS is still in the AdminCP.

I get this error when trying to reinstall.

plugin.php (1192) : eval ()'d code on line 12


Re-uplaod al lthe files in the new zip. Then go to add new product and select the option to over write the current version. If thats what you did then perhaps you have a bad vb file? I'm no expert at this jsut trying to offer a little help befoer the "pros" get hre in case ur desperate. :)


@TheCool
Did you apply the template edits to all styles?

thecool
09-13-2005, 11:41 PM
Re-uplaod al lthe files in the new zip. Then go to add new product and select the option to over write the current version. If thats what you did then perhaps you have a bad vb file? I'm no expert at this jsut trying to offer a little help befoer the "pros" get hre in case ur desperate. :)


@TheCool
Did you apply the template edits to all styles?

i'd done them from before in 1.0 did they change. (God it was a tedious update), i changed a few and scanned through the rest of them to make sure they changed.

in a nutshell. i'd changed them in 1.0
scanned for the changes in my templates in 1.03, they all looked the same.

where they different?

TruthElixirX
09-14-2005, 12:01 AM
Not that I noticed. I've had it installed since 1.0 as well. Are you sure you didn't revert the templates or upgrade your vB version and had to revert some of the templates?

EdQ
09-14-2005, 01:03 AM
Thanks, I tried that already. No change. The only thing I may have forgotten to do, was upload the other xml file before installing.

Re-uplaod al lthe files in the new zip. Then go to add new product and select the option to over write the current version. If thats what you did then perhaps you have a bad vb file? I'm no expert at this jsut trying to offer a little help befoer the "pros" get hre in case ur desperate. :)


@TheCool
Did you apply the template edits to all styles?

Andreas
09-14-2005, 01:08 AM
Well I cannot uninstall it completely. I wanted to start over.

The AWS is still in the AdminCP.

I get this error when trying to reinstall.

plugin.php (1192) : eval ()'d code on line 12
plugin.php does not have an eval() call on line 1192.
Are you sure you are using RC3?

@thecool
The Template Edits are basically still the same, just the references to search for have changed slightly.

EdQ
09-14-2005, 01:25 AM
I have this on line 1192

eval($code['installcode']);


And yes RC3

plugin.php does not have an eval() call on line 1192.
Are you sure you are using RC3?

@thecool
The Template Edits are basically still the same, just the references to search for have changed slightly.

Andreas
09-14-2005, 01:29 AM
I got

$templates = array($templates);

on line 1192, but I might have a different RC3 then you (CVS Revision 1.57) :)

OK, fixed.

EdQ
09-14-2005, 01:53 AM
Well I don't get that error anymore. But AWS is still in my AdminCP

Andreas
09-14-2005, 01:54 AM
Yeah, the cpnav is attached to vbulletin, didn't notice that :)
Anyway, just remove the File and it's gone.
I'll update the ZIP but won't increase the Version Number as it isn't a real issue.

EdQ
09-14-2005, 02:00 AM
Cool, that worked ;)

EdQ
09-14-2005, 04:10 PM
If I used the "Private Messaging Cut-off Limit" when the user exceeds the number. He won't be able to send PM's till he falls under the limit which is set by Warn Maturity. So if I set the Warn Maturity to 30 days, he won't be able to use PM's for 30 days??

A user could be banned for just one day. But have their PM's taken away for 30 days. Doesn't sound right.
Can we have a preset setting or incremental like bans?

EdQ
09-14-2005, 04:27 PM
I get this error when trying to warn a user from the AdminCP

An error has occured, the following message has been left below:

Invalid User ID Input

jugo
09-14-2005, 04:28 PM
Pleasure helping you out Man...

jugo (AKA: Juan hernandez).

Andreas
09-14-2005, 04:29 PM
I get this error when trying to warn a user from the AdminCP
Where exactly do you get this?

EdQ
09-14-2005, 04:31 PM
Its also looking for admin_warn.php when trying to view warnings from MODCP

EdQ
09-14-2005, 04:35 PM
Where exactly do you get this?

User options in AdminCP, click Warn (Non-post related) button

Andreas
09-14-2005, 04:39 PM
User options in AdminCP, click Warn (Non-post related) button
You mean in User Manager, right?
Then this works for me.

Andreas
09-14-2005, 04:51 PM
Its also looking for admin_warn.php when trying to view warnings from MODCP
Confirmed. That happens because the same Code gets executed there.
I tend to make it so to hide that section in ModCP completely, but will have to wait for sv1cec.

EdQ
09-14-2005, 04:55 PM
You mean in User Manager, right?
Then this works for me.


Thats is the correct, user manager

EdQ
09-14-2005, 05:03 PM
Looking at the properties of the error page. Its missing the UserID at the end of the URL

Andreas
09-14-2005, 05:16 PM
Are you sure you are using at least 1.0.3?

EdQ
09-14-2005, 05:23 PM
Yes, I am on 1.04.

And if I copy that url to my browser and add the userID, it works.

I just noticed if I mouse-over the button. The URL is correct, it also has the userid.

Andreas
09-14-2005, 05:28 PM
Weird. Can you attach the HTML source of the Page here?

EdQ
09-14-2005, 05:43 PM
I see the issue...

Andreas
09-14-2005, 06:00 PM
Fix

Plugin = AWS: Show Warning Info in User Manager (ACP)


print_table_break('', $INNERTABLEWIDTH);

print_table_header("Warnings Information");
print_input_row('Alerts', 'user[alerts]', $user['alerts']);
print_input_row('Warnings', 'user[warnings]', $user['warnings']);
print_input_row('Warning Level', 'user[warning_level]', $user['warning_level']);
print_input_row('Bans', 'user[warning_bans]', $user['warning_bans']);
print_description_row("<center><a href=\"../Warn.php?$session[sessionurl]do=WarnUserNoPost&return=user&id=$user[userid]\">
<input type=\"button\" class=\"button\" name=\"warn\" value=\"Warn $post[username] (non-post related)\" accesskey=\"w\" onClick=\"window.location='../Warn.php?$session[sessionurl]do=WarnUserNoPost&return=user&id=$user[userid]'\"></a>&nbsp;
<a href=\"admin_warn.php?act=do_finduserwarnings&userid=$user[userid]\">
<input type=\"button\" class=\"button\" name=\"warn\" value=\"View $user[username]'s Warnings\" accesskey=\"v\" onclick=\"window.open('admin_warn.php?act=do_finduserwarning s&userid=$user[userid]','','width=1024, height=500, resizable=yes, scrollbars=yes'); return false;\"></a>
</center>");


Guess my Firefox used the Link instead the JS.

EdQ
09-14-2005, 06:00 PM
Is this the problem?

<input type=\"button\" class=\"button\" name=\"warn\" value=\"Warn $post[username] (non-post related)\" accesskey=\"w\" onClick=\"window.location='../Warn.php?$session[sessionurl]do=WarnUserNoPost&return=user&id=$userid'\"></a>&nbsp;

it need to be

<input type=\"button\" class=\"button\" name=\"warn\" value=\"Warn $post[username] (non-post related)\" accesskey=\"w\" onClick=\"window.location='../Warn.php?$session[sessionurl]do=WarnUserNoPost&return=user&id=$user[userid]'\"></a>&nbsp;

EdQ
09-14-2005, 06:07 PM
Fix

Plugin = AWS: Show Warning Info in User Manager (ACP)


print_table_break('', $INNERTABLEWIDTH);

print_table_header("Warnings Information");
print_input_row('Alerts', 'user[alerts]', $user['alerts']);
print_input_row('Warnings', 'user[warnings]', $user['warnings']);
print_input_row('Warning Level', 'user[warning_level]', $user['warning_level']);
print_input_row('Bans', 'user[warning_bans]', $user['warning_bans']);
print_description_row("<center><a href=\"../Warn.php?$session[sessionurl]do=WarnUserNoPost&return=user&id=$user[userid]\">
<input type=\"button\" class=\"button\" name=\"warn\" value=\"Warn $post[username] (non-post related)\" accesskey=\"w\" onClick=\"window.location='../Warn.php?$session[sessionurl]do=WarnUserNoPost&return=user&id=$user[userid]'\"></a>&nbsp;
<a href=\"admin_warn.php?act=do_finduserwarnings&userid=$user[userid]\">
<input type=\"button\" class=\"button\" name=\"warn\" value=\"View $user[username]'s Warnings\" accesskey=\"v\" onclick=\"window.open('admin_warn.php?act=do_finduserwarning s&userid=$user[userid]','','width=1024, height=500, resizable=yes, scrollbars=yes'); return false;\"></a>
</center>");


Guess my Firefox used the Link instead the JS.

Ok that worked. :) But can it be started in a new window?

Andreas
09-14-2005, 06:11 PM
Yes it can.
(If you are a fan of new Windows, I am not - prefer Tabs)

EdQ
09-14-2005, 06:30 PM
Thanks!

EdQ
09-14-2005, 06:35 PM
Did this make sense??

If I used the "Private Messaging Cut-off Limit" when the user exceeds the number. He won't be able to send PM's till he falls under the limit which is set by Warn Maturity. So if I set the Warn Maturity to 30 days, he won't be able to use PM's for 30 days??

A user could be banned for just one day. But have their PM's taken away for 30 days. Doesn't sound right.
Can we have a preset setting or incremental like bans?

Andreas
09-14-2005, 06:42 PM
Hmm, why not?
A Ban is stronger than turning of PMs, so why souldn't it be possible to turn them off longer than a ban lasts?

thecool
09-14-2005, 10:21 PM
Found this bug while trying to remove a user warning

The requested URL /~user1/forums//admin_warn.php was not found on this server.

i'm assuming the error is with the //

Andreas
09-14-2005, 10:33 PM
Where exactly did you get this message?

EdQ
09-14-2005, 10:36 PM
Get this error trying to send a non-post warning from user manager.

An error has occured, the following message has been left below:

Invalid Warning Type Specified

And I cannot chose a type.

EdQ
09-14-2005, 10:37 PM
Never mind. I guess you cannot have a warning as a post and non-post.

EdQ
09-15-2005, 01:23 AM
PM Cut Off Limit set to 0.

User can't PM when he gets a warning.

Andreas
09-15-2005, 01:30 AM
That's why it does send eMails in this case - at least it should.

EdQ
09-15-2005, 01:40 AM
I thought by entering zero, the system would not stop PM's??

Andreas
09-15-2005, 01:44 AM
Whoops, didn't read the 0 :)
You're right, 0 should turn ob PM cutoff.
Doesn't it?

thecool
09-15-2005, 02:43 AM
Where exactly did you get this message?

Thanks, nevermind the problem remedied itself. If it surfaces again, i'll post something.

thanks

EdQ
09-15-2005, 02:47 AM
Whoops, didn't read the 0 :)
You're right, 0 should turn ob PM cutoff.
Doesn't it?

Nope.

sv1cec
09-15-2005, 04:49 AM
If you set the PM Cut-off to 0, then the PM system should not be disabled for a warned user.

Check that your functions_warning.php contains the following code:


if (($vbulletin->options['warn_send_pm_warning']==1 AND $vbulletin->options['warn_pmcutoff']==0) OR ($vbulletin->options['warn_send_pm_warning']==1 AND $vbulletin->options['warn_pmcutoff']!=0 AND $level<$vbulletin->options['warn_pmcutoff']))
{
$messageb="";
$name=$user['username'];

if ($wcomment=='' AND $vbulletin->options['warn_autocomments']==1)
{
$wcomment=$warn_type['warn_desc'];
}

if ($wcomment=='' AND $vbulletin->options['warn_allowalertscomment']==1 AND $alert=='Yes')
{
$wcomment=$warn_type['warn_alertcomment'];
}

EdQ
09-15-2005, 05:12 AM
It looks all there.

So if the Cut-off is 0 the PM is not disabled???

KimmiKat
09-15-2005, 08:29 AM
Really nice Mod! :)

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.

sv1cec
09-15-2005, 11:15 AM
No, if the PM Cut-Off is set to 0 then each warning you issue, should result in a PM send to the warned member. Even if the warning points reach the maximum (the ban limit - 1), the member should still receive a PM and be able to use the PM System.

Delphiprogrammi
09-15-2005, 11:16 AM
When does this appear?

on all the pages of aws regardless what you do "view your warning" "warn a user" etc etc other people don't have this problem so it must be something i did wrong but i doublechecked the template edits ...

sv1cec
09-15-2005, 11:26 AM
hi people,

is it normal i get such an "ugly" area in the warning system ? you can see what i mean in the attached screenshot now that's ugly !

Check your warn_viewtype_end template and find something like this:


<td class="tfoot" colspan="8" align="right">


Your template should have a value of 7 or something. Count the number of columns above the line which is wrong, and change the colspan to the value you find.

Rgds

Delphiprogrammi
09-15-2005, 12:25 PM
Check your warn_viewtype_end template and find something like this:


<td class="tfoot" colspan="8" align="right">


Your template should have a value of 7 or something. Count the number of columns above the line which is wrong, and change the colspan to the value you find.

Rgds

that did it thanks John

EdQ
09-15-2005, 02:17 PM
No, if the PM Cut-Off is set to 0 then each warning you issue, should result in a PM send to the warned member. Even if the warning points reach the maximum (the ban limit - 1), the member should still receive a PM and be able to use the PM System.

Thats what I thought. But as soon as I warn a user. I cannot send them a PM.

sv1cec
09-15-2005, 04:07 PM
Now, I am totally confused. When you warn a user, ]b]YOU[/b] cannot send them a PM? When PM is off for a user, he can not access the PM system, how did you manage to affect YOUR PM system? Can you send a PM to a user you have not warned?

EdQ
09-15-2005, 04:13 PM
That is correct, I cannot sent the user I warned a PM. I verified that PM's are turned on for the warned user.

I can PM other users.

user has chosen not to receive private messages or may not be allowed to receive private messages. Therefore you may not send your message to him/her.

sv1cec
09-15-2005, 04:18 PM
Check the edits you have made in private.php. I can't understand why this happens, this is a first.

Oh wait a minute, this is 3.5 right? Oh, I guess KirbyDE should take a look at this. I do not know what to suggest.

EdQ
09-15-2005, 04:24 PM
Disregard, the user hit the ban threshold and I didn't realize he was banned.

Sorry.....

Andreas
09-15-2005, 04:26 PM
Check the edits you have made in private.php. I can't understand why this happens, this is a first.

There are no edits in private.php ;)

EdQ
09-15-2005, 04:27 PM
How long does the PM cut-off last for?? I am guessing it follows the warn maturity??

If so, can it be set to increment like bans??

I have my maturity set to 30 days and bans to increment starting at 1 day.

It looks like PM cut-off will last longer than the ban.

sv1cec
09-15-2005, 05:42 PM
There are no edits in private.php ;)

I guessed so, but for the name of God, I can't tell what is the problem with this guy, if you have a clue, I am listening.

sv1cec
09-15-2005, 05:44 PM
How long does the PM cut-off last for?? I am guessing it follows the warn maturity??

If so, can it be set to increment like bans??

I have my maturity set to 30 days and bans to increment starting at 1 day.

It looks like PM cut-off will last longer than the ban.

PM Cut-off depends on the points the member has. So yes, it follows maturity. The maturity depends on the warning type. Less severe warning types should have a small maturity, more severe ones, should have larger.

WNxWakko
09-17-2005, 04:02 AM
When you had this for 3.0, we modded it so that it didnt have two segments 1. post related 2. profile related. We combined it so the system would just run off one set of programmed warnings and if it was post related it took the info, if it was not post related, then it didnt show any thead info. It seems more logical to have the system this way.

Reason is, what if you have a rule that could be either post related or not post related. Seems silly to have to program that same law twice in the system.

Cant you just combine it? Drop the post related/non post related feature and just make it one set where the system pulls the thread link if the warn comes from the post or not if from profile?

I just dont remember how to merge it from a year ago and really dont want to go through that again.

Andreas
09-17-2005, 04:07 AM
Seems to be more logical to me to have separate warning types.
Don't know hiw sv1cec thinks about it, but I think it should not be changed.

WNxWakko
09-17-2005, 04:09 AM
Why have two seperate. What Im saying is the way we modded this mod a year ago was the system determined if it was post or nonpost related in itself.

I have 10 laws which have different criterias and could be both, so that means I have to create 20 warnings in the system, 10 for each and when you look at the summary page showing all the warnings you could get it looks horrible with 10 dupes.

sv1cec
09-17-2005, 04:40 AM
It could be modified to work as WNxWakko, but what's the reason? I fail to see the reason to spend some hours recoding that, just to save up some copying and pasting. I certainly do not have the time to do it.

Xplorer4x4
09-17-2005, 04:41 PM
Ok well I have several problems. Here we go:

1)First problem comes up when using the AWS menu in ACP. I can use the managing warning options but when I click Manage Warning Types I see the bar that sayd Current Warning Types but I get a DB error above it:
Database error in vBulletin 3.5.0 Release Candidate 3:
Invalid SQL:
select * from warning_types order by warn_points, warn_maturity, warn_name;
MySQL Error : Unknown column 'warn_maturity' in 'order clause'
Error Number : 1054
Date : Saturday, September 17th 2005 @ 12:29:21 PM
Script : /forums/admincp/admin_warn.php?act=view
Referrer : /forums/admincp/index.php?do=nav
IP Address : 12.220.52.153
Username : Xplorer4x4
Classname : vb_database


Warn User and View User Warnings. However when i click View Warnings Logs I get a white DB Error page:
Database error in vBulletin 3.5.0 Release Candidate 3:
Invalid SQL:
select w.*,u.username as wusername,u.userid as wuserid,wt.*,wuser.username as warned_username_v,wuser.userid as warned_userid_v, ruser.username as removed_by_v, (w.warned_time+wt.warn_maturity*24*60*60) AS maturitydate from
warnings w
left join user wuser on(wuser.userid=w.warned_user)
left join user u on(u.userid=w.warned_by)
left join user ruser on(ruser.userid=w.removed_by)
left join warning_types wt on(wt.tid=w.warned_warning_id) ORDER BY w.warned_time DESC LIMIT 0, 15;
MySQL Error : Unknown column 'wt.warn_maturity' in 'field list'
Error Number : 1054
Date : Saturday, September 17th 2005 @ 12:30:41 PM
Script : /forums/admincp/admin_warn.php?act=viewlogs
Referrer : /forums/admincp/index.php?do=nav
Username : Xplorer4x4
Classname : vb_database

When I click the setting for Statistics - Warnings For Users I get a DB Error:
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 : Saturday, September 17th 2005 @ 12:35:34 PM
Script : /forums/admincp/admin_warn.php?act=viewwarnedusers&type=warnings
Referrer : /forums/admincp/index.php?do=nav
Username : Xplorer4x4
Classname : vb_database

Also take note I had this installed on vB3.0. I noticed in the Statistics-Warnings Per Type that all my old warnings descriptions are active, but the warnings issued count is off.

I also had some problems with my postbit_legacy template, but I assume thats what I get for doing template mods at near 4AM:p.

Any ideas?

Andreas
09-17-2005, 06:33 PM
I suggest to uninstall the product and then import the XML again.
Please note that this will delete all your old warnings etc.

mcyates
09-17-2005, 07:56 PM
I keep getting this error when i enable the warning system (when i try to reply to messgaes or post new ones)


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

Andreas
09-17-2005, 08:07 PM
Do you use RC3?

mcyates
09-17-2005, 08:42 PM
No RC 2 is that the problem?

Andreas
09-17-2005, 08:43 PM
Yes it is.

mcyates
09-17-2005, 09:00 PM
Yes it is.


Ok thanks, looks like i'll have to upgrade then!!

eNforce
09-17-2005, 09:03 PM
Instead of having buttons or images for "Warn USER" & "View USERS Warnings" would I be able to use an image?

TruthElixirX
09-17-2005, 09:09 PM
I believe this is a preconfigured option.

AWS Options > Manage Warning Options > Formatting Options > Text/Buttons

Then take the three preincluded iamges and make new ones and name them the same as the old ones and upload.

eNforce
09-17-2005, 09:14 PM
The only images included are closeOFF.gif, closeON.gif & warn.gif

I want to change Warn Ritch & View Warnings into images, not text or the buttons ?

Andreas
09-17-2005, 09:17 PM
Edit Template postbit/postbit_legacy as you like

[Stryder]
09-17-2005, 11:24 PM
Where do you set up the warning types, I can't find it.

Andreas
09-17-2005, 11:28 PM
ACP / Advanced Warning System

Xplorer4x4
09-17-2005, 11:53 PM
When T instal the product XML there is a Phrase Error even thought it updates all the templates.

Parse error: parse error, unexpected ';' in /forums/admincp/plugin.php(1192) : eval()'d code on line 12

The hack also caused a DB error whenever I tried to edit a user.

Andreas
09-18-2005, 12:22 AM
Which product Version did you try to install?

Xplorer4x4
09-18-2005, 03:38 AM
I had an old product version, but still having a database problem when I try to edit a user. I uploaded the new PHP files just to be safe. It does not happen if I disable this hack.

Database error in vBulletin 3.5.0 Release Candidate 3: Invalid SQL:
UPDATE user SET
### Bitfield: user.options ###
options = IF(options & 8, options - 8, options),
options = IF(options & 1024, options, options + 1024),
options = IF(options & 16, options, options + 16),
options = IF(options & 256, options - 256, options),
options = IF(options & 512, options - 512, options),
options = IF(options & 32, options - 32, options),
options = IF(options & 2048, options, options + 2048),
options = IF(options & 4096, options - 4096, options),
options = IF(options & 1, options, options + 1),
options = IF(options & 2, options, options + 2),
options = IF(options & 4, options, options + 4),
options = IF(options & 64, options, options + 64),
options = IF(options & 128, options - 128, options),
options = IF(options & 32768, options - 32768, options),
usertitle = 'Wrestling Student',
customtitle = 0,
username = 'Mika',
email = '',
languageid = 1,
homepage = '',
birthday_search = '1972-01-18',
birthday = '01-18-1972',
icq = '',
aim = '',
yahoo = '',
msn = '',
parentemail = '',
posts = 101,
referrerid = 0,
ipaddress = '***.***.***.***',
ucash = '1838.59',
vbookie_cash = 500,
alerts = 0,
warnings = 0,
warning_level = 0,
warning_bans = 0,
usergroupid = 13,
reputationlevelid = 5,
reputation = 20,
pmpopup = 1,
autosubscribe = -1,
threadedmode = 0,
showvbcode = 1,
styleid = 0,
timezoneoffset = '-6',
daysprune = 0,
joindate = 1125405420,
lastactivity = 1127005860,
lastpost = 1127005860,
membergroupids = ''
WHERE userid = 125; MySQL Error : Unknown column 'alerts' in 'field list'
Error Number : 1054
Date : Saturday, September 17th 2005 @ 11:27:07 PM
Script : /forums/admincp/user.php
Referrer : /forums/admincp/user.php?do=edit&u=125
IP Address :
Username : Xplorer4x4
Classname : vb_database

I am still getting a completley white DB error page(not just the main frame) when I click Statistics - Warnings Per User.
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 : Saturday, September 17th 2005 @ 11:35:18 PM
Script : http://www.xtremepain.net/forums/admincp/admin_warn.php?act=viewwarnedusers&type=warnings
Referrer : http://www.xtremepain.net/forums/admincp/index.php
IP Address :
Username : Xplorer4x4
Classname : vb_database

I am also noticing that if a user has entered a yahoo ID, 2 vertical columned yahoo icons apear under the typical horizontal row of online icons.

I also have a cutom profile field on my postbit_legacy. This has changed the font of it as well.

NOTE That I have not installed any template mods yet.

Any idea how to fix this? Thanks Kirby.

Andreas
09-18-2005, 05:51 AM
Did you use the 3.0 Version and still have old Data (warnings, etc.) in your database?
If not I suggest to uninstall and then import the XML again.

There is no way your Templates can be affected if you did not apply Template Edits yet.

SkyShadow
09-18-2005, 09:37 AM
I have installed a old version of AWS. I mean it was 3.4.10.

Is it possible to use the old databases with the 3.5. version of this hack?

Andreas
09-18-2005, 10:01 AM
Yes, should work just fine.
To be 100% safe, I suggest to backup AWS tables (warnings, warn_notes, pmtext_warned, ban_dates; maybe also user and userban) first.

Xplorer4x4
09-18-2005, 04:56 PM
Did you use the 3.0 Version and still have old Data (warnings, etc.) in your database?
If not I suggest to uninstall and then import the XML again.

There is no way your Templates can be affected if you did not apply Template Edits yet.

I uploaded the latest XML and PHP files. It erassed all the previous warning data.

As far as the Yahoo icon problem goes, well I only installed two hacks yesterday and I uninstalled the other(PayPal Donations Hack).

Thanks.

Chad F.
09-18-2005, 06:29 PM
When I try to delete a warning type it says "Unable To Find Warning Type [ Go Back ]"

Xplorer4x4
09-19-2005, 03:12 AM
Either way the Yahoo Icon was the least of my worries....what about the database error? :-\ I haven't seen anyone else report it.

Anyways thanks all three of you for portin this. Zero's hack for 3.5 is an exact replica of the Invision Free warning sytem. This is much nicer and organized IMO.

Andreas
09-19-2005, 03:48 AM
It erassed all the previous warning data.
It for sure does not delete anything - unless you uninstall it.

Well, I can't help you as I don't know what could be going wrong.
Feel fre to send me a PM with an AdminCP account and i'll take a look.

@Chad F.
Confirmed.
Please report this as a Bug so it won't get lost.

eNforce
09-19-2005, 08:45 PM
No, this is currently not possible.
I'll have to check if there is a way to do this for future Versions though.

Just wondering if you have looked into this at all or made progress on it.

(being able to specify which user groups can use the warning system, i only wanted admins and super mods)

Andreas
09-19-2005, 10:16 PM
No. As said, i'll might look into this for future Versions but not any time soon.

sv1cec
09-20-2005, 02:43 AM
I had an old product version, but still having a database problem when I try to edit a user. I uploaded the new PHP files just to be safe. It does not happen if I disable this hack.

The database errors show that at least two columns, the warnings and the alerts, are missing from your user table. You can manually create them, by running the following query:


ALTER TABLE `".TABLE_PREFIX."user` add `warnings` int(5) default '0', add `alerts` int(5) default '0'


But I would suggest that you verify that no other columns are missing. These are the columns that AWS adds to your user table.

`warnings` int(5) default '0',
`warning_level` int(15) default '0',
`warning_bans` int(2) default '0',
`alerts` int(5) default '0',

Xplorer4x4
09-20-2005, 05:49 AM
Ok well i gave Kirby and Admin acount which I already deleted. Kirby got this instaled but there is still a problem. When i warned my friend to test the hack i get this error when i try to remove or Completley remove the warning:

Not Found

The requested URL /forums//admin_warn.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Thanks again Kirby but how can i remove the warning?

sv1cec
09-20-2005, 09:26 AM
admin_warn.php is supposed to be in admincp directory, I do not see it there in the error. Maybe you have not defined it? If I am not mistaken, that is defined in config.php or something.

Xplorer4x4
09-20-2005, 05:39 PM
How would I define it? I tried the configuration below:
$config['Misc']['admincpdir'] = '/forums/admincp';
And this did not seem to change anything. I tried logging out of my ACP and logging in and this did not resolve it.

Thanks

Xplorer4x4
09-21-2005, 12:26 AM
An error has occured, the following message has been left below:

Invalid User ID Input

And then I get this error when trying to use the non post related warning function.

Als note that this was my previous configuration:
$config['Misc']['admincpdir'] = 'admincp';

Xplorer4x4
09-21-2005, 10:37 PM
I know this hack is causing my user editing problem because if i disable the warning hack then it works fine.

Help please? Thanks.

Andreas
09-21-2005, 11:04 PM
Which Problems, and where exactly did you get the error from Post #166?

Xplorer4x4
09-21-2005, 11:14 PM
Yes and post 169. Thanks for the help Kirby.

Andreas
09-21-2005, 11:21 PM
I can't help if you don't answer my questions ...

1) Where exactly did you get the errors you described in Posts #166 and #169?

2) Which "user editing" Problems do you have?

Xplorer4x4
09-21-2005, 11:57 PM
1)
A)(Post #166)When i warned my friend to test the hack i get this error when i try to remove or Completley remove the warning: 404 Error

B)(Post 169)And then I get this error(Invalid User ID) when trying to use the non post related warning function.

2)I could have been clear on the user editing part. I can not save after making any changes to a user due to a DB error.

Kirk Y
09-22-2005, 01:19 AM
If the comment for a warning has quotation marks in it, they'll be displayed as &quot; when a message regarding the warning is posted.

EdQ
09-22-2005, 02:14 AM
When I try to delete a warning type it says "Unable To Find Warning Type [ Go Back ]"

Same issue

Unable To Find Warning Type [ Go Back ]

sv1cec
09-22-2005, 03:42 AM
OK, I checked the admin_warn.php code again. It looks as if I have forgotten some code, which is now required by vB.

Try this and let me know if it works:

In admin_warn.php find:


// ###################### Delete Warn Type #######################
if($_GET['act']=="delete")
{

print_cp_header("Advanced Warning System Version {$AWS_VERSION}");
if(!$warn=$db->query_first("select * from ".TABLE_PREFIX."warning_types where tid='{$_GET['tid']}'"))
{
echo "Unable To Find Warning Type [ <a href='javascript:history.go(-1);'>Go Back</a> ]";
exit;
}


Replace that with:


// ###################### Delete Warn Type #######################
if($_GET['act']=="delete")
{
$vbulletin->input->clean_array_gpc('g', array(
'tid'=> TYPE_INT,
'warn_name'=> TYPE_STR,
'warn_desc'=> TYPE_STR,
'warn_points'=> TYPE_INT,
'warn_maturity'=> TYPE_INT,
'warn_permban'=> TYPE_STR,
'warn_type'=> TYPE_STR,
'warn_alert'=> TYPE_STR,
'warn_alertcomment'=> TYPE_STR,
));
print_cp_header("Advanced Warning System Version {$AWS_VERSION}");
if(!$warn=$db->query_first("select * from ".TABLE_PREFIX."warning_types where tid=tid='{$vbulletin->GPC['tid']}'"))
{
echo "Unable To Find Warning Type [ <a href='javascript:history.go(-1);'>Go Back</a> ]";
exit;
}


Let me know if this solves the issue of deleting a warning type.

Xplorer4x4
09-22-2005, 03:49 AM
*goes to test* and ummm it seems that I can now save any edits to users without getting a DB error. I have no idea how that worked itself out:ermm:

EDIT:No that did not fix the issue with removeing a warning TYPE.

Hehe i thought this was the fix to remove warnings from a user. :(

EdQ
09-22-2005, 04:25 AM
Does not work.

Andreas
09-22-2005, 04:31 AM
1)
A)(Post #166)When i warned my friend to test the hack i get this error when i try to remove or Completley remove the warning: 404 Error

B)(Post 169)And then I get this error(Invalid User ID) when trying to use the non post related warning function.

2)I could have been clear on the user editing part. I can not save after making any changes to a user due to a DB error.
I still don't know where you get these errors :(
Please tell me exactly where you get them, eg.
- Which PHP File
- Where do I have to click
- What do I have to enter.

Thank you.

@acidburn0520
Gonna take a look at that.

Andreas
09-22-2005, 04:40 AM
Fix for "Unable to find Warning Type":

admin_warn.php
FIND

// ##################### Do Delete Warn Type ######################
if ($_POST['do'] == "do_delete_warn")
{


BELOW that ADD

$vbulletin->input->clean_array_gpc('p', array(
'tid' => TYPE_INT,
'verify' => TYPE_INT
));

sv1cec
09-22-2005, 04:41 AM
OK guys, the bug which didn't allow you to delete a Warning Type is now fixed. Just download the latest zip file and upload the file admin_warn.php to your web server.

Sorry, my bad.

sv1cec
09-22-2005, 04:46 AM
*goes to test* and ummm it seems that I can now save any edits to users without getting a DB error. I have no idea how that worked itself out

I tried editing a user and I have no problems. Anyone else has this issue?

Andreas
09-22-2005, 04:52 AM
If the comment for a warning has quotation marks in it, they'll be displayed as &quot; when a message regarding the warning is posted.
I don't seem to be able to reproduce this.
Can you tell me exactly which steps are necessary?

Xplorer4x4
09-22-2005, 04:53 AM
I tried editing a user and I have no problems. Anyone else has this issue?

So far I have seen no reports of it, BUT as I said aperently it did work its self out. So if I have another problem I will let you know but please do make note of the other errors I have mentioned as this was proabbly one of my favorite hacks for 3.0.X.

It apears that when you make the template mods a view warnings options should apear in the postbit_legacy template like in the hold hack. It doesn;t show up for me, or was that not ported into this hack?

Please note I am using RC3! Just FYI!

Andreas
09-22-2005, 05:04 AM
t apears that when you make the template mods a view warnings options should apear in the postbit_legacy template like in the hold hack. It doesn;t show up for me, or was that not ported into this hack?

You mean the Link "View {username}'s Warnings"?
It's there for me.

Xplorer4x4
09-22-2005, 05:10 AM
You mean the Link "View {username}'s Warnings"?
It's there for me.

Yes I see the link to Warn a user but not view there warnings. Also isn;t there suppose to be some sort of warning indicator in the user information around the Instant Message icons?

Again not sure these are observations i Was picking up on from the template edits. Neither of them show up.

Andreas
09-22-2005, 05:23 AM
Does show up for me
https://vborg.vbsupport.ru/

Check your Template Edits.

sv1cec
09-22-2005, 05:25 AM
Indeed I haven't ported the postbit_legacy template to the new version. KirbyDE can you take care of that, or shall I do it?

Andreas
09-22-2005, 05:28 AM
@sv1cec
There are Template Edit instructions in the readme.txt and they seem to work out fine for me on RC3, as shown in the screenshot above.

sv1cec
09-22-2005, 05:30 AM
Do they? I didn't check the instructions, I just went to the test site and checked the template. But in your picture, shouldn't there be something like:

Warnings: 1
Warning Points: 10
Bans: 1

or similar?

Andreas
09-22-2005, 05:35 AM
Right ... the instructions are a bit misleading.
Gonna clarify them now.

Xplorer4x4
09-22-2005, 05:42 AM
None of those template edits are showing up for me. :-\ As i said I notice all of these when I instaled the template mods but they are not showing up for me, but the warn option is. I coppied and pasted your directions EXACTLY so I do not understand why only the warn link shows up.

Just a note I do have two custom edits to my postbit_Legacy template. One of which is I copied the code for the "top" link at the bottomg of the forum to show up next to the post count number. Also edited it to where thread titles do not show up in the posts them selves. Any chance this could intefere with your edits?

Xplorer4x4
09-23-2005, 08:18 AM
Ok i reverted my postbit_legacy template. This fixed the fast edit problem I was having(not related to this hack). Seeing as I am using my postbit_legacy option are the postbit edits needed?

I assume i just did my template edits wrong again because they turned out liek this: http://img385.imageshack.us/img385/7080/postbitlegacy3fo.jpg

Kirk Y
09-23-2005, 09:21 PM
No, postbit edits aren't needed so long as you're only going to use postbit_legacy.

Kirby or sv1cec, I've got a request. Would it be possible to create a dropdown bar on certain Warning Types? Say for example, I've got a Warning Type called "Spam". Let's say that this user I'm warning spammed a lot, infact he was so bad that I'd like to give him more warning points, than the normal amount. Instead of warning him several times for the same offense, I'd like a little dropdown bar for a Level of Severity. Low, Mild, Severe perhaps? Depending on the selection of this dropdown, the user in question could be given 2, 5, 15, etc... points, instead of the standard amount. It sounds like a good idea and if it's not too hard to implement I'm sure other users could also benefit from it.

sv1cec
09-24-2005, 04:27 AM
If this was to be done, it would mean that each warning type no longer carries a fixed points penalty, but a variable one. This is not something easy to implement.

At first approach, it looks as if another field in the warning form, with a "Severity" or "Multiplicity" factor. and then the warning points are multiplied by this factor before being entered in the user's account. However, deep inside, that would require changing the tables, since at this moment, the warning points are not kept in the warnings table, they are read from the Warning Types table, by associating the type of the warning issued with the warning type characteristics.

Why don't you just create some more warning types? For example Spam Level 1, Spam Level 2 and Spam Level "you are out of here"?

Rgds

Kirk Y
09-24-2005, 04:41 AM
Yeah I suppose I could just do that, I just figured I'd throw it out here to see what you thought.

sv1cec
09-24-2005, 04:59 AM
It's not undoable, but it will mean a complete reorganization of the way warnings are handled. So I do not think it will happen. LoL

Marco van Herwaarden
09-24-2005, 11:34 AM
Just installed this on my testboard, and found the following issues while going through setting up (some might already have been reported, didn't check):
- Setting group called Warning Hack, why not Advanced Warning System?
Settings:
- Use Hierarchical Schema?: Why not allow both pre-defined and manual descriptions?
- Use Warning Type Description, as moderator comment, in Post-Related warnings?: Missing description
- Restore Usergroup: What will happen if this is left blank?
- Send E-mail to the warned member?: Description: 'f both the above options are set to Yes, ....'. This is the first setting of this type, so this remark don't make sense.
- Use Buttons for warning links? What options i can put here? Shouldn't this be a dropdown list?
- What can Moderators see in ModCP?: See previous.
- Protected Usergroups (hidden) : Description 'ATTENTION: These are additional groups, to the ones used by the program.' Which are the groups 'used' by the program?
- Super Moderator Usergroups : Wrong description, talking about Administrators instead of (super) Moderators.
- Moderator Usergroups : See previous
- Message Tag. Should this be a textfield where you can enter a tag, instead of yes/no?
- Save copy of Warning Message in a predefined forum? / Forum in which the message will be saved? Can't these 2 be combined? If forumid is given, this option is turned on.

Will post more later if i have time.

sv1cec
09-24-2005, 01:18 PM
- Setting group called Warning Hack, why not Advanced Warning System?

That's what it was initially called, no one bothered to change it.

- Use Hierarchical Schema?: Why not allow both pre-defined and manual descriptions?

I am not sure if I understand that. Hierarchical means that moderators can warn normal members, super moderators can warn moderators and members, while admins can warn anyone. If hierarchical is set to no, then admins/mods/smods can only warn normal members, not each other.

- Use Warning Type Description, as moderator comment, in Post-Related warnings?: Missing description

Maybe it was ommited in porting? KirbyDE can you have a look at this?

- Restore Usergroup: What will happen if this is left blank?

It can't be left blank, you have to select an option from the drop-down menu.

NOW I FIGURE THIS OUT. You are trying to edit the options from the VBulletin Options menus. No, no, at the left of your screen there is a new menu group called "Warning System". Open it up and use the "Manage Warning Options" from that menu.

Sorry, but I think this is included in the instructions, at least it was in the 3.x.x version. Use that menu for anything related to AWS.

Rgds

Marco van Herwaarden
09-24-2005, 05:31 PM
Looool, well i am not that good a reader, a typical user ;) so maybe it was in the instructions, but i didn't see it. Why not remove it from the vB options then?

Andreas
09-24-2005, 05:42 PM
It uses vboptions as the settings are required at several places througout vBulletin, and as there isn't a solution yet for Datastore ...
But they could be moved behind debug mode, sv1cec?

Marco van Herwaarden
09-24-2005, 08:11 PM
Ok, back with some more 'User who didn't read the instructions and just started clicking remarks'. :D

- When issueing a non-post related Alert, it will not be visible in the Warn information for user that this is an Alert and that the Warn points are not counted (if i understood that correct).
- Trying to remove an Alert given to a user, gives me the error: Invalid User ID Input
- The footer of Warning Types on the same page is 1 column short.
- Clicking on the 'Yes' link in the Alert Comment column give me a partial page (no header, CSS not good it seems, images not loaded).

sv1cec
09-25-2005, 11:43 AM
But they could be moved behind debug mode, sv1cec?

I do not even know what debug mode is! Let alone, what to answer to your question!!

- When issueing a non-post related Alert, it will not be visible in the Warn information for user that this is an Alert and that the Warn points are not counted (if i understood that correct).

Alerts are visible, but they do not add points to the member's account.

- Trying to remove an Alert given to a user, gives me the error: Invalid User ID Input

Does this happen when you try to remove or completely remove an alert?

- The footer of Warning Types on the same page is 1 column short.

This has been dealt before, you should look back a couple of pages. See this:

https://vborg.vbsupport.ru/showpost.php?p=773683&postcount=125

KirbyDE can you please edit that template in the zip file? Tnx

- Clicking on the 'Yes' link in the Alert Comment column give me a partial page (no header, CSS not good it seems, images not loaded).

Strange, that works OK in the test site. KirbyDE can you test this one?

Marco van Herwaarden
09-25-2005, 12:35 PM
All metioned above is done from User Profile->View Warning
Alerts are visible, but they do not add points to the member's account.My problem is that it is not visible in the list that it is just an Alert and not a Warning.
Does this happen when you try to remove or completely remove an alert?When removing an alert from the page as described above. Removing a warning give no problems.

sv1cec
09-25-2005, 01:08 PM
All metioned above is done from User Profile->View Warning

My problem is that it is not visible in the list that it is just an Alert and not a Warning.

You mean that if you check it from AdminCP/View Warnings Log, the Alert is there, but if you check it from the User Profile/View Warnings, it is not? Is it possible that the Alert was not entered, because the Warning Type was not alertable?

When removing an alert from the page as described above. Removing a warning give no problems.

This is also strange, because an Alert is not removable from the User Profile. There should be no link to remove an Alert from the View Warnings link in User profile. An alert is removable only from AdminCP/View Warnings Log.

What I did notice however, is that the parameter $admincpdir is not parse (it doesn't get a value). Anyone knows if this is one of the parameters that got replaced in vB 3.5? From looking in the code, it should be evaluated in global.php which is "included" at the begining of admin_warn.php, but this parameter doesnot get a value.

Marco van Herwaarden
09-25-2005, 01:12 PM
You mean that if you check it from AdminCP/View Warnings Log, the Alert is there, but if you check it from the User Profile/View Warnings, it is not? Is it possible that the Alert was not entered, because the Warning Type was not alertable?
It is there, but it shows the same as if it was a Warning, i can't tell that it was an Alert instead.
This is also strange, because an Alert is not removable from the User Profile. There should be no link to remove an Alert from the View Warnings link in User profile. An alert is removable only from AdminCP/View Warnings Log.It was on my testboard
What I did notice however, is that the parameter $admincpdir is not parse (it doesn't get a value. Anyone knows if this is one of the parameters that got replaced in vB 3.5?Yes, the same change like all things from the config file.

I will do some testing and screenshots later.

sv1cec
09-25-2005, 01:15 PM
Maybe KirbyDE can help here, my test board is at version 3.5.0 beta 3, so maybe something has changed since?

Andreas
09-25-2005, 08:56 PM
$admincpdir is defined correctly ... on the frontend as it get's set by the frontend global.php.
But it's not present in AdminCP.
Gonna check the Code.
@sv1cec
The Timestamp of this Thread was updated today - what did you change (don't want to overwrite changes)?
I am in the process of setting up a CVS Server, will contact you soon.

sv1cec
09-26-2005, 02:36 AM
$admincpdir is defined correctly ... on the frontend as it get's set by the frontend global.php.
But it's not present in AdminCP.
Gonna check the Code.

That's what I figured out, we need to have that defined in admin_warn.php (and possibly elsewhere) since I use it in the code.

The Timestamp of this Thread was updated today - what did you change (don't want to overwrite changes)?

Oh do not worry, I didn't changed anything significant. I noticed that you had versions 1.0.0, 1.0.1 etc, and I changed them to be 3.5.b1, 3.5.b2 etc, since this version of AWS is 3.5 (to match vB's version). If I do any code changes, I'll let you know.

Andreas
09-26-2005, 06:51 AM
I had those Versions Numbers for a Reason: Product Management needs Version Numbers in a certain format to work correctly - 3.5.bx does not work ...
3.5.0 Beta x would work though.

sv1cec
09-26-2005, 10:20 AM
Sorry, I was not aware that this is getting so complicated. Please feel free to change them to whatever your program will work with, as long as the first digits are 3.5. so that it reflects the vB version as well (at least for the time being).

Rgds and tnx

Andreas
09-26-2005, 11:07 AM
It's not my program, product management is a feature of vBulletin ;)

sv1cec
09-26-2005, 11:22 AM
Darn, I need 48-hours days, to keep up with these things!

JJR512
09-27-2005, 05:15 PM
I'm not sure if this is a known issue or not. I haven't seen anyone else comment on it yet, so I'm going to mention it in case it's an actual problem to fix.

For the record I'm on 3.5 RC3 and this is a clean install (no previous version of AWS) of whatever version I downloaded yesterday.

If I go to a warning page (for example, click the Warn <Member> link in a post), then go to Who's Online, it shows this:
Unknown Location
/forums/Warn.php?do=WarnUserNoPost&id=624 (http://www.jjr512.com/forums/Warn.php?do=WarnUserNoPost&id=624)
for my location.

All plugins from this hack are active and unmodified. None of the files (either from the hack or from vB itself) have been modified.

Andreas
09-27-2005, 05:29 PM
*hmpf*
Why is it Warn.php while every other vB file is lowercase only ...

Fix:
Edit Plugin AWS: Who is Online Filename Detect and make the w uppercase.

JJR512
09-28-2005, 01:14 AM
I suppose changing the filename to lowercase would cause too many other problems?

Xplorer4x4
09-28-2005, 01:51 AM
I suppose changing the filename to lowercase would cause too many other problems?

Not necescairly. It would be kind of a pain in the ass, but overall it could all be fixxed in a matter of like 10 minuetes.

I might do it tonight if I am bored and Kirby and SV are interested.

sv1cec
09-28-2005, 02:39 AM
I suppose you can change anything you want, but what's the reason to change the name from Warn.php to warn.php?

JJR512
09-28-2005, 02:46 AM
As KirbyDE pointed out, for consistency with the rest of vBulletin. Making it seem more integrated and less of a tacked-on afterthought.

Xplorer4x4
09-28-2005, 02:48 AM
It really does not make a difference, but as pointed out, it does make it seem more integrated.

As to why i want to do it, I just like to help out, and I am going to be that damn bored tonight! lol.

sv1cec
09-28-2005, 02:52 AM
I do not know if it makes it more integrated or not. If you are working on a Unix box, the upper and lower case letters make a difference, i.e. warn.php and Warn.php are two different files, in a Windoze box, it would be the same. The fact that vB uses all lower case file names, doesn't mean that we all have to do so.

By all means, if you prefer it that way, go ahead and do the changes, but for me, I prefer it that way. It moves Warn.php to the top of my files whose names start with W, so it's easier to go to that file, when I use ftp or whatever.

Xplorer4x4
09-28-2005, 04:10 AM
I do not know if it makes it more integrated or not. If you are working on a Unix box, the upper and lower case letters make a difference, i.e. warn.php and Warn.php are two different files, in a Windoze box, it would be the same. The fact that vB uses all lower case file names, doesn't mean that we all have to do so.

When your codding just about anything in general it is always case sensitive.

By all means, if you prefer it that way, go ahead and do the changes, but for me, I prefer it that way. It moves Warn.php to the top of my files whose names start with W, so it's easier to go to that file, when I use ftp or whatever.

No one said you have to do it with lowercase; don't be so lazy and look for it. :p In my case it moves it to the very top of all my files.

sv1cec
09-28-2005, 05:49 PM
don't be so lazy and look for it.

I'll keep that in my mind, thanks!

kall
09-28-2005, 08:01 PM
It moves Warn.php to the top of my files whose names start with W, so it's easier to go to that file, when I use ftp or whatever.
How many other files in /forums/ start with W?

w or W, it will be at the top of the list that start with W.

;)

Rover416
09-30-2005, 11:57 AM
Hi.

I upgraded from 3.5 RC3 to 3.5 gold and i am getting this error now when i click on a post.

Fatal error: Call to undefined function: construct_warning_display() in /home/carzone/public_html/forum/includes/class_postbit.php(279) : eval()'d code on line 16

:disappointed:

Andreas
09-30-2005, 12:06 PM
We don't use such a function anywhere ... do we sv1cec?

Xplorer4x4
09-30-2005, 01:16 PM
Is the zip file atached completley up to date as far as bugs that have been fixed, and those template changes you guys mentioned?

Andreas
09-30-2005, 01:18 PM
Not fully. A new Version will be avialable soon.

Rover416
09-30-2005, 01:32 PM
We don't use such a function anywhere ... do we sv1cec?

If i uninstall it i get an error telling me it could not find functions_warning.php and the forum still wont show up. :disappointed: :disappointed:

Marco van Herwaarden
09-30-2005, 01:58 PM
How did you upgrade? Did you by any chance removed all old files before upgrading?

Rover416
09-30-2005, 02:09 PM
How did you upgrade? Did you by any chance removed all old files before upgrading?

Same way as i always upgrade,i upload the new files and overwrite the old ones.

This is line 279 of class_postbit.php

($hook =& vBulletinHook::fetch_hook('postbit_display_complet e')) ? eval($hook) : false;

Andreas
09-30-2005, 02:32 PM
AWS != IWS
https://vborg.vbsupport.ru/showthread.php?t=93669
This is the right thread for you to get support.

Jaikis
09-30-2005, 02:32 PM
How about posibility to translate plugin.
I live in Russia and i need russian interface for users on my forum.
But when i translate this hack(ver. 3.0.11) i've got many problems, for example problem with "Yes - "No" in SQL and other things. Completly with this translation plugin work terrible :(

P.S. Sorry for my crazy english. :)

Andreas
09-30-2005, 02:34 PM
@Jaikis
Making this fully phrased is planned.

Rover416
09-30-2005, 02:44 PM
Sorry guys.

I had the inferno warning hack but i installed the aws hack instead.

I had deleted all the files but forgot to uninstall the inferno product. :o

Not sure why i did not get this error until i upgraded though.

Meltingfire
10-01-2005, 04:07 AM
One stupid question:

Why does "Warn.php" use a capital W and not all lower case at it should be with all files ;)

(If you decide to make it lower case, some operating systems are case sensetive and will require replaces in some files and templates)

sv1cec
10-01-2005, 04:22 AM
We don't use such a function anywhere ... do we sv1cec?

No, we do not. Not our function.

sv1cec
10-01-2005, 04:23 AM
One stupid question:

Why does "Warn.php" use a capital W and not all lower case at it should be with all files ;)

(If you decide to make it lower case, some operating systems are case sensetive and will require replaces in some files and templates)

Because that's how it got started and that's how it remains until today. And I do not think we are planning to make it lower-case. There is no rule which says that all files should have lower-case names.

Meltingfire
10-01-2005, 05:01 AM
Because that's how it got started and that's how it remains until today. And I do not think we are planning to make it lower-case. There is no rule which says that all files should have lower-case names.
Its just common sense to use lower case in filenames, especially for web.

Btw, found a bug i think:

<tr>
<td class="tfoot" colspan="7" align="right">Warning limit before being banned: $vboptions[warn_points_before_banned] points. Initial banning period: $vboptions[warn_banned_limit] days.</td>
</tr>
</tbody>
</table>

shouldnt it be colspan="8"?

Meltingfire
10-01-2005, 05:06 AM
More bad html,
<br> should be replaced with <br />

sv1cec
10-01-2005, 05:39 AM
Yes, that colspan should be 8, not 7.

As for what is common sense, you are entitled to your opinion.

TosaInu
10-01-2005, 09:39 AM
Hello,

Has anyone tried it with 3.5.0 gold already? I've been wasting hours in the upgrade process because of 2 monstrous queries, so I need to recharge some stamina ;)

2. Our database still contains some info from the 3.0x AWS hack. Is it possible to just run the install script, or will it quit because the MySQL tables and maybe even some templates are still there?

Meltingfire
10-01-2005, 03:09 PM
Hello,

Has anyone tried it with 3.5.0 gold already? I've been wasting hours in the upgrade process because of 2 monstrous queries, so I need to recharge some stamina ;)

2. Our database still contains some info from the 3.0x AWS hack. Is it possible to just run the install script, or will it quit because the MySQL tables and maybe even some templates are still there?

Im running it with gold now.

hydrostatic
10-01-2005, 08:37 PM
Please compare the two routines with that name, the one used by AWS and the one used by the other hack. If the two are the same (and I think they will be), you can delete one of the two. I think ZT is using this routine in his new hacks, if it is not changed from the one he used in his initial Warning hack, then the one or the other can be deleted. If it is, then you have to somehow rename the routine in one of the two hacks, and change the callings to that routine, to use the new name.

Does this make sense?

Sorry, I didn't understand anything. :( Please help me as I really like this hack and I really want to use it.

P.S.
Is this possible without any file edits?

TruthElixirX
10-01-2005, 11:19 PM
The inferno quiz and this do not get along.

Fatal error: Cannot redeclare sendpm() (previously declared in /home/httpd/vhosts/supportcore.org/httpdocs/testvb/quiz.php:139) in /home/httpd/vhosts/supportcore.org/httpdocs/testvb/includes/functions_warning.php on line 23 any ideas?

Andreas
10-01-2005, 11:21 PM
Known problem - both Hacks use the same function name.
Won't be fixed (any time soon).

Daniel
10-01-2005, 11:29 PM
ill stick to the inferno warning system ;)

dutchbb
10-01-2005, 11:33 PM
is this the best warning system here on vb.org?

we had erwins warning system before which was great , but with the 3.5 upgrade it was lost....

TruthElixirX
10-01-2005, 11:41 PM
Known problem - both Hacks use the same function name.
Won't be fixed (any time soon).

Heh. That sucks. Guess I'll have to do a little looking into fixign this myself. -_-. Or switch to Imferno Warning System.


EDIT:: Okay I fixed it myself to where it is compatible. May I attach the edited file for other users?