News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Visual Warning Mod

Started by Eleglin, July 31, 2007, 08:53:40 AM

Previous topic - Next topic

Eleglin

Link to Mod

Yet another update of the Visual Warning mod, originally created by Grudge and updated by Permutations (1.1 beta 3), Xenovanis (1.1 RC1), Aaron (1.1 RC2, 1.1 RC3, 1.1) and Eleglin (1.1 - 1.1.4).

Description
This mod allows you to give visual warnings to your users in four stages:
  1) First warning - instant message and a green warning mark next to user name.
  2) Post moderation - the user's posts must be approved before they are seen.
  3) Mute - instant message and the inability to post polls or messages.
  4) Ban - user is gone. :D
Version 1.4+ adds a new option allowing you to hide level warnings for people unable to warn. (SMF 1.1.x)

Latest versions
* Version 1.34 will work with 1.0.x, 1.1 beta 3 public, 1.1 RC1, 1.1 RC2, 1.1 RC3.
* Version 1.41 will work with 1.1, 1.1.1, 1.1.2,  1.1.3 and 1.1.4

Changelog
Changes in v1.41 - September 2007
  - Updated to work with SMF 1.1.4
  - Fixed modification.xml which was outdated.

Changes in v1.4b - July 2007
  - Added a new option allowing you to hide level warnings for people unable to warn.(SMF 1.1.x)
  - No more updates for SMF 1.0.x and SMF 1.1 Beta or RC. For people still using these versions, please use Visual Warning 1.34

+-----------------------+
// For SMF 1.0 - 1.1.3 //
+-----------------------+
Changes in v1.34 - July 2007
  - Fixed a bug in the notifying message

Changes in v1.33 - July 2007
  - Updated to work with SMF 1.1.3
  - Fixed the French translation. Please refer to the file 'modification.xml'

Please uninstall any previous versions of this mod before installing this one. Also remember, before you apply any mod:
Backup your database!!!

F.A.Q. :
Q: Hi, I have just installed this mod, and in the admin menu has created a big blank space between members and membergroups... could someone tell me how to rectify this ?
A: Keep mind that an installation with the package manager :
- don't add the translations on the languages files (except English (iso) )
- don't add the features on the language files for English-UTF8
- don't add the features on a modified theme (it adds only on default theme)
Please refer to Readme and modifications.xml (which are on the zip); You should do a manual installation, as described here.

Q : I tryed to do an installation with the package manager but the tests failed or I can't do it. What can I do ?
A : Please refer to Readme and modifications.xml (which are on the zip); You should do a manual installation, as described here.
If your server is safe_mode on, please refer to Eldacar's method to getting around the safe mode problem

Q : I don't want moderators to ban users; it should only be an admins job. How can I do that?
On installation only the admin will have permission to warn and/or approve posts. If you wish to change that just go to membergroup permissions and assign the relevant group the permissions you wish them to have. Warning - banning is through username only - if you want advanced ban you need to do this manually. Also - even if you give a member the right to warn people they cannot ban them unless they are an admin (ie issue level 4)

Q : Moderators can't have permissions to warn persons... so moderators can't warn persons. Is it normal ?
It's a very interesting question. A warning applicates to an user on the whole forum. That's why we have set theses permissions as general permissions, and not as board permissions.
Well, as you know, moderators don't have "general permissions" since they are set per board. They have specific permissions which can only be used on the board they moderate.
If you want these permissions for a moderator, you should assign him on a "global moderator" group, and assign the relevant group the permissions you wish them to have.
No support by PM or Mail.

HuRRR

#1
Forget my question. Everything is working right :)


Great job !

help me pls

#2
help me :(
when i try and ban this way it just doesnt work.
here are the glitches
1. it adds the symbol of banned but does not refresh the page so if you click the submit button more then once it shows the red symbol for evry time you click submit.
2. in the ban list instead of the name it shows "VW_4" not the name of he person i try to ban!
ill post pics in a sec

<- not banned the use just vw_4
says he's banned
|
V
says he has no warnings
|
V
it wont go back after you push submit
|
V
LOADS of visuals saying he's banned when he's not (see 1st pic)
Errors:

8: Undefined variable: back
File: C:\www\webroot\smf\Sources\VisualWarning.php
Line: 225

2: mail() [<a href='function.mail'>function.mail</a>]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()
File: C:\www\webroot\smf\Sources\Subs-Post.php
Line: 661

flint

how do i get this to work with other themes.....everything worked fine apart from the warn button on the forums...it does work on default tho
i have had this prob with other mods to....is there something i am doing wrong when installing mods with any theme other than default?

vosje505

#4
Quote from: help me pls on July 31, 2007, 04:52:56 PM
help me :(
when i try and ban this way it just doesnt work.
here are the glitches
1. it adds the symbol of banned but does not refresh the page so if you click the submit button more then once it shows the red symbol for evry time you click submit.
2. in the ban list instead of the name it shows "VW_4" not the name of he person i try to ban!


i've got that problem to.

nothing bad about volkswagen but i want to ban users not cars :P :P

-- edit --

VW_4 is right. it is supossed to be there for it is the ban group name not the trigger to ban.

but it wont ban thats the problem and i dont know why cause it does put up the trigger...

~Unkn0wn~

#5
Havent tested ban yet, but how can i modify the person who sends a pm when warned, and the message.


Edit: Ban is working, but when i renew lvl of warning to 0 still appears the warning close to signature but not down the display name...

Eleglin

Quote1. it adds the symbol of banned but does not refresh the page so if you click the submit button more then once it shows the red symbol for evry time you click submit.
And ? If a user has reached level 4 (and so if he is banned), I suppose his level reachs 0. As far I know, he's no more on the warning management (he doesn't need), but on the ban management. You see ?
The visual warnings added in the messages (not in the profile) ared added and added, everytime you click on the warn button. It's logical.
So I don't understand the problem.
Quote2. in the ban list instead of the name it shows "VW_4" not the name of he person i try to ban!
As says vosje : "VW_4 is right. it is supossed to be there for it is the ban group name not the trigger to ban."

Well, since the Warning Management lists all users that currently have some form of warning and could be warn again (levels 1,2 or 3),  Level 4 is not listed as these members have already been banned! These members don't need warnings, because they are yet banned... It's logical.
You should use the classical page (ban management ?) for unban the people you want to.

QuoteHavent tested ban yet, but how can i modify the person who sends a pm when warned, and the message.
You can't. It's not a feature of this mod and I won't do it. I don't think it's very useful.
If I'm an user and if I get a warning, I prefer to know who puts me it.
Also, since the process of warning edits the public message (and so you can see who edit this), it wouldn't be useful.
Keep mind it's a visual warning mod, and so all is visual.  ;D

Quotewhen i renew lvl of warning to 0 still appears the warning close to signature but not down the display name...
The warning close is added IN THE MESSAGE when you added a warning. And after that, you edit the message by yourself if you want to remove  this close.



No support by PM or Mail.

B0N35

Gidday, I have just installed this mod, and in the admin menu has created a big blank space between members and membergroups... could someone tell me how to rectify this.

Thanks chris

Eleglin

keep mind that an installation with the package manager :
- don't add the translations on the languages files (except English (iso) )
- don't add the features on the language files for English-UTF8
- don't add the features on a modified theme (it adds only on default theme)

Please refer to Readme and modifications.xml (which are on the zip)
No support by PM or Mail.

B0N35

#9
Ahhh... it wont let me read modifications.xml for some reason on my comp...

Could you post what I have to add to the English UTF8 file thanks


Eleglin

#10
Add this before ?> :

$txt['visual_warning_mod']='Visual Warning Mod';
$txt['visualw_mess_ban']='Message To Show For Banned User';
$txt['visualw_mess_mute']='Message To Show For Muted User';
$txt['visualw_mess_pmod']='Message To Show For Post Moderated User';
$txt['visualw_mess_warn']='Message To Show For Warned User';
$txt['visualw_color_ban']='Color of Message For Banned User';
$txt['visualw_color_mute']='Color of Message For Muted User';
$txt['visualw_color_pmod']='Color of Message For Post Moderated User';
$txt['visualw_color_warn']='Color of Message For Warned User';
$txt['visualw_image_ban']='Image to Show For Banned User';
$txt['visualw_image_mute']='Image to Show For Muted User';
$txt['visualw_image_pmod']='Image to Show For Post Moderated User';
$txt['visualw_image_warn']='Image to Show For Warned User';
$txt['warningAutoTime']='Default Time Before Warning Removed (Days):';
$txt['moderationAutoTime']='Default Time Before Moderation Removed (Days):';
$txt['muteAutoTime']='Default Time Before Mute Removed (Days):';
$txt['visualw_pmod_edit']='Moderated Users May Edit Messages:';
$txt['visualw_hide']='The warnings are visible for people who can warn only:';
$txt['visual_require_mod'] = 'messages require moderation';
$txt['visual_raise']='Raise Warning Level';
$txt['visual_no_perm']='You Do Not Have Permission To Raise Warning Levels';
$txt['visual_no_warnings']='User has NO Current Warnings!';
$txt['visual_prev_warning']='Previous Warning Details';
$txt['visual_current_level']='Current Level:';
$txt['visual_topic_raised']='Topic Where Raised:';
$txt['visual_time_raised']='Time When Raised:';
$txt['visual_reason_raised']='Reason For Raise:';
$txt['visual_level_details']='New Level Details';
$txt['visual_submit']='Submit';
$txt['visual_new_level']='New Level:';
$txt['visual_warning_management']='Warning Management';
$txt['visual_list_desc']='This lists all users that currently have some form of warning (levels 1,2 or 3. Level 4 is not listed as these members have already been banned! You can choose to mass reduce members here or click the member to adjust level accordingly';
$txt['visual_member']='Member';
$txt['visual_level']='Level';
$txt['visual_reason']='Reason';
$txt['visual_when']='When';
$txt['visual_text_warn']='Warned';
$txt['visual_warn']='Warn';
$txt['visual_perm_modify']='You Do Not Have Permission To Modify This Message';
$txt['visual_official_warning']='You Have Received an Offical Warning';
$txt['visual_received_warning']='You have received a warning for recent conduct on our message board. Please follow the link below for more information:';
$txt['visual_been_muted']='You Have Been Muted Due To Bad Behaviour';
$txt['visual_no_karma']='You May Not Give Karma Whilst Warned';
$txt['visual_stages']='(0=None, 1=Warned, 2=Moderated, 3=Muted. 4=Banned)';
$txt['visual_text_pmod']='Moderated';
$txt['visual_text_mute']='Muted';
$txt['visual_text_ban']='Banned';
$txt['visual_none']='None';
$txt['visual_warning_increased']='I have to inform you that your warning level on the board has been increased.';
$txt['visual_warning_reduced']='I am pleased to announce that your warning level on the board has been reduced.';
$txt['visual_reduced']='Warning level reduced';
$txt['visual_lasts']='Time Warning Lasts (Blank=Default)';
$txt['visual_postmod_manager']='Post Moderation Manager';
$txt['visual_postmod_user_under']='This User Is Currently Having All Theirs Posts Approved Before Posting';
$txt['visual_postmod_under']='You Are Currently Under Post Moderation';
$txt['visual_postmod_not']='This User Is Not Post Moderated';
$txt['visual_postmod_is']='This User Is Post Moderated';
$txt['visual_postmod_change']='Change This User\'s Status';
$txt['visual_postmod']='Post Moderation';
$txt['visual_postmod_auth']='You are not authorised to perform this action!';
$txt['visual_postmod_appear']='You Are Currently Under Post Moderation - Your Post Will Appear After Approval';
$txt['visual_postmod_awaiting']='These are all the posts awaiting moderation. To approve a posts (or posts) check all the messages you wish to approve and select "Approve" to delete messages off select those messages you wish to delete and select "Delete"';
$txt['visual_postmod_username']='Username';
$txt['visual_postmod_subject']='Subject/Message';
$txt['visual_postmod_approve']='Approve';
$txt['visual_postmod_delete']='Delete';
$txt['permissiongroup_visual_warn']='Give warnings and perform post moderation';
$txt['permissionname_visual_warn_any']='Warn users';
$txt['permissionname_visual_approve_any']='Approve posts';

No support by PM or Mail.

waremock

Where do I go to give a user a warning?

waremock


Eleglin

I have no time to update the screenshots, so I upload the images of Xenovanis (or Permutations ?).
I will update the screenshots later.

Please refer to the main page of the mod and look at the screenshots, you should understand with these.

This mod adds a button "warn" on every posts (if you are able to warn). Click on this, and you can give a warning.
No support by PM or Mail.

froweey

How do I install the visual warning Mod. I tired by gong to Admincp>>Packages>>>downloads>>>upload>>>then I clicked on it, and it asked for my ftp info. Do I install this through ftp? if so how?

King Steph1

#15
I have a problem:

Where the links are supposed to be to administrate the mod is only an empty space:


But it passed all the tests..
This happens with all the other mods i've tried..

Loverboy


Eleglin

Please refer to my first message on this topic, I have added a FAQ.
No support by PM or Mail.

TDW

King Steph - I Had this problem too.....  change your default language from English utf8 to just plain old english and your problem will be solved.

I found this simple solution on the ad management mod thread because I also installed that mod just after and noticed the same thing - a blank apce where the menu item should be - IT WAS AS SIMPLE AS THE DEFAULT LANGUAGE!!!!

ES23

Duplicate column name 'warning'
File: /var/www/html/forums/Packages/temp/VisualWarningPdb.php
Line: 84

Hi! I got the above database error while installing.What is going wrong?I'm installing the 1.34 version one ... ... Kindly advise.Thanks. :)

Advertisement: