User Notes/Warnings in Viewtopic

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
User avatar
potku
Registered User
Posts: 901
Joined: Wed Dec 22, 2004 10:26 pm
Location: Tampere, Finland
Contact:

Re: User Notes/Warnings in Viewtopic

Post by potku »

OK, we created another table for olympus_users, and that seems to have taken care of it. I'll come back crying if not... :D
Potku.net

"Before I speak, I have something important to say."

- Groucho Marx
User avatar
potku
Registered User
Posts: 901
Joined: Wed Dec 22, 2004 10:26 pm
Location: Tampere, Finland
Contact:

Re: User Notes/Warnings in Viewtopic

Post by potku »

I do have one question, though.

Does this MOD take into account warnings that have been cancelled? In other words, although the warning count says the user has 1 warning even if the warning has been cancelled (which is a little odd, IMHO), does the MOD realize that if that warning has been cancelled, it shouldn't count that warning toward the maximun set before being banned?
Potku.net

"Before I speak, I have something important to say."

- Groucho Marx
User avatar
potku
Registered User
Posts: 901
Joined: Wed Dec 22, 2004 10:26 pm
Location: Tampere, Finland
Contact:

Re: User Notes/Warnings in Viewtopic

Post by potku »

OK, tested that. It doesn't work as I would've wished.

However, this* seems to be a bug with phpBB itself, not this MOD, right? Has this been added to bugtracker or otherwise reported?

*Not being able to cancel warnings effectively
Potku.net

"Before I speak, I have something important to say."

- Groucho Marx
User avatar
RMcGirr83
Former Team Member
Posts: 21848
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: User Notes/Warnings in Viewtopic

Post by RMcGirr83 »

How are you "canceling" a warning? The warning count is held in the users table for whichever user. IIRC, there is no phpbb function that allows to delete warnings from users so I am curious as to how you are canceling them.

Also, it is not considered a bug to not be able to delete/cancel a warning.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beerImage
User avatar
potku
Registered User
Posts: 901
Joined: Wed Dec 22, 2004 10:26 pm
Location: Tampere, Finland
Contact:

Re: User Notes/Warnings in Viewtopic

Post by potku »

Well, I was wondering about that. To cancel a warning I actually just cancelled the notification of it in the Notes section of MCP.

I can see where it's not really a bug in the phpBB system, but with this MOD, if too many false warnings are given to a certain user within a certain time limit, then unfavorable results would occur. Granted, there is not a great chance for this - unless the board is huge with a lot moderators, the warnings stay in effect for a long period of time, and ban follows after, say, only 2 warnings. Mistakes can happen. Of course, the ban can be reversed in a second, but for the user, that might be an awkward experience nonetheless.

On our board, this is far from being a problem. In the last year or so, we have probably given less than 10 warnings to our 3300 or so users.

I like this, thanks :)


EDIT: typo...
Potku.net

"Before I speak, I have something important to say."

- Groucho Marx
User avatar
RMcGirr83
Former Team Member
Posts: 21848
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: User Notes/Warnings in Viewtopic

Post by RMcGirr83 »

potku wrote:Well, I was wondering about that. To cancel a warning I actually just cancelled the notification of it in the Notes section of MCP.
Nope, won't reduce the number of warnings in the users table which is where the "count" of warnings is kept. User is still warned, just no notification of being warned. Like a "stealth warning".

There is this mod, but it's BETA code...and you know what they say about beta code. ;)
I can see where it's not really a bug in the phpBB system, but with this MOD, if too many false warnings are given to a certain user within a certain time limit, then unfavorable results would occur. Granted, there is not a great chance for this - unless the board is huge with a lot moderators, the warnings stay in effect for a long period of time, and ban follows after, say, only 2 warnings. Mistakes can happen. Of course, the ban can be reversed in a second, but for the user, that might be an awkward experience nonetheless.

On our board, this is far from being a problem. In the last year or so, we have probably given less than 10 warnings to our 3300 or so users.
I'm not really sure what a "false warning" is? :? A warning mistake (warned the wrong user)?

A warning is a very serious offense in phpBB and you are either warning someone ("submit") or not (do nothing....go to another page). Setting to not notify the user does not effect (affect? I always get the two bassackwards) the updating of the database when warning a user.

The length that a warning can be set to expire is set in the ACP (default, IIRC is 90 days). It is then that the user warning count is updated.
I like this, thanks :)
Thank you and please vote on the mod if so inclined. :)
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beerImage
User avatar
potku
Registered User
Posts: 901
Joined: Wed Dec 22, 2004 10:26 pm
Location: Tampere, Finland
Contact:

Re: User Notes/Warnings in Viewtopic

Post by potku »

Thanks for the link, I'll check it out.

Yeah, false warning, that's my English... :D You are right, I meant issuing a warning to the wrong user - but also possibly giving a warning that might be retracted. For example on our board, all the moderators always discuss all disciplinary actions, but still issuing warnings is something that can and should be done promptly and without the approval of anyone else. That's how we do it.

When I learned the two terms in high school, effect and affect, I used to mix them up, too. Then I saw the movie "FX" with Bryan Brown (good movie at the time) and decided I would remember them from that point on. And I do, but I still have to think of that title every time I hear or see the terms :D
Effect is a noun, affect is a verb.

I voted now... ;)
Potku.net

"Before I speak, I have something important to say."

- Groucho Marx
thecrewstyle
Registered User
Posts: 126
Joined: Sun Apr 22, 2007 5:52 am

Re: User Notes/Warnings in Viewtopic

Post by thecrewstyle »

Hi ,
I gave a problem when installing this mod

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3763: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3765: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3766: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3767: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)
How i solve this?
Thanks
User avatar
RMcGirr83
Former Team Member
Posts: 21848
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: User Notes/Warnings in Viewtopic

Post by RMcGirr83 »

You need to edit that file with a strict text editor that does not insert a BOM (Byte Order Mark). Download notepad++ and use that to modify the files (specifically en/common.php).
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beerImage
thecrewstyle
Registered User
Posts: 126
Joined: Sun Apr 22, 2007 5:52 am

Re: User Notes/Warnings in Viewtopic

Post by thecrewstyle »

Thanks, i will try.
User avatar
potku
Registered User
Posts: 901
Joined: Wed Dec 22, 2004 10:26 pm
Location: Tampere, Finland
Contact:

Re: User Notes/Warnings in Viewtopic

Post by potku »

One question: How are both, warnings and notes, hidden from everyone but moderators? :)
Potku.net

"Before I speak, I have something important to say."

- Groucho Marx
User avatar
RMcGirr83
Former Team Member
Posts: 21848
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: User Notes/Warnings in Viewtopic

Post by RMcGirr83 »

potku wrote:One question: How are both, warnings and notes, hidden from everyone but moderators? :)
notes should already be hidden and viewable only by mods due to this code that this mod adds

Code: Select all

<!-- IF postrow.U_NOTES -->
U_NOTES is only set if moderator per the code in viewtopic.php
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beerImage
User avatar
potku
Registered User
Posts: 901
Joined: Wed Dec 22, 2004 10:26 pm
Location: Tampere, Finland
Contact:

Re: User Notes/Warnings in Viewtopic

Post by potku »

Thanks!
Potku.net

"Before I speak, I have something important to say."

- Groucho Marx
User avatar
spacefish
Registered User
Posts: 173
Joined: Mon Oct 09, 2006 8:48 am

Re: User Notes/Warnings in Viewtopic

Post by spacefish »

Cool mod thanks - but I've got a small problem with the number of usernotes not being updated/shown correctly (user has 1 note, viewtopic profile shows 3). I ran the updater again but there's no change.
User avatar
RMcGirr83
Former Team Member
Posts: 21848
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: User Notes/Warnings in Viewtopic

Post by RMcGirr83 »

The updater will scan the log table for notes that belong to a specific user. If you run it multiple times, you will probably get a false reading as the updater does not reset all users note counts.

I suppose I could make it so that it resets every users note count and then recounts and updates the database based on the Log Table.

To fix the issue in the mean time, access your database via phpmyadmin, go to the users table (usually phpbb_users), find the affected user in the list and edit the number held in the user_notes column.

[EDIT]I have attached a new update_note_count.php file...unzip it, upload into the root of your forum, login to your forum as board founder and browse to it. It will reset all the note counts to zero and then run through the log table and update the note count for each user it finds[/EDIT]

[The extension zip has been deactivated and can no longer be displayed.]

[EDIT#2]The orginal update_note_count posted in this post had a slight bug. The new one fixes that issue.[/EDIT#2]
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beerImage
Locked

Return to “[3.0.x] MOD Database Releases”