Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Eleglin on July 31, 2007, 08:53:40 AM

Title: Visual Warning Mod
Post by: Eleglin on July 31, 2007, 08:53:40 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=878)

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 (http://docs.simplemachines.org/index.php?topic=402.msg2530#msg2530).

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 (http://docs.simplemachines.org/index.php?topic=402.msg2530#msg2530).
If your server is safe_mode on, please refer to Eldacar's method to getting around the safe mode problem (http://www.simplemachines.org/community/index.php?topic=28393.msg354086#msg354086)

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.
Title: Re: Visual Warning Mod
Post by: HuRRR on July 31, 2007, 03:50:54 PM
Forget my question. Everything is working right :)


Great job !
Title: Re: Visual Warning Mod
Post by: 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!
ill post pics in a sec

(http://img239.imageshack.us/img239/8714/vw4ml7.png) <- not banned the use just vw_4
(http://img509.imageshack.us/img509/3989/banndnotbj7.png) says he's banned
|
V
(http://img509.imageshack.us/img509/3831/nowarningkx5.png) says he has no warnings
|
V
(http://img110.imageshack.us/img110/6136/wontgobacktopostzo7.png) it wont go back after you push submit
|
V
(http://img509.imageshack.us/img509/6325/afterbm7.png) 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
Title: Re: Visual Warning Mod
Post by: flint on July 31, 2007, 06:04:39 PM
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?
Title: Re: Visual Warning Mod
Post by: vosje505 on July 31, 2007, 07:01:09 PM
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...
Title: Re: Visual Warning Mod
Post by: ~Unkn0wn~ on August 01, 2007, 01:18:43 AM
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...
Title: Re: Visual Warning Mod
Post by: Eleglin on August 01, 2007, 05:04:24 AM
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.



Title: Re: Visual Warning Mod
Post by: B0N35 on August 01, 2007, 07:04:37 AM
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
Title: Re: Visual Warning Mod
Post by: Eleglin on August 01, 2007, 07:40:49 AM
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)
Title: Re: Visual Warning Mod
Post by: B0N35 on August 01, 2007, 07:54:26 AM
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

Title: Re: Visual Warning Mod
Post by: Eleglin on August 01, 2007, 08:43:18 AM
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';

Title: Re: Visual Warning Mod
Post by: waremock on August 01, 2007, 12:39:40 PM
Where do I go to give a user a warning?
Title: Re: Visual Warning Mod
Post by: waremock on August 01, 2007, 01:01:36 PM
Quote from: waremock on August 01, 2007, 12:39:40 PM
Where do I go to give a user a warning?


Nevermind
Title: Re: Visual Warning Mod
Post by: Eleglin on August 01, 2007, 01:05:33 PM
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 (http://custom.simplemachines.org/mods/index.php?mod=878) 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.
Title: Re: Visual Warning Mod
Post by: froweey on August 01, 2007, 02:13:45 PM
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?
Title: Re: Visual Warning Mod
Post by: King Steph1 on August 02, 2007, 12:10:05 PM
I have a problem:

Where the links are supposed to be to administrate the mod is only an empty space:
(http://i195.photobucket.com/albums/z226/King_Steph1/untitled-2.jpg)

But it passed all the tests..
This happens with all the other mods i've tried..
Title: Re: Visual Warning Mod
Post by: Loverboy on August 02, 2007, 01:02:02 PM
(http://img337.imageshack.us/img337/6956/naamloosmh7.png)

Test failed.. :)
Title: Re: Visual Warning Mod
Post by: Eleglin on August 03, 2007, 04:11:59 AM
Please refer to my first message on this topic, I have added a FAQ.
Title: Re: Visual Warning Mod
Post by: TDW on August 03, 2007, 05:36:41 AM
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!!!!
Title: Re: Visual Warning Mod
Post by: ES23 on August 03, 2007, 08:28:49 AM
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. :)
Title: Re: Visual Warning Mod
Post by: Eleglin on August 03, 2007, 08:59:50 AM
It's a fresh installation or an update ?
Have you done a manual ou an automatic installation ?
Title: Re: Visual Warning Mod
Post by: ES23 on August 03, 2007, 10:33:16 AM
I've done a manual installation the first time round as 2 of the tests(ManagePermissions.php and Load.php) by package manager failed and it leads me to a 500 internal server error even though I have followed exactly to the readme file instructions enclosed in the zipped folder.

I'm doing a re-installation now for this time round(2nd time) through the package manager coz I heard my friend advising me to try going ahead with installing via package manager even tho those 2 tests failed and later correct only the 2 failed tests files accordingly to the mod file.Before I actually do my re-install,I have re-uploaded my original backup files back into their original positions to overwrite those specific modified php files from my first execution/installation and cleared away the smf_vwarning in my database and all those images installed on my server.

This time,I'm plagued with this error and I dunno where this error comes from.Pls kindly advise on how to resolve this error.Thanks alot!
Title: Re: Visual Warning Mod
Post by: King Steph1 on August 03, 2007, 03:07:07 PM
That worked, thanks :D
But the warn button is supposed to appear next to posts?
Title: Re: Visual Warning Mod
Post by: TDW on August 04, 2007, 07:48:08 AM
The warn button should be displayed on the action bar along with reply, modify etc...
Title: Re: Visual Warning Mod
Post by: King Steph1 on August 04, 2007, 08:53:57 AM
There is no new button on my forum..
Title: Re: Visual Warning Mod
Post by: brianjw on August 04, 2007, 02:46:15 PM
The staff at TinyPortal Admin Resources (http://tinyadminresources.com) would like to know if we can add your module to the download section of our forum.

Please let us know.
Thanks.
Title: Re: Visual Warning Mod
Post by: Eleglin on August 04, 2007, 04:09:24 PM
ES23 :
Backup your database and the files
Reupload the backup files. (the backup before the first installation)
Reupload the database (the backup before the first installation)
and then try a manual installation.

Brianjw :
I'm not the original author. You should ask to Grudge.

King Steph :
You use an other theme or language ? if so, please install the mod in the correct files.
Title: Re: Visual Warning Mod
Post by: perro88 on August 05, 2007, 01:56:04 AM
I´m working on my pc. installed the mod in one forum with not so many mod  installed, it intsalled without errors and everythings seems working fine. In the other, teste failed on karma.php and subs.php so I edited the mod so it won´t installed that two files and I did the modifications on this 2 files manually. On the features and options on the admin panel should apper a tab to warnings mod config, but it don´t appear. I can add the link on the browser and it works.


8: Undefined index: visual_warning_mod
File: C:\.....\Sources\ModSettings.php
Line: 167

this error is showed on the log.
and here´s the line 167:
         'invite' => array(
            'title' => $txt['invite_title'],
            'href' => $scripturl . '?action=featuresettings;sa=invite;sesc=' . $context['session_id'],
         ),
         'karma' => array(
            'title' => $txt['smf293'],
            'href' => $scripturl . '?action=featuresettings;sa=karma;sesc=' . $context['session_id'],
                     ),
                         'visualwarning' => array(
   167---         'title' => $txt['visual_warning_mod'],
            'href' => $scripturl . '?action=featuresettings;sa=visualwarning;sesc=' . $context['session_id'],
            'is_last' => true,
         ),
      ),
   );

why the link is not showed? it even didn´t gave error in this modsettings file. the subs.php can be related to this problem?
Title: Re: Visual Warning Mod
Post by: Eleglin on August 05, 2007, 04:12:38 AM
Are you use UTF8 or an other language ?
Don't forget to add the codes in these files

You don't use default theme ?
Don't forget to install the mods on the files.

I think you have an error because you haven't install the codes on the languages files you use
As a consequence : $txt['visual_warning_mod'] is empty and you have an error.
Title: Re: Visual Warning Mod
Post by: perro88 on August 05, 2007, 05:30:04 AM
well, I´m using default theme and the default language. will compare the modifications on language files on the 2 sites(the one working and the one with the prob)
Title: Re: Visual Warning Mod
Post by: perro88 on August 05, 2007, 05:36:04 AM
haha nice error I checked the modification.english file and it added the first line of this warning mod on the line of a comment of other mod so the variable didn´t get the name hehe. thanks for the help
Title: Re: Visual Warning Mod
Post by: Eleglin on August 05, 2007, 07:47:10 AM
Quote from: StarWars Fan on August 03, 2007, 04:23:06 PM
Hi - I get errors similar to this during Maintenance - any ideas?  :-[

The following errors are fouling up your forum:
Topic #34107 has the last message ID 172219, which is incorrect.
Topic #34129 has the last message ID 172266, which is incorrect.

Would you like to fix these errors?

It's not important, I think.
When you approve the message, it adds it on the good topic but ("maybe") don't make it as the last message ? I'm not sure but I suppose so.
Well, when somebody answers, it fixs the "bug" which seems to be very minor ;)
Title: Re: Visual Warning Mod
Post by: King Steph1 on August 05, 2007, 04:35:28 PM
It's ok I have fixed the problem :)
Title: Re: Visual Warning Mod
Post by: ~Unkn0wn~ on August 08, 2007, 12:48:01 AM
I installed but no effects? :S Using AA New Damage TP
Title: Re: Visual Warning Mod
Post by: Eleglin on August 08, 2007, 07:39:52 AM
As I have said on previous posts, if you don't use the default theme, you must install manually this mod in the customized theme.
Title: Re: Visual Warning Mod
Post by: NSA_Viper on August 08, 2007, 06:33:03 PM
I want to Install the Mod but I get the error massage ./Sources/Load.php   Test failed
Title: Re: Visual Warning Mod
Post by: FreeSporePrints on August 09, 2007, 07:31:57 AM
Hello Mates,
it's happened something of amazing.
I was testing this mod, locally, browsing the SMF with EasyPHP.

I registered a user to make testes called "OompaLoompa"..I logged as admin and banned  OompaLoompa, then logged out and tried to log as OompaLoompa but the SMF, obliviously, says me that i'm banned. And until now all okay.

The "little" problem is that when tried to join as admin, the SMF says me that i'm banned!!! LOL :D

This because OompaLoompa and the Admin has got the same ip.

So dudes..how damn can i join to my forum as admin?!

Suggestions!?

EDIT:

ok dudes, i've solved simply empting the Cache and the Cookies on my Firefox :)

Eleglin what about adding any solution for this little problem? :)

However great mod.

Tnx,
F.
Title: Re: Visual Warning Mod
Post by: FreeSporePrints on August 09, 2007, 07:40:23 AM
Oh a question,
i can't find the menu that appears in this pic

http://custom.simplemachines.org/mods/index.php?action=download;mod=878;id=37313;image (http://custom.simplemachines.org/mods/index.php?action=download;mod=878;id=37313;image)

Tnx,
F.
Title: Re: Visual Warning Mod
Post by: Eleglin on August 09, 2007, 07:49:53 AM
The problem don't come from this mod, I think.
As far as I know, you can ban yourself without the need of Visual Warning (with the classic ban management)
This should be a feature in SMF.

Edit : If you don't say that is your SMF version, I can not help you to find this ;)
Title: Re: Visual Warning Mod
Post by: FreeSporePrints on August 09, 2007, 07:58:55 AM
yes sorry Eleglin!

However i use SMF 1.1.3

tnx,
F.
Title: Re: Visual Warning Mod
Post by: Eleglin on August 09, 2007, 10:05:34 AM
There is a a whole proper visual warning section in the "Features and Options" area for SMF 1.1.x
Title: Re: Visual Warning Mod
Post by: FreeSporePrints on August 09, 2007, 10:31:21 AM
Ciao Eleglin,
Thank you really..i was becoming mad to find it :)

F.

EDIT:

I actived into Features and Option > Visual Warning Mod >  The warnings are visible for people who can warn only

But the warnings, i mean the coloured circles on the right of the post, are visible also to common users, instead the coloured circle on the left no.

Is it normal?

Shoudn't the common user do not see the moderation? isn't in this way semantically correct?

Re-Thank you,
F.
Title: Re: Visual Warning Mod
Post by: Robi052 on August 10, 2007, 02:58:53 PM
In error log see this. Whats wrong?

Quote8: Undefined index: cannot_visual_warn_any
Datoteka: /home/mojporta/public_html/forum/Sources/Security.php
Linija: 797
Title: Re: Visual Warning Mod
Post by: askepott on August 14, 2007, 08:32:54 AM
any recent update re this mod? would love to install it on my forum if ever.
Title: Re: Visual Warning Mod
Post by: 3mrhythm on August 14, 2007, 10:42:13 AM
installed on my forum.. which has like 20 other mods.. works great. thanks!
Title: Re: Visual Warning Mod
Post by: askepott on August 14, 2007, 11:21:55 AM
that sounds great. is this also the same as "infractions" ?
Title: Re: Visual Warning Mod
Post by: Eleglin on August 14, 2007, 03:22:35 PM
Quote from: FreeSporePrints link=topic=186021.msg1194760#msg1194760

I actived into Features and Option > Visual Warning Mod >  The warnings are visible for people who can warn only

But the warnings, i mean the coloured circles on the right of the post, are visible also to common users, instead the coloured circle on the left no.

Is it normal?

Shoudn't the common user do not see the moderation? isn't in this way semantically correct?

Re-Thank you,
F.
As far as I know, the moderation modify the message as an edit. So we can't hide this.
We can only hide the level on the profile ;)
Title: Re: Visual Warning Mod
Post by: FreeSporePrints on August 15, 2007, 05:32:21 AM
Quote from: Eleglin on August 14, 2007, 03:22:35 PM
As far as I know, the moderation modify the message as an edit. So we can't hide this.
We can only hide the level on the profile ;)

Yes it the thing i)ve understood...but if we want to change the moderation or cancelling a moderation on a user, the text on the right of the post will remain...and is a mess to edit and cancelling manually.

Can't we add some lines that cancel automatically these ''edits''?

Thanks,
F.
Title: Re: Visual Warning Mod
Post by: shaiss on August 15, 2007, 12:06:17 PM
I'm having a problem with the instal.  Files are failing.  I tried the SMF package parser, but get nothing.
heres my error files:
1. Execute Code VisualWarningPdb.php
2. Execute Modification ./index.php Test successful
3. Execute Modification ./Sources/ModSettings.php Test successful
4. Execute Modification ./Themes/default/Profile.template.php Test successful
5. Execute Modification ./Sources/Display.php Test successful
6. Execute Modification ./Themes/default/Display.template.php Test successful
7. Execute Modification ./Sources/Post.php Test failed
8. Execute Modification ./Themes/default/Post.template.php Test successful
9. Execute Modification ./Sources/Karma.php Test successful
10. Execute Modification ./Sources/Subs.php Test successful
11. Execute Modification ./Sources/Security.php Test successful
12. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
13. Execute Modification ./Sources/ManagePermissions.php Test successful
14. Execute Modification ./Themes/default/index.template.php Test successful
15. Execute Modification ./Sources/Load.php Test failed
16. Extract File ./Sources/VisualWarning11.php
17. Extract File ./Themes/default/VisualWarning.template.php
18. Extract File ./Themes/default/images/warnban.gif
19. Extract File ./Themes/default/images/warnpmod.gif
20. Extract File ./Themes/default/images/warnmute.gif
21. Extract File ./Themes/default/images/warnwarn.gif
22. Extract File ./Themes/default/images/members.gif
23. Extract File ./Themes/default/images/buttons/warn.gif


Please help as I'd like to get this installed on my site, ocmoto.com
Thank you!
Title: Re: Visual Warning Mod
Post by: Eleglin on August 15, 2007, 12:17:46 PM
Quote from: FreeSporePrints on August 15, 2007, 05:32:21 AM

Yes it the thing i)ve understood...but if we want to change the moderation or cancelling a moderation on a user, the text on the right of the post will remain...and is a mess to edit and cancelling manually.

Can't we add some lines that cancel automatically these ''edits''?

Thanks,
F.
I see, but some lines are not sufficiant
Keep mind that the reason of the warning is in the post, not on the PM, not on the mail
You don't want what people you warn don't know why, do you ? ^^
I will see later if I can correct this.
Title: Re: Visual Warning Mod
Post by: michelangelo on August 17, 2007, 10:49:14 AM
Once installed on SMF 1.1.3 it messes up the whole board

If you get this message, replace the Security.php with your old backup and uninstall it normally, otherwise you can't even get in the admin panel.

Fatal error: Cannot redeclare autowarn() (previously declared in *path/Sources/Security.php:199) in *path/Sources/Security.php on line 253

I found the reason for the error. Before the mods installs itself it doesn't check whether the /Source/ and /themes/ folders are writeable. In case they are not writeable the result is a total black off on the site. So set your Source and Themes folder to 777 before you install it.

michel
Title: Re: Visual Warning Mod
Post by: smartmouse on August 20, 2007, 08:28:34 AM
Hello i successfully installed Visual Warning Mod in my default template. Now i have to manually install it to theme i'm using on my forum...

In the package i see 2 files: modification.xml and VisualWarning_SMF11.mod (i'm using SMF v1.1.3).

Which file i have to follow to edit .template.php files of my theme?
Title: Re: Visual Warning Mod
Post by: FreeSporePrints on August 21, 2007, 05:17:29 AM
Quote
I see, but some lines are not sufficiant
Keep mind that the reason of the warning is in the post, not on the PM, not on the mail
You don't want what people you warn don't know why, do you ? ^^
I will see later if I can correct this.

Hello Elegin,
you're right, semantically correct. If you modify it simply contact me.

Thanks!
F.
Title: Re: Visual Warning Mod
Post by: shaiss on August 21, 2007, 10:17:21 AM
Quote from: shaiss on August 15, 2007, 12:06:17 PM
I'm having a problem with the instal.  Files are failing.  I tried the SMF package parser, but get nothing.
heres my error files:
1. Execute Code VisualWarningPdb.php
2. Execute Modification ./index.php Test successful
3. Execute Modification ./Sources/ModSettings.php Test successful
4. Execute Modification ./Themes/default/Profile.template.php Test successful
5. Execute Modification ./Sources/Display.php Test successful
6. Execute Modification ./Themes/default/Display.template.php Test successful
7. Execute Modification ./Sources/Post.php Test failed
8. Execute Modification ./Themes/default/Post.template.php Test successful
9. Execute Modification ./Sources/Karma.php Test successful
10. Execute Modification ./Sources/Subs.php Test successful
11. Execute Modification ./Sources/Security.php Test successful
12. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
13. Execute Modification ./Sources/ManagePermissions.php Test successful
14. Execute Modification ./Themes/default/index.template.php Test successful
15. Execute Modification ./Sources/Load.php Test failed
16. Extract File ./Sources/VisualWarning11.php
17. Extract File ./Themes/default/VisualWarning.template.php
18. Extract File ./Themes/default/images/warnban.gif
19. Extract File ./Themes/default/images/warnpmod.gif
20. Extract File ./Themes/default/images/warnmute.gif
21. Extract File ./Themes/default/images/warnwarn.gif
22. Extract File ./Themes/default/images/members.gif
23. Extract File ./Themes/default/images/buttons/warn.gif


Please help as I'd like to get this installed on my site, ocmoto.com
Thank you!
can someone please help me with this?
Title: Re: Visual Warning Mod
Post by: slk on August 22, 2007, 03:22:00 PM
Quote from: smartmouse on August 20, 2007, 08:28:34 AM
Hello i successfully installed Visual Warning Mod in my default template. Now i have to manually install it to theme i'm using on my forum...

In the package i see 2 files: modification.xml and VisualWarning_SMF11.mod (i'm using SMF v1.1.3).

Which file i have to follow to edit .template.php files of my theme?

Take VisualWarning_SMF11.mod
Title: Re: Visual Warning Mod
Post by: smartmouse on August 23, 2007, 09:11:01 PM
Quote from: slk on August 22, 2007, 03:22:00 PM
Quote from: smartmouse on August 20, 2007, 08:28:34 AM
Hello i successfully installed Visual Warning Mod in my default template. Now i have to manually install it to theme i'm using on my forum...

In the package i see 2 files: modification.xml and VisualWarning_SMF11.mod (i'm using SMF v1.1.3).

Which file i have to follow to edit .template.php files of my theme?

Take VisualWarning_SMF11.mod

Thank you ;)
Title: Re: Visual Warning Mod
Post by: kamili34 on August 30, 2007, 08:31:53 PM
Sorry for my stupid question but I don't understand this phrase

QuoteVersion 1.4 adds a new option allowing you to hide level warnings for people unable to warn. (SMF 1.1.x)

Title: Re: Visual Warning Mod
Post by: Eleglin on August 31, 2007, 06:22:18 AM
Quote from: kamili34 on August 30, 2007, 08:31:53 PM
Sorry for my stupid question but I don't understand this phrase

QuoteVersion 1.4 adds a new option allowing you to hide level warnings for people unable to warn. (SMF 1.1.x)


When you use visual warning 1.34 (and before), everybody can see the level warning of your warned users.
With the version 1.4, you can choose to hide this ; only people who can warn [i.e. admins, people which have the permission to warn] will see the levels on the profils..
Title: Re: Visual Warning Mod
Post by: kamili34 on August 31, 2007, 10:41:52 AM
ok thanks  :)

I thought it was more  changes . :(
Title: Re: Visual Warning Mod
Post by: Kornit on September 01, 2007, 06:44:10 PM
I've installed the mod and it works fine.

What I want to do is to "personalize" the way all the warns appear in the post.
I noticed that the warns are inside a <div> with center alignment. I wasn't able to find in which file I can change that alignment.

But what I'd like is to to make warns appear in a table, inside the posts. Is it possible?

I've attached two images: the first one shows how the warns appear now in my site and the second one shows how I'd like the warns should appear.
Title: Re: Visual Warning Mod
Post by: lonrot on September 02, 2007, 01:03:39 PM
Hello, I have an straight question, what files should be edited for a Custom Theme, I'm using Soft_MC_Blue, and I cannot see any feature working at my board (except the mod options in the Admin Panel)
Title: Re: Visual Warning Mod
Post by: askepott on September 06, 2007, 11:07:16 PM
Quote from: Eleglin on August 31, 2007, 06:22:18 AM
Quote from: kamili34 on August 30, 2007, 08:31:53 PM
Sorry for my stupid question but I don't understand this phrase

QuoteVersion 1.4 adds a new option allowing you to hide level warnings for people unable to warn. (SMF 1.1.x)


When you use visual warning 1.34 (and before), everybody can see the level warning of your warned users.
With the version 1.4, you can choose to hide this ; only people who can warn [i.e. admins, people which have the permission to warn] will see the levels on the profils..

this is great, but it is possible to hide the warning stuff on the posts?
like for example on the "infractions" feature on vb, the infractions only shows in the user profile (with a link  to the said thread), nowhere else.

is that possible?
Title: Re: Visual Warning Mod
Post by: Eleglin on September 07, 2007, 02:07:19 PM
Quote from: Eleglin on August 15, 2007, 12:17:46 PM
Quote from: FreeSporePrints on August 15, 2007, 05:32:21 AM

Yes it the thing i)ve understood...but if we want to change the moderation or cancelling a moderation on a user, the text on the right of the post will remain...and is a mess to edit and cancelling manually.

Can't we add some lines that cancel automatically these ''edits''?

Thanks,
F.
I see, but some lines are not sufficiant
Keep mind that the reason of the warning is in the post, not on the PM, not on the mail
You don't want what people you warn don't know why, do you ? ^^
I will see later if I can correct this.
Title: Re: Visual Warning Mod
Post by: askepott on September 07, 2007, 05:16:05 PM
working fine. how can i remove the colored circle image on posts?
Title: Re: Visual Warning Mod
Post by: Eleglin on September 08, 2007, 04:15:20 AM
You should edit the message
Title: Re: Visual Warning Mod
Post by: SoulPleX on September 10, 2007, 04:10:30 PM
Quote from: lonrot on September 02, 2007, 01:03:39 PM
Hello, I have an straight question, what files should be edited for a Custom Theme, I'm using Soft_MC_Blue, and I cannot see any feature working at my board (except the mod options in the Admin Panel)

Which files need to be edited???
Title: Re: Visual Warning Mod
Post by: Eleglin on September 11, 2007, 01:04:36 PM
No support by PM.
You should do a manual installation for your custom themes. Please refer to the official doc HERE (http://docs.simplemachines.org/index.php?topic=402.msg2530#msg2530)
Title: Re: Visual Warning Mod
Post by: adicrst on September 15, 2007, 08:35:38 PM
Does this mod makes any modification in my database during the installation ?
Title: Re: Visual Warning Mod
Post by: Eleglin on September 16, 2007, 02:47:16 AM
Quote from: adicrst on September 15, 2007, 08:35:38 PM
Does this mod makes any modification in my database during the installation ?
Yes, it adds 2 tables + 1 column on smf_members
Title: Re: Visual Warning Mod
Post by: adicrst on September 16, 2007, 07:37:53 AM
in the installation guide it says that i doesnt touch the database at uninstalling, that means that tables and the colum will remain as extra in the DB ?
Title: Re: Visual Warning Mod
Post by: Eleglin on September 16, 2007, 03:13:07 PM
Yes. So, if you uninstall it and install a new release of this mod, you don't loose your datas.
Title: Re: Visual Warning Mod
Post by: [SAP]Francis on September 19, 2007, 07:57:50 PM
Sorry to ask but, will it work with phpBB 2.x.x?
I want that baby!
Title: Re: Visual Warning Mod
Post by: adicrst on September 19, 2007, 08:01:11 PM
I dont think so. PhpBB is not the same with SMF
Why dont u just get to smf?..there are tools to convert your database from phpbb to smf
Title: Re: Visual Warning Mod
Post by: Eleglin on September 20, 2007, 09:29:15 AM
Quote from: [SAP]Francis on September 19, 2007, 07:57:50 PM
Sorry to ask but, will it work with phpBB 2.x.x?
I want that baby!
Erk... No. I don't like phpBB.
You should use SMF  :P
Title: Re: Visual Warning Mod
Post by: askepott on September 23, 2007, 12:12:26 AM
i hope you can make a mod like the one on this theme
http://www.simplemachines.org/community/index.php?topic=185537.0;topicseen
the warning system was installed on the theme or atleast it's already included.
you might want to install the theme and check the warning system that im tellin you about.

i also installed your mod, when i uninstalled it, the colors on the posts are still there :( do i have to manually remove it?
Title: Re: Visual Warning Mod
Post by: hypercube on September 23, 2007, 04:21:27 AM
I can't see the warning button under avater next to PM and all the other buttons. I use default theme and English language... :-[
But in admin panel I do see
-Warning Management
-Post Moderation Manager
Title: Re: Visual Warning Mod
Post by: hypercube on September 23, 2007, 04:23:15 AM
But they are both empty...
Title: Re: Visual Warning Mod
Post by: topbuyer on September 23, 2007, 05:41:35 AM
Hi,

I can't read all 4 pages of this thread my question might be asked earlier. I have installed a Visual Warning Mod on smf 1.1.3. But, when I tested by posting a test message it doesn't come to post moderation queue?

Please suggest.

-topbuyer
Title: Re: Visual Warning Mod
Post by: Eleglin on September 23, 2007, 06:04:18 AM
Quote from: topbuyer on September 23, 2007, 05:41:35 AM
Hi,

I can't read all 4 pages of this thread my question might be asked earlier. I have installed a Visual Warning Mod on smf 1.1.3. But, when I tested by posting a test message it doesn't come to post moderation queue?

Please suggest.

-topbuyer

The author of this post must be warned, if you want that this post come to moderation queue.
If he's not warned, then he can post as he wants.
Title: Re: Visual Warning Mod
Post by: topbuyer on September 23, 2007, 06:14:27 AM
Quote from: Eleglin on September 23, 2007, 06:04:18 AM
Quote from: topbuyer on September 23, 2007, 05:41:35 AM
Hi,

I can't read all 4 pages of this thread my question might be asked earlier. I have installed a Visual Warning Mod on smf 1.1.3. But, when I tested by posting a test message it doesn't come to post moderation queue?

Please suggest.

-topbuyer

The author of this post must be warned, if you want that this post come to moderation queue.
If he's not warned, then he can post as he wants.

Thanks for reply.

I don't want to warn user.

I want this feature:
2) Post moderation - the user's posts must be approved before they are seen.

As this happens in yahoo groups. Whenever user post it must be approved before they are gone public. Is it possible currently?

Thanks
Title: Re: Visual Warning Mod
Post by: Eleglin on September 23, 2007, 06:17:13 AM
The different versions of this mod were not built for common premoderation.  ;)
Title: Re: Visual Warning Mod
Post by: topbuyer on September 23, 2007, 06:21:11 AM
Quote from: Eleglin on September 23, 2007, 06:17:13 AM
The different versions of this mod were not built for common premoderation.  ;)


Can you guide me like. I can use any other mod for common premoderation.
Title: Re: Visual Warning Mod
Post by: Eleglin on September 23, 2007, 06:29:29 AM
You could wait for SMF 2.0, which will be the next version of SMF, because pre-moderation is on the feature list of 2.0.
I'm busy and can't look for this modification. Sorry. ;)
Title: Re: Visual Warning Mod
Post by: topbuyer on September 23, 2007, 06:34:41 AM
No problem. Thanks for replies.

It is good that premoderation is part of SMf 2.0. I will use this mod till then. By the way any tentative date for smf 2.0 release officially?

Also, why warn button is not properly working on dilbermc them. Please suggest. (See enclosed image)
Title: Re: Visual Warning Mod
Post by: Eleglin on September 23, 2007, 06:55:09 AM
Quote from: topbuyer on September 23, 2007, 06:34:41 AM
Also, why warn button is not properly working on dilbermc them. Please suggest. (See enclosed image)
You should add an image (call him warn.gif)  in /icons (in your theme's folder )
Title: Re: Visual Warning Mod
Post by: topbuyer on September 23, 2007, 07:11:17 AM
Quote from: Eleglin on September 23, 2007, 06:55:09 AM
Quote from: topbuyer on September 23, 2007, 06:34:41 AM
Also, why warn button is not properly working on dilbermc them. Please suggest. (See enclosed image)
You should add an image (call him warn.gif)  in /icons (in your theme's folder )

I couldn't able to see warn.gif in your module folder. Can you please redirect me towards that file. So, that I can upload it in my themes's icon folder.
Title: Re: Visual Warning Mod
Post by: Eleglin on September 23, 2007, 08:01:50 AM
I think this is an "error" since the default theme is Core (since SMF 1.1 RC3)
Before, it was Babylon and you can find an image called warn.gif in the package (it was done for this theme).
Since Core is the new default theme, I think we have forgotten to modify this image and its destination.
I will be looking for a new image, but you can add the image warn.gif you want in /icons, for the moment.  ;)
Title: Re: Visual Warning Mod
Post by: hypercube on September 23, 2007, 09:05:20 AM
Can sumone please awnser my question... :D

Quote from: hypercube on September 23, 2007, 04:21:27 AM
I can't see the warning button under avater next to PM and all the other buttons. I use default theme and English language... :-[
But in admin panel I do see
-Warning Management
-Post Moderation Manager
Title: Re: Visual Warning Mod
Post by: Eleglin on September 23, 2007, 11:16:59 AM
Do you use UTF-8 ?
Title: Re: Visual Warning Mod
Post by: hypercube on September 23, 2007, 01:55:39 PM
Yep
Title: Re: Visual Warning Mod
Post by: Eleglin on September 23, 2007, 02:56:55 PM
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 (http://docs.simplemachines.org/index.php?topic=402.msg2530#msg2530).
Title: Re: Visual Warning Mod
Post by: ButtonBash on September 23, 2007, 04:58:31 PM
Quote from: shaiss on August 21, 2007, 10:17:21 AM
Quote from: shaiss on August 15, 2007, 12:06:17 PM
I'm having a problem with the instal.  Files are failing.  I tried the SMF package parser, but get nothing.
heres my error files:
1. Execute Code VisualWarningPdb.php
2. Execute Modification ./index.php Test successful
3. Execute Modification ./Sources/ModSettings.php Test successful
4. Execute Modification ./Themes/default/Profile.template.php Test successful
5. Execute Modification ./Sources/Display.php Test successful
6. Execute Modification ./Themes/default/Display.template.php Test successful
7. Execute Modification ./Sources/Post.php Test failed
8. Execute Modification ./Themes/default/Post.template.php Test successful
9. Execute Modification ./Sources/Karma.php Test successful
10. Execute Modification ./Sources/Subs.php Test successful
11. Execute Modification ./Sources/Security.php Test successful
12. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
13. Execute Modification ./Sources/ManagePermissions.php Test successful
14. Execute Modification ./Themes/default/index.template.php Test successful
15. Execute Modification ./Sources/Load.php Test failed
16. Extract File ./Sources/VisualWarning11.php
17. Extract File ./Themes/default/VisualWarning.template.php
18. Extract File ./Themes/default/images/warnban.gif
19. Extract File ./Themes/default/images/warnpmod.gif
20. Extract File ./Themes/default/images/warnmute.gif
21. Extract File ./Themes/default/images/warnwarn.gif
22. Extract File ./Themes/default/images/members.gif
23. Extract File ./Themes/default/images/buttons/warn.gif


Please help as I'd like to get this installed on my site, ocmoto.com
Thank you!
can someone please help me with this?

I'm getting the same issue. Test Failed with the post section.
Title: Re: Visual Warning Mod
Post by: topbuyer on September 23, 2007, 09:40:55 PM
Quote from: Eleglin link=topic=1860
21.msg1249772#msg1249772 date=1190548910

I think this is an "error" since the default theme is Core (since SMF 1.1 RC3)
Before, it was Babylon and you can find an image called warn.gif in the package (it was done for this theme).
Since Core is the new default theme, I think we have forgotten to modify this image and its destination.
I will be looking for a new image, but you can add the image warn.gif you want in /icons, for the moment.  ;)

What do you think. Should i put

http://www.dsboards.com/SMF/Themes/Mystic_Night/images/warn.gif

in icon folder your mod?

Thanks for help.
Title: Re: Visual Warning Mod
Post by: Eleglin on September 24, 2007, 08:44:17 AM
You can put the image you want.  ;D
Title: Re: Visual Warning Mod
Post by: topbuyer on September 25, 2007, 07:15:58 AM
Quote from: Eleglin on September 24, 2007, 08:44:17 AM
You can put the image you want.  ;D

Thanks :)
Title: Re: Visual Warning Mod
Post by: [SAP]Francis on September 26, 2007, 07:50:23 PM
I have a problem, my forum became all white pages after I installed it.
Look by yourself Eleglin: http://francismori7.hyperphp.com/sfrpforum/index.php

The page's blank and stays like it is.

I Installed the mod for 1.1.4, but it all scewed up my forum :( :'(

Can you help me?!?!

Thanks,                                                                               Francis
Title: Re: Visual Warning Mod
Post by: Eleglin on September 27, 2007, 08:24:24 AM
Il n'y a pas de problèmes du côté de ton forum, apriori. Chez moi, il apparait "normalement".
Title: Re: Visual Warning Mod
Post by: Rumbaar on September 27, 2007, 07:06:02 PM
I noticed an update to 1.1.4, thx!

But I'm having issue with post.php file returning an error.  I've looked to do it manually, but there is one part in the modification code where it inserts the code to move a post to the holding mod area but I'm unsure if it's compatible with 1.1.4's version of post.php?   As the find text section is quite different (unlike most of the other find sections) and I'm hesitant to install.

The original post.php file for 1.1.4 has this:
$msgOptions['modify_time'] = time();
$msgOptions['modify_name'] = addslashes($user_info['name']);
}
}

modifyPost($msgOptions, $topicOptions, $posterOptions);


and the mod searches for this:
$msgOptions['modify_time'] = time();
$msgOptions['modify_name'] = addslashes($user_info['name']);
}

modifyPost($msgOptions, $topicOptions, $posterOptions);
}


As you can see the } are in a completely different place, so unsure of the actual position to manually add the code.  It indicates to add it after the searched code.

Thx in advance,
Title: Re: Visual Warning Mod
Post by: Eleglin on September 28, 2007, 01:33:39 PM
I have download the last version of SMF (1.1.4) and the last version of Visual Warning.

The original post.php contains (line 1565-1577) :
// This is an already existing message. Edit it.
if (!empty($_REQUEST['msg']))
{
// Have admins allowed people to hide their screwups?
if (time() - $row['posterTime'] > $modSettings['edit_wait_time'] || $ID_MEMBER != $row['ID_MEMBER'])
{
$msgOptions['modify_time'] = time();
$msgOptions['modify_name'] = addslashes($user_info['name']);
}

modifyPost($msgOptions, $topicOptions, $posterOptions);
}
// This is a new topic or an already existing one. Save it.

And Visual warning 1.41 modify this part:
$msgOptions['modify_time'] = time();
$msgOptions['modify_name'] = addslashes($user_info['name']);
}

modifyPost($msgOptions, $topicOptions, $posterOptions);
}

So it should be all right. ;)
And so... I don't understand why your original code is different :s

Have you installed other mods before ?

Title: Re: Visual Warning Mod
Post by: Rumbaar on September 28, 2007, 07:51:23 PM
Ah, I see it now.  Because there were two instances of:
$msgOptions['modify_time'] = time();
$msgOptions['modify_name'] = addslashes($user_info['name']);

in post.php I was looking at the second instance, not the first.  My first one had 'Reason for mod' addon so wasn't matching and I ignored it, assuming the second instance was the correct one.

Thank you for your time.

Also so I'm 100% certain, still new to this.  I add the code here:
// This is an already existing message. Edit it.
if (!empty($_REQUEST['msg']))
{
// Have admins allowed people to hide their screwups?
if (time() - $row['posterTime'] > $modSettings['edit_wait_time'] || $ID_MEMBER != $row['ID_MEMBER'])
{

********** New visual warning code here ***********

$msgOptions['modify_time'] = time();
$msgOptions['modify_name'] = addslashes($user_info['name']);
}

modifyPost($msgOptions, $topicOptions, $posterOptions);
}
// This is a new topic or an already existing one. Save it.
Title: Re: Visual Warning Mod
Post by: Eleglin on September 29, 2007, 05:16:24 AM
No, you have to get this :

// This is an already existing message. Edit it.
if (!empty($_REQUEST['msg']))
{
// Have admins allowed people to hide their screwups?
if (time() - $row['posterTime'] > $modSettings['edit_wait_time'] || $ID_MEMBER != $row['ID_MEMBER'])
{
$msgOptions['modify_time'] = time();
$msgOptions['modify_name'] = addslashes($user_info['name']);
}

modifyPost($msgOptions, $topicOptions, $posterOptions);
}

********** New visual warning code here ***********

// This is a new topic or an already existing one. Save it.
Title: Re: Visual Warning Mod
Post by: Rumbaar on September 29, 2007, 05:26:56 AM
Ah, glad I asked then.  Was having trouble manually reading the XML and working our the search before/after flags.

Thank you for your assistance.  I'll be a lot more comfortable doing the manual part of the installation now :)
Title: Re: Visual Warning Mod
Post by: sgtcyrex on October 02, 2007, 04:30:01 PM
I'm having trouble getting this to show in the ORANGE-LT skin, and i'm not sure what to edit...

Could you give me a heads up? It's probably the same for all non-standard skins, right?
Title: Re: Visual Warning Mod
Post by: kicho on October 05, 2007, 04:09:32 AM
Oh, I'm having trobule with BluBlur theme. Can someone help me?
I can't see icon "warn". Help me!
Title: Re: Visual Warning Mod
Post by: ilovegames on October 06, 2007, 08:25:42 PM
Hi there, I have installed the visual warning mod.
I have checked the circle so my moderators can approve
posts.  It seems they can not. Am I missing something?
We are running 1.1.4 with the following mods:

    Mod Name     Version     
1.    Ad Managment    2.3   
2.    cbi, 1.0    1.0   
3.    Bookmark Mod By Leipe Po    1.2    (not installed won't work)
4.    Sticky First Post (extends sticky topic)    1.3.2   
5.    Users Online Today Mod    1.4.0   
6.    Signature Option Post    1.1   
7.    FlashChat Integration    1.0   
8.    SMFShop    3.0   
9.    Invite    1.14   
10.    Bookmarks    1.0    (not installed it won't work)
11.    SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update    1.0    12.    VisualWarning
Title: Re: Visual Warning Mod
Post by: ilovegames on October 10, 2007, 09:36:51 AM
Hi there, I have installed the visual warning mod.
I have checked the circle so my moderators can approve
posts.  It seems they can not. Am I missing something?
We are running 1.1.4 with the following mods:

    Mod Name     Version     
1.    Ad Managment    2.3   
2.    cbi, 1.0    1.0   
3.    Bookmark Mod By Leipe Po    1.2    (not installed won't work)
4.    Sticky First Post (extends sticky topic)    1.3.2   
5.    Users Online Today Mod    1.4.0   
6.    Signature Option Post    1.1   
7.    FlashChat Integration    1.0   
8.    SMFShop    3.0   
9.    Invite    1.14   
10.    Bookmarks    1.0    (not installed it won't work)
11.    SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update    1.0    12.    VisualWarning
Title: Re: Visual Warning Mod
Post by: zukdj on October 11, 2007, 07:41:50 PM
Time Warning Lasts (Blank=Default): Does anyone know what the default time is? I'm new to this and my thought was to make the default 30 days but after one day the warning is gone when I warn a user. I'm using SMF 1.1.4 with Tiny Portal. Any suggestions are greatly appreciated. Keep in mind I am very new to PHP.
Title: Re: Visual Warning Mod -- having display issues?
Post by: Dumpling on October 12, 2007, 03:15:54 PM
I'm currently using SMF 1.1.4 and this is my first time installing the Visual Warning Mod (if that info helps).

It installed fine. I didn't experience any problem or see any error messages while installing, but...

I am having the following problem after installation...
(http://i20.tinypic.com/ncdu69.jpg)
(http://i21.tinypic.com/nlc592.jpg)
(http://i22.tinypic.com/2qsto40.jpg)
(http://i21.tinypic.com/33or2he.jpg)

That's all I've noticed so far...

Edit: I'm sorry the images are not clickable. I don't know how to make them so they are. You can always right-click and go to View image... :P Sorry
Title: Re: Visual Warning Mod
Post by: Dumpling on October 12, 2007, 03:18:38 PM
Quote from: zukdj on October 11, 2007, 07:41:50 PM
Time Warning Lasts (Blank=Default): Does anyone know what the default time is? I'm new to this and my thought was to make the default 30 days but after one day the warning is gone when I warn a user. I'm using SMF 1.1.4 with Tiny Portal. Any suggestions are greatly appreciated. Keep in mind I am very new to PHP.

I think it's is whatever you set it to be in the configuration in the Admin CP. I think the example shown in the screenshot on the mod page was 7 days. It seems you can preset the "default" in the Admin CP --> Features and Options --> Visual Warning...
Title: Re: Visual Warning Mod
Post by: Dumpling on October 12, 2007, 07:09:56 PM
I'm trying to mod this manually...and got stuck here >>

<file name="$themedir/Profile.template.php">
          <operation>
             <search position="after"><![CDATA[ <td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
</tr><tr>
<td><b>', $txt[231], ': </b></td>
<td>', $context['member']['gender']['name'], '</td>
[color=red]]]></search>[/color]
             <add><![CDATA[';
if (isset($message['member']['group']) && $message['member']['group'] != '')
echo '
', $message['member']['group'], '<br />';
]]></search>
            <add><![CDATA[';

//  Mod Visual warning :: Hide these things for people unable to warn?
     if ($modSettings['visualw_hide'] == 0 && $context['member']['warning']['link'] !== '')
echo'
<td><b>' . $txt['visual_current_level'] . ' </b></td>
<td>' . $context['member']['warning']['link'] . '</td>
</tr><tr>
';
      elseif (AllowedTo('visual_warn_any') && $context['member']['warning']['link'] !== '')
echo'
<td><b>' . $txt['visual_current_level'] . ' </b></td>
<td>' . $context['member']['warning']['link'] . '</td>
</tr><tr>
';

echo'
]]></add>
          </operation>
        </file>

After the first "search", there was an "add" -- make sense (to me). Then I saw a "closing search" tag (with no "opening search" tag) then an "add" -- don't know what to search for the second search and it doesn't make sense (to me)

Please help. Thank you. :(
Title: Re: Visual Warning Mod
Post by: TrueSatan on October 12, 2007, 08:13:19 PM
Your language settings are wrong...please see other replies of mine to other postings of yours on other mods.
Title: Re: Visual Warning Mod
Post by: Dumpling on October 12, 2007, 08:26:44 PM
Yes sir! Thank you! :) I already replied to one of your other postings. So far, everything seems to be work fine. Thank you so much for you help (again).
Title: Re: Visual Warning Mod
Post by: TrueSatan on October 12, 2007, 08:27:41 PM
My pleasure!
Title: Re: Visual Warning Mod
Post by: topbuyer on October 13, 2007, 09:18:11 PM
Hi,

I am getting error while installing VW 1.41 mod, Please see the attached image.

I understand the only a french modification file is missing, so it doesn't matter to me because i am not using french.
2nd concern is that it did proceeded further to do the test? 2-4 test is left.

Suggest. Can I install the mod? or you recommend something else?

Thanks.
Title: Re: Visual Warning Mod
Post by: dashaman on October 13, 2007, 09:21:41 PM
it should be fine just install it because you dont need the french language you need english only
Title: Re: Visual Warning Mod
Post by: [SAP]Francis on October 18, 2007, 06:33:58 AM
Problem, Moderators can't have permissions to Warn persons... So moderators can't warn persons.
Title: Re: Visual Warning Mod
Post by: Eleglin on October 18, 2007, 08:35:23 AM
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.
Title: Re: Visual Warning Mod
Post by: forty on October 19, 2007, 04:49:50 AM
this mod works for me but theres one thing i dont like with the mod.
i dont want moderators to ban users it should only be an admins job. how can i do that?
thanks.
Title: Re: Visual Warning Mod
Post by: Eleglin on October 19, 2007, 05:45:36 AM
Please refer to README before asking a question :

QuoteOn 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)
Title: Re: Visual Warning Mod
Post by: topbuyer on October 20, 2007, 02:54:59 AM
Any Suggestion on my query?


Quote from: topbuyer on October 13, 2007, 09:18:11 PM
Hi,

I am getting error while installing VW 1.41 mod, Please see the attached image.

I understand the only a french modification file is missing, so it doesn't matter to me because i am not using french.
2nd concern is that it did proceeded further to do the test? 2-4 test is left.

Suggest. Can I install the mod? or you recommend something else?

Thanks.
Title: Re: Visual Warning Mod
Post by: RuneAvenue on October 20, 2007, 04:32:49 AM
How do I give someone a visual warning. such as a mute?
Title: Re: Visual Warning Mod
Post by: kamili34 on October 20, 2007, 07:15:40 AM
Could you add polish ?

Quote<file name="$languagedir/Modifications.polish.php">
          <operation error="ignore">
             <search position="after"><![CDATA[?>
]]></search>
             <add><![CDATA[$txt['visual_warning_mod']='Visual Warning Mod';
$txt['visual_warning_mod']='Visual Warning Mod';
$txt['visualw_mess_ban']='Wiadomo¶c dla zbanowanych uzytkowników';
$txt['visualw_mess_mute']='Wiadomo¶c dla uciszonych uzytkowników';
$txt['visualw_mess_pmod']='Wiadomo¶c dla moderowanych uzytkowników';
$txt['visualw_mess_warn']='Wiadomo¶c dla ostrzezonych uzytkowników';
$txt['visualw_color_ban']='Kolor Wiadomo¶ci dla zbanowanych uzytkowników';
$txt['visualw_color_mute']='Kolor Wiadomo¶ci dla uciszonch uzytkowników';
$txt['visualw_color_pmod']='Kolor Wiadomo¶ci dla moderowanych uzytkowników';
$txt['visualw_color_warn']='Kolor Wiadomo¶ci dla ostrzezonych uzytkowników';
$txt['visualw_image_ban']='Obrazek dla zbanowanych uzytkowników';
$txt['visualw_image_mute']='Obrazek dla uciszonych uzytkowników';
$txt['visualw_image_pmod']='Obrazek dla moderowanych uzytkowników';
$txt['visualw_image_warn']='Obrazek dla ostrzezonych uzytkowników';
$txt['warningAutoTime']='Domy¶lny czas wyga¶niecia ostrzezenia (w dniach):';
$txt['moderationAutoTime']='Domy¶lny czas wyga¶niecia moderacji (w dniach):';
$txt['muteAutoTime']='Domy¶lny czas wyga¶niecia uciszenia (w dniach):';
$txt['visualw_pmod_edit']='Moderowani uzytkownicy mog± edytowac wiadomo¶ci:';
$txt['visualw_hide']='Ostrzezenia sa widoczne dla ktore maja ostrzezenie:';
$txt['visual_require_mod'] = 'Wiadomo¶ci wymagaj± moderacji';
$txt['visual_raise']='Zwieksz poziom ostrzezen';
$txt['visual_no_perm']='Nie masz uprawnien do zmiany poziomu ostrzezen';
$txt['visual_no_warnings']='Uzytkownik aktualnie nie posiada ostrzezen!';
$txt['visual_prev_warning']='Szczególy dotychczasowych ostrzezen';
$txt['visual_current_level']='Aktualny poziom:';
$txt['visual_topic_raised']='Temat:';
$txt['visual_time_raised']='Czas:';
$txt['visual_reason_raised']='Powód kary:';
$txt['visual_level_details']='Poziomy kar';
$txt['visual_submit']='Submit';
$txt['visual_new_level']='Nowy poziom:';
$txt['visual_warning_management']='Menadzer ostrzezen';
$txt['visual_list_desc']='Lista wszystkich uzytkowników posiadaj±cych obecnie jakiekolwiek ostrzezenia (tylko poziom poziomy ostrzezen 1,2 lub 3. Poziom 4 uzytkownicy zbanowani nie s± tu wyszczególnieni ';
$txt['visual_member']='Uzytkownik';
$txt['visual_level']='Poziom';
$txt['visual_reason']='Powód';
$txt['visual_when']='Kiedy';
$txt['visual_text_warn']='Ostrzezony';
$txt['visual_warn']='Ostrzezenie';
$txt['visual_perm_modify']='Nie masz uprawnien do modyfkacji tej wiadomo¶ci';
$txt['visual_official_warning']='Otrzymale¶ oficjalne ostrzezenie';
$txt['visual_received_warning']='Otrzymale¶ ostrzezenie w zwi±zku z dotychczasowym zachowaniem na naszym forum. Aby uzyskac dalsze informacje kliknij ponizszy link:';
$txt['visual_been_muted']='Zostale¶ uciszony';
$txt['visual_no_karma']='You May Not Give Karma Whilst Warned';
$txt['visual_stages']='(0=Brak, 1=Ostrzezony, 2=Moderowany, 3=Uciszony. 4=Zbanowany)';
$txt['visual_text_pmod']='Moderowany';
$txt['visual_text_mute']='Uciszony';
$txt['visual_text_ban']='Zbanowany';
$txt['visual_none']='Brak';
$txt['visual_warning_increased']='Informujemy, ze twóje ostrzezenia na naszym forum wygasly.';
$txt['visual_warning_reduced']='Informujemy, ze poziom ostrzezen na naszym forum zostal zredukowany.';
$txt['visual_reduced']='Poziom ostrzezen zredukowany';
$txt['visual_lasts']='Czas wyga¶niecia ostrzezen (Puste=Domy¶lne)';
$txt['visual_postmod_manager']='Menadzer moderacji postów';
$txt['visual_postmod_user_under']='Wszystkie dotychczasowe posty tego uzytkownika zostaly zaakceptowane';
$txt['visual_postmod_under']='Twoje posty s± obecnie moderowane';
$txt['visual_postmod_not']='Posty tego uzytkownika NIE s± obecnie moderowane';
$txt['visual_postmod_is']='Posty tego uzytkownika s± obecnie moderowane';
$txt['visual_postmod_change']='Zmien status tego uzytkownika / tych uzytkowników';
$txt['visual_postmod']='Moderacja postów';
$txt['visual_postmod_auth']='Twoje uprawnienia nie pozwalaja na przeprowadzenie tej operacji!';
$txt['visual_postmod_appear']='Twoje posty s± obecnie moderowane - bed± widoczne po akceptacji';
$txt['visual_postmod_awaiting']='To s± posty oczekuj±ce na publikacje (moderowane). Aby dopu¶cic post (posty) zaznacz chciane i wybierz "Dopuszczam" aby skasowac, zaznacz i wybierz "Skasuj"';
$txt['visual_postmod_username']='Nazwa uzytkownika';
$txt['visual_postmod_subject']='Temat wiadomo¶ci';
$txt['visual_postmod_approve']='Dopu¶c';
$txt['visual_postmod_delete']='Skasuj';
$txt['permissiongroup_visual_warn']='Nadaj ostrzezenie i wl±cz zastosuj postów';
$txt['permissionname_visual_warn_any']='Ostrzez uzytkowników';
$txt['permissionname_visual_approve_any']='Dopu¶c posty';
]]></add>
           </operation>
        </file>
Title: Re: Visual Warning Mod
Post by: RuneAvenue on October 20, 2007, 07:35:20 AM
How do I give someone a warning or mute?
Title: Re: Visual Warning Mod
Post by: forty on October 20, 2007, 11:53:50 PM
@runeavenue
if you logged in as admin or moderator
it is inline with the "quote" "modify" and "split topic" buttons.

when i installed this mod icons were not uploaded automatically there so i manually uploaded it in the bbc folder of the theme
Title: Re: Visual Warning Mod
Post by: forty on October 20, 2007, 11:56:02 PM
hmm is it possible to know how many "warnings" "moderated" "mute" a user got since they register?
Title: Re: Visual Warning Mod
Post by: Eleglin on October 21, 2007, 05:32:29 AM
Quote from: forty on October 20, 2007, 11:56:02 PM
hmm is it possible to know how many "warnings" "moderated" "mute" a user got since they register?
No. When the level decreases, this eraze the "stronger" warning.
Title: Re: Visual Warning Mod
Post by: topbuyer on October 21, 2007, 07:08:45 AM
@Eleglin

Please suggest. It would be helpful for me to proceed.

-topbuyer

Quote from: topbuyer on October 20, 2007, 02:54:59 AM
Any Suggestion on my query?


Quote from: topbuyer on October 13, 2007, 09:18:11 PM
Hi,

I am getting error while installing VW 1.41 mod, Please see the attached image.

I understand the only a french modification file is missing, so it doesn't matter to me because i am not using french.
2nd concern is that it did proceeded further to do the test? 2-4 test is left.

Suggest. Can I install the mod? or you recommend something else?

Thanks.
Title: Re: Visual Warning Mod
Post by: Log On on October 21, 2007, 08:03:18 AM
^^If you would have read everything, you would have noticed that the developer answered your question in a previous post. If your forum doesn't have the French language files (users can not select French or your forum is not set up in French), you don't have any French language files. You you can go ahead and install if that is the case.

Question, how can you have a problem with a mod and you don't ever bother to read the whole topic?
Title: Re: Visual Warning Mod
Post by: Eleglin on October 21, 2007, 02:16:12 PM
Yep. Dashaman has answered him. Since I'm busy, I don't answer to a question if the solution is on the README, the FAQ, or on the last pages of this topic.  ;)
Title: Re: Visual Warning Mod
Post by: RuneAvenue on October 22, 2007, 07:46:14 AM
@runeavenue
if you logged in as admin or moderator
it is inline with the "quote" "modify" and "split topic" buttons.

when i installed this mod icons were not uploaded automatically there so i manually uploaded it in the bbc folder of the theme
==================================================================
I don't see it near quote or modify.
Title: Re: Visual Warning Mod
Post by: topbuyer on October 22, 2007, 10:08:49 AM
Fine. It was just to cross check as I don't want to create any problem with my live forum.

Thanks, I will proceed now.


Quote from: Eleglin on October 21, 2007, 02:16:12 PM
Yep. Dashaman has answered him. Since I'm busy, I don't answer to a question if the solution is on the README, the FAQ, or on the last pages of this topic.  ;)
Title: Re: Visual Warning Mod
Post by: askepott on October 22, 2007, 11:21:29 AM
the only thing i dont like with this mod is the graphics/images/text showing on posts.. :( have you guys seen the dhawk theme (something something, i forgot the exact theme name) it has a default warning mod. and i really like that feature, except for the theme itself.. :(

this theme have a default warning system :
http://www.simplemachines.org/community/index.php?topic=185537.0
Title: Re: Visual Warning Mod
Post by: champ_hr on October 24, 2007, 05:47:28 PM
I have a problem with "Topic Where Raised:"

When I click on member in list of users that currently have some form of warning, I can't see in which topic I set a warning. "Topic Where Raised:" is a blank, no link or something else.

Forum is SMF 1.1.4.

Help please
Title: Re: Visual Warning Mod
Post by: Green CoW on October 26, 2007, 04:02:08 AM
Hi there!
Just a issues!
Title: Re: Visual Warning Mod
Post by: Eleglin on October 26, 2007, 02:46:05 PM
When a warned user gets level 1, he can post.
If he gets level 2, he can post, but its post must be approved (in your Administration panel ;) )
QuoteAre warned users supposed to being able to modify the post??? How can I stop that?
I suppose they can if you allow your users to modify their posts. These are still their posts after all. If you don't want to deny this right, you can say that you will give them a stronger level, if they edit the warning.




Mod updated. Just added polish translation by kamili34. I thank him.  ;)
Title: Re: Visual Warning Mod
Post by: Eleglin on October 26, 2007, 02:48:09 PM
Quote from: champ_hr on October 24, 2007, 05:47:28 PM
I have a problem with "Topic Where Raised:"

When I click on member in list of users that currently have some form of warning, I can't see in which topic I set a warning. "Topic Where Raised:" is a blank, no link or something else.

Forum is SMF 1.1.4.

Help please
Are you sure you wrote something there ?
Title: Re: Visual Warning Mod
Post by: Green CoW on October 26, 2007, 07:12:27 PM
Quote from: Eleglin
When a warned user gets level 1, he can post.
If he gets level 2, he can post, but its post must be approved (in your Administration panel ;) )
Yes I'm aware of that..
Ok.. I have a test user which I gave the moderation level.
When I tested to do a "Quick Reply" I ended up with this (see attachment)
Title: Re: Visual Warning Mod
Post by: HecKel on October 26, 2007, 07:29:00 PM
Is possible to admins can "configure" the types of warnings?

For example, instead of only that 4 options admins can add more options? Using membergroups and their permissions.

And one question, is this mod on SMF 2.0?
Title: Re: Visual Warning Mod
Post by: Eleglin on October 27, 2007, 03:56:53 AM
Quote from: HecKel on October 26, 2007, 07:29:00 PM
Is possible to admins can "configure" the types of warnings?
No
Quoteand one question, is this mod on SMF 2.0?
No... and yes. This mod doesn't work with smf2, but SMF2 seems to have its own warning system.
Title: Re: Visual Warning Mod
Post by: champ_hr on October 27, 2007, 07:50:50 AM
Quote from: Eleglin on October 26, 2007, 02:48:09 PM
Quote from: champ_hr on October 24, 2007, 05:47:28 PM
I have a problem with "Topic Where Raised:"

When I click on member in list of users that currently have some form of warning, I can't see in which topic I set a warning. "Topic Where Raised:" is a blank, no link or something else.

Forum is SMF 1.1.4.

Help please
Are you sure you wrote something there ?

Warning Management 
Previous Warning Details 
Current Level:  Warned 
Topic Where Raised:   
Time When Raised:  October 26, 2007, 07:33:17 
Reason For Raise:  Naslov teme uvijek mora biti u formatu "yyyy.mm.dd. - dddd" (2007.10.27. - Subota) a nakon toga može se dodati i dodatni opis. Ovo je potrebno da bi ispravno radilo primarno sortiranje koji je u ovoj podgrupi postavljeno prema "Nazivu" teme. 


New Level Details 
New Level:  (0=None, 1=Warned, 2=Moderated, 3=Muted. 4=Banned) 
Time Warning Lasts (Blank=Default):   
Reason For Raise:   


Topic Where Raised: ??????????????????????????
is blank, what mast be heare


Sorry for my English

Do you need Croatian translatation ?
Title: Re: Visual Warning Mod
Post by: shumar on October 29, 2007, 11:05:40 PM
Error updating the DB. SQL Error: Invalid default value for 'ID'

When I start VisualWarningdb.php I get this error twice.
At first and third place. Is that normal ??

Thank you.
Title: Re: Visual Warning Mod
Post by: lonrot on October 30, 2007, 11:27:56 AM
Guys I have a great problem, the time frame doesn't work for me, I had set the number 7 (for seven days) but all the warns have not been removed, I still have people warned withing 2 months.

I would also like to see a feature where to remove the "Post Moderation" and just leave 3 levels of warnings.

1) Warn
2) Last Warn
3) Ban.

Thank you.
Title: Re: Visual Warning Mod
Post by: HecKel on October 30, 2007, 12:38:36 PM
I have the option The warnings are visible for people who can warn only activated..., but all the warnings appears on the message..., I don't want this 'cause all members will see that that member was warned.

How can I change this?
Title: Re: Visual Warning Mod
Post by: lonrot on October 30, 2007, 02:04:41 PM
Quote from: Dumpling on October 12, 2007, 03:18:38 PM
Quote from: zukdj on October 11, 2007, 07:41:50 PM
Time Warning Lasts (Blank=Default): Does anyone know what the default time is? I'm new to this and my thought was to make the default 30 days but after one day the warning is gone when I warn a user. I'm using SMF 1.1.4 with Tiny Portal. Any suggestions are greatly appreciated. Keep in mind I am very new to PHP.

Can anybody confirm this, I've tried to set the time for 7 days, but none of my members have been un-warned. Has something about this been fixed in the latest version? I'm using the old version but I can't upgrade.
I think it's is whatever you set it to be in the configuration in the Admin CP. I think the example shown in the screenshot on the mod page was 7 days. It seems you can preset the "default" in the Admin CP --> Features and Options --> Visual Warning...
Title: Re: Visual Warning Mod
Post by: Tramposch on November 01, 2007, 10:08:08 AM
i know in your FAQ it says how to fix the space between members and member groups, but i didnt really understand it. and in the installation, it cant find the polish and french translation files. also, i cant find where to change the different levels of warning, no matter where i go, nothing has changed.
Title: Re: Visual Warning Mod
Post by: Tramposch on November 02, 2007, 03:01:22 PM
Can anybody help?
Title: Re: Visual Warning Mod
Post by: pirat3 on November 04, 2007, 02:23:47 AM
i get a test vailed at:
./Sources/Post.php

any idea?
Title: Re: Visual Warning Mod
Post by: Neorics on November 04, 2007, 04:48:01 AM
question, what does it show after you post a new topic or replied to an old topic if you are post moderated?


also, i'm trying to use the post moderation function of this mod into a specified board and i'm having some problems

i'm trying to embed this code along the post.php but it doesnt seem to work

in_array(51, $board)


you think you can help me with this?
Title: Re: Visual Warning Mod
Post by: shumar on November 04, 2007, 06:56:25 AM
No solution for this ?
http://www.simplemachines.org/community/index.php?topic=186021.msg1291444#msg1291444

Where I can see who of my moderators gave warn lvl 3 ??
Title: Re: Visual Warning Mod
Post by: brianjw on November 04, 2007, 10:05:16 PM
Quote from: pirat3 on November 04, 2007, 02:23:47 AM
i get a test vailed at:
./Sources/Post.php

any idea?
It's probably conflicting with another mod or you're using a custom theme which doesn't have all of the code or appears differently. If one of these is the case (which it probably is), manually install Post.php.

You can use daniel15's package parser as well ;)
Title: Re: Visual Warning Mod
Post by: shumar on November 07, 2007, 03:39:20 PM
Where I can see who gave which warn to who ???
Is there any option like that ?
If my moderator X give warn 3 to user Y, I need something like this:
X give warn 3 to user Y at date xx.yy.zzzz in post http://.....
Title: Re: Visual Warning Mod
Post by: lonrot on November 07, 2007, 03:43:46 PM
Quote from: shumar on November 07, 2007, 03:39:20 PM
Where I can see who gave which warn to who ???
Is there any option like that ?
If my moderator X give warn 3 to user Y, I need something like this:
X give warn 3 to user Y at date xx.yy.zzzz in post http://.....

Nope there's no option for that.

And it seems the mod maker doesn't care about our requests or questions, I think he already abandoned the project.

The warning timing doesn't even work, it would be great if someone else does an upgraded version of this mod that hasn't even been finished.
Title: Re: Visual Warning Mod
Post by: Tramposch on November 07, 2007, 03:45:19 PM
well, in SMF 2.0 this is integrated, so in a couple of months, this mod will be basically obsolete.
Title: Re: Visual Warning Mod
Post by: lonrot on November 07, 2007, 03:48:52 PM
Quote from: Tramposch on November 07, 2007, 03:45:19 PM
well, in SMF 2.0 this is integrated, so in a couple of months, this mod will be basically obsolete.

Yes but, I don't think everybody will just upgrade easily, there far too many mods that won't work with SMF 2.0, I have paid for mod integration in my board for certain Themes. So that's the bad part.
Title: Re: Visual Warning Mod
Post by: shumar on November 07, 2007, 03:51:44 PM
And who know when 2.0 will be seen on daylight... :(
Title: Re: Visual Warning Mod
Post by: Eleglin on November 07, 2007, 04:59:05 PM
Quote from: lonrot on November 07, 2007, 03:43:46 PM
And it seems the mod maker doesn't care about our requests or questions, I think he already abandoned the project.

The warning timing doesn't even work, it would be great if someone else does an upgraded version of this mod that hasn't even been finished.
My last message was made on 26.10.2007 (two weeks ago).
I have a life and must work too. Sorry for the delay, but I can't help you when I'm busy.  :-X
Title: Re: Visual Warning Mod
Post by: shumar on November 07, 2007, 05:41:11 PM
We understand that you have a social life. :)
We are just worried did you see our expectations ? :)
Title: Re: Visual Warning Mod
Post by: EZ Picker on November 10, 2007, 10:36:05 AM
Quote from: brianjw on November 04, 2007, 10:05:16 PM
Quote from: pirat3 on November 04, 2007, 02:23:47 AM
i get a test vailed at:
./Sources/Post.php

any idea?
It's probably conflicting with another mod or you're using a custom theme which doesn't have all of the code or appears differently. If one of these is the case (which it probably is), manually install Post.php.

You can use daniel15's package parser as well ;)

I have this problem to and did indeed try to manually mod post.php. The show stopper was on the very first search que for post.php, was not found on my post.php file! Yes I have a few other mods which I care about. Any adice?

Almost got every thing to work! Seemed like the mod was installed but I must have made a error in post.php file because no one could make any new posts.

If any one would like to help me fix the post.php file I will pay them. Thank you.
Title: Re: Visual Warning Mod
Post by: shumar on November 10, 2007, 04:49:43 PM
One of my user is moderated, but his post don't appear in Post Moderation Manager, also his post's appear on forum ???
Title: Re: Visual Warning Mod
Post by: Eleglin on November 11, 2007, 06:00:29 AM
Quote from: HecKel on October 30, 2007, 12:38:36 PM
I have the option The warnings are visible for people who can warn only activated..., but all the warnings appears on the message..., I don't want this 'cause all members will see that that member was warned.

How can I change this?

Although it can be not "clear", this option concerns the level warnings only, not the warnings.
I understand it could be obvious, so I will fix this label on the language files.

Quote from: shumar on October 29, 2007, 11:05:40 PM
Error updating the DB. SQL Error: Invalid default value for 'ID'

When I start VisualWarningdb.php I get this error twice.
At first and third place. Is that normal ??

Thank you.
hem. Despite these errors, does this mod seems work ?
Can you warn other users without errors ?

Quote from: lonrot on October 30, 2007, 11:27:56 AM
Guys I have a great problem, the time frame doesn't work for me, I had set the number 7 (for seven days) but all the warns have not been removed, I still have people warned withing 2 months.

I would also like to see a feature where to remove the "Post Moderation" and just leave 3 levels of warnings.

1) Warn
2) Last Warn
3) Ban.

Thank you.
I use to customize each warning. I have tested theses settings a long long long time ago, but I have never heard about this problem, and I can't find it in the previous support topics. :-\

Quote from: Neorics on November 04, 2007, 04:48:01 AM
question, what does it show after you post a new topic or replied to an old topic if you are post moderated?


also, i'm trying to use the post moderation function of this mod into a specified board and i'm having some problems

i'm trying to embed this code along the post.php but it doesnt seem to work

in_array(51, $board)


you think you can help me with this?
I think it shows a message explaining that you are post-moderated :
Quote'You Are Currently Under Post Moderation'

Can't help for your customization, since this mod is not made for PRE-MODERATION, which will be inbuilt in SMF 2.0.
Title: Re: Visual Warning Mod
Post by: Eleglin on November 11, 2007, 06:01:19 AM
Quote from: shumar on November 10, 2007, 04:49:43 PM
One of my user is moderated, but his post don't appear in Post Moderation Manager, also his post's appear on forum ???
Are you sure he gets the level 2 ?
Title: Re: Visual Warning Mod
Post by: shumar on November 11, 2007, 08:29:26 AM
Hm, when I installed this mod, all modifications wasn't applied. But I didn't know that. :(
Last night, I installed manually. I have only one question.
Also I have few questions:

1.) I get this message:
4 messages require moderation
but missing one <br> after this, where I need to put this ?

2.) Is this possible link for Post Moderation Manager (X) where X will be number of messages that need to be moderated?

3.) Can message (messages require moderation) on index.template be linked to Post Moderation Manager ?
Title: Re: Visual Warning Mod
Post by: Eleglin on November 11, 2007, 09:50:34 AM
1 an 2 /

Look in index.template for this :

if (isset($context['user']['awaiting_mod']))
echo '<br />' . $context['user']['awaiting_mod']';
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<b>', $txt[616], '</b>';


you should correct the code and obtain this :

if (isset($context['user']['awaiting_mod']))
echo '<br /><a href="' . $scripturl . '?action=warnpmman">' . $context['user']['awaiting_mod'] . '</a><br />';

// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<b>', $txt[616], '</b>'


I'll update this package, in a few minutes. ;)

2 / Unnecessary, I think.
Title: Re: Visual Warning Mod
Post by: Eleglin on November 11, 2007, 10:00:04 AM
Quote from: champ_hr on October 27, 2007, 07:50:50 AM
Quote from: Eleglin on October 26, 2007, 02:48:09 PM
Quote from: champ_hr on October 24, 2007, 05:47:28 PM
I have a problem with "Topic Where Raised:"

When I click on member in list of users that currently have some form of warning, I can't see in which topic I set a warning. "Topic Where Raised:" is a blank, no link or something else.

Forum is SMF 1.1.4.

Help please
Are you sure you wrote something there ?

Warning Management 
Previous Warning Details 
Current Level:  Warned 
Topic Where Raised:   
Time When Raised:  October 26, 2007, 07:33:17 
Reason For Raise:  Naslov teme uvijek mora biti u formatu "yyyy.mm.dd. - dddd" (2007.10.27. - Subota) a nakon toga može se dodati i dodatni opis. Ovo je potrebno da bi ispravno radilo primarno sortiranje koji je u ovoj podgrupi postavljeno prema "Nazivu" teme. 


New Level Details 
New Level:  (0=None, 1=Warned, 2=Moderated, 3=Muted. 4=Banned) 
Time Warning Lasts (Blank=Default):   
Reason For Raise:   


Topic Where Raised: ??????????????????????????
is blank, what mast be heare


Sorry for my English

Do you need Croatian translatation ?
I see... or I don't see too.
Topic where raise is not empty when we give a warning but is empty in the warning manager.
I haven't find a simple solution, and .. well, I think it's a really small problem. I will be looking for this, when I will have more time, but here I can't. Sorry :(
But I'll really appreciate a Croatian translation, which could be useful for other people. You can post it here or by PM. 
Title: Re: Visual Warning Mod
Post by: shumar on November 12, 2007, 09:08:45 AM
Is there any chance to see which of my moderators approve posts for moderated users ?

I have one of users that is moderated, when he try to post, I get this error:

8: Undefined index: return_to_post
/Sources/Post.php
Line:1652
Title: Re: Visual Warning Mod
Post by: Alder on November 12, 2007, 10:37:01 AM
Eleglin, thnx for mod.
I found small problem - moderator can clean off warning and add warning to itself :(
How to fix this problem?

P.S. Sorry for my bad english, I`m from Ukraine :)

Title: Re: Visual Warning Mod
Post by: Eleglin on November 12, 2007, 04:00:32 PM
Quote from: shumar on November 12, 2007, 09:08:45 AM
Is there any chance to see which of my moderators approve posts for moderated users ?
I don't think. Give this permission to people you can trust.
QuoteI have one of users that is moderated, when he try to post, I get this error:

8: Undefined index: return_to_post
/Sources/Post.php
Line:1652
Hem... Although he gets this error, are the messages sent on the post moderation manager ?
Quote from: Alder on November 12, 2007, 10:37:01 AM
Eleglin, thnx for mod.
I found small problem - moderator can clean off warning and add warning to itself :(
How to fix this problem?

P.S. Sorry for my bad english, I`m from Ukraine :)
Do you mean that the moderators can moderate themselves or delete the warnings the get ?
Title: Re: Visual Warning Mod
Post by: shumar on November 12, 2007, 05:10:01 PM
Quote from: Eleglin on November 12, 2007, 04:00:32 PM
QuoteI have one of users that is moderated, when he try to post, I get this error:

8: Undefined index: return_to_post
/Sources/Post.php
Line:1652
Hem... Although he gets this error, are the messages sent on the post moderation manager ?
Yes, messages are in PMM.
Title: Re: Visual Warning Mod
Post by: Alder on November 12, 2007, 05:33:52 PM
Eleglin, yes. One of my forum moderators said me about this bug. I created a test user, give him moderator status and add warning to him (I was authorized as admin). After this I logout from forum and login as test moderator. I was able to add warning itself and remove warning. For remove I`ve add warning with level 0.
Title: Re: Visual Warning Mod
Post by: Eleglin on November 13, 2007, 08:03:38 AM
Quote from: Alder on November 12, 2007, 05:33:52 PM
Eleglin, yes. One of my forum moderators said me about this bug. I created a test user, give him moderator status and add warning to him (I was authorized as admin). After this I logout from forum and login as test moderator. I was able to add warning itself and remove warning. For remove I`ve add warning with level 0.
I'll be looking about that for a further update (if I have time) but it's not really a big problem, since the moderators are people you have chosen because you trust them.
Title: Re: Visual Warning Mod
Post by: Paracelsus on November 14, 2007, 02:34:08 AM
I found a problem, which is not exactly a problem.

When a GlobalModerator has permission to warn and manage moderated posts, it can only see the correspondent menu in the Admin part IF he has also some "Member Moderation" feature activated. This is because of the coupling that is made in Subs.php. This means a GlobalMod can't see the links to Warn Manager and Moderated Posts Manager even though he/she can access them using the direct link to the page.

Since I'm no expert in PHP, what I did was to create a 'manage_warnings' string in Subs.php which I then used in the admin control menu, which my GlobalMods have access to (because of News that they are allowed to change) and it works, although the links for warn and moderated post manager "jump" from Member Control in admin menu to the first section, below the News and Newsletters. If anyone knows a better way to do it, just say so.
Title: Re: Visual Warning Mod
Post by: [SAP]Francis on November 14, 2007, 10:13:47 PM
Quote from: [SAP]Francis on October 18, 2007, 06:33:58 AM
Problem, Moderators can't have permissions to Warn persons... So moderators can't warn persons.
Will this problem be fixed? I know you awnsered to put him in Global mods put I don't want that since they can warn in ALL the forum.
Title: Re: Visual Warning Mod
Post by: Eleglin on November 15, 2007, 08:17:15 AM
Quote from: Eleglin on October 18, 2007, 08:35:23 AM
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.


Quote from: [SAP]Francis on November 14, 2007, 10:13:47 PM
Quote from: [SAP]Francis on October 18, 2007, 06:33:58 AM
Problem, Moderators can't have permissions to Warn persons... So moderators can't warn persons.
Will this problem be fixed? I know you awnsered to put him in Global mods put I don't want that since they can warn in ALL the forum.
No, because it's not a real problem. And after all, all warnings will affect the warned users in the whole forum, so it's not a real local setting, but a global setting.  ;)
Title: Re: Visual Warning Mod
Post by: [SAP]Francis on November 15, 2007, 10:56:52 PM
Okay, then, but, if I want to do it myself, could you help me out?

( Dunno PHP :'( )
Title: Re: Visual Warning Mod
Post by: R_Rabbit10 on November 19, 2007, 06:16:25 AM
SMF 1.1.4
Mod version 1.41

For some reason this mod does not work correctly on my forum.
Warned members for level 2 and 3 can continue to post without being moderated or being muted.
Does anyone have any idea what can cause this behaviour?

Thank you.

These are the other mods installed om my forum:
Quote
1. PM On Registration 1.0.2   [ Uninstall ] [ List Files ] [ Delete ] 
3. Custom Profile Field Mod 3.16   [ Uninstall ] [ List Files ] [ Delete ] 
5. Instant Message Spyer 0.1   [ Uninstall ] [ List Files ] [ Delete ] 
6. Country Flags 1.0.1   [ Uninstall ] [ List Files ] [ Delete ] 
7. Users Online Today Mod 1.4.0   [ Uninstall ] [ List Files ] [ Delete ] 
8. Instant Message Spyer 0.1   [ Uninstall ] [ List Files ] [ Delete ] 
10. Reason For Editing Mod 1.14   [ Uninstall ] [ List Files ] [ Delete ] 
12. Signature Settings Mod 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
15. VisualWarning 1.41   [ Uninstall ] [ List Files ] [ Delete ] 
18. Registration Read 0.1   [ Uninstall ] [ List Files ] [ Delete ] 
19. Global Announcements 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
20. Updated Registration Agreement 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
21. Ad Managment 2.3   [ Uninstall ] [ List Files ] [ Delete ] 
Title: Re: Visual Warning Mod
Post by: shumar on November 19, 2007, 04:30:49 PM
5. Instant Message Spyer 0.1   [ Uninstall ] [ List Files ] [ Delete ]
8. Instant Message Spyer 0.1   [ Uninstall ] [ List Files ] [ Delete ]

Why same mod twice ???
Title: Re: Visual Warning Mod
Post by: R_Rabbit10 on November 19, 2007, 04:58:53 PM
I
Quote from: shumar on November 19, 2007, 04:30:49 PM
5. Instant Message Spyer 0.1   [ Uninstall ] [ List Files ] [ Delete ]
8. Instant Message Spyer 0.1   [ Uninstall ] [ List Files ] [ Delete ]

Why same mod twice ???
I don't know, good question. Installed it a long time ago to see what it is like. Never used it afterwards.
No one any idea to why the mod does not work properly?
Title: Re: Visual Warning Mod
Post by: shumar on November 21, 2007, 08:10:36 PM
Baned users doesn't have red dot under their username in posts ??
Title: Re: Visual Warning Mod
Post by: Eleglin on November 22, 2007, 12:05:12 PM
No, this mod uses the classical ban system of SMF.
Title: Re: Visual Warning Mod
Post by: pcigre on November 22, 2007, 12:51:45 PM
I have an problem when I try to uninstall old Visual Warning mod.

It says that is version 1.32 but i think that some moded version from visual warning topic.

When i try to uninstall it (so i can install fresh for 1.1.4.) i get error:

This package cannot be uninstalled, because there is no uninstaller!

Please contact the mod author for more information.

Also when I try to access Features and Options I get this error

Fatal error: Cannot redeclare visualwarningsettings() (previously declared in /path/forum/Sources/ModSettings.php:367) in /path/forum/Sources/ModSettings.php on line 444

Any solution please?
Title: Re: Visual Warning Mod
Post by: Eleglin on November 22, 2007, 01:02:12 PM
Quotebut i think that some moded version from visual warning topic.
I don't understand.
Quote
Cannot redeclare visualwarningsettings() (previously declared in /path/forum/Sources/ModSettings.php:367) in /path/forum/Sources/ModSettings.php on line 444
I think you have installed this mod twice.
Could you please attach the file modsettings.php ?
Title: Re: Visual Warning Mod
Post by: pcigre on November 22, 2007, 01:09:43 PM
QuoteI don't understand.

Not official version i think.

Here is file.
Title: Re: Visual Warning Mod
Post by: Eleglin on November 22, 2007, 01:39:55 PM
Quotefunction VisualWarningSettings()
{
   global $txt, $scripturl, $context, $settings, $sc;

   $config_vars = array(
         // Visual Warning Options?
         array('text', 'visualw_mess_ban'),
         array('text', 'visualw_mess_mute'),
         array('text', 'visualw_mess_pmod'),
         array('text', 'visualw_mess_warn'),
      '',
         array('text', 'visualw_color_ban'),
         array('text', 'visualw_color_mute'),
         array('text', 'visualw_color_pmod'),
         array('text', 'visualw_color_warn'),
      '',
         array('text', 'visualw_image_ban'),
         array('text', 'visualw_image_mute'),
         array('text', 'visualw_image_pmod'),
         array('text', 'visualw_image_warn'),
      '',
         array('text', 'muteAutoTime'),
         array('text', 'moderationAutoTime'),
         array('text', 'warningAutoTime'),
      '',
         array('check', 'visualw_pmod_edit'),
      );
      
   // Saving?
   if (isset($_GET['save']))
   {
      saveDBSettings($config_vars);
      redirectexit('action=featuresettings;sa=visualwarning');
   }

   $context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=visualwarning';
   $context['settings_title'] = $txt['visual_warning_mod'];

   prepareDBSettingContext($config_vars);
}
You have this part of code twice. This is not normal.
You should delete one of these two parts.

For the problem of uninstallation, please verify that you still have the package on your FTP
Title: Re: Visual Warning Mod
Post by: pcigre on November 22, 2007, 01:50:21 PM
@Eleglin: thank you. now i can access Features and Options.

Still can't uninstall. Looks like that i deleted original package from server. All packages I donwloaded and uploaded doesn't fit :(
Title: Re: Visual Warning Mod
Post by: pcigre on November 22, 2007, 01:51:02 PM
There is :

10.     VisualWarning     1.32     [ Uninstall ] - but uninstal doesnt work :(
Title: Re: Visual Warning Mod
Post by: Eleglin on November 22, 2007, 02:22:35 PM
Quote from: pcigre on November 22, 2007, 01:51:02 PM
There is :

10.     VisualWarning     1.32     [ Uninstall ] - but uninstal doesnt work :(
If you have deleted your packages, you can't delete your mods with the package manager...
You should upload them on the correct folder.... or uninstall the mod manually.  :)
Title: Re: Visual Warning Mod
Post by: pcigre on November 22, 2007, 05:17:58 PM
Problem is i can't find right version to upload it then uninstall, and i never did manual uninstall. Is there any tutorial for that?
Title: Re: Visual Warning Mod
Post by: Eleglin on November 23, 2007, 07:24:14 AM
You haven't save your files, database and packages before ?  ???
Sorry, but I haven't kept versions before 1.33
Title: Re: Visual Warning Mod
Post by: pcigre on November 23, 2007, 07:34:35 AM
Quote from: Eleglin on November 23, 2007, 07:24:14 AM
You haven't save your files, database and packages before ?  ???
Sorry, but I haven't kept versions before 1.33

I have db backups, but not file backups before instaliing mod.
Title: Re: Visual Warning Mod
Post by: pcigre on November 24, 2007, 06:38:29 AM
I found in backup folder file named:

2007-03-31_before_visualwarning132.tar.gz

but i dont think that can help me muck....
Title: Re: Visual Warning Mod
Post by: Eleglin on November 24, 2007, 10:37:16 AM
Visual warning was the latest mod you have installed ?
Title: Re: Visual Warning Mod
Post by: pcigre on November 24, 2007, 11:07:23 AM
Quote from: Eleglin on November 24, 2007, 10:37:16 AM
Visual warning was the latest mod you have installed ?

Noup. I installed some more later...
Title: Re: Visual Warning Mod
Post by: Eleglin on November 24, 2007, 01:42:28 PM
I attach Visual warning 1.33 here.
You should look for a manuel "uninstallation" since you had a different version. The code is not really different, so you shouldn't have problèmes.

Please backup your files and database before any thing.
Title: Re: Visual Warning Mod
Post by: ssoltz on November 28, 2007, 02:19:59 PM
Quick question:

How do I make the warning level indefinite?

I am assuming by leaving the defaults blank?

I am sure the answer to this easy one is somewhere, I just can't find it.

Thank you,
Title: Re: Visual Warning Mod
Post by: Eleglin on November 28, 2007, 02:58:56 PM
QuoteHow do I make the warning level indefinite?
What do you mean ?
Title: Re: Visual Warning Mod
Post by: [SAP]Francis on December 03, 2007, 09:13:08 AM
I found a bug when warning someone.

It sends a PM but with the subject: "You have recieved an Offical warning"

Please not that it is Official.
Title: Re: Visual Warning Mod
Post by: sgilleland on December 03, 2007, 10:17:34 PM
I ran thru almost all of the posts and didn't see anything definate on this subject......

Is there a way to make all users default to Moderator Approval upon creation?  Then you could remove it if need be?  I have a situation that I need this asap and I am aware that 2.0 has this ability, but I need it asap.  If you become a charter member can you download 2.0 right away?  Is there too many bugs in it yet?

Thanks,
Skip
Title: Re: Visual Warning Mod
Post by: Eleglin on December 04, 2007, 04:17:49 AM
Thx Francis, I will fix this very soon.  ;)

@sgilleland:
-> This mod is for post-moderation only, not for pre-moderation.
-> Of course, you can become Charter Member, and use 2.0 if you want. But keep mind that it is a Beta version, not stable, and which can have many bugs... or not. I haven't try it, and I probably won't until the official and stable version... because i don't want to crash my forum.  ;)
Title: Re: Visual Warning Mod
Post by: ssoltz on December 05, 2007, 12:47:59 PM
Quote from: Eleglin on November 28, 2007, 02:58:56 PM
QuoteHow do I make the warning level indefinite?
What do you mean ?

I mean...how do you make the ban last forever?

Thank in advance...very helpful mod...
Title: Re: Visual Warning Mod
Post by: Eleglin on December 06, 2007, 01:08:48 PM
I'm a little busy so I will make a quick answer. ;)
Since the visual warning use the classical ban system, you can edit/modify the ban in the section of your Administration Area. (the classical area on the normal and basic SMF 1.x. ).
Can't make a more extensive response for the moment. ;)
Title: Re: Visual Warning Mod
Post by: goldenboy48 on December 08, 2007, 04:16:47 PM
    Type     Action     Description
1.    Execute Code    VisualWarningPdb.php    
2.    Execute Modification    ./index.php    Test successful
3.    Execute Modification    ./Sources/ModSettings.php    Test successful
4.    Execute Modification    ./Themes/default/Profile.template.php    Test successful
5.    Execute Modification    ./Sources/Display.php    Test successful
6.    Execute Modification    ./Themes/default/Display.template.php    Test successful
7.    Execute Modification    ./Sources/Post.php    Test successful
8.    Execute Modification    ./Themes/default/Post.template.php    Test successful
9.    Execute Modification    ./Sources/Karma.php    Test successful
10.    Execute Modification    ./Sources/Subs.php    Test successful
11.    Execute Modification    ./Sources/Security.php    Test successful
12.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
13.    Execute Modification    ./Themes/default/languages/Modifications.french.php    Test failed
14.    Execute Modification    ./Themes/default/languages/Modifications.polish.php    File not found
15.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
16.    Execute Modification    ./Themes/default/index.template.php    Test successful
17.    Execute Modification    ./Sources/Load.php    Test failed
18.    Extract File    ./Sources/VisualWarning11.php    
19.    Extract File    ./Themes/default/VisualWarning.template.php    
20.    Extract File    ./Themes/default/images/warnban.gif    
21.    Extract File    ./Themes/default/images/warnpmod.gif    
22.    Extract File    ./Themes/default/images/warnmute.gif    
23.    Extract File    ./Themes/default/images/warnwarn.gif    
24.    Extract File    ./Themes/default/images/members.gif    
25.    Extract File    ./Themes/default/images/buttons/warn.gif
Title: Re: Visual Warning Mod
Post by: shumar on December 08, 2007, 04:40:36 PM
Install with this errors, then modify those file manually.
Title: Re: Visual Warning Mod
Post by: goldenboy48 on December 11, 2007, 08:37:04 PM
Quote from: shumar on December 08, 2007, 04:40:36 PM
Install with this errors, then modify those file manually.

I don't know PHP language. And I don't know what to modify :|
Title: Re: Visual Warning Mod
Post by: Eleglin on December 12, 2007, 09:23:13 AM
Please refer to Readme and modifications.xml (which are on the zip); You should do a manual installation, as described here (http://docs.simplemachines.org/index.php?topic=402.msg2530#msg2530).
Title: Re: Visual Warning Mod
Post by: Eleglin on December 12, 2007, 01:28:55 PM
Added Croatian and Turkish Translation.
Thanks to Champ_hr, Elmacik, badboy and Cakal93
Title: Re: Visual Warning Mod
Post by: Fallen Angel on December 12, 2007, 07:08:39 PM
Like the most in here i also get this error:

Execute Modification ./Sources/Load.php Test failed


What to add where in that file? And what to add when i'm running Dilber MC??

And i don't got this;

http://custom.simplemachines.org/mods/index.php?action=download;mod=878;id=40341;image (http://custom.simplemachines.org/mods/index.php?action=download;mod=878;id=40341;image)

When i get it to work, i'll make a danish translation to the mod...
Title: Re: Visual Warning Mod
Post by: Eleglin on December 13, 2007, 06:28:49 AM
What are the mods you have installed before ?
Which version of SMF ?
Wihch version of Visual Warning ?
Title: Re: Visual Warning Mod
Post by: Fallen Angel on December 13, 2007, 08:49:48 AM
Quote from: Eleglin on December 13, 2007, 06:28:49 AM
What are the mods you have installed before ?
Which version of SMF ?
Wihch version of Visual Warning ?

Sorry m8e! It works like a chamr.. My mistake.. Going to translate it to danish-uft8 soon.....
Title: Re: Visual Warning Mod
Post by: Fallen Angel on December 13, 2007, 12:48:20 PM
Here is the danish translation of this great MOD.

Put this into Modifications.danish-utf8.php


$txt['visual_warning_mod']='Visuel Advarsels Mod';
$txt['visualw_mess_ban']='Besked At Vise Uønsket Bruger';
$txt['visualw_mess_mute']='Besked At Vise Muted Bruger';
$txt['visualw_mess_pmod']='Besked At Vise Post Moderated Bruger';
$txt['visualw_mess_warn']='Besked At Vise Advaret Bruger';
$txt['visualw_color_ban']='Farve for Besked Til Uønsket Bruger';
$txt['visualw_color_mute']='Farve for Besked Til Muted Bruger';
$txt['visualw_color_pmod']='Farve for Besked Til Post Moderated Bruger';
$txt['visualw_color_warn']='Farve for Besked Til Advaret Bruger';
$txt['visualw_image_ban']='Billede at Vise Til Uønsket Bruger';
$txt['visualw_image_mute']='Billede at Vise Til Muted Bruger';
$txt['visualw_image_pmod']='Billede at Vise Til Post Moderated Bruger';
$txt['visualw_image_warn']='Billede at Vise Til Advaret Bruger';
$txt['warningAutoTime']='Default Tid Før Advarsel Stopper (Dage):';
$txt['moderationAutoTime']='Default Tid Før Moderation Stopper (Dage):';
$txt['muteAutoTime']='Default Tid Før Mute Stopper (Dage):';
$txt['visualw_pmod_edit']='Moderet Bruger Kan Ændre Beskeder:';
$txt['visualw_hide']='Advarsels niveaet er kun synligt for brugere som kan advare:';
$txt['visual_require_moad'] = 'beskeder kræver moderation';
$txt['visual_raise']='Hæv Advarsels niveaet';
$txt['visual_no_perm']='Du Har ikke Tilladelse Til At Hæve Advarsels Niveauet';
$txt['visual_no_warnings']='Bruger har iøjeblikket INGEN Advarsler!';
$txt['visual_prev_warning']='Tidligere Advarsels Detaljer';
$txt['visual_current_level']='Nuværende Niveau:';
$txt['visual_topic_raised']='Tråd hvor det blev hævet:';
$txt['visual_time_raised']='Tid hvor det blev hævet:';
$txt['visual_reason_raised']='Grund til det blev hævet:';
$txt['visual_level_details']='Nye Niveau Detaljer';
$txt['visual_submit']='Tilføj';
$txt['visual_new_level']='Ny Niveau:';
$txt['visual_warning_management']='Advarsels Management';
$txt['visual_list_desc']='Dette viser alle de brugere som iøjeblikket har en eller anden form for advarsel (Niveau 1,2 eller 3. Niveau 4 er ikke på listen da disse medlemmer allerede er uønsket!Du kan vælge at masse ændre brugers niveau eller ændre en enkelt brugers niveau her';
$txt['visual_member']='Bruger';
$txt['visual_level']='Niveau';
$txt['visual_reason']='Grundlag';
$txt['visual_when']='Hvornår';
$txt['visual_text_warn']='Advaret';
$txt['visual_warn']='Advar';
$txt['visual_perm_modify']='Du Har Ikke Tilladelse Til At Ændre Denne Besked';
$txt['visual_official_warning']='Du Har Modtaget en Officel Advarsel';
$txt['visual_received_warning']='Du har modtaget en advarsel på vores forum. Venligst følg dette link for mere information:';
$txt['visual_been_muted']='Du Er Blevet Muted På Grund Af Dårlig Opførsel';
$txt['visual_no_karma']='Du Kan Ikke Give Karma Når Du Har Fået En Advarsel';
$txt['visual_stages']='(0=Ingen, 1=Advaret, 2=Moderated, 3=Muted. 4=Uønsket)';
$txt['visual_text_pmod']='Moderated';
$txt['visual_text_mute']='Muted';
$txt['visual_text_ban']='Uønsket';
$txt['visual_none']='Ingen';
$txt['visual_warning_increased']='Jeg bliver nød til at meddele dig at dit advarsels niveau er blevet hævet.';
$txt['visual_warning_reduced']='Jeg er glad for at meddele dig at dit advarsels niveau er blevet sænket.';
$txt['visual_reduced']='Advarsels Niveau Ændret';
$txt['visual_lasts']='Tid Advarsel Vare (Blank=Default)';
$txt['visual_postmod_manager']='Post Moderation indstillinger';
$txt['visual_postmod_user_under']='Denne bruger skal iøjeblikket have alle sine indlæg godkendt før de vises';
$txt['visual_postmod_under']='Du er iøjeblikket under Post Moderation';
$txt['visual_postmod_not']='Denne bruger er ikke Post Moderated';
$txt['visual_postmod_is']='Denne bruger er Post Moderated';
$txt['visual_postmod_change']='Ændre denne bruger\'s Status';
$txt['visual_postmod']='Post Moderation';
$txt['visual_postmod_auth']='Du er ikke autoriseret til at udføre denne handling!';
$txt['visual_postmod_appear']='Du er iøjeblikket underlagt Post Moderation - Dit indlæg vil vises når det er godkendt';
$txt['visual_postmod_awaiting']='Disse er alle de indlæg som venter på blive efterset. For at godkende indlæg afmærk alle de indlæg du ønsker at godkende og vælg "Godkend" eller afmærk de indlæg du ønsker at slette og vælg "Slet"';
$txt['visual_postmod_username']='Brugernavn';
$txt['visual_postmod_subject']='Emne/Besked';
$txt['visual_postmod_approve']='Godkend';
$txt['visual_postmod_delete']='Slet';
$txt['permissiongroup_visual_warn']='Giv advarsler og udfør post moderation';
$txt['permissionname_visual_warn_any']='Advar Brugere';
$txt['permissionname_visual_approve_any']='Godkend Indlæg';
Title: Re: Visual Warning Mod
Post by: glennk on December 15, 2007, 04:59:47 PM
I get this

16.     Extract File     ./Sources/VisualWarning11.php     
17.    Extract File    ./Themes/default/VisualWarning.template.php    
18.    Extract File    ./Themes/default/images/warnban.gif    
19.    Extract File    ./Themes/default/images/warnpmod.gif    
20.    Extract File    ./Themes/default/images/warnmute.gif    
21.    Extract File    ./Themes/default/images/warnwarn.gif    
22.    Extract File    ./Themes/default/images/members.gif    
23.    Extract File    ./Themes/default/images/buttons/warn.gif    
24.    Execute Modification    ./Themes/default/languages/Modifications.french.php    File not found
25.    Execute Modification    ./Themes/default/languages/Modifications.polish.php    File not found
26.    Execute Modification    ./Themes/default/languages/Modifications.turkish.php    File not found
27.    Execute Modification    ./Themes/default/languages/Modifications.croatian.php    File not found
Title: Re: Visual Warning Mod
Post by: Eleglin on December 16, 2007, 06:19:42 AM
Don't forget your eyes and your brain when you use your package manager.  :P
If you haven't installed polish, french, turkish or other languages on your SMF, it can't find the file modification.*language*.php
Do you really think it's a problem ?  O:)
Title: Re: Visual Warning Mod
Post by: TEOC2 on December 16, 2007, 06:22:47 AM
Quote from: Eleglin on December 16, 2007, 06:19:42 AM
Don't forget your eyes and your brain when you use your package manager.  :P
If you haven't installed polish, french, turkish or other languages on your SMF, it can't find the file modification.*language*.php
Do you really think it's a problem ?  O:)
/me spits food and coffee on keyboard.
Title: Re: Visual Warning Mod
Post by: Eleglin on December 16, 2007, 01:38:47 PM
Quote from: Fallen Angel on December 13, 2007, 12:48:20 PM
Here is the danish translation of this great MOD.

Put this into Modifications.danish-utf8.php


$txt['visual_warning_mod']='Visuel Advarsels Mod';
$txt['visualw_mess_ban']='Besked At Vise Uønsket Bruger';
$txt['visualw_mess_mute']='Besked At Vise Muted Bruger';
$txt['visualw_mess_pmod']='Besked At Vise Post Moderated Bruger';
$txt['visualw_mess_warn']='Besked At Vise Advaret Bruger';
$txt['visualw_color_ban']='Farve for Besked Til Uønsket Bruger';
$txt['visualw_color_mute']='Farve for Besked Til Muted Bruger';
$txt['visualw_color_pmod']='Farve for Besked Til Post Moderated Bruger';
$txt['visualw_color_warn']='Farve for Besked Til Advaret Bruger';
$txt['visualw_image_ban']='Billede at Vise Til Uønsket Bruger';
$txt['visualw_image_mute']='Billede at Vise Til Muted Bruger';
$txt['visualw_image_pmod']='Billede at Vise Til Post Moderated Bruger';
$txt['visualw_image_warn']='Billede at Vise Til Advaret Bruger';
$txt['warningAutoTime']='Default Tid Før Advarsel Stopper (Dage):';
$txt['moderationAutoTime']='Default Tid Før Moderation Stopper (Dage):';
$txt['muteAutoTime']='Default Tid Før Mute Stopper (Dage):';
$txt['visualw_pmod_edit']='Moderet Bruger Kan Ændre Beskeder:';
$txt['visualw_hide']='Advarsels niveaet er kun synligt for brugere som kan advare:';
$txt['visual_require_moad'] = 'beskeder kræver moderation';
$txt['visual_raise']='Hæv Advarsels niveaet';
$txt['visual_no_perm']='Du Har ikke Tilladelse Til At Hæve Advarsels Niveauet';
$txt['visual_no_warnings']='Bruger har iøjeblikket INGEN Advarsler!';
$txt['visual_prev_warning']='Tidligere Advarsels Detaljer';
$txt['visual_current_level']='Nuværende Niveau:';
$txt['visual_topic_raised']='Tråd hvor det blev hævet:';
$txt['visual_time_raised']='Tid hvor det blev hævet:';
$txt['visual_reason_raised']='Grund til det blev hævet:';
$txt['visual_level_details']='Nye Niveau Detaljer';
$txt['visual_submit']='Tilføj';
$txt['visual_new_level']='Ny Niveau:';
$txt['visual_warning_management']='Advarsels Management';
$txt['visual_list_desc']='Dette viser alle de brugere som iøjeblikket har en eller anden form for advarsel (Niveau 1,2 eller 3. Niveau 4 er ikke på listen da disse medlemmer allerede er uønsket!Du kan vælge at masse ændre brugers niveau eller ændre en enkelt brugers niveau her';
$txt['visual_member']='Bruger';
$txt['visual_level']='Niveau';
$txt['visual_reason']='Grundlag';
$txt['visual_when']='Hvornår';
$txt['visual_text_warn']='Advaret';
$txt['visual_warn']='Advar';
$txt['visual_perm_modify']='Du Har Ikke Tilladelse Til At Ændre Denne Besked';
$txt['visual_official_warning']='Du Har Modtaget en Officel Advarsel';
$txt['visual_received_warning']='Du har modtaget en advarsel på vores forum. Venligst følg dette link for mere information:';
$txt['visual_been_muted']='Du Er Blevet Muted På Grund Af Dårlig Opførsel';
$txt['visual_no_karma']='Du Kan Ikke Give Karma Når Du Har Fået En Advarsel';
$txt['visual_stages']='(0=Ingen, 1=Advaret, 2=Moderated, 3=Muted. 4=Uønsket)';
$txt['visual_text_pmod']='Moderated';
$txt['visual_text_mute']='Muted';
$txt['visual_text_ban']='Uønsket';
$txt['visual_none']='Ingen';
$txt['visual_warning_increased']='Jeg bliver nød til at meddele dig at dit advarsels niveau er blevet hævet.';
$txt['visual_warning_reduced']='Jeg er glad for at meddele dig at dit advarsels niveau er blevet sænket.';
$txt['visual_reduced']='Advarsels Niveau Ændret';
$txt['visual_lasts']='Tid Advarsel Vare (Blank=Default)';
$txt['visual_postmod_manager']='Post Moderation indstillinger';
$txt['visual_postmod_user_under']='Denne bruger skal iøjeblikket have alle sine indlæg godkendt før de vises';
$txt['visual_postmod_under']='Du er iøjeblikket under Post Moderation';
$txt['visual_postmod_not']='Denne bruger er ikke Post Moderated';
$txt['visual_postmod_is']='Denne bruger er Post Moderated';
$txt['visual_postmod_change']='Ændre denne bruger\'s Status';
$txt['visual_postmod']='Post Moderation';
$txt['visual_postmod_auth']='Du er ikke autoriseret til at udføre denne handling!';
$txt['visual_postmod_appear']='Du er iøjeblikket underlagt Post Moderation - Dit indlæg vil vises når det er godkendt';
$txt['visual_postmod_awaiting']='Disse er alle de indlæg som venter på blive efterset. For at godkende indlæg afmærk alle de indlæg du ønsker at godkende og vælg "Godkend" eller afmærk de indlæg du ønsker at slette og vælg "Slet"';
$txt['visual_postmod_username']='Brugernavn';
$txt['visual_postmod_subject']='Emne/Besked';
$txt['visual_postmod_approve']='Godkend';
$txt['visual_postmod_delete']='Slet';
$txt['permissiongroup_visual_warn']='Giv advarsler og udfør post moderation';
$txt['permissionname_visual_warn_any']='Advar Brugere';
$txt['permissionname_visual_approve_any']='Godkend Indlæg';

Added in the package.
Thanks ;)
Title: Re: Visual Warning Mod
Post by: glennk on December 17, 2007, 11:38:02 AM
OK OK I did think it might not be a problem but felt I better ask first as I didnt want to install the damn thing then get loads of problems.  :) ;)

Do I assume its fine to just go ahead and install this then ?  :-X
Title: Re: Visual Warning Mod
Post by: Eleglin on December 17, 2007, 12:05:52 PM
QuoteDo I assume its fine to just go ahead and install this then ? 
Hem... Let me one minute..
..
..
..
..
..
..
..
..
..
..
..
..
..
Yes !  :D
Title: Re: Visual Warning Mod
Post by: glennk on December 17, 2007, 01:58:54 PM
Thanks for your advice. Installed and working well. Not keen on the yellow writing - very difficult to see  :o :'(

.
.
.
.
.
..
.
.
.
.
.
.
.


Keep taking the tablets  :) :D 8)
Title: Re: Visual Warning Mod
Post by: Eleglin on December 17, 2007, 03:40:35 PM
Quote from: glennk on December 17, 2007, 01:58:54 PM
Thanks for your advice. Installed and working well. Not keen on the yellow writing - very difficult to see  :o :'(
You can customize it. Look at your Administration area.
Title: Re: Visual Warning Mod
Post by: Harvardphd123 on December 20, 2007, 02:50:14 AM
I'm using smf 1.1.4

I installed VW 141 for the first time today.

Here are the files that are listed:

im_visualw.gif (804 bytes)
languages.xml (32021 bytes)
members.gif (2140 bytes)
modification.xml (25386 bytes)
package-info.xml (4206 bytes)
readme.txt (8943 bytes)
VisualWarning.template.php (8735 bytes)
VisualWarning11.php (17264 bytes)
VisualWarningdb.php (6273 bytes)
VisualWarningPdb.php (4293 bytes)
VisualWarning_languages.mod (25644 bytes)
VisualWarning_SMF11.mod (21412 bytes)
warn.gif (256 bytes)
warnban.gif (868 bytes)
warnmute.gif (868 bytes)
warnpmod.gif (868 bytes)
warnwarn.gif (868 bytes)


The problem, nothing is showing up anywhere. It's like the mod wasn't installed. What did I do wrong and how to fix it. Thanks
Title: Re: Visual Warning Mod
Post by: Eleglin on December 20, 2007, 07:33:48 AM
Do you use english (iso) ?
Do you use a customized theme ?


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
Title: Re: Visual Warning Mod
Post by: Harvardphd123 on December 20, 2007, 03:03:28 PM
Do you use english (iso) ? YES

Do you use a customized theme ? NO  (SMF Default Theme - Core)


OK, after changing this post a few times, the fix is simple. You should put this on the mod page or readme file:

You must change your language from "English utf8" to "English" for this mod to work.
Title: Re: Visual Warning Mod
Post by: Eleglin on December 21, 2007, 04:09:58 AM
I have said that in the previous message.
You can add the translation in modifications.english-utf8.php
Title: Re: Visual Warning Mod
Post by: softtouch on December 21, 2007, 06:34:37 AM
Where can I remove the function that the Visual Warning add a text to the post?
I only want the text in the user info on the left side, but not in the post itself.
Title: Re: Visual Warning Mod
Post by: Eleglin on December 21, 2007, 08:42:52 AM
I suggest you to remove the text after the warning. easy and quick.  ;)
Title: Re: Visual Warning Mod
Post by: Harvardphd123 on December 22, 2007, 01:03:50 AM
I'm sure you'll love to hear this, but I do still have a question.

If I close the browser that my forum is on and open a new browser and go back to my forum, the links to Warning Management and Post Moderation Manager are gone. I have to go back to the server settings which still show english as the language, click save, than the links are back and everything is ok.

How can I fix it so I don't have to go to the server settings everytime and resave the language change?

Thanks for all your help.
Title: Re: Visual Warning Mod
Post by: Harvardphd123 on December 22, 2007, 01:08:11 AM
Sorry, as many times as I've read this thread, I can't believe I missed it.


Quote from: Eleglin on December 21, 2007, 04:09:58 AM
I have said that in the previous message.
You can add the translation in modifications.english-utf8.php

Title: Re: Visual Warning Mod
Post by: softtouch on December 22, 2007, 05:56:41 AM
Quote from: Eleglin on December 21, 2007, 08:42:52 AM
I suggest you to remove the text after the warning. easy and quick.  ;)

Where? In the code (and if, which code) or in the ACP?
Title: Re: Visual Warning Mod
Post by: Eleglin on December 22, 2007, 06:18:02 AM
Quote from: softtouch on December 22, 2007, 05:56:41 AM
Quote from: Eleglin on December 21, 2007, 08:42:52 AM
I suggest you to remove the text after the warning. easy and quick.  ;)

Where? In the code (and if, which code) or in the ACP?
In the message.
You don't give a warning every day, I suppose... so it's not useful to have an headache.  ;)

Quote
Sorry, as many times as I've read this thread, I can't believe I missed it.
I have said that the package manager doesn't install english UTF-8. So if it doesn't, you must do it.
Look at the FAQ, on the first message.
Title: Re: Visual Warning Mod
Post by: softtouch on December 22, 2007, 11:19:48 PM
Something is weird.
I could swear as I tested the mod that it added a text to the userinfo beside the post. Now it adds only a text INSIDE the post, but nothing in the userinfo anymore... I saw in some other forum they have only a text in the userinfo, like WANRED, MUTED etc., and nothing in the post, I have the opposite now... on default theme, fresh install, 1.1.4
Title: Re: Visual Warning Mod
Post by: Harvardphd123 on December 23, 2007, 01:22:08 AM
If I close the browser that my forum is on and open a new browser and go back to my forum, the links to Warning Management and Post Moderation Manager are gone. I have to go back to the server settings which still show english (not english utf8) as the language, click save, than the links are back and everything is ok.

How can I fix it so I don't have to go to the server settings everytime and resave the language change?

Thanks for all your help.
Title: Re: Visual Warning Mod
Post by: softtouch on December 23, 2007, 07:44:42 PM
Something wrong.

I have 2 fresh 1.1.4 now installed, and in the post.php is this line:

$context['show_spellchecking'] = !empty($modSettings['enableSpellChecking']) && function_exists('pspell_new');

but the mod is looking for this (modifications.xml):

$context['show_spellchecking'] = $mo Settings['enableSpellChecking'] && function_exists('pspell_new');
Title: Re: Visual Warning Mod
Post by: Eleglin on December 24, 2007, 07:41:38 AM
Okay, I fix this error. Thanks for this message. :)
QuoteIf I close the browser that my forum is on and open a new browser and go back to my forum, the links to Warning Management and Post Moderation Manager are gone. I have to go back to the server settings which still show english (not english utf8) as the language, click save, than the links are back and everything is ok.
This problem seems to come from server settings. You should look in General support section ?

QuoteNow it adds only a text INSIDE the post, but nothing in the userinfo anymore... I saw in some other forum they have only a text in the userinfo, like WANRED, MUTED etc., and nothing in the post, I have the opposite now... on default theme, fresh install, 1.1.4
You are connected as admin ?
Since v. 1.41, there is an option allowing you to hide level warnings (in the userinfo) for people unable to warn. Are you sure you are allowed to warn ?
Title: Re: Visual Warning Mod
Post by: teamvtec on December 28, 2007, 04:28:22 PM
Hi, since a couple of days i have some troubles with giving out warnings to certain members.
It's just weird... i get this error message when i try to raise their warning level or try to give one in the first place.

QuoteHacking attempt...
http://www.civicvtec.org/forums/index.php?action=warnadd2

UPDATE smf_messages
SET body = 'very nice... :love:
hm, what gear box are going to be included for h22a engine? I have 5 gen civic coupe and i'm thinking about this swap too... can you post me all information or link about this swap into 5gen.
(http://www.civicvtec.org/forums/Themes/default/images/warnpmod.gif)
'
WHERE ID_MSG = 17574
File: /home/teamvtec/domains/civicvtec.org/public_html/forums/Sources/VisualWarning11.php
Line: 147
Title: Re: Visual Warning Mod
Post by: ne.miguelito on December 29, 2007, 09:08:51 PM
In my Forum Error Log

http://ne-miguelito.freealoja.com/index.php?topic=5988.0
8: Undefined index: visual_warn
Ficheiro: /home/nemigue/public_html/Sources/Subs.php
Linha: 3783


how to solve?
Title: Re: Visual Warning Mod
Post by: RuneFire on January 01, 2008, 03:59:20 AM
Is it possible, that if a moderated user attempts to post a message, that a PM/notice is sent to a specific usergroup OUTSIDE the admin control panel, so that the post can be approved/denied? maybe create something like a "special" inbox for the moderators, and all the attemped posts' notification are in there....

it's quite irritating, that I keep have to login to the admin panel, and manually check all the attempted messages.
Title: Re: Visual Warning Mod
Post by: dxyy on January 08, 2008, 12:41:10 AM
I can't seem to get the images to show under the usernames.

I'm also getting these errors in my log:
Quote
8: Undefined variable: modsettings
File: /home/daxueyin/public_html/forum/Sources/Load.php
Line: 1094

8: Undefined variable: modsettings
File: /home/daxueyin/public_html/forum/Sources/Load.php
Line: 1093

I have attached my load.php file if that's helpful. ;)

Any help resolving this would be greatly appreciated.
Title: Re: Visual Warning Mod
Post by: teamvtec on January 08, 2008, 07:35:26 AM
Hi, i did a fresh install of smf 1.1.4 (with custom theme) and uploaded an smf database backup
I then wanted to add the modifications to my forum like i had before.
Started with some other mods that worked fine but this one didn't, well everything is succesfull in the Package manager it installs ok but then when i click a random topic it shows me this error

Database Error
Unknown column 'mem.warning' in 'field list'
File: /home/teamvtec/domains/civicvtec.org/public_html/forums/Sources/Load.php
Line: 948 

I then ran the upgrade.php for updating the database... still the same error

I tried to search for the mem.warning or field list in the database but i can't seem to find it.
Am i looking in the right direction?
can someone help me out?? i really like this mod and want it bad on my forum.
thanks
Title: Re: Visual Warning Mod
Post by: dxyy on January 08, 2008, 02:30:06 PM
Small spelling mistake.

$txt['visual_official_warning']='You Have Received an Offical Warning';

Hehe, 'offical' should be 'official' ;)
Title: Re: Visual Warning Mod
Post by: dxyy on January 08, 2008, 03:02:25 PM
Oh, I revisited this thread to say one thing, got sidetracked and posted something else. ::)

Anyway, if any of you performed manual edits to install this mod, be careful as in some case lowercase letter might be used whereas uppercase letters might be required.

You can see this thread for one example: Undefined Variable: modsettings (http://www.simplemachines.org/community/index.php?topic=215437.0)

Hope this post can help someone else in the future. ;)
Title: Re: Visual Warning Mod
Post by: teamvtec on January 09, 2008, 07:20:26 PM
Quote from: teamvtec on January 08, 2008, 07:35:26 AM
Hi, i did a fresh install of smf 1.1.4 (with custom theme) and uploaded an smf database backup
I then wanted to add the modifications to my forum like i had before.
Started with some other mods that worked fine but this one didn't, well everything is succesfull in the Package manager it installs ok but then when i click a random topic it shows me this error

Database Error
Unknown column 'mem.warning' in 'field list'
File: /home/teamvtec/domains/civicvtec.org/public_html/forums/Sources/Load.php
Line: 948 

I then ran the upgrade.php for updating the database... still the same error

I tried to search for the mem.warning or field list in the database but i can't seem to find it.
Am i looking in the right direction?
can someone help me out?? i really like this mod and want it bad on my forum.
thanks

Anyone?
Title: Re: Visual Warning Mod
Post by: anshar on January 11, 2008, 09:16:34 AM
Can anyone tell where & what to edit, to modify the look of warning?

Currently the warning text is centered at bottom of user's post, but I want to have it aligned to the left side. Same with warning gif attached to warning message.
Title: Re: Visual Warning Mod
Post by: teamvtec on January 16, 2008, 05:08:44 AM
Quote from: teamvtec on January 09, 2008, 07:20:26 PM
Quote from: teamvtec on January 08, 2008, 07:35:26 AM
Hi, i did a fresh install of smf 1.1.4 (with custom theme) and uploaded an smf database backup
I then wanted to add the modifications to my forum like i had before.
Started with some other mods that worked fine but this one didn't, well everything is succesfull in the Package manager it installs ok but then when i click a random topic it shows me this error

Database Error
Unknown column 'mem.warning' in 'field list'
File: /home/teamvtec/domains/civicvtec.org/public_html/forums/Sources/Load.php
Line: 948 

I then ran the upgrade.php for updating the database... still the same error

I tried to search for the mem.warning or field list in the database but i can't seem to find it.
Am i looking in the right direction?
can someone help me out?? i really like this mod and want it bad on my forum.
thanks

Anyone?

What kind of support board is this anyway??
what's the use if no one replies to try and solve the problems posted?
Title: Re: Visual Warning Mod
Post by: [SAP]Francis on January 16, 2008, 07:01:49 PM
Just wait, you moron!
Title: Re: Visual Warning Mod
Post by: spiros on January 21, 2008, 12:58:31 PM
Edit: I got it, you simply Modify the message.
Is there a way to delete the warning messages/icons appearing in a post once the level goes back to 0?
Title: Re: Visual Warning Mod
Post by: TrueSatan on January 22, 2008, 09:11:56 AM
Unfortunately the mod as supplied on the SMF mod site is corrupted and not usable at this time.
Title: Re: Visual Warning Mod
Post by: Eleglin on January 23, 2008, 07:41:38 AM
Uploaded x2,
This seems to be ok now.

Can't understand why this was wrong yesterday, since I have yet re-uploaded it...  :-\

Sorry for the delay, but I'm really busy.
Title: Re: Visual Warning Mod
Post by: ceewee on January 30, 2008, 01:48:28 PM
some items said test failed so I've tried 2 package parsers but they don't show what I have to edit/replace, only got this: (package corrupt?)
PHP script to execute: VisualWarningPdb.php

Files installed
VisualWarning11.php will be copied to $sourcedir
VisualWarning.template.php will be copied to $themedir
warnban.gif will be copied to $themedir/images
warnpmod.gif will be copied to $themedir/images
warnmute.gif will be copied to $themedir/images
warnwarn.gif will be copied to $themedir/images
members.gif will be copied to $themedir/images
warn.gif will be copied to $themedir/images/buttons
Modifications to SMF files
Modification in BoardMod format: /tmp/VisualWarning_SMF11.mod Modification in BoardMod format: /tmp/VisualWarning_languages.mod
Title: Re: Visual Warning Mod
Post by: brianjw on February 01, 2008, 08:39:20 PM
Eleglin, have you ever thought of creating something like this:
http://www.smfhelper.info/forum/index.php?topic=1843.0
Quote from: SMFHelper.info by MatthewSchenker
(post to large, read link above)

brianjw
Title: Re: Visual Warning Mod
Post by: E-World on February 09, 2008, 11:57:33 PM
Sorry if it's already been answered before but how exactly do I install this mod on a custom theme, I've got it on the default but can you list the steps I need to take to install it on the custom theme.
My forum is www.e-worldforums.co.nr (http://www.e-worldforums.co.nr) if you need to check the theme.
Title: Re: Visual Warning Mod
Post by: Eleglin on February 10, 2008, 06:34:36 AM
I don't like this "idea" of "pillory".
I don't think it would be a good feature on Visual Warning but it could be done on a separate mod... if someone want to do it. ;)
Title: Re: Visual Warning Mod
Post by: Kenny01 on February 12, 2008, 08:52:22 AM
Since i reinstalled my forum, it never work again.
Title: Re: Visual Warning Mod
Post by: nnick on February 14, 2008, 07:19:05 AM
Hello,

I have installed this mod on SMF 1.1.4. As far as administration everything seems to work ok but I can't make to display the warn button!!!  I have read the whole thread, tried the suggestions but still same result :(

By checking the error administration I have this error
8: Undefined index: visual_warn
Αρχείο: D:\hshome\nikolakn\forum.el-me.gr\Sources\Subs.php
Γραμμή: 3587

Any comments will be highly appreciated :)

Thank you
Title: Re: Visual Warning Mod
Post by: barrage time on February 14, 2008, 09:28:03 PM
This is brillent, I know so many websites which use it, gratz.
Title: Re: Visual Warning Mod
Post by: pipo_il_primero on February 16, 2008, 11:28:39 PM
Quote from: nnick on February 14, 2008, 07:19:05 AM
Hello,

I have installed this mod on SMF 1.1.4. As far as administration everything seems to work ok but I can't make to display the warn button!!!  I have read the whole thread, tried the suggestions but still same result :(

By checking the error administration I have this error
8: Undefined index: visual_warn
Αρχείο: D:\hshome\nikolakn\forum.el-me.gr\Sources\Subs.php
Γραμμή: 3587

Any comments will be highly appreciated :)

Thank you


same thing here.
I can't get the "warn memebr" link to appear on each post. Admin panel is perfect.
I am using a custom template. When switching to default template the warn member link is appearing.
Please help.
Thanks
Title: Re: Visual Warning Mod
Post by: Kenny01 on February 17, 2008, 10:41:17 AM
Try to uninstall it and reinstall it.
Title: Re: Visual Warning Mod
Post by: ManilaGurL on February 24, 2008, 10:11:19 AM
I would really like to use it but getting errors upon installing and the manual installing is too technical for me. Guess I'll just have to wait till this mod is added to the forum itself. Nice mod!
Title: Re: Visual Warning Mod
Post by: Eleglin on March 03, 2008, 06:07:50 AM
Just added Norwegian translation, thanks to Kim Arne.
Title: Re: Visual Warning Mod
Post by: Kenny01 on March 03, 2008, 12:28:43 PM
Quote from: teamvtec
/quote]

Anyone?
[/quote]
Quote from: teamvtec on January 16, 2008, 05:08:44 AM
Quote from: teamvtec on January 09, 2008, 07:20:26 PM
Quote from: teamvtec on January 08, 2008, 07:35:26 AM


Anyone?

What kind of support board is this anyway??
what's the use if no one replies to try and solve the problems posted?
No one is paid to reply, it's a voluntary service, so keep your cool.
Title: Re: Visual Warning Mod
Post by: gtron on March 05, 2008, 07:33:58 AM
how do we remove Current Level:      Banned from someone that needs to be unbanned?
Title: Re: Visual Warning Mod
Post by: Kenny01 on March 05, 2008, 07:46:22 AM
Quote from: gtron on March 05, 2008, 07:33:58 AM
how do we remove Current Level:      Banned from someone that needs to be unbanned?
Just type in 0 in all the box then click save.
Title: Re: Visual Warning Mod
Post by: Kenny01 on March 05, 2008, 07:47:01 AM
Quote from: Oga123 on March 05, 2008, 07:46:22 AM
Quote from: gtron on March 05, 2008, 07:33:58 AM
how do we remove Current Level:      Banned from someone that needs to be unbanned?
You click modify then type in 0 in all the box then click save.
Title: Re: Visual Warning Mod
Post by: Kenny01 on March 05, 2008, 07:47:24 AM
Quote from: Oga123 on March 05, 2008, 07:47:01 AM
Quote from: Oga123 on March 05, 2008, 07:46:22 AM
Quote from: gtron on March 05, 2008, 07:33:58 AM
how do we remove Current Level:      Banned from someone that needs to be unbanned?
You click modify then type in 0 in all the box then click save.
Title: Re: Visual Warning Mod
Post by: gtron on March 05, 2008, 10:49:50 AM
Quote from: Oga123 on March 05, 2008, 07:47:24 AM
Quote from: Oga123 on March 05, 2008, 07:47:01 AM
Quote from: Oga123 on March 05, 2008, 07:46:22 AM
Quote from: gtron on March 05, 2008, 07:33:58 AM
how do we remove Current Level:      Banned from someone that needs to be unbanned?
You click modify then type in 0 in all the box then click save.

where is this modify? level 4's arent listed in 'warning management' so im not sure where else to do this
Title: Re: Visual Warning Mod
Post by: Kenny01 on March 05, 2008, 04:15:39 PM
Quote from: gtron on March 05, 2008, 10:49:50 AM
Quote from: Oga123 on March 05, 2008, 07:47:24 AM
Quote from: Oga123 on March 05, 2008, 07:47:01 AM
Quote from: Oga123 on March 05, 2008, 07:46:22 AM
Quote from: gtron on March 05, 2008, 07:33:58 AM
how do we remove Current Level:      Banned from someone that needs to be unbanned?
You click modify then type in 0 in all the box then click save.

where is this modify? level 4's arent listed in 'warning management' so im not sure where else to do this

You click on the visual ban button which can be found on top of the last post he made before he get ban, and you type in 0 in all the check box then click save. That will remove all the ban.
Title: Re: Visual Warning Mod
Post by: Robin1989 on March 14, 2008, 10:59:11 AM
is it usual to get errors upon installation test - i havnt procceded yet incase your not meant to
i get the following errors

5.   Execute Modification   ./Sources/Display.php   Test failed
14.   Execute Modification   ./Sources/Load.php   Test failed

i know these are languages so shouldnt matter but i thought i would post them anyway
24.   Execute Modification   ./Themes/default/languages/Modifications.french.php   File not found
25.   Execute Modification   ./Themes/default/languages/Modifications.polish.php   File not found
26.   Execute Modification   ./Themes/default/languages/Modifications.turkish.php   File not found
27.   Execute Modification   ./Themes/default/languages/Modifications.croatian.php   File not found
28.   Execute Modification   ./Themes/default/languages/Modifications.danish.php   File not found

Title: Re: Visual Warning Mod
Post by: Kenny01 on March 14, 2008, 01:07:48 PM
I advice you stop the installation and try installing it manually.
Title: Re: Visual Warning Mod
Post by: xraffle on March 15, 2008, 01:44:55 PM
I just installed SMF 1.1.4. on my site and I'm having a problem installing the Visual Warning Mod. I downloaded the package onto my forum, but when I click on "Apply Mod" this is the error I keep receiving:

QuoteInstalling this package will perform the following actions: 
1. Execute Code VisualWarningPdb.php 
2. Execute Modification VisualWarning_SMF11.mod Modification parse error
3. Extract File ./Sources/VisualWarning11.php 
4. Extract File ./Themes/default/VisualWarning.template.php 
5. Extract File ./Themes/default/images/warnban.gif 
6. Extract File ./Themes/default/images/warnpmod.gif 
7. Extract File ./Themes/default/images/warnmute.gif 
8. Extract File ./Themes/default/images/warnwarn.gif 
9. Extract File ./Themes/default/images/members.gif 
10. Extract File ./Themes/default/images/buttons/warn.gif 
11. Execute Modification VisualWarning_languages.mod Modification parse error

It seems like my forum has a problem with executing the modification. Any help would be greatly appreciated.
Title: Re: Visual Warning Mod
Post by: Kenny01 on March 15, 2008, 04:13:53 PM
Try instalng it manually.
Title: Re: Visual Warning Mod
Post by: E-World on March 17, 2008, 02:27:56 AM
Quote from: E-World on February 09, 2008, 11:57:33 PM
Sorry if it's already been answered before but how exactly do I install this mod on a custom theme, I've got it on the default but can you list the steps I need to take to install it on the custom theme.
My forum is www.e-worldforums.co.nr (http://www.e-worldforums.co.nr) if you need to check the theme.
Hello! Does anyone have an answer for me?
Title: Re: Visual Warning Mod
Post by: Eleglin on March 17, 2008, 07:33:52 AM
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 (http://docs.simplemachines.org/index.php?topic=402.msg2530#msg2530).
Title: Re: Visual Warning Mod
Post by: Kenny01 on March 17, 2008, 08:19:35 AM
@ Eleglin your link is not working.
Title: Re: Visual Warning Mod
Post by: lonrot on March 29, 2008, 12:19:30 PM
Hello, is it possible to move the "warn" button under the avatar, for example below the karma?
Title: Re: Visual Warning Mod
Post by: Kenny01 on March 30, 2008, 12:04:21 PM
Quote from: lonrot on March 29, 2008, 12:19:30 PM
Hello, is it possible to move the "warn" button under the avatar, for example below the karma?
There's no need because it's only the admin that can see the button.
Title: Re: Visual Warning Mod
Post by: lonrot on March 30, 2008, 12:37:22 PM
Nope, my mods are actually requesting me to do it since the warn button is too close to the modify button.
Title: Re: Visual Warning Mod
Post by: Mystiquo on March 31, 2008, 09:32:01 PM
icon don't work with me i have a italian and cerberus theme thanks
Title: Re: Visual Warning Mod
Post by: cellax on April 08, 2008, 03:59:43 AM
hi all,

in modification.xml there is a doubled line, is it normal?
        <file name="$sourcedir/Display.php">
          <operation>
             <search position="before"><![CDATA[ $context['can_reply'] &= empty($topicinfo['locked']) || allowedTo('moderate_board');
]]></search>
             <add><![CDATA[$context['can_warn'] = allowedTo('visual_warn_any');
]]></add>
           </operation>
        </file>
       
        <file name="$sourcedir/Display.php">
          <operation>
             <search position="before"><![CDATA[ $context['can_reply'] &= empty($topicinfo['locked']) || allowedTo('moderate_board');
]]></search>
             <add><![CDATA[$context['can_warn'] = allowedTo('visual_warn_any');
]]></add>
           </operation>
        </file>


then, the global mod with permissions to Warm, cannot see admin section to work on Warmings control panel, how can I make it possible?

thx for this mod

EDIT:
// Is the user allowed to Moderate? ([Moderate])
if ($context XXXX )
echo ($current_action == 'warnlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'warnlist' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=warnlist">' , $txt[2] , '</a>
</td>' , $current_action == 'warnlist' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

I am trying to create a button but I cannot find a condition to show it, the following conditions don't work:
$context['admin_areas']['members']['areas']['warning_manager']
$context['awaiting_mod']
$context['can_warn']
Title: Re: Visual Warning Mod
Post by: xXxexpertxXx on April 18, 2008, 08:28:36 PM
Ok i installed the "VisualWarning" mod! When i would like to Warn someone, mute someone, moderate someone or ban someone it only gives me the option to do that in days! is it possible for me to ban, mute, moderator, warn someone for like an hour?
Title: Re: Visual Warning Mod
Post by: S3NTYN3L on April 25, 2008, 09:29:42 PM
I'm sorry if this may have been answered already, but...

In the Admin Features picture found here: http://www.simplemachines.org/community/index.php?topic=55512.0 (http://www.simplemachines.org/community/index.php?topic=55512.0)

There are a few options such as "Message To Show For Banned User", etc.

Where exactly does this message appear?

I can't seem to find it anywhere... :-\

The warnings that appear in posts and profiles appear just fine, I just cannot find that particular one...


Anyone know where its at?
Title: Re: Visual Warning Mod
Post by: Babounet on April 29, 2008, 06:35:04 AM
Pls, i would like to install this mod an other theme and not the default theme.

What can I do?
Title: Re: Visual Warning Mod
Post by: S3NTYN3L on April 29, 2008, 03:32:12 PM
You can edit the install.xml (or modification.xml)...

You'll see install paths like:

$themedir/whateverfile.php

or

$languages/whateverfile.php


Just change it to:

Themes/The_name_of_your_theme/whateverfile.php

or

Themes/The_name_of_your_theme/languages/whateverfile.php


If you're still stumped, just tell me the name of the theme you want to use this on...



Also, if anyone can answer my question two posts above this one, I'd appreciate it...
Title: Re: Visual Warning Mod
Post by: Sub Zero` on April 29, 2008, 07:41:32 PM
Maybe you could make a v2 Beta Public version, because I like your way better and I would like to use it on my v2 board.
Title: Re: Visual Warning Mod
Post by: S3NTYN3L on April 29, 2008, 08:11:18 PM
Quote from: DDT13 on April 29, 2008, 07:41:32 PM
Maybe you could make a v2 Beta Public version, because I like your way better and I would like to use it on my v2 board.


Was this directed at me?

Sorry, I wouldn't know where to begin with editing the actual code...
All I'm doing is editing the file the code gets installed to by changing the paths in the <file name=""> tags...
Title: Re: Visual Warning Mod
Post by: Sub Zero` on April 29, 2008, 08:13:22 PM
Nah, to the creator =]
Title: Re: Visual Warning Mod
Post by: Eleglin on May 04, 2008, 04:26:39 AM
@cellax :
Thx for notifying this error. I fix it in the package.
For your template, I can give you an example of correct code (this is on my forum) :

// Mod Visual Warning :: Can they use warnings ?
        if ($context['can_warn'])                 
            echo '<a title="Sanctionner ce membre" href="', $scripturl, '?action=warnadd;topic=', $context['current_topic'], ';start=', $context['start'], ';user=', $message['member']['id'], ';msg=', $message['id'], '"><img src="', $settings['images_url'], '/icons/warn.gif" style="vertical-align:bottom;" alt="Sanctionner" /></a>&nbsp;';

As you can see, the correct condition is $context['can_warn'].
If your code doesn't work, it seems to have an other problem.
       
@xxxExpertxxx :
Not possible and I can't see the interest. ^^

@S3NTYN3L :
I haven't warn someone for a while, but it seems that this is the confirmation message that you (moderator) can see, just when you warn some one.

@DDT13:
The creator was Grudge. I'm just a good servant, who updated and fixed this for 1.1 final and next versions. Since Grudge is developper for 2.0 branch, you can see the "warning" features in 2.0 as the new warning way.
I don't know if I will update this mod for 2.0, since I haven't install SMF 2.0 and wait for a stable version. But it's possible that I will not update this mod for the new branch.
Title: Re: Visual Warning Mod
Post by: Apllicmz on May 05, 2008, 10:54:47 PM
Nice Mod
thank you Update 115
Translate Portugues/Brazilian

<file name="$languagedir/Modifications.portuguese.php" error="skip">
          <operation error="ignore">
             <search position="after"><![CDATA[?>
]]></search>
             <add><![CDATA[$txt['visual_warning_mod']='Visual Warning Mod';
$txt['visualw_mess_ban']='Mensagem de mostrar para o membro banido';
$txt['visualw_mess_mute']='Mensagem de mostrar para o membro silenciado';
$txt['visualw_mess_pmod']='Mensagem de mostrar para o membro pós moderado';
$txt['visualw_mess_warn']='Mensagem para mostrar alertou o membro';
$txt['visualw_color_ban']='Cor da mensagem para o usuário banido';
$txt['visualw_color_mute']='Cor da mensagem para o membro silenciado';
$txt['visualw_color_pmod']='Cor da mensagem para o membro pós moderado';
$txt['visualw_color_warn']='Cor da mensagem para o membro que alertou';
$txt['visualw_image_ban']='Para mostrar a imagem membro banido';
$txt['visualw_image_mute']='Para mostrar a imagem membro silenciado';
$txt['visualw_image_pmod']='Para mostrar a imagem para postar membro moderador';
$txt['visualw_image_warn']='Para mostrar a imagem advertiu membro';
$txt['warningAutoTime']='Padrão tempo antes de advertência removido (dias):';
$txt['moderationAutoTime']='Padrão tempo antes moderação removido (dias):';
$txt['muteAutoTime']='Padrão tempo antes Mudo removido (dias):';
$txt['visualw_pmod_edit']='Moderar membros podem editar mensagens:';
$txt['visualw_hide']='O nível avisos são visíveis para as pessoas que só pode advertir:';
$txt['visual_require_mod'] = 'mensagens exigir moderação';
$txt['visual_raise']='Elevar nível advertência';
$txt['visual_no_perm']='Você não tem permissão para aumentar a advertência níveis';
$txt['visual_no_warnings']='Membro não tem nenhuma corrente advertências!';
$txt['visual_prev_warning']='Anterior advertência detalhes';
$txt['visual_current_level']='Nivel Actual:';
$txt['visual_topic_raised']='Tópico onde levantou:';
$txt['visual_time_raised']='Momento em que levantou:';
$txt['visual_reason_raised']='Motivo para elevar:';
$txt['visual_level_details']='Novo nivel detalhes';
$txt['visual_submit']='Submeter';
$txt['visual_new_level']='Novo Nivel:';
$txt['visual_warning_management']='Gestão de Aviso';
$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 alre
$txt['visual_member']='Membro';
$txt['visual_level']='Nivel';
$txt['visual_reason']='Motivo';
$txt['visual_when']='Quando';
$txt['visual_text_warn']='Aviso';
$txt['visual_warn']='Avisar';
$txt['visual_perm_modify']='Você não tem permissão para alterar esta mensagem';
$txt['visual_official_warning']='Você recebeu uma advertência oficial';
$txt['visual_received_warning']='Você recebeu uma advertência para os últimos conduta sobre a nossa mensagem bordo. Por favor, siga o link abaixo para obter mais informações:';
$txt['visual_been_muted']='Você foi silenciado devido a mau comportamento';
$txt['visual_no_karma']='Você não pode dar ao mesmo tempo que alertou Karma';
$txt['visual_stages']='(0=Nenhum, 1=Notificado, 2=Moderada, 3=Silenciado. 4=Banido)';
$txt['visual_text_pmod']='Moderada';
$txt['visual_text_mute']='Silenciado';
$txt['visual_text_ban']='Banido';
$txt['visual_none']='Nenhum';
$txt['visual_warning_increased']='Eu tenho a informar que o seu nível advertência sobre o conselho de administração tem sido aumentada.';
$txt['visual_warning_reduced']='Tenho o prazer de anunciar que o seu nível advertência sobre o conselho de administração foi reduzida.';
$txt['visual_reduced']='Aviso nível reduzido';
$txt['visual_lasts']='Aviso tempo dura (Branco = Padrão)';
$txt['visual_postmod_manager']='Poste moderação Manager';
$txt['visual_postmod_user_under']='Este usuário está neste momento a ter todos os seus lugares aprovados antes de postar';
$txt['visual_postmod_under']='Você está actualmente em fase de pós moderação';
$txt['visual_postmod_not']='Este membro não está posto moderado';
$txt['visual_postmod_is']='Este membro é posto moderado';
$txt['visual_postmod_change']='Mudar este status do membro';
$txt['visual_postmod']='Poste Moderação';
$txt['visual_postmod_auth']='Você não está autorizado a executar esta ação!';
$txt['visual_postmod_appear']='Você está actualmente em fase de pós moderação - seu posto será exibido após a aprovação';
$txt['visual_postmod_awaiting']='Estes são todos os lugares aguardando moderação. Para aprovar um lugares (ou cargos) controlar todas as mensagens que deseja aprovar e selecione "Aprovar" para apagar as mensagens off selecionar essas mensagens que deseja apagar e selecione "Excluir"';
$txt['visual_postmod_username']='Nome do membro';
$txt['visual_postmod_subject']='Assunto/Mensagem';
$txt['visual_postmod_approve']='Aprovar';
$txt['visual_postmod_delete']='Apagar';
$txt['permissiongroup_visual_warn']='Deixe a advertências e executar pós moderação';
$txt['permissionname_visual_warn_any']='Avisar os utilizadores';
$txt['permissionname_visual_approve_any']='Aprovar postes';
]]></add>
           </operation>
        </file>
<file name="$languagedir/Modifications.brazilian.php" error="skip">
          <operation error="ignore">
             <search position="after"><![CDATA[?>
]]></search>
             <add><![CDATA[$txt['visual_warning_mod']='Visual Warning Mod';
$txt['visualw_mess_ban']='Mensagem de mostrar para o membro banido';
$txt['visualw_mess_mute']='Mensagem de mostrar para o membro silenciado';
$txt['visualw_mess_pmod']='Mensagem de mostrar para o membro pós moderado';
$txt['visualw_mess_warn']='Mensagem para mostrar alertou o membro';
$txt['visualw_color_ban']='Cor da mensagem para o usuário banido';
$txt['visualw_color_mute']='Cor da mensagem para o membro silenciado';
$txt['visualw_color_pmod']='Cor da mensagem para o membro pós moderado';
$txt['visualw_color_warn']='Cor da mensagem para o membro que alertou';
$txt['visualw_image_ban']='Para mostrar a imagem membro banido';
$txt['visualw_image_mute']='Para mostrar a imagem membro silenciado';
$txt['visualw_image_pmod']='Para mostrar a imagem para postar membro moderador';
$txt['visualw_image_warn']='Para mostrar a imagem advertiu membro';
$txt['warningAutoTime']='Padrão tempo antes de advertência removido (dias):';
$txt['moderationAutoTime']='Padrão tempo antes moderação removido (dias):';
$txt['muteAutoTime']='Padrão tempo antes Mudo removido (dias):';
$txt['visualw_pmod_edit']='Moderar membros podem editar mensagens:';
$txt['visualw_hide']='O nível avisos são visíveis para as pessoas que só pode advertir:';
$txt['visual_require_mod'] = 'mensagens exigir moderação';
$txt['visual_raise']='Elevar nível advertência';
$txt['visual_no_perm']='Você não tem permissão para aumentar a advertência níveis';
$txt['visual_no_warnings']='Membro não tem nenhuma corrente advertências!';
$txt['visual_prev_warning']='Anterior advertência detalhes';
$txt['visual_current_level']='Nivel Actual:';
$txt['visual_topic_raised']='Tópico onde levantou:';
$txt['visual_time_raised']='Momento em que levantou:';
$txt['visual_reason_raised']='Motivo para elevar:';
$txt['visual_level_details']='Novo nivel detalhes';
$txt['visual_submit']='Submeter';
$txt['visual_new_level']='Novo Nivel:';
$txt['visual_warning_management']='Gestão de Aviso';
$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 alre
$txt['visual_member']='Membro';
$txt['visual_level']='Nivel';
$txt['visual_reason']='Motivo';
$txt['visual_when']='Quando';
$txt['visual_text_warn']='Aviso';
$txt['visual_warn']='Avisar';
$txt['visual_perm_modify']='Você não tem permissão para alterar esta mensagem';
$txt['visual_official_warning']='Você recebeu uma advertência oficial';
$txt['visual_received_warning']='Você recebeu uma advertência para os últimos conduta sobre a nossa mensagem bordo. Por favor, siga o link abaixo para obter mais informações:';
$txt['visual_been_muted']='Você foi silenciado devido a mau comportamento';
$txt['visual_no_karma']='Você não pode dar ao mesmo tempo que alertou Karma';
$txt['visual_stages']='(0=Nenhum, 1=Notificado, 2=Moderada, 3=Silenciado. 4=Banido)';
$txt['visual_text_pmod']='Moderada';
$txt['visual_text_mute']='Silenciado';
$txt['visual_text_ban']='Banido';
$txt['visual_none']='Nenhum';
$txt['visual_warning_increased']='Eu tenho a informar que o seu nível advertência sobre o conselho de administração tem sido aumentada.';
$txt['visual_warning_reduced']='Tenho o prazer de anunciar que o seu nível advertência sobre o conselho de administração foi reduzida.';
$txt['visual_reduced']='Aviso nível reduzido';
$txt['visual_lasts']='Aviso tempo dura (Branco = Padrão)';
$txt['visual_postmod_manager']='Poste moderação Manager';
$txt['visual_postmod_user_under']='Este usuário está neste momento a ter todos os seus lugares aprovados antes de postar';
$txt['visual_postmod_under']='Você está actualmente em fase de pós moderação';
$txt['visual_postmod_not']='Este membro não está posto moderado';
$txt['visual_postmod_is']='Este membro é posto moderado';
$txt['visual_postmod_change']='Mudar este status do membro';
$txt['visual_postmod']='Poste Moderação';
$txt['visual_postmod_auth']='Você não está autorizado a executar esta ação!';
$txt['visual_postmod_appear']='Você está actualmente em fase de pós moderação - seu posto será exibido após a aprovação';
$txt['visual_postmod_awaiting']='Estes são todos os lugares aguardando moderação. Para aprovar um lugares (ou cargos) controlar todas as mensagens que deseja aprovar e selecione "Aprovar" para apagar as mensagens off selecionar essas mensagens que deseja apagar e selecione "Excluir"';
$txt['visual_postmod_username']='Nome do membro';
$txt['visual_postmod_subject']='Assunto/Mensagem';
$txt['visual_postmod_approve']='Aprovar';
$txt['visual_postmod_delete']='Apagar';
$txt['permissiongroup_visual_warn']='Deixe a advertências e executar pós moderação';
$txt['permissionname_visual_warn_any']='Avisar os utilizadores';
$txt['permissionname_visual_approve_any']='Aprovar postes';
]]></add>
           </operation>
        </file>
Title: Re: Visual Warning Mod
Post by: Deoxys94 on May 06, 2008, 08:27:02 PM
Nice mod!!  8)  8)  8)

Translate Spanish:

File:

$languagedir/Modifications.spanish.php

Find:

?>

Add Before:

$txt['visual_warning_mod']='Visual Warning Mod';
$txt['visualw_mess_ban']='Mensaje a mostrar para un usuario baneado';
$txt['visualw_mess_mute']='Mensaje a mostrar para un usuario silenciado';
$txt['visualw_mess_pmod']='Mensaje a mostrar para un usuario moderado';
$txt['visualw_mess_warn']='Mensaje a mostrar para un usuario advertido';
$txt['visualw_color_ban']='Color del mensaje para un usuario baneado';
$txt['visualw_color_mute']='Color del mensaje para un usuario silenciado';
$txt['visualw_color_pmod']='Color del mensaje para un usuario con moderacion de mensajes';
$txt['visualw_color_warn']='Color del mensaje para un usuario advertido';
$txt['visualw_image_ban']='Imagen a mostrar para un usuario baneado';
$txt['visualw_image_mute']='Imagen a mostrar para un usuario silenciado';
$txt['visualw_image_pmod']='Imagen a mostrar para un usuario con moderacion de mensajes';
$txt['visualw_image_warn']='Imagen a mostrar para un usuario advertido';
$txt['warningAutoTime']='Tiempo por defecto antes de remover la advertencia (Dias):';
$txt['moderationAutoTime']='Tiempo por defecto antes de remover la moderacion (Dias):';
$txt['muteAutoTime']='Tiempo por defecto antes de remover el silenciamiento (Dias):';
$txt['visualw_pmod_edit']='Usuarios moderados pueden editar mensajes:';
$txt['visualw_hide']='Los niveles de advertencia son visibles para la genteble for people que solo prn only:';
$txt['visual_require_mod'] = 'mensajes requieren moderacion';
$txt['visual_raise']='Aumentar nivel de advertencia';
$txt['visual_no_perm']='No tienes los permisos para aumentar los niveles de advertencia';
$txt['visual_no_warnings']='usuario no tiene advertencias vigrntes!';
$txt['visual_prev_warning']='Detalles de advertencias pasadas';
$txt['visual_current_level']='Nivel actual:';
$txt['visual_topic_raised']='Mensaje donde aumento:';
$txt['visual_time_raised']='Tiempo donde aumento:';
$txt['visual_reason_raised']='Razon para aumento:';
$txt['visual_level_details']='Nuevos detalles de nivel';
$txt['visual_submit']='enviar';
$txt['visual_new_level']='Nuevo nivel:';
$txt['visual_warning_management']='Gestion de advertencias';
$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']='Miembro';
$txt['visual_level']='Nivel';
$txt['visual_reason']='Razon';
$txt['visual_when']='Cuando';
$txt['visual_text_warn']='Advirtio';
$txt['visual_warn']='Avisar';
$txt['visual_perm_modify']='no tienes permisos para modificar este mensaje!';
$txt['visual_official_warning']='Tu has recibido una advertencia oficial!';
$txt['visual_received_warning']='Has recibido una advertencia reciente por tu conducta en el Foro. Por favor visite el siguiente link para obtener mas informacion:';
$txt['visual_been_muted']='Has sido "silenciado" debido a tu mal comportamiento';
$txt['visual_no_karma']='No puedes dar karma mientras estas advertido';
$txt['visual_stages']='(0=Ninguno, 1=advertido, 2=Moderado, 3=silenciado. 4=Banneado)';
$txt['visual_text_pmod']='Moderado';
$txt['visual_text_mute']='Silenciado';
$txt['visual_text_ban']='Banneado';
$txt['visual_none']='Ninugno';
$txt['visual_warning_increased']='Tengo que informarte que tu nivel de advertencia en el foro ha aumentado.';
$txt['visual_warning_reduced']='Me complace notificarle que si nivel de advertencia en el foro, ha sido reducido.';
$txt['visual_reduced']='Nivel de advertencia reducido';
$txt['visual_lasts']='Tiempo que dura advertencia (Blank=Default)';
$txt['visual_postmod_manager']='Gestion de moderacion de posts';
$txt['visual_postmod_user_under']='Este usuario necesita moderacion de mensajes antes de publicarlos';
$txt['visual_postmod_under']='Estas actualmente bajo moderacion de mensajes';
$txt['visual_postmod_not']='Este usuario no tiene moderacion de mensajes';
$txt['visual_postmod_is']='Este usuario esta bajo moderacion de mensajest Moderated';
$txt['visual_postmod_change']='Cambiar el estado de este/estis usuarios';
$txt['visual_postmod']='Moderacion de posts';
$txt['visual_postmod_auth']='No estas autorizado para hacer esta accion!';
$txt['visual_postmod_appear']='Estas bajo moderacion de posts! - Tus posts se aprobaran antes de publicarse en el foro';
$txt['visual_postmod_awaiting']='Estos son todos los post esperando aprovacion. Para aprobar mensajes selecciona todos los mensajes que deseas aprobar y pulsa [Aprobar posts]. Para borrar mensajes, selecciona los mensajes que desees borrar y pulsa [Borrar]';
$txt['visual_postmod_username']='Nombre de usuario';
$txt['visual_postmod_subject']='Asunto/Mensaje';
$txt['visual_postmod_approve']='aprobar';
$txt['visual_postmod_delete']='Borrar';
$txt['permissiongroup_visual_warn']='Dar avisos y realizar después la moderación';
$txt['permissionname_visual_warn_any']='Avisar usuarios';
$txt['permissionname_visual_approve_any']='Aprobar posts';

Title: Re: Visual Warning Mod
Post by: Harvest on May 09, 2008, 06:00:48 PM
Is there any  way to change the warning consequence. For instance turn the Post Moderation off, and display a information via index.template.php.  I couldn't find any $context['user'] hook or something like that to check the logged in user warning level. Could You help out?
Title: Re: Visual Warning Mod
Post by: Ferrin on May 16, 2008, 06:02:55 AM
This would like to build in the "WoW-DK" theme.  What only must be adapted by the structure to this in the "BoardIndexTemplate.php"? And I do not know how? Knows this perhaps must one like me paraphrase this?



Thank you for your help!
Title: Re: Visual Warning Mod
Post by: Marcus Forsberg on May 17, 2008, 02:51:10 AM
Could u help me install this on Kelo-lt?
Title: Re: Visual Warning Mod
Post by: Nibogo on May 17, 2008, 09:26:24 PM
Excelente mod you are awesome!!
Title: Re: Visual Warning Mod
Post by: spiros on May 18, 2008, 07:07:26 AM
I upgraded to 1.1.5 and now when I try to Warn I get this:

QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')
ORDER BY mem.lngfile
LIMIT 0' at line 8
File: /home/translat/public_html/forum/Sources/Subs-Post.php
Line: 774

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.5, while your database is at version 1.1.4. The above error might possibly go away if you execute the latest version of upgrade.php.
Title: Re: Visual Warning Mod
Post by: Deoxys94 on May 21, 2008, 11:00:01 PM
Quote from: spiros on May 18, 2008, 07:07:26 AM
I upgraded to 1.1.5 and now when I try to Warn I get this:

QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')
ORDER BY mem.lngfile
LIMIT 0' at line 8
File: /home/translat/public_html/forum/Sources/Subs-Post.php
Line: 774

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.5, while your database is at version 1.1.4. The above error might possibly go away if you execute the latest version of upgrade.php.

You need make the Upgrade with largue_update (http://download.simplemachines.org/index.php?thanks;filename=smf_1-1-5_upgrade.tar.gz)

if running from the package manager, BD is not updated and mod doesn't work

QuoteCould u help me install this on Kelo-lt?

Yes
But you need make manually edit files on your theme......
Title: Re: Visual Warning Mod
Post by: spiros on May 22, 2008, 05:02:59 AM
QuoteYou need make the Upgrade with largue_update (http://download.simplemachines.org/index.php?thanks;filename=smf_1-1-5_upgrade.tar.gz)

if running from the package manager, BD is not updated and mod doesn't work

Is there a way to avoid this and run/upload specific files as my site is heavily modded?
Title: Re: Visual Warning Mod
Post by: Deoxys94 on May 22, 2008, 10:02:56 PM
Quote from: Largue UpdateUsing modifications, or not using SMF 1.1.4? No problem, this is what you need.

QuoteIs there a way to avoid this and run/upload specific files as my site is heavily modded?

no....

Create a backup of your important files and run the upgrade  ;)
Title: Re: Visual Warning Mod
Post by: SlammedDime on May 23, 2008, 03:52:48 AM
No, do not run the upgrade.  There is no need to and it can only complicate things further.  It may be an issue with this mod that you'll need to investigate further.
Title: Re: Visual Warning Mod
Post by: SantaClaws on May 24, 2008, 07:59:09 AM
How come when i mute someone they can still Private Message people?
Title: Re: Visual Warning Mod
Post by: [SAP]Francis on May 25, 2008, 10:38:22 PM
Quote from: pk3r 0wn on May 24, 2008, 07:59:09 AM
How come when i mute someone they can still Private Message people?
That's not a feature.
Title: Re: Visual Warning Mod
Post by: MrCreatoR on May 26, 2008, 01:53:16 AM
How can i change the yellow (Moderation) to some other color? i changed that in the mod's files, and reinstalled the mod, but the text is still yellow, where should i change it?

And also one problem - when i remove all warnings, the post still have the modified part, i.e: it's still showing the images and the text of that warning, so i need to edit the post every time manualy, any ideas why, is that a known bug?
Title: Re: Visual Warning Mod
Post by: SantaClaws on May 26, 2008, 06:30:24 AM
Admin CP>>Features And Options>>Visual Warning Mod>>Then change color to what you want.
Title: Re: Visual Warning Mod
Post by: Sub Zero` on May 28, 2008, 08:35:14 PM
My global mod can't warn people, nor can I find a place in his permissions to make it so he can.
Title: Re: Visual Warning Mod
Post by: Eleglin on May 30, 2008, 03:15:10 PM
QuoteAnd also one problem - when i remove all warnings, the post still have the modified part, i.e: it's still showing the images and the text of that warning, so i need to edit the post every time manualy, any ideas why, is that a known bug?
No. When you warn, it modify the message. So this is normal.
Quote
My global mod can't warn people, nor can I find a place in his permissions to make it so he can.
This is not a feature. You should allow them for each section.

Title: Re: Visual Warning Mod
Post by: Sub Zero` on June 01, 2008, 08:54:09 AM
Quote from: Eleglin on May 30, 2008, 03:15:10 PM
QuoteAnd also one problem - when i remove all warnings, the post still have the modified part, i.e: it's still showing the images and the text of that warning, so i need to edit the post every time manualy, any ideas why, is that a known bug?
No. When you warn, it modify the message. So this is normal.
Quote
My global mod can't warn people, nor can I find a place in his permissions to make it so he can.
This is not a feature. You should allow them for each section.



Huh? Like change permissions by board?
Title: Re: Visual Warning Mod
Post by: Johno69 on June 01, 2008, 09:12:34 PM
Hi,

I've been getting...

8: Undefined index: return_to_post
File: /home/hustler/public_html/***/forum/Sources/Post.php
Line: 1617

any ideas?

Title: Re: Visual Warning Mod
Post by: L'AltroWeb on June 15, 2008, 01:30:59 PM
Hi i have test to install but i receive error with post.php.
Your pack search:
$context['show_spellchecking'] = !empty($modSettings['enableSpellChecking'] && function_exists('pspell_new');
Instead of: $context['show_spellchecking'] = !empty($modSettings['enableSpellChecking']) && function_exists('pspell_new');
;)
Title: Re: Visual Warning Mod
Post by: Johno69 on June 15, 2008, 09:57:57 PM
Mine is already like that.. Maybe you have an old version?
Title: Re: Visual Warning Mod
Post by: L'AltroWeb on June 15, 2008, 10:05:40 PM
No! I have 1.1.5 and i have see also 1.1.5 fresh download from this site :)
Title: Re: Visual Warning Mod
Post by: PatrickPriest on June 24, 2008, 03:48:37 PM
I am getting an error when trying to warn someone:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'm not having a very easy time dealing with it, to say the least. I'm sorry if t' at line 2
File: /home/othforum/public_html/smf/Sources/VisualWarning11.php
Line: 147


Also...

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's married

I heard Chad mention in an interview someone about her husband but ' at line 2
File: /home/othforum/public_html/smf/Sources/VisualWarning11.php
Line: 147


If you notice in both examples above... the error starts at a ' mark that is in the post.

Sometimes I also get

Hacking attempt....


It was working fine.  And I don't even think anything changed... and all of a sudden this.

And sometimes when I warn people... it works.

I have noticed that it seems to be on posts that have a ' mark in it.  But I did a test on another post that has an ' mark in it... and it worked.

So I don't know!!!  I love this script and would love for it to work.
Title: Re: Visual Warning Mod
Post by: PatrickPriest on June 24, 2008, 05:29:42 PM
I got this error just now:

Please try again. If you come back to this error screen, report the error to an administrator.
Title: Re: Visual Warning Mod
Post by: PatrickPriest on June 27, 2008, 06:09:21 PM
Can any one please help me?
Title: Re: Visual Warning Mod
Post by: Eleglin on June 28, 2008, 08:12:31 AM
Quote from: Dark-Wolf on June 15, 2008, 01:30:59 PM
Hi i have test to install but i receive error with post.php.
Your pack search:
   $context['show_spellchecking'] = !empty($modSettings['enableSpellChecking'] && function_exists('pspell_new');
Instead of:    $context['show_spellchecking'] = !empty($modSettings['enableSpellChecking']) && function_exists('pspell_new');
;)
Fixed this bug on the modification.xml of 1.41. Can't find this error anywhere else. If someone finds this error on the pack again, he can let a message here.
Updated the pack with spanish, portuguese and brazilian translation. Thnaks to Joomlamz and Deoxys.

@patrickpriest.
Please give more information if you want some help :
version of your forum ?
other Mods installed ?
which version of the mod ? (1.34 or 1.41) ?
Title: Re: Visual Warning Mod
Post by: Eleglin on June 28, 2008, 08:13:46 AM
Quote from: Sub Zero` on June 01, 2008, 08:54:09 AM
Huh? Like change permissions by board?
Yep ! ^^
Title: Re: Visual Warning Mod
Post by: PatrickPriest on June 28, 2008, 11:14:36 AM
Quote from: Eleglin on June 28, 2008, 08:12:31 AM
@patrickpriest.
Please give more information if you want some help :
version of your forum ?
other Mods installed ?
which version of the mod ? (1.34 or 1.41) ?
version of your forum ?  SMF 1.1.5
other Mods installed ?  Thumbnail Topic Mod, Staff Page Mod, Visual Warning Mod, Disable_Decrease_Post_Count_Option
which version of the mod ? 1.41

All these mods have been installed for a few days before this error started happening.  The only thing that changed was I added a "Super Moderator" membergroup and set their permissions allowing them to warn and approve posts.

Other than that one change... nothing else changed on that day the errors started showing up.

I have converted my forms from XMB to SMF.  I have noticed this error only happens on the posts that were converted.  And it only happens on posts that have a ' mark in it.  If a post has been made SINCE I converted... I don't get the error.  And if the post does not have a ' mark in it... it works.
Title: Re: Visual Warning Mod
Post by: Eleglin on June 28, 2008, 12:26:58 PM
And when you edit these messages, do you have an error ?
Title: Re: Visual Warning Mod
Post by: PatrickPriest on June 28, 2008, 02:17:45 PM
I get the error when I submit the warning level, timeframe, and reason form.  So it doesn't set the warning... and the messages don't get edited.
Title: Re: Visual Warning Mod
Post by: CesarManara on June 28, 2008, 11:38:01 PM
Hey, i got an error in the template when i install de mod, my fórum is 1.1.5. mod 141
Error in Template!
/Themes/default/languages/Modifications.brazilian.php

/Themes/default/languages/Modifications.brazilian.php on line 60

51: $txt['visual_current_level']='Nivel Actual:';
52: $txt['visual_topic_raised']='Tópico onde levantou:';
53: $txt['visual_time_raised']='Momento em que levantou:';
54: $txt['visual_reason_raised']='Motivo para elevar:';
55: $txt['visual_level_details']='Novo nivel detalhes';
56: $txt['visual_submit']='Submeter';
57: $txt['visual_new_level']='Novo Nivel:';
58: $txt['visual_warning_management']='Gestão de Aviso';
59: $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 alre

60: $txt['visual_member']='Membro';

61: $txt['visual_level']='Nivel';
62: $txt['visual_reason']='Motivo';
63: $txt['visual_when']='Quando';
64: $txt['visual_text_warn']='Aviso';


=======
What i do?????????
Title: Re: Visual Warning Mod
Post by: Eleglin on June 29, 2008, 05:19:41 AM
Edit the line 59.
Replace :
$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 alre

by  :
$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';

I will fix this in a few minutes in the package.
Sorry, I haven't see this error in the brazilian translation.
If you could translate this line, I'll add it in the pack. ;)
Title: Re: Visual Warning Mod
Post by: Eleglin on June 29, 2008, 05:31:25 AM
Quote from: PatrickPriest on June 28, 2008, 02:17:45 PM
I get the error when I submit the warning level, timeframe, and reason form.  So it doesn't set the warning... and the messages don't get edited.
Don't know what you should do. I think that the problem has a link with the conversion from XMB, but I'm not sure. Maybe you should ask in the topic of support for the converter ?
Title: Re: Visual Warning Mod
Post by: BOS4O on June 30, 2008, 12:08:27 AM
hi
when i click in the admin menu on the Warning Management it brings me to the index page
and when i click on the warn button on the messages it brings me again into the index page
and i cant do nothing with this mod
can anione tell me what is the problem
i checked all the tables in the misql they are fine
what to do?
Title: Re: Visual Warning Mod
Post by: Shy on June 30, 2008, 03:39:22 AM
I ran the test for this mod, but I'm getting an error with Display.template.php. Would anybody know why this is?

I'm on 1.1.5 and I had a previous version of this mod prior to updating, which I think is the root of my problem.
Title: Re: Visual Warning Mod
Post by: Eleglin on June 30, 2008, 04:27:26 AM
Quote from: Shy on June 30, 2008, 03:39:22 AM
I ran the test for this mod, but I'm getting an error with Display.template.php. Would anybody know why this is?

I'm on 1.1.5 and I had a previous version of this mod prior to updating, which I think is the root of my problem.
I suppose you have uninstall the previous version before ?

Quotehi
when i click in the admin menu on the Warning Management it brings me to the index page
and when i click on the warn button on the messages it brings me again into the index page
and i cant do nothing with this mod
can anione tell me what is the problem
i checked all the tables in the misql they are fine
what to do?
No support by PM  O:)
Version of the mod : ?
Version of SMF : ?
Other mods : ?
Title: Re: Visual Warning Mod
Post by: BOS4O on June 30, 2008, 05:06:29 AM
the version is the last version of the mod - 1.41  O:)
the version of the smf is - 1.1.5  O:)
other mods see the picture - http://lfs-bg.net/boss/Image_00007.JPG  O:)
Title: Re: Visual Warning Mod
Post by: Eleglin on June 30, 2008, 06:12:19 AM
Why do you have many versions of the same mods on your forum ?  :o
Do you have installed Visual Warning on your custom template ?
Have you done a manual or an automatic installation ?
Title: Re: Visual Warning Mod
Post by: Ni©holąś™ on June 30, 2008, 06:14:41 AM
Great job.Thanks (:
Title: Re: Visual Warning Mod
Post by: BOS4O on June 30, 2008, 06:24:30 AM
Quote from: Eleglin on June 30, 2008, 06:12:19 AM
Why do you have many versions of the same mods on your forum ?  :o
Do you have installed Visual Warning on your custom template ?
Have you done a manual or an automatic installation ?

m i tried to run the mod in the default template but is not working on it if it works i gonna edit manual the files
for the custom template buttt is not working
if you need to look some files tell me to upload them plz O:)
Title: Re: Visual Warning Mod
Post by: Eleglin on June 30, 2008, 09:32:40 AM
You didn't tell me if it was a manual or an automatic installation via the package manager.
Title: Re: Visual Warning Mod
Post by: BOS4O on June 30, 2008, 10:00:42 AM
is automatic via the package manager but it gives me an eror into the load.php and in the manage permisions.php i fixt them manually
Title: Re: Visual Warning Mod
Post by: jepot5 on June 30, 2008, 02:05:59 PM
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')
ORDER BY mem.lngfile
LIMIT 0' at line 8
File: /hosted/domains/c/r/crappy-ownage.net/public_html/Sources/Subs-Post.php
Line: 774

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.5, while your database is at version 1.1.4. The above error might possibly go away if you execute the latest version of upgrade.php.

i get that whenever i press submit to warn
how do i fix it?
pls help
Title: Re: Visual Warning Mod
Post by: Shy on June 30, 2008, 11:18:16 PM
Quote from: Eleglin on June 30, 2008, 04:27:26 AM
I suppose you have uninstall the previous version before ?
I think I have. If this were the case, what should I do?
Title: Re: Visual Warning Mod
Post by: Eleglin on July 01, 2008, 05:58:43 AM
Quote from: Shy on June 30, 2008, 11:18:16 PM
Quote from: Eleglin on June 30, 2008, 04:27:26 AM
I suppose you have uninstall the previous version before ?
I think I have. If this were the case, what should I do?
Go on the package manager, uninstall all versions of Visual Warning, and then install the last version.

QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')
ORDER BY mem.lngfile
LIMIT 0' at line 8
File: /hosted/domains/c/r/crappy-ownage.net/public_html/Sources/Subs-Post.php
Line: 774

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.5, while your database is at version 1.1.4. The above error might possibly go away if you execute the latest version of upgrade.php.

i get that whenever i press submit to warn
how do i fix it?
pls help
This is written : execute upgrade.php
You should look at the general documentation of SMF how to do it. You should find this file upgrade.php on the small update pack.
Quote
is automatic via the package manager but it gives me an eror into the load.php and in the manage permisions.php i fixt them manually
Don't sure you had fixed them. I suppose there is an error on the {source}/load.php or on the  index.php. You should verify it in your files.
Title: Re: Visual Warning Mod
Post by: BOS4O on July 01, 2008, 04:57:01 PM
here are the files i cant see where is that error
Title: Re: Visual Warning Mod
Post by: jepot5 on July 01, 2008, 11:46:56 PM
my problem is solved, but i want to have the pm for warnings to come from a certain member, not me
the admin
is that possible?
Title: Re: Visual Warning Mod
Post by: Johno69 on July 02, 2008, 12:32:19 AM
Would be good to me from "SYSTEM"
Title: Re: Visual Warning Mod
Post by: BOS4O on July 03, 2008, 06:33:41 PM
Quote from: BOS4O on July 01, 2008, 04:57:01 PM
here are the files i cant see where is that error

ANY HELP??
Title: Re: Visual Warning Mod
Post by: BOS4O on July 03, 2008, 11:39:22 PM
solved
Title: Re: Visual Warning Mod
Post by: jepot5 on July 13, 2008, 07:48:39 AM
is ther elike a warning log for each member when u use this mod?
Title: Re: Visual Warning Mod
Post by: Eleglin on July 14, 2008, 07:10:28 AM
yep. You can control it on the Administration Area (on Warning Management, if I remember...)
Title: Re: Visual Warning Mod
Post by: jepot5 on July 14, 2008, 05:40:05 PM
even if the warnign expired it should display?
Title: Re: Visual Warning Mod
Post by: Johno69 on July 14, 2008, 06:49:26 PM
it doesn't. No.
Title: Re: Visual Warning Mod
Post by: jepot5 on July 14, 2008, 11:20:43 PM
is there a way to display each member's warnings even if they expired on their user cp?
Title: Re: Visual Warning Mod
Post by: Eleglin on July 17, 2008, 05:32:28 AM
Johno69 is right : Not possible ^^
Title: Re: Visual Warning Mod
Post by: Deoxys94 on July 18, 2008, 12:59:52 AM
Update:  :D

$txt['visual_warning_mod']='Visual Warning Mod';
$txt['visualw_mess_ban']='Mensaje a mostrar para un usuario baneado';
$txt['visualw_mess_mute']='Mensaje a mostrar para un usuario silenciado';
$txt['visualw_mess_pmod']='Mensaje a mostrar para un usuario moderado';
$txt['visualw_mess_warn']='Mensaje a mostrar para un usuario advertido';
$txt['visualw_color_ban']='Color del mensaje para un usuario baneado';
$txt['visualw_color_mute']='Color del mensaje para un usuario silenciado';
$txt['visualw_color_pmod']='Color del mensaje para un usuario con moderacion de mensajes';
$txt['visualw_color_warn']='Color del mensaje para un usuario advertido';
$txt['visualw_image_ban']='Imagen a mostrar para un usuario baneado';
$txt['visualw_image_mute']='Imagen a mostrar para un usuario silenciado';
$txt['visualw_image_pmod']='Imagen a mostrar para un usuario con moderacion de mensajes';
$txt['visualw_image_warn']='Imagen a mostrar para un usuario advertido';
$txt['warningAutoTime']='Tiempo por defecto antes de remover la advertencia (Dias):';
$txt['moderationAutoTime']='Tiempo por defecto antes de remover la moderacion (Dias):';
$txt['muteAutoTime']='Tiempo por defecto antes de remover el silenciamiento (Dias):';
$txt['visualw_pmod_edit']='Usuarios moderados pueden editar mensajes:';
$txt['visualw_hide']='Los niveles de advertencia son visibles para las personas que pueden advertir:';
$txt['visual_require_mod'] = 'mensajes requieren moderacion';
$txt['visual_raise']='Aumentar nivel de advertencia';
$txt['visual_no_perm']='No tienes los permisos para aumentar los niveles de advertencia';
$txt['visual_no_warnings']='usuario no tiene advertencias vigentes!';
$txt['visual_prev_warning']='Detalles de advertencias pasadas';
$txt['visual_current_level']='Nivel actual:';
$txt['visual_topic_raised']='Mensaje donde aumento:';
$txt['visual_time_raised']='Tiempo donde aumento:';
$txt['visual_reason_raised']='Razon para aumento:';
$txt['visual_level_details']='Nuevos detalles de nivel';
$txt['visual_submit']='Enviar';
$txt['visual_new_level']='Nuevo nivel:';
$txt['visual_warning_management']='Gestion de advertencias';
$txt['visual_list_desc']='Todos los usuarios de esta lista tienen algun tipo de advertencia (Niveles 1,2 o 3. Los usuarios con Nivel 4 no se listan. ya que han sido baneados)  Puede optar por reducir los miembros de la lista o ajustar el nivel de advertencia desde aqui';
$txt['visual_member']='Miembro';
$txt['visual_level']='Nivel';
$txt['visual_reason']='Razon';
$txt['visual_when']='Cuando';
$txt['visual_text_warn']='Advertido';
$txt['visual_warn']='Avisar';
$txt['visual_perm_modify']='No tienes permisos para modificar este mensaje!';
$txt['visual_official_warning']='Tu has recibido una advertencia oficial!';
$txt['visual_received_warning']='Has recibido una advertencia reciente por tu conducta en el Foro. Por favor visita el siguiente link para obtener mas informacion:';
$txt['visual_been_muted']='Has sido "silenciado" debido a tu mal comportamiento';
$txt['visual_no_karma']='No puedes dar karma mientras estas advertido';
$txt['visual_stages']='(0=Ninguno, 1=advertido, 2=Moderado, 3=silenciado. 4=Banneado)';
$txt['visual_text_pmod']='Moderado';
$txt['visual_text_mute']='Silenciado';
$txt['visual_text_ban']='Banneado';
$txt['visual_none']='Ninugno';
$txt['visual_warning_increased']='Lamento informarte que tu nivel de advertencia en el foro ha aumentado.';
$txt['visual_warning_reduced']='Me complace notificarle que si nivel de advertencia en el foro, ha sido reducido.';
$txt['visual_reduced']='Nivel de advertencia reducido';
$txt['visual_lasts']='Tiempo que dura advertencia (Blanco=Default)';
$txt['visual_postmod_manager']='Gestion de moderacion de posts';
$txt['visual_postmod_user_under']='Este usuario necesita moderacion de mensajes antes de publicarlos';
$txt['visual_postmod_under']='Estas actualmente bajo moderacion de mensajes';
$txt['visual_postmod_not']='Este usuario no tiene moderacion de mensajes';
$txt['visual_postmod_is']='Este usuario esta bajo moderacion de mensajes';
$txt['visual_postmod_change']='Cambiar el estado de este/estos usuarios';
$txt['visual_postmod']='Moderacion de posts';
$txt['visual_postmod_auth']='No estas autorizado para hacer esta accion!';
$txt['visual_postmod_appear']='Estas bajo moderacion de posts! - Tus posts se aprobaran antes de publicarse en el foro';
$txt['visual_postmod_awaiting']='Estos son todos los post esperando aprovacion. Para aprobar mensajes selecciona todos los mensajes que deseas aprobar y pulsa [Aprobar posts]. Para borrar mensajes, selecciona los mensajes que desees borrar y pulsa [Borrar]';
$txt['visual_postmod_username']='Nombre de usuario';
$txt['visual_postmod_subject']='Asunto/Mensaje';
$txt['visual_postmod_approve']='Aprobar';
$txt['visual_postmod_delete']='Borrar';
$txt['permissiongroup_visual_warn']='Dar avisos y realizar después la moderación';
$txt['permissionname_visual_warn_any']='Avisar usuarios';
$txt['permissionname_visual_approve_any']='Aprobar posts';


The last translation had some errors, this is 100% translated  :D  :P
Title: Re: Visual Warning Mod
Post by: ManilaGurL on July 23, 2008, 06:35:36 AM
Will this work with SMF 1.1.5, DilberMC and Tinyportal installed?
Title: Re: Visual Warning Mod
Post by: SONSiVRi on July 26, 2008, 10:04:08 PM
Quote from: ManilaGurL on July 23, 2008, 06:35:36 AM
Will this work with SMF 1.1.5, DilberMC and Tinyportal installed?

I dunno for Tinyportal but Its working on my 1.1.5 and DilberMC theme.
Title: Re: Visual Warning Mod
Post by: ManilaGurL on July 27, 2008, 09:27:07 AM
SMF 1.1.5, DilberMC, Tinyportal.

I really want to use the mod, what should I do?


Installing this package will perform the following actions:
Type Action Description
1. Execute Code VisualWarningPdb.php
2. Execute Modification ./index.php Test successful
3. Execute Modification ./Sources/ModSettings.php Test successful
4. Execute Modification ./Themes/default/Profile.template.php Test successful
5. Execute Modification ./Sources/Display.php Test failed
6. Execute Modification ./Themes/default/Display.template.php Test successful
7. Execute Modification ./Sources/Post.php Test failed
8. Execute Modification ./Themes/default/Post.template.php Test successful
9. Execute Modification ./Sources/Karma.php Test failed
10. Execute Modification ./Sources/Subs.php Test failed
11. Execute Modification ./Sources/Security.php Test successful
12. Execute Modification ./Sources/ManagePermissions.php Test failed
13. Execute Modification ./Themes/default/index.template.php Test successful
14. Execute Modification ./Sources/Load.php Test successful
15. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
16. Extract File ./Sources/VisualWarning11.php
17. Extract File ./Themes/default/VisualWarning.template.php
18. Extract File ./Themes/default/images/warnban.gif
19. Extract File ./Themes/default/images/warnpmod.gif
20. Extract File ./Themes/default/images/warnmute.gif
21. Extract File ./Themes/default/images/warnwarn.gif
22. Extract File ./Themes/default/images/members.gif
23. Extract File ./Themes/default/images/buttons/warn.gif
24. Execute Modification ./Themes/default/languages/Modifications.french.php Test failed
25. Execute Modification ./Themes/default/languages/Modifications.polish.php File not found
26. Execute Modification ./Themes/default/languages/Modifications.turkish.php File not found
27. Execute Modification ./Themes/default/languages/Modifications.croatian.php File not found
28. Execute Modification ./Themes/default/languages/Modifications.danish.php File not found
29. Execute Modification ./Themes/default/languages/Modifications.spanish.php File not found
30. Execute Modification ./Themes/default/languages/Modifications.portuguese.php File not found
31. Execute Modification ./Themes/default/languages/Modifications.brazilian.php File not found

Title: Re: Visual Warning Mod
Post by: Adish - (F.L.A.M.E.R) on July 27, 2008, 08:12:37 PM
Hello,
I am facing this prob in installing the mod.
1.  Execute Code  VisualWarningPdb.php 
2. Execute Modification ./index.php Test successful
3. Execute Modification ./Sources/ModSettings.php Test successful
4. Execute Modification ./Themes/default/Profile.template.php Test successful
5. Execute Modification ./Sources/Display.php Test successful
6. Execute Modification ./Themes/default/Display.template.php Test successful
7. Execute Modification ./Sources/Post.php Test successful
8. Execute Modification ./Themes/default/Post.template.php Test successful
9. Execute Modification ./Sources/Karma.php Test failed
10. Execute Modification ./Sources/Subs.php Test failed
11. Execute Modification ./Sources/Security.php Test successful
12. Execute Modification ./Sources/ManagePermissions.php Test successful
13. Execute Modification ./Themes/default/index.template.php Test successful
14. Execute Modification ./Sources/Load.php Test failed
15. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
16. Extract File ./Sources/VisualWarning11.php
17. Extract File ./Themes/default/VisualWarning.template.php
18. Extract File ./Themes/default/images/warnban.gif
19. Extract File ./Themes/default/images/warnpmod.gif
20. Extract File ./Themes/default/images/warnmute.gif
21. Extract File ./Themes/default/images/warnwarn.gif
22. Extract File ./Themes/default/images/members.gif
23. Extract File ./Themes/default/images/buttons/warn.gif
24. Execute Modification ./Themes/default/languages/Modifications.french.php File not found
25. Execute Modification ./Themes/default/languages/Modifications.polish.php File not found
26. Execute Modification ./Themes/default/languages/Modifications.turkish.php File not found
27. Execute Modification ./Themes/default/languages/Modifications.croatian.php File not found
28. Execute Modification ./Themes/default/languages/Modifications.danish.php File not found
29. Execute Modification ./Themes/default/languages/Modifications.spanish.php File not found
30. Execute Modification ./Themes/default/languages/Modifications.portuguese.php File not found
31. Execute Modification ./Themes/default/languages/Modifications.brazilian.php File not found


Kindly tell me how to solve the "test failed" problem as it doesnt show the codes in package parser and what about the "File not found" Files.

Thanks.
Title: Re: Visual Warning Mod
Post by: Rumbaar on July 27, 2008, 09:31:20 PM
For all mods that have test failed errors, means you have to manually edit the appropriate files.  As a previous mod has changed the code so the automated process can't continue.

Both of you see the link in my signature and use the parser in the download section where you download the file to see what to edit and where to edit in those files.  Use a decent text editor like Notepad++.
Title: Re: Visual Warning Mod
Post by: Adish - (F.L.A.M.E.R) on July 27, 2008, 09:42:28 PM
yea but the problem in the download section codes is that, they all codes come up in just 1 line and hence dont work. It doesnt by any way come up in diff lines ???

and what about the files which arnt found. I know they are all for different languages, but would it cause any errors or something ???

Thanks
Title: Re: Visual Warning Mod
Post by: Adish - (F.L.A.M.E.R) on July 27, 2008, 09:53:02 PM
ehm srry.. i dunno what happened.. it gave me this error while installing the mod...

Duplicate column name 'warning'
File: W:\www\myworld\Packages\temp\VisualWarningPdb.php
Line: 85

I am testing everything for the site .. so its on the WAMP and then the database and files will be uploaded to the site. so whts the prob here ??

Please let me know.
Thanks.
Title: Re: Visual Warning Mod
Post by: Rumbaar on July 27, 2008, 10:45:15 PM
Well you'll need to copy it line by line then, or open the installer .xml file to get in a better format.  The file not found are alternate language files, if you notice, and if you don't have them you don't have to worry.

The duplicate column is most likely due to you trying to install it a second time, you'll need to either get the installation code to ignore the second install or remove that column before installing again.
Title: Re: Visual Warning Mod
Post by: Adish - (F.L.A.M.E.R) on July 28, 2008, 09:16:25 AM
Quote from: Rumbaar on July 27, 2008, 10:45:15 PM
The duplicate column is most likely due to you trying to install it a second time, you'll need to either get the installation code to ignore the second install or remove that column before installing again.

I thought the same, yes it was installed up before in the older files but i started adding in mods freshly, it just has its entries in the database and not in the files. Is that the reason why it says duplicate as it should just overight the older entried in the database and not cause errors i suppose ?

Thanks.
Title: Re: Visual Warning Mod
Post by: Rumbaar on July 28, 2008, 10:13:50 PM
No it depends on how it's coded, if it's coded to add in the column without checking then that is what you get.  You'll have to manually remove it from your db or run the uninstaller (which I assume) would take that column out.
Title: Re: Visual Warning Mod
Post by: Adish - (F.L.A.M.E.R) on July 28, 2008, 10:15:52 PM
oh okay, I will be removing it from the database and then testing it out, If i need help I'll ask you soon.. :D

catch you later..

Thanks.
Title: Re: Visual Warning Mod
Post by: akl on July 31, 2008, 04:28:48 AM
Hey,
I want to install this mod, VisualWarningMod 141
When I install it for the SMF DEfault Core theme it doesn't show..
I don't know the reason why..
If anyone could please fix this.. it would be much asked for. :)
Also to add to that, some of my mods do not work too..
It's turning out to be a problem for me.. please help
My forum is 1.1.5 but in the download section you've said it is compatible with 1.1.5
here you say only 1.1.4 ??? ???
This is the link to the mod http://custom.simplemachines.org/mods/index.php?mod=878
Title: Re: Visual Warning Mod
Post by: Rumbaar on July 31, 2008, 06:11:55 AM
You get no errors when you 100% successfully install it to your forum and you're 100% sure you are using the default CORE theme?  Link to forum.
Title: Re: Visual Warning Mod
Post by: akl on July 31, 2008, 07:15:00 AM
It gives me the error of language files like polish and all the other language files not found
But I use english so I ingnore it.
It doesn't work still.
Link: http://www.tobiasscape.com/forum/index.php
Title: Re: Visual Warning Mod
Post by: Rumbaar on July 31, 2008, 07:47:43 AM
1. That is not the SMF default CORE theme!  You need to manually add the code to any custom template themes files.
2. That is the TinyPortal version of that theme, and as the error on your page indicates, you don't seem to have TP installed!
3. Please don't use this thread for anything other than Visual Warning Mod issues.
Title: Re: Visual Warning Mod
Post by: akl on July 31, 2008, 09:12:02 AM
I tried it with the default core theme, and it didn't work.
So I lost intrest in it for a while and put back my old theme.
Now because of the mod my other mods do not function properly..
Title: Re: Visual Warning Mod
Post by: TaTo on August 01, 2008, 08:28:36 AM
Hi all!

I'm getting some errors, but i think there I've missed something

Forum v: SMF 1.1.5 -
Theme : Default Theme and a modified Theme. (same error with both)

1) When I check any profile:

8: Undefined index: warning
.........../Themes/default/languages/Who.spanish-utf8.php (summary sub template - eval?)
Line: 267

2) When the user on level 2 try to post:

8: Undefined index: return_to_post
File: .........../Sources/Post.php
Line: 1621

Can you give me a hand on this?

Regards
Title: Re: Visual Warning Mod
Post by: Rumbaar on August 01, 2008, 08:36:44 AM
You need to convert and install all the $txt[] strings into your spanish language files.
Title: Re: Visual Warning Mod
Post by: MaXiForum.cz on August 01, 2008, 04:03:23 PM
Nice Mod :)
Thank you!!!
Title: Re: Visual Warning Mod
Post by: akl on August 01, 2008, 06:40:56 PM
Okay.. I like your MOD!
I'm like a huge lover of it
Can you make it compatible with my theme?
Here are the attachments if you need
Thanks mate
Title: Re: Visual Warning Mod
Post by: Rumbaar on August 01, 2008, 08:48:00 PM
You'll best do that kind of work yourself akl, use the link in my signature, Notepad++ and the parser to find the code to edit.  You only need to do it in any files that return Test Failed or templates in your custom theme.
Title: Re: Visual Warning Mod
Post by: akl on August 02, 2008, 04:47:33 AM
But if I have any problems can I please ask here? And can you reply quick? lol
Title: Re: Visual Warning Mod
Post by: SONSiVRi on August 02, 2008, 06:34:16 AM
Quote from: akl on August 02, 2008, 04:47:33 AM
But if I have any problems can I please ask here? And can you reply quick? lol

forums are for it, doesnt?
Title: Re: Visual Warning Mod
Post by: akl on August 02, 2008, 08:08:24 AM
Quote from: SONSiVRi on August 02, 2008, 06:34:16 AM
Quote from: akl on August 02, 2008, 04:47:33 AM
But if I have any problems can I please ask here? And can you reply quick? lol

forums are for it, doesnt?
Usually don't get a quick reply.
Title: Re: Visual Warning Mod
Post by: Rumbaar on August 02, 2008, 09:43:41 PM
You'll get an applicable and appropriate response, in regards to the hundreds of other support posted each day on this community based free volunteer support forum :)
Title: Re: Visual Warning Mod
Post by: akl on August 03, 2008, 06:04:39 AM
Okay.. I've tried but messed it up.
I think I've corrupted some files.
I'm busy in real life too, so could someone help me out 'ere?
Title: Re: Visual Warning Mod
Post by: Rumbaar on August 03, 2008, 06:32:53 PM
We're all 'busy in real life' too.  Try reading this: http://docs.simplemachines.org/index.php?topic=494
Title: Re: Visual Warning Mod
Post by: akl on August 04, 2008, 02:37:21 PM
Whats the point of helping us when you are busy.
You will tend to give more importance to other things may mis lead us..
Title: Re: Visual Warning Mod
Post by: Rumbaar on August 04, 2008, 06:26:12 PM
This is a pure volunteer based community, no-one's sole job is to sit here and do support.  So you get the time a person of the community has to volunteer their free time to help 'you'.

This isn't really the thread for this kind of discussion.  There are a number of resources available to you, via search or stickies, they are there to help you achieve what you want.  From Manual editing of files to parsing a mod into a readable format so you can perform the manual changes to your files.  Now if the level of coding and work is beyond you and you need a more experiences one-on-one approach you might need to seek a skilled administrator to help administrate your forum or customize your site/forum.  This type of help can be sourced via sections like Help Wanted (not for support) (http://www.simplemachines.org/community/index.php?board=50.0).
Title: Re: Visual Warning Mod
Post by: Kylezz on August 04, 2008, 11:51:02 PM
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!
ill post pics in a sec

(http://img239.imageshack.us/img239/8714/vw4ml7.png) <- not banned the use just vw_4
(http://img509.imageshack.us/img509/3989/banndnotbj7.png) says he's banned
|
V
(http://img509.imageshack.us/img509/3831/nowarningkx5.png) says he has no warnings
|
V
(http://img110.imageshack.us/img110/6136/wontgobacktopostzo7.png) it wont go back after you push submit
|
V
(http://img509.imageshack.us/img509/6325/afterbm7.png) 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

It should work perfectly, the're should be no errors. I already tested it. Works perfectly.
Title: Re: Visual Warning Mod
Post by: akl on August 05, 2008, 06:30:09 PM
Can someone just 'volunteer' to edit the files..
Title: Re: Visual Warning Mod
Post by: kizer on August 06, 2008, 01:57:41 PM
I installed this on a test forum 1.1.5 because on my live forum I was getting the same results and wanted to see if maybe I was nuts.

I did this on a fresh install with no other mods. When I click on warn on a member to see what they have been warned about I see this.


Topic Where Raised: Blah and more blah [center][img]http://www.links4jeeps.com/testforum/Themes/default/images/warnwarn.gif[/img] [color=green][/color][/center] 

Is it supposed to show the image code or actually link to the URL of the post? I checked the PM the user is gettting and it does refer to the actual PM
Title: Re: Visual Warning Mod
Post by: Johno69 on August 06, 2008, 09:28:22 PM
i am getting an error in the log:

Undefind Index: return_to_post

When a user who is moderated posts.
Title: Re: Visual Warning Mod
Post by: jayc7176 on August 07, 2008, 12:45:42 AM
Awsom Mod! works really nice !! & adds great value to the already awsom SMF !

One question anyone knows if the the Warning icon can be placed somewhere else mayb under post count or something . ?

& - the warning should only be viewable by Admins, mods & the person that has been warned. .
Many Thanks for this awsom Mod.
Title: Re: Visual Warning Mod
Post by: Eleglin on August 07, 2008, 01:21:42 PM
Update with VisualWarning 1.42 :
You use visual warning 1.41, should you update for 1.42 ? If you want, but you won't get any new feature or security fix for this act : I have just changed a very little piece of code, in order to make it more "convenient" for SMF 1.1.x.  ;)
Title: Re: Visual Warning Mod
Post by: IVIIVI4ck3y27 on August 07, 2008, 04:47:13 PM
I've always loved this mod...  and am trying to install it now as it's one of those mods I just can't do without.  I noticed that there's an error, but it's on the foreign language files in my SMF 1.1.5 install.  Since no one comes to our site in a foreign language (or if they speak one they speak English with all of us Yanks), if I install the mod as-is...  I'd probably be okay but...  just want to make sure that it doesn't bring the proverbial stack of cards falling down.  LoL  Any tips on how to install strictly for English or should I just click the install package button with fingers crossed and fly by the seat of my pants on it?
Title: Re: Visual Warning Mod
Post by: TaTo on August 07, 2008, 08:10:26 PM
Quote
Quote from: TaTo on August 01, 2008, 08:28:36 AM
Hi all!

I'm getting some errors, but i think there I've missed something

Forum v: SMF 1.1.5 -
Theme : Default Theme and a modified Theme. (same error with both)

1) When I check any profile:

8: Undefined index: warning
.........../Themes/default/languages/Who.spanish-utf8.php (summary sub template - eval?)
Line: 267

2) When the user on level 2 try to post:

8: Undefined index: return_to_post
File: .........../Sources/Post.php
Line: 1621

Can you give me a hand on this?

Regards


Quote from: Rumbaar on August 01, 2008, 08:36:44 AM
You need to convert and install all the $txt[] strings into your spanish language files.

Hi Rumbaar  thanks for the quick response, but still can't manage to make it work.

I'm using the last spanish translation from Deoxys94, but the errors still appear...

Can you give me the english lines for those two?? so I can translate them ...  ;)

Regards
Title: Re: Visual Warning Mod
Post by: Eleglin on August 08, 2008, 02:10:57 PM
Quote from: IVIIVI4ck3y27 on August 07, 2008, 04:47:13 PM
I've always loved this mod...  and am trying to install it now as it's one of those mods I just can't do without.  I noticed that there's an error, but it's on the foreign language files in my SMF 1.1.5 install.  Since no one comes to our site in a foreign language (or if they speak one they speak English with all of us Yanks), if I install the mod as-is...  I'd probably be okay but...  just want to make sure that it doesn't bring the proverbial stack of cards falling down.  LoL  Any tips on how to install strictly for English or should I just click the install package button with fingers crossed and fly by the seat of my pants on it?
Don't think too much. Just do it.  :D
Title: Re: Visual Warning Mod
Post by: Rumbaar on August 08, 2008, 08:07:12 PM
Quote from: TaTo on August 07, 2008, 08:10:26 PMCan you give me the english lines for those two?? so I can translate them ... 
I'm not sure what they are, take a look at the English modification file and you should see them in their.  Then just duplicate to your language and translate if you want.
Title: Re: Visual Warning Mod
Post by: kizer on August 09, 2008, 04:07:44 PM
Does nobody else get this error when they click on the warn image to see what the member was warned about?
http://www.simplemachines.org/community/index.php?topic=186021.msg1648655#msg1648655
Title: Re: Visual Warning Mod
Post by: Rumbaar on August 09, 2008, 09:34:12 PM
Quote from: kizer on August 09, 2008, 04:07:44 PM
Does nobody else get this error when they click on the warn image to see what the member was warned about?
http://www.simplemachines.org/community/index.php?topic=186021.msg1648655#msg1648655
I get the same result as you, but I'm not sure if it suppose to link to the topic or just give you visual record of the post.

Now for Eleglin I would add option install setting for French and Spanish language files so it doesn't return error message when they are not found.
Title: Re: Visual Warning Mod
Post by: kizer on August 11, 2008, 11:52:01 AM
I wouldn't care either way, but its basically a bunch of code like its supposed to say something but its in HTML.

To me it would appear that it needs to be the URL to the post that the user was warned, banned, muted for.
Title: Re: Visual Warning Mod
Post by: aZa on August 12, 2008, 03:34:31 PM
load.php test failed


how to do it manually help!
Title: Re: Visual Warning Mod
Post by: Rumbaar on August 12, 2008, 06:16:18 PM
Quote from: aZa on August 12, 2008, 03:34:31 PMhow to do it manually help!
Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402)
Title: Re: Visual Warning Mod
Post by: akl on August 18, 2008, 09:58:39 PM
The forums are not hosted by me, but, I asked the hoster to give me the files I needed, although I am very experienced with Java, I just wanted to know if someone could help me out by editing the files needed?
The hoster himself can do it, but, he's busy with scripts etc. and he just finished his 'Slideshow script' so if someone could please help me out I would be ever so greatful, I desperately need this for my forums  :'(
Title: Re: Visual Warning Mod
Post by: Rumbaar on August 18, 2008, 11:11:43 PM
If you require a more direct hands on approach and don't have the time or skills to do it yourself, you might want try the Help Wanted (not for support) (http://www.simplemachines.org/community/index.php?board=50.0) section.
Title: Re: Visual Warning Mod
Post by: smldmr on August 25, 2008, 02:39:02 PM
hello, the mod is installed on may forum v1.1.5 it works fine. But i have a question, why a warning not deleted automatically if it expired? I must delete every warning manually.
Title: Re: Visual Warning Mod
Post by: Rumbaar on August 25, 2008, 06:01:04 PM
Do you mean the text inserted into a message that the warning was issued on?  Well I'm sure it's meant to stay there as a visual indicator for the future of when and where a warning was issued.
Title: Re: Visual Warning Mod
Post by: IVIIVI4ck3y27 on August 30, 2008, 12:05:30 PM
Well, I've run into a bit of an error...I had it installed on my bridged SMF/Joomla install on the board.  I ran into an error with the version of the JSMF component installed not liking the spell check function of the board.  When I did research on Joomlahacks, I found that I needed to tweak my bridge from 2.0.2.1 to 2.0.2.1a. 
That took care of my spell check.  However in uninstalling and reinstalling the bridge, all of the board mod packages were broken/not working.  Most were fixed by a simple uninstall/reinstall in the board's admin panel (I took the hard way and decided to uninstall all packages first and attempt to reinstall the Visual Warning package first as it's one of the more important ones).
However, Visual Warning issues a few errors when attempting to reinstall.

The install/upload of the package goes fine.

Then when I attempt to apply the mod...  the Load.php file issues an error (languages show an error too but that's normal, I only have English [not UTF-8] installed).
If I attempt to continue the install even with the error; I get the following error:Duplicate column name 'warning'
File: /home/modworx0/public_html/slingindirt/forum/Packages/temp/VisualWarningPdb.php
Line: 85

Line 85 of the aforementioned file states:
      ADD warning INT", __FILE__, __LINE__);


Just to clarify beforehand...  I've not backed the DB up in sometime (I know, I know...  ) and the board/site is pretty far along and I really don't want to go through the process or an uninstall/reinstall or having to redo a lot of the more recent things.  If there's a way I can perhaps clean this issue up without having to redo everything...  I'd love to as I love Visual Warnings, otherwise I might just have to roll without Visual Warnings installed.  *pouts*  LoL  It's unfortunate as it's a favorite mod of mine (in fact...  I'd love to see it integrated into SMF 1.1.6 as I think it's that important of an add-on for any board moderator/admin; and yeah I know there's intentions of a user management system in 2.0 but until 2.0 is fully released...  this would be a nice feature to plug into 1.1.6 and save us all the hassle of adding it in ourselves) but considering this is the second time we've reinstalled everything (first time was due to some pilot errors on install), I'd prefer not to have to go clean-sheet again.  LoL  Everything else installs and works perfectly it's just the Visual Warning (1.4.2) add-on that's issuing the errors for me.
Title: Re: Visual Warning Mod
Post by: Rumbaar on August 30, 2008, 07:03:29 PM
Well the warning feature is a default part of SMF 2.x, I doubt it will ever make it into the CORE features of the 1.1.x though.

Now that error is most likely due to the mod installing a second copy of code or db tables/fields on second install.  You need to manually remove the second duplicate nature of the install. So you uninstalled the mod before installing it again?

QuoteJust to clarify beforehand...  I've not backed the DB up in sometime (I know, I know...  )
Trying not to sound harsh, but that's really unacceptable.  You seem to know the nature of the modifications you are doing and the possibility of failure and still don't take the few minutes to perform a backup beforehand.
Title: Re: Visual Warning Mod
Post by: IVIIVI4ck3y27 on August 31, 2008, 03:38:38 AM
Quote from: Rumbaar on August 30, 2008, 07:03:29 PM
Well the warning feature is a default part of SMF 2.x, I doubt it will ever make it into the CORE features of the 1.1.x though.

I do understand that, but for those that are on 1.1.x stable with no nearterm plans to switch to 2.0 due to constraints not working with us (i.e. no mature SMF 2.0 bridge for Joomla 1.0.x/1.5.x and with an already established Joomla 1.0.x site, functioning install of SOBI2 for downloads, etc.) the one feature, above all else that could be added to 1.1.x if there is indeed any new development (i.e. even a security patch which is sure to come...  they were added to the 1.0x versions post 1.1.x as well) to come to the old version before it's laid to pasture...  Visual Warnings themselves might be worth the last bit of integration before parking the 1.x.x codebase permanently.  I'm not saying that it'd even require a complete rewrite, more just an agreement with the developer of the mod to just roll it into the codebase by default if and when there is a 1.1.6.  When Visual Warning works proper, it is quite a well designed feature, one that SMF in 1.1.x sorely lacked and of which I'm glad to see coming to 2.0.  I just can't commit to an SMF 2.0 release when it's not considered a full release yet and without any bridge/integration options.

I would've considered going with SMF 2.0 and Joomla 1.5.6 with JFusion had well...  SMF 2.0 be released in a state other than beta, JFusion not be in an alpha state, etc.  Since having to commit to Joomla 1.0.x and the J-SMF bridge (the only real option) we fully plan to use this longterm until there's other time-tested and mature options.  My guess is Joomla 1.0.x won't get an SMF 2.0 bridge anymore than SMF 1.1.x will get Visual Warnings but either way, both are a nice dream and would likely help ease some of the transition for many people or at the very least, remove some headaches of having to rely on significant #'s of board mods to compensate for lack of necessary features in their existing installs while they wait for everything to come together for them in the future.

QuoteNow that error is most likely due to the mod installing a second copy of code or db tables/fields on second install.  You need to manually remove the second duplicate nature of the install. So you uninstalled the mod before installing it again?

Yes, I first uninstalled the mod and attempted to reapply.  When that didn't work, I then deleted the mod and attempted to reinstall.  I've since fixed the Load.php error as well by using a backup.

QuoteTrying not to sound harsh, but that's really unacceptable.  You seem to know the nature of the modifications you are doing and the possibility of failure and still don't take the few minutes to perform a backup beforehand.

Considering the good fortune I had, had since reinstalling and since on a prior run the mods worked without issue (and all have continued to with exception to the Visual Warning mod) I guess you can call it flying blind in the wake of ignorance from prior good fortune.  Regardless, I do know and understand the error in my ways in that regard (hence I prior noted the "I know, I know...") but once again...  I didn't come here to be ridiculed or chastised on errors that I fully understand in hindsight.  I just want to seek input on how to remedy the situation which basically involves knowing what database entries would need manually editing from the developer.  To err is to be human, as they say, and compared to many who wouldn't admit to their ignorance...  I fully admitted and accept mine.  Live and learn.

Had I known prior that trying to fix the spellcheck in the bridged SMF would cause this much grief I would've done without as everything was working swimmingly well prior.  With most decent browsers having the features built in, it is a far more frivolous feature (although still nice to have) and really...  the update in bridge/integration software (from 2.0.2.1 to 2.0.2.1a) only bought me that fix and nothing else significant in terms of advantages.
Title: Re: Visual Warning Mod
Post by: Eleglin on August 31, 2008, 04:42:19 AM
New features on SMF 1.1.x are more likely not possible, since this a stable version. So it's frozen.
If they wanted, SMF developpers could have added this mod on the core, since Grudge is a developper of SMF and was the original author of this mod. But I really don't think it would be done for 1.1.x.
Title: Re: Visual Warning Mod
Post by: IVIIVI4ck3y27 on August 31, 2008, 04:58:00 AM
Quote from: Eleglin on August 31, 2008, 04:42:19 AM
New features on SMF 1.1.x are more likely not possible, since this a stable version. So it's frozen.
If they wanted, SMF developpers could have added this mod on the core, since Grudge is a developper of SMF and was the original author of this mod. But I really don't think it would be done for 1.1.x.

Yeah, I kinda figured that 1.1.5 was probably the end of line in terms of features and everything and more just a way to get it solid and out the door and then focus all energies on 2.0.  I admittedly love 2.0 and would love to have gone with it, just timing was a bit off for our needs.  I'll have to revisit it later on when everything comes together in terms of the bridge being solid, mature, and fully released and the board being fully released.

Anyhow...  Eleglin, do you know what DB calls Visual Warning makes so I can see what all I need to edit out/undo to try to see if I can re-add it again?
Title: Re: Visual Warning Mod
Post by: Rumbaar on August 31, 2008, 05:20:19 AM
What makes it even 'worse' for you is that the licensing issue in past will mean Joomla in 1.1.x and 2.x will not be supported.  But this is a topic for another thread and no longer related to Visual Warning Mod.
Title: Re: Visual Warning Mod
Post by: IVIIVI4ck3y27 on August 31, 2008, 11:49:08 AM
Quote from: Rumbaar on August 31, 2008, 05:20:19 AM
What makes it even 'worse' for you is that the licensing issue in past will mean Joomla in 1.1.x and 2.x will not be supported.  But this is a topic for another thread and no longer related to Visual Warning Mod.

I don't believe that there'll be a huge problem there as I think JFusion will take up the slack left by both Joomlahacks SMF integration (which works pretty well even though development stopped in July) and the unfortunate lack of the official (Orstio's) bridge.  It works pretty well already for being a *green* bridge that's still in the Alpha stages.  In fact, I think it's an ingenious piece of software with how it's conceived right now considering it works with so many apps. already.  I already tested it with J! 1.5.6 and SMF 1.1.5 and it works just as easily as the Joomlahacks bridge once you figure it out, and it's only likely to get better with time.  It's also non-invasive like the official bridge that's unavailable, and I have to admit I prefer that it allows you to use separate DB's for each app vs. how the Joomlahacks version works.

Anyhow to get back on-track, it'd be nice to know what all DB calls Visual Warning makes.  If I have that I might be able to reverse the issues that I'm under now and see if I can get it reinstalled.  If not, I might just have to do without.  Everything else is working quite well.
Title: Re: Visual Warning Mod
Post by: Rumbaar on August 31, 2008, 06:17:52 PM
In the installation package, there should be a php file that installs various tables/fields.  You might be able to look in there for what you are after.  Then look in your DB for any duplication.
Title: Re: Visual Warning Mod
Post by: IVIIVI4ck3y27 on August 31, 2008, 08:20:17 PM
Quote from: Rumbaar on August 31, 2008, 06:17:52 PM
In the installation package, there should be a php file that installs various tables/fields.  You might be able to look in there for what you are after.  Then look in your DB for any duplication.

Thanks for the tip, I'll have to look at that in a bit after I back up.  ;)
Title: Re: Visual Warning Mod
Post by: Adish - (F.L.A.M.E.R) on September 02, 2008, 09:48:49 AM
Hey I am a bit confused, should there be an entry in the users profile which would say "warn this user ?", I cant actually find a way over how to warn the user... pretty silly but i cant find it...
Title: Re: Visual Warning Mod
Post by: IVIIVI4ck3y27 on September 02, 2008, 01:06:04 PM
Quote from: F.L.A.M.E.R on September 02, 2008, 09:48:49 AM
Hey I am a bit confused, should there be an entry in the users profile which would say "warn this user ?", I cant actually find a way over how to warn the user... pretty silly but i cant find it...

It's not in their profile F.L.A.M.E.R., it's actually on each individual post.  If you are an admin (or anyone that is given warn privileges), when you're viewing the board and their responses...  over on the right where it says "Quote, Modify, Remove, etc." on each individual post it should have a "Warn" right after "Remove" on each post.  Clicking on that button/link on any poster will bring up the options to warn that particular user, adjust the warning level, etc.  See attached image as an example...

Keep in mind, you might have to manually edit your theme to make the Warn appear if you're not using the Default theme or a variation of it.  Some of the other themes that come with SMF don't generally get the Warn option installed in them either so if you use one of the older themes that are included, you will likely have to manually edit those themes as well.

By the way guys...  I did manage to get it installed again.  I'm not entirely sure how I fixed it but it is now appearing.  Thanks for all of your help.
Title: Re: Visual Warning Mod
Post by: Adish - (F.L.A.M.E.R) on September 02, 2008, 03:58:07 PM
oh thanks.. i was wondering about it... it also would be better if there was warn in the profile aswell... would also be better if there is a warning bar which would show how much they are warned... i think that is there..but not sure...just confirming.. is it?
Title: Re: Visual Warning Mod
Post by: IVIIVI4ck3y27 on September 02, 2008, 07:24:43 PM
Quote from: F.L.A.M.E.R on September 02, 2008, 03:58:07 PM
oh thanks.. i was wondering about it... it also would be better if there was warn in the profile aswell... would also be better if there is a warning bar which would show how much they are warned... i think that is there..but not sure...just confirming.. is it?

Actually it will display what warning level they're on under their name at the left when a user is warned, banned, etc.  In as far as incorporating one in the profile, I don't know that is necessary really.  The way this system works it's designed to be used on the fly during postings.  One of the advantages with SMF and other boards is that you don't have to go out of your way to administrate and can do it right there in the front pane while reading a posting, which is why I find it far more elegant than even some of the module-based boards for Joomla (why I choose to use SMF wrapped in our Joomla install; I dislike using Fireboard which feels far more clunky in that to administrate/moderate I find myself spending more time in the Joomla back end than I would like; SMF's administration on the fly = far superior, as is PHPbb3 for that matter).  You can not only specify the user warning level but can tell them why they're being warned on each posting on the fly.  Yes you can see the user warning level in their profile as well as on the board, but it's really redundant to have it in the profile section IMHO, at least with how this module works.  Honestly, compared to some of the more confounded warning systems I've seen/read about in boards, I actually like the way this one is conceived the best.  It's more intuitive and cut and dry.
Title: Re: Visual Warning Mod
Post by: Adish - (F.L.A.M.E.R) on September 02, 2008, 07:44:46 PM
hmm ok.. i am fine with it.. :)
Title: Re: Visual Warning Mod
Post by: Eleglin on September 08, 2008, 03:47:22 AM
Updated to work with SMF 1.1.6.
Title: Re: Visual Warning Mod
Post by: Adish - (F.L.A.M.E.R) on September 08, 2008, 05:40:03 PM
well i upgraded to 1.1.6 and it removed the uninstall option for this mod.. i dont actually want to remove it but i want it all proper that when ever i want i can do the needful instead of the manual editing... Can you create an update for this please...
Title: Re: Visual Warning Mod
Post by: Josh- on September 08, 2008, 05:53:19 PM
Hey, I was using this mod on a 1.1.5 and today I patched to 1.1.6 and now when I go to install (I removed the package completely from my server before patching and now I re-installed with the 1.1.6 version) it gives me this error:

512: parseBoardMod(): The filename 'index.php' is not a full path!
File: /home/vol1/byethost32.com/b32_2329877/htdocs/forums/Sources/Subs-Package.php
Line: 1660


Any idea how I can fix this?
Title: Re: Visual Warning Mod
Post by: Rumbaar on September 08, 2008, 06:01:59 PM
Can I ask why you removed the mod in the first place, the nature of forum upgrades and the beauty of the system is that you aren't meant to or need to remove alter anything when upgrading your forum within the AdminCP and of this type of upgrade.

Are you able to install any other mods, or just not this one?
Title: Re: Visual Warning Mod
Post by: Josh- on September 08, 2008, 06:28:52 PM
Quote from: Rumbaar on September 08, 2008, 06:01:59 PM
Can I ask why you removed the mod in the first place, the nature of forum upgrades and the beauty of the system is that you aren't meant to or need to remove alter anything when upgrading your forum within the AdminCP and of this type of upgrade.

Are you able to install any other mods, or just not this one?

I removed the mod in an attempt to fix the error. And I do have other mods in that where in when I had 1.1.5 and all worked correctly together.
Title: Re: Visual Warning Mod
Post by: Adish - (F.L.A.M.E.R) on September 09, 2008, 09:03:03 AM
kind of same problem with me... the difference is that i havnt removed it.... and well i cannot upgrade this mod which can be compatible with 1.1.6 ... i mean it doesnt have uninstall option.. so i think thats where i think its not compatible... any updating patch for this mod ?
Title: Re: Visual Warning Mod
Post by: Rumbaar on September 09, 2008, 06:17:05 PM
Well the package file stored in the packages folder probably doesn't have the xml data to indicate it's compatible with 1.1.6.  An option is to download the file, extract, edit the package-info.xml file and add 1.1.6 compatibility. Re-compress and copy back to the packages folder.  You should now have the uninstall option.
Title: Re: Visual Warning Mod
Post by: Josh- on September 09, 2008, 08:08:39 PM
I can't uninstall it because I cannot install it...
Title: Re: Visual Warning Mod
Post by: Eleglin on September 12, 2008, 06:23:56 AM
There is no difference for this mod between SMF 1.1.5 and 1.1.6.
So if there is no problem and if you are enjoying this mod, you shouldn't have to uninstall it.

IF you want to uninstall it after an update for 1.1.6 and doesn't see the option, you should redownload the mod on this site and replace the old package on your server with this one.

OR, you just have to add ;version_emulate=1.1.5 in your URL
For example :  http://myforum.com/index.php?action=packages;version_emulate=1.1.5
Title: Re: Visual Warning Mod
Post by: digit on September 14, 2008, 03:30:50 PM
I was just trying to manually install this mod, and came upon this in the mod.....



<file name="$themedir/Profile.template.php">
          <operation>
             <search position="after"><![CDATA[ <td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
</tr><tr>
<td><b>', $txt[231], ': </b></td>
<td>', $context['member']['gender']['name'], '</td>
]]></search>
             <add><![CDATA[';
if (isset($message['member']['group']) && $message['member']['group'] != '')
echo '
', $message['member']['group'], '<br />';
]]></search>
             <add><![CDATA[';

//  Mod Visual warning :: Hide these things for people unable to warn?
     if ($modSettings['visualw_hide'] == 0 && $context['member']['warning']['link'] !== '')
echo'
<td><b>' . $txt['visual_current_level'] . ' </b></td>
<td>' . $context['member']['warning']['link'] . '</td>
</tr><tr>
';
      elseif (AllowedTo('visual_warn_any') && $context['member']['warning']['link'] !== '')
echo'
<td><b>' . $txt['visual_current_level'] . ' </b></td>
<td>' . $context['member']['warning']['link'] . '</td>
</tr><tr>
';

echo'
]]></add>



Shouldn't that after be before?  :-\

Edit: hmm, either that is wrong, or this is wrong ...



           <operation>
             <search position="after"><![CDATA[ $context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=karma';
$context['settings_title'] = $txt['smf293'];

prepareDBSettingContext($config_vars);
}
]]></search>
             <add><![CDATA[
function VisualWarningSettings()
{
global $txt, $scripturl, $context, $settings, $sc;

$config_vars = array(
// Visual Warning Options?
array('text', 'visualw_mess_ban'),
array('text', 'visualw_mess_mute'),
array('text', 'visualw_mess_pmod'),
array('text', 'visualw_mess_warn'),
'',
array('text', 'visualw_color_ban'),
array('text', 'visualw_color_mute'),
array('text', 'visualw_color_pmod'),
array('text', 'visualw_color_warn'),
'',
array('text', 'visualw_image_ban'),
array('text', 'visualw_image_mute'),
array('text', 'visualw_image_pmod'),
array('text', 'visualw_image_warn'),
'',
array('text', 'muteAutoTime'),
array('text', 'moderationAutoTime'),
array('text', 'warningAutoTime'),
'',
array('check', 'visualw_pmod_edit'),
array('check', 'visualw_hide'),
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=visualwarning');
}

$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=visualwarning';
$context['settings_title'] = $txt['visual_warning_mod'];

prepareDBSettingContext($config_vars);
}
]]></add>

Title: Re: Visual Warning Mod
Post by: Josh- on September 14, 2008, 04:17:10 PM
Quote from: Eleglin on September 12, 2008, 06:23:56 AM
There is no difference for this mod between SMF 1.1.5 and 1.1.6.
So if there is no problem and if you are enjoying this mod, you shouldn't have to uninstall it.

IF you want to uninstall it after an update for 1.1.6 and doesn't see the option, you should redownload the mod on this site and replace the old package on your server with this one.

OR, you just have to add ;version_emulate=1.1.5 in your URL
For example :  http://myforum.com/index.php?action=packages;version_emulate=1.1.5

I fixed it. Thanks anyway.
Title: Re: Visual Warning Mod
Post by: digit on September 14, 2008, 06:49:30 PM
For the record, there are two files in the download.....

VisualWarning_SMF11.mod

and

modification.xml

The modification.xml file is bunged up in a couple of places.

For example....  from line 120


        <file name="$themedir/Profile.template.php">
          <operation>
             <search position="after"><![CDATA[ <td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
</tr><tr>
<td><b>', $txt[231], ': </b></td>
<td>', $context['member']['gender']['name'], '</td>
]]></search>
             <add><![CDATA[';
if (isset($message['member']['group']) && $message['member']['group'] != '')
echo '
', $message['member']['group'], '<br />';
]]></search>


It appears someone inadvertently copied and pasted some text there.

from line 565....


$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 alre
$txt['visual_member']='Member';



It appears a line was cut off at a margin.

You can see when you compare the two above mentioned files.

My advice?  DO NOT USE modification.xml from the 142 version at least!



Title: Re: Visual Warning Mod
Post by: Filipoday on September 18, 2008, 10:33:33 AM
please, I can`t see that image, the button RED on the left:
V
(http://img509.imageshack.us/img509/6325/afterbm7.png)

I only see this
Title: Re: Visual Warning Mod
Post by: Rumbaar on September 18, 2008, 05:55:27 PM
Have you installed all the applicable mod code into applicable custom theme template files?  As it looks like you're using a custom theme in that screen shot.
Title: Re: Visual Warning Mod
Post by: BarfBag on September 18, 2008, 06:01:11 PM
Board URL: http://www.chexquest.org/

SMF 1.1.6

Mods:
SMF Gallery Lite
Redirection Boards
Ad Management
FavIcon
Todays Birthday
SMF Links
YouTube BBCode
Chatroom Button

This is the error I get:
   Execute Code     VisualWarningPdb.php     
2.    Execute Modification    ./index.php    Test successful
3.    Execute Modification    ./Sources/ModSettings.php    Test successful
4.    Execute Modification    ./Themes/default/Profile.template.php    Test successful
5.    Execute Modification    ./Sources/Display.php    Test successful
6.    Execute Modification    ./Themes/default/Display.template.php    Test successful
7.    Execute Modification    ./Sources/Post.php    Test successful
8.    Execute Modification    ./Themes/default/Post.template.php    Test successful
9.    Execute Modification    ./Sources/Karma.php    Test successful
10.    Execute Modification    ./Sources/Subs.php    Test successful
11.    Execute Modification    ./Sources/Security.php    Test successful
12.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
13.    Execute Modification    ./Themes/default/index.template.php    Test successful
14.    Execute Modification    ./Sources/Load.php    Test successful
15.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
16.    Extract File    ./Sources/VisualWarning11.php    
17.    Extract File    ./Themes/default/VisualWarning.template.php    
18.    Extract File    ./Themes/default/images/warnban.gif    
19.    Extract File    ./Themes/default/images/warnpmod.gif    
20.    Extract File    ./Themes/default/images/warnmute.gif    
21.    Extract File    ./Themes/default/images/warnwarn.gif    
22.    Extract File    ./Themes/default/images/members.gif    
23.    Extract File    ./Themes/default/images/buttons/warn.gif    
24.    Execute Modification    ./Themes/default/languages/Modifications.french.php    File not found
25.    Execute Modification    ./Themes/default/languages/Modifications.polish.php    File not found
26.    Execute Modification    ./Themes/default/languages/Modifications.turkish.php    File not found
27.    Execute Modification    ./Themes/default/languages/Modifications.croatian.php    File not found
28.    Execute Modification    ./Themes/default/languages/Modifications.danish.php    File not found
29.    Execute Modification    ./Themes/default/languages/Modifications.spanish.php    File not found
30.    Execute Modification    ./Themes/default/languages/Modifications.portuguese.php    File not found
31.    Execute Modification    ./Themes/default/languages/Modifications.brazilian.php    File not found

Any suggestions?
Title: Re: Visual Warning Mod
Post by: Rumbaar on September 18, 2008, 06:50:39 PM
There are no errors in that test?  If you are not using those languages then you can proceed.
Title: Re: Visual Warning Mod
Post by: Eleglin on September 21, 2008, 01:35:51 PM
hello Digit. You're right. I'm sorry for these problems, I haven't use the manual modification for a while, so I haven't seen these bugs.
I try to generate a new modification file for version 1.42. *Done and updated for 1.42. I must test 1.3x again*
Title: Re: Visual Warning Mod
Post by: quiz_modder on September 21, 2008, 05:14:47 PM
I have visualwarning142.zip installed. I have SMF 1.1.6. I get the following errors in my Forum Error Log. Seems to be a coding error? Thanks

8: Undefined index: warning
File: /public_html/community/Sources/Post.php
Line: 1092

8: Undefined index: warning
File: /public_html/community/Sources/Post.php
Line: 103

8: Undefined index: warning
File: /public_html/community/Sources/Post.php
Line: 101
Title: Re: Visual Warning Mod
Post by: Phatmat on September 29, 2008, 10:43:50 PM
Any suggestion on this (the Load.php test failed):

   Type     Action     Description
1.    Execute Code    VisualWarningPdb.php    
2.    Execute Modification    ./index.php    Test successful
3.    Execute Modification    ./Sources/ModSettings.php    Test successful
4.    Execute Modification    ./Themes/default/Profile.template.php    Test successful
5.    Execute Modification    ./Sources/Display.php    Test successful
6.    Execute Modification    ./Themes/default/Display.template.php    Test successful
7.    Execute Modification    ./Sources/Post.php    Test successful
8.    Execute Modification    ./Themes/default/Post.template.php    Test successful
9.    Execute Modification    ./Sources/Karma.php    Test successful
10.    Execute Modification    ./Sources/Subs.php    Test successful
11.    Execute Modification    ./Sources/Security.php    Test successful
12.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
13.    Execute Modification    ./Themes/default/index.template.php    Test successful
14.    Execute Modification    ./Sources/Load.php    Test failed
15.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
16.    Extract File    ./Sources/VisualWarning11.php    
17.    Extract File    ./Themes/default/VisualWarning.template.php    
18.    Extract File    ./Themes/default/images/warnban.gif    
19.    Extract File    ./Themes/default/images/warnpmod.gif    
20.    Extract File    ./Themes/default/images/warnmute.gif    
21.    Extract File    ./Themes/default/images/warnwarn.gif    
22.    Extract File    ./Themes/default/images/members.gif    
23.    Extract File    ./Themes/default/images/buttons/warn.gif    
24.    Execute Modification    ./Themes/default/languages/Modifications.french.php    File not found
25.    Execute Modification    ./Themes/default/languages/Modifications.polish.php    File not found
26.    Execute Modification    ./Themes/default/languages/Modifications.turkish.php    File not found
27.    Execute Modification    ./Themes/default/languages/Modifications.croatian.php    File not found
28.    Execute Modification    ./Themes/default/languages/Modifications.danish.php    File not found
29.    Execute Modification    ./Themes/default/languages/Modifications.spanish.php    File not found
30.    Execute Modification    ./Themes/default/languages/Modifications.portuguese.php    File not found
31.    Execute Modification    ./Themes/default/languages/Modifications.brazilian.php    File not found

I have tried to use the package parser to view the files requiring editing, though the parser doesn't work. Can anybody tell me which files I am required to edit in Load.php?

thanks,
Matt.
Title: Re: Visual Warning Mod
Post by: Rumbaar on September 30, 2008, 09:08:08 AM
Quote from: Phatmat on September 29, 2008, 10:43:50 PMI have tried to use the package parser to view the files requiring editing, though the parser doesn't work. Can anybody tell me which files I am required to edit in Load.php?
I just test the mod and it parses just fine, not sure if there was issues when you tried.  But it's working now, please try again.

Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402)
Title: Re: Visual Warning Mod
Post by: The Saviour on October 03, 2008, 08:56:56 AM
Quote from: Eleglin on September 08, 2008, 03:47:22 AM
Updated to work with SMF 1.1.6.

I'm using the above version of SMF, but when I try to install...all goes well until it gets to the additional language files, which are not needed.

I believe you need to recode this for use with the Package Manager.  If these files aren't needed...then they should be bypassed so the mod will install via the Package Manager.

Here's the problem:

Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Code    VisualWarningPdb.php    
2.    Execute Modification    ./index.php    Test successful
3.    Execute Modification    ./Sources/ModSettings.php    Test successful
4.    Execute Modification    ./Themes/default/Profile.template.php    Test successful
5.    Execute Modification    ./Sources/Display.php    Test successful
6.    Execute Modification    ./Themes/default/Display.template.php    Test successful
7.    Execute Modification    ./Sources/Post.php    Test successful
8.    Execute Modification    ./Themes/default/Post.template.php    Test successful
9.    Execute Modification    ./Sources/Karma.php    Test successful
10.    Execute Modification    ./Sources/Subs.php    Test successful
11.    Execute Modification    ./Sources/Security.php    Test successful
12.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
13.    Execute Modification    ./Themes/default/index.template.php    Test successful
14.    Execute Modification    ./Sources/Load.php    Test successful
15.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
16.    Extract File    ./Sources/VisualWarning11.php    
17.    Extract File    ./Themes/default/VisualWarning.template.php    
18.    Extract File    ./Themes/default/images/warnban.gif    
19.    Extract File    ./Themes/default/images/warnpmod.gif    
20.    Extract File    ./Themes/default/images/warnmute.gif    
21.    Extract File    ./Themes/default/images/warnwarn.gif    
22.    Extract File    ./Themes/default/images/members.gif    
23.    Extract File    ./Themes/default/images/buttons/warn.gif    
24.    Execute Modification    ./Themes/default/languages/Modifications.french.php    File not found
25.    Execute Modification    ./Themes/default/languages/Modifications.polish.php    File not found
26.    Execute Modification    ./Themes/default/languages/Modifications.turkish.php    File not found
27.    Execute Modification    ./Themes/default/languages/Modifications.croatian.php    File not found
28.    Execute Modification    ./Themes/default/languages/Modifications.danish.php    File not found
29.    Execute Modification    ./Themes/default/languages/Modifications.spanish.php    File not found
30.    Execute Modification    ./Themes/default/languages/Modifications.portuguese.php    File not found
31.    Execute Modification    ./Themes/default/languages/Modifications.brazilian.php    File not found
Title: Re: Visual Warning Mod
Post by: Johno69 on October 03, 2008, 10:34:46 AM
Should be able to continue without any issues..
Title: Re: Visual Warning Mod
Post by: The Saviour on October 03, 2008, 11:13:32 AM
Quote from: Johno69 on October 03, 2008, 10:34:46 AM
Should be able to continue without any issues..

Understood...and I'll give it a try.

In the interim, though...the mod should be updated to prevent the Package Manager from stopping the process.  Wouldn't you say?
Title: Re: Visual Warning Mod
Post by: Rumbaar on October 03, 2008, 09:56:44 PM
Well as posted 4 post before you with the same issue it not a concern if they are missing, and it shouldn't stop you from installing the mod via Package Manager.  Just a indicator of missing files, but certainly not mod install stopping.
Title: Re: Visual Warning Mod
Post by: The Saviour on October 03, 2008, 11:05:01 PM
Worked out fine...

Thx!
Title: Re: Visual Warning Mod
Post by: Eleglin on October 08, 2008, 09:47:48 AM
Well, it seems that I really must to fix this. But as Rumbaar has said : "it not a concern if they are missing, and it shouldn't stop you from installing the mod via Package Manager.  Just a indicator of missing files, but certainly not mod install stopping."
Title: Re: Visual Warning Mod
Post by: genieuk on October 10, 2008, 10:06:27 AM
Hi,

Fantastic mod, installed and all working like a dream :D

One question,

where it says: Time Warning Lasts (Blank=Default):

does it mean minutes/days/hours? also what is the default?

for example if i put in 10 would it mean 10 days/hours/minutes etc?

Thanks
Mathew
Title: Re: Visual Warning Mod
Post by: PatrickPriest on October 10, 2008, 03:07:56 PM
So I love this warning system, however I have a few problems with it.

First of all, some (if not all) of the warnings are not expiring when they should.  I have set the warnings to be for 30 days, however, on some members 30 days are over and the warning still applies.

I currently have version 1.41, and I would like to upgrade to the newest one.  However when I go to uninstall it, it doesn't give me the uninstall link:

16.     VisualWarning      1.41       [ List Files ]  [ Delete ]

How can these 2 things be fixed?
Title: Re: Visual Warning Mod
Post by: Rumbaar on October 10, 2008, 07:33:34 PM
The uninstall option is probably due to the fact the stored zip package stored in the packages folder is not configured to work with the version of SMF you are now running.

You'll need to download that zip file, open it up. Alter the installer .xml/mod file to allow for use in your current version of SMF and then copy back.  It should now have the option to un-install.  Make sure you alter it for both the install and uninstall parts of the file.
Title: Re: Visual Warning Mod
Post by: Eleglin on October 13, 2008, 10:30:16 AM
Yes.
And as it was said before, there isn't any new feature on 1.42.
So if you haven't any problems with 1.41, you shouldn't upgrade for the moment. If you had problems with 1.41, then I don't believe that 1.42 will solve it.

QuoteFirst of all, some (if not all) of the warnings are not expiring when they should.  I have set the warnings to be for 30 days, however, on some members 30 days are over and the warning still applies.
This reminds me that I had this problem once, a long time ago, before I updated this mod first. Could you tell me if you had these problems with one level or with the whole levels ?

Quotewhere it says: Time Warning Lasts (Blank=Default):

does it mean minutes/days/hours? also what is the default?
No. Seconds !  O:)
This is "days" of course. I don't see any interest if you warn someone for 10 minutes or 10 hours. Maybe he would never see that he was muted. ^^

Title: Re: Visual Warning Mod
Post by: Kamo on October 15, 2008, 11:39:00 AM
Hello
I have looked over this topic and missed this issue.
Smf 1.1.6 with custom theme. VW mod 1.42

Working great with one glitch. Post moderation is not working.  When someone is moderated his post lands in post moderation center. I can approve it or delete it. Well the thing is  both buttons delete the message :/

What can be wrong ?
Title: Re: Visual Warning Mod
Post by: glennk on October 18, 2008, 04:00:05 PM
in the readme file it says

Upload:
      VisualWarning.php to Sources

howevere I dont appear to have a file under this name.

could it be :

VisualWarning11.php
Title: Re: Visual Warning Mod
Post by: glennk on October 18, 2008, 04:14:56 PM
Ok I did as suggested for manual install and I get these errors


8: Undefined index: visual_warning_management
File: /home/glennk/public_html/forum/Sources/Subs.php
Line: 3319

8: Undefined index: visual_postmod_manager
File: /home/glennk/public_html/forum/Sources/Subs.php
Line: 3320
Title: Re: Visual Warning Mod
Post by: Phatmat on October 19, 2008, 02:51:43 AM
I am wondering if this is a bug or not. If I ban a user using the VWarn mod, then decide to un-ban them, and remove their ban trigger from VW_4, their "Current Level" still shows up as "Banned" and they have a "Banned" symbol under their user name when posting.

Current Status:      Offline Offline
Current Level:    Banned

How are you supposed to remove this "Banned" level?

edit: Also, when the Global Moderators try to ban a user (by entering warning level 4), they receive this error:
An Error Has Occurred!
You are not allowed to administrate this forum.

How would I fix this? I've tried giving them permission to the ban list, but it still wont let them ban the users through the Visual Warning mod.
Title: Re: Visual Warning Mod
Post by: Kamo on October 19, 2008, 04:43:22 PM
I don't have answers for You guys but i would like to point on my problem again 3 posts earlier. Maybe just maybe someone know what to do.

help.
Title: Re: Visual Warning Mod
Post by: Eleglin on October 20, 2008, 08:29:42 AM
Quote from: glennk on October 18, 2008, 04:00:05 PM
in the readme file it says

Upload:
      VisualWarning.php to Sources

howevere I dont appear to have a file under this name.

could it be :

VisualWarning11.php
yes.
This seems to have not been updated in the readme.
Quote
How are you supposed to remove this "Banned" level?
Not with Visualwarning, but in the ban management area (the normal function in SMf, that you can reach without this mod).

QuoteWorking great with one glitch. Post moderation is not working.  When someone is moderated his post lands in post moderation center. I can approve it or delete it. Well the thing is  both buttons delete the message :/
When you approve them, then you can't find them in the sections ?
This is for the whole messages or just some of them ?
Title: Re: Visual Warning Mod
Post by: Kamo on October 21, 2008, 01:17:48 AM
Quote
QuoteWorking great with one glitch. Post moderation is not working.  When someone is moderated his post lands in post moderation center. I can approve it or delete it. Well the thing is  both buttons delete the message :/
When you approve them, then you can't find them in the sections ?
This is for the whole messages or just some of them ?

After clicking approve  the mesage dissappears  like it just was deleted. For now we tested it with only one message at time. I can test it with more at one time if needed. Got test user for that.

edit: with 2 messages the same.
Title: Re: Visual Warning Mod
Post by: lexran on October 21, 2008, 09:25:05 AM
What tweak do I have to do to let the mod warn even the Admins and the moderators?

---------------

Ok I found it, but now when the admin is moderated, he can post without any restriction. Even thought there is a warning that his post will be moderated, the post appears instantly.
Title: Re: Visual Warning Mod
Post by: Eleglin on October 21, 2008, 11:31:25 AM
@kamo : i will try it but I'm a little busy. Sorry for the delay.

Lexran : You can't warn admins, because an admin is "powerful", he can't have any restriction (or any with the original SMF and this mod). if you want to warn an admin, you must make him a simple member.
Title: Re: Visual Warning Mod
Post by: Kamo on October 21, 2008, 11:41:15 AM
No problem Eleglin :) I can wait :)
Title: Re: Visual Warning Mod
Post by: lexran on October 21, 2008, 12:09:02 PM
^^  OK! I just want to show to our members that admins do mistakes to and when they break the rules they must also be punished. I've made him moderated and told him not to post anything without the approval of a mod :P hehe
Title: Re: Visual Warning Mod
Post by: lexran on October 23, 2008, 05:46:23 AM
I have another problem..  O:)
Many of my users are writing in greek in my forum. Everthing is ok with the language and everything. But if someone gets moderated, and writes in greek, in the post moderation manage, his posts appear with questionmarks. Like it doesn't have the right encoding. How can i solve this?
Title: Re: Visual Warning Mod
Post by: Rumbaar on October 23, 2008, 06:36:14 AM
I'm not sure, but if the message is stored in a new table/field and the collation isn't correct it might not be able to store correctly.  Check your db's collation, particularly the field/table for the mods storage and check if it's the same as the rest of your db.
Title: Re: Visual Warning Mod
Post by: lexran on October 24, 2008, 05:56:32 AM
Tried this but nothing.... :(
Title: Re: Visual Warning Mod
Post by: dangerboy on October 24, 2008, 01:51:34 PM
How can i make this mod work on other theme?
Title: Re: Visual Warning Mod
Post by: Rumbaar on October 24, 2008, 05:03:21 PM
Like any other mod, you need to install any applicable code into any applicable custom theme template files.
Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402)
Title: Re: Visual Warning Mod
Post by: [email protected] on October 31, 2008, 07:11:59 PM
Hi, Eleglin, hi Rumbaar,

i know i have to add some modifications to my custom theme, but i want to know wich files must i to edit manually for my custom theme i use dark fantasy and 1.1.5. version SMF, because i already installed this mod and everything in default theme works perfect.

so hope u can help me, i am some newbie in this matter.


thanks in advance for your support and time.
Title: Re: Visual Warning Mod
Post by: patalete on November 01, 2008, 03:52:43 PM
Hi thanks for this mod.

Im gettin some errors after the installation. I needed to edit manually the post & load pages as the package parser tells.

This are the most common:

QuoteUndefined index: warning
File: /Themes/default/languages/Post.english.php (summary sub template - eval?)
Line: 264, 267

Quote8: Undefined index: warning
File: /Sources/Post.php
Lines: 107, 109, 620, 622, 1110, 1208, 1634

thanks

Title: Re: Visual Warning Mod
Post by: sektor on November 02, 2008, 06:04:02 PM
Hello,

I want to uninstall my previous version of this mod (1.4b) and install the latest (1.42)
However, there's no uninstall option for this mod.

Why?


Title: Re: Visual Warning Mod
Post by: Eleglin on November 03, 2008, 03:35:42 AM
Because you have install it when SMF 1.1.6 wasn't released. So you have to emulate "the package manager" for the correct version of SMF

you just have to add ;version_emulate=1.1.5 in your URL
For example :  http://myforum.com/index.php?action=packages;version_emulate=1.1.5 (http://myforum.com/index.php?action=packages;version_emulate=1.1.5)

I can't remember when was released VW 1.4b, probably with SMF 1.1.3. So you will have to make some tests. 1.1.5, or 1.1.4, or 1.1.3... When it is the good one, you will see the option for uninstall it ;)
Title: Re: Visual Warning Mod
Post by: Kamo on November 04, 2008, 09:46:43 AM
Anything new on my case?
Title: Re: Visual Warning Mod
Post by: heatrepeat on November 06, 2008, 03:18:50 PM
This error comes out when i try to install it:

(http://i34.tinypic.com/2z6grdi.png)

I have verified that those 2 files are where they need to be.

What can i do to fix this?


Thanks in advance,
heatrepeat
Title: Re: Visual Warning Mod
Post by: Eleglin on November 11, 2008, 09:15:34 AM
Updated to work with SMF 1.1.7.
Also you shouldn't have any problem to uninstall it when you uprade to the next version of SMF 1.0.x (for 1.3x) and SMF 1.1.x (for 1.4x)
Title: Re: Visual Warning Mod
Post by: eWs on November 11, 2008, 01:01:47 PM
Hi, I installed visual warning mod for smf 1.1.7 and it's been working properly.

I have a question about something.

When I warn a member using one of his posts. But when I view that user's profile, I can't reach his message that I warned. I want to find his warned message in his profile. When I hover mouse over "warned" text, I should be able to click the "warned" text allowing me to find his message.

I hope I am clear. How can I edit the profile.template.php file to do so.
Title: Re: Visual Warning Mod
Post by: heatrepeat on November 11, 2008, 04:17:24 PM
Anyway to fix what i posted 3-4 posts above?
Title: Re: Visual Warning Mod
Post by: patalete on November 12, 2008, 04:57:30 PM
any idea with #451 ?
Title: Re: Visual Warning Mod
Post by: Rumbaar on November 12, 2008, 05:42:49 PM
Quote from: patalete on November 12, 2008, 04:57:30 PM
any idea with #451 ?
Check that all appropriate $txt[] strings have been installed into the current language/s you use on your forum.
Title: Re: Visual Warning Mod
Post by: patalete on November 13, 2008, 04:01:34 PM
Quote from: Rumbaar on November 12, 2008, 05:42:49 PM
Quote from: patalete on November 12, 2008, 04:57:30 PM
any idea with #451 ?
Check that all appropriate $txt[] strings have been installed into the current language/s you use on your forum.

Ok I found it..it took time :) but not in languages files...

It was some missing lines in "sources/load.php" file maybe the package installer/me failed at installation.

Now the mod is working and the error log is clean again  O:)

thanks anyways  ;D
Title: Re: Visual Warning Mod
Post by: Eleglin on November 14, 2008, 04:50:24 AM
how do you have installed it previously ?
Manually ?
Via Package Manager ?
Title: Re: Visual Warning Mod
Post by: patalete on November 14, 2008, 08:15:49 AM
I Downloaded the package and installed with package manager in 1.1.6 forum.

Then edited manually the two pages that showed errors in the installation, if I remember were Load.php & Post.php, following 1.1.6 parser info steps.

Now I tried again with updated 1.1.7 forum and following 1.1.7 parser steps and its working fine...

There were 3 lines of visualmod missed in the load.php after the edit (I thought I added all changes after the install but seems that I failed), so after add them now all works as should be.

one  on the fly question more? where can I edit and set in "Bold" font the warn status & messages.. I haven't started to search for it still :)
Title: Re: Visual Warning Mod
Post by: Jessikard on November 14, 2008, 06:32:09 PM
 :-[ is it possible to add another warning-step manually ?

i need one point before the normal warning saying: okay dear user.. once again and you get the normal warning

like yellow and red card

thx for answers Jessi
Title: Re: Visual Warning Mod
Post by: 1923 on November 16, 2008, 02:50:53 AM
Hello, i have installed this mod on Damage Theme, i have passe all the tests. i can see the Warning Management
Post Moderation Manager 

But i can see the '' warning button'' . What can i do ?
Title: Re: Visual Warning Mod
Post by: Jessikard on November 16, 2008, 03:49:44 AM
the "warning button" is in every posting near the edit or qoute
Title: Re: Visual Warning Mod
Post by: 1923 on November 16, 2008, 04:36:34 AM
Quote from: Jessikard on November 16, 2008, 03:49:44 AM
the "warning button" is in every posting near the edit or qoute

i can't see it. 
Title: Re: Visual Warning Mod
Post by: Jessikard on November 16, 2008, 06:33:26 AM
do you have a "warn.gif" in your "./Themes/default/images/buttons" (or especially your theme) ?
Title: Re: Visual Warning Mod
Post by: 1923 on November 16, 2008, 09:52:10 AM
Quote from: Jessikard on November 16, 2008, 06:33:26 AM
do you have a "warn.gif" in your "./Themes/default/images/buttons" (or especially your theme) ?

Yes. i have that.
Title: Re: Visual Warning Mod
Post by: Kimmie on November 19, 2008, 03:21:56 AM
Is there any way to add more than just the 4 warnings and make it so that admins can select a specific warning level from say like a drop down menu? Not every instance will warrant such harsh steps nor will they always require a post ban (such as the warning may not have anything to do with posting at all).
Title: Re: Visual Warning Mod
Post by: Eleglin on November 19, 2008, 12:40:03 PM
As I said previously (some pages before), I will not update this mod for SMF 2.0 and i will not add new features to it.
The new moderation features in SMF 2.0 are really great and so I don't think that this mod would be useful for 2.0.
Since SMF 2.0 will probably be gold in the next months and since I'm really busy, this mod seems to be feature-frozen as long as I'm the one who makes the updates.

Quoteis it possible to add another warning-step manually ?

i need one point before the normal warning saying: okay dear user.. once again and you get the normal warning

like yellow and red card
Is there any way to add more than just the 4 warnings and make it so that admins can select a specific warning level from say like a drop down menu? Not every instance will warrant such harsh steps nor will they always require a post ban (such as the warning may not have anything to do with posting at all).[/h][/h]
This would not be pertinent, since the 4 levels fits to the penalties you can give to the user : simple warning, post moderation, muted, banned. This is the purpose of this mod.
I really don't think it's useful to have a system which is not based upon penalties.

@1923 : Do you have installed manually the mod on your theme ? Do you have installed it on (all) your language files ?
Title: Re: Visual Warning Mod
Post by: Kimmie on November 19, 2008, 11:17:18 PM
Quote from: Eleglin on November 19, 2008, 12:40:03 PM
As I said previously (some pages before), I will not update this mod for SMF 2.0 and i will not add new features to it.
The new moderation features in SMF 2.0 are really great and so I don't think that this mod would be useful for 2.0.
Since SMF 2.0 will probably be gold in the next months and since I'm really busy, this mod seems to be feature-frozen as long as I'm the one who makes the updates.

Quoteis it possible to add another warning-step manually ?

i need one point before the normal warning saying: okay dear user.. once again and you get the normal warning

like yellow and red card
Is there any way to add more than just the 4 warnings and make it so that admins can select a specific warning level from say like a drop down menu? Not every instance will warrant such harsh steps nor will they always require a post ban (such as the warning may not have anything to do with posting at all).[/h][/h]
This would not be pertinent, since the 4 levels fits to the penalties you can give to the user : simple warning, post moderation, muted, banned. This is the purpose of this mod.
I really don't think it's useful to have a system which is not based upon penalties.

@1923 : Do you have installed manually the mod on your theme ? Do you have installed it on (all) your language files ?

I never said to change the system to where its not based on penalties..lol. If you have to warn someone, of course penalties are warranted. Just not "every" punishment needs to be a post ban on the 2nd warning. Depending on what they have done, that would be a bit harsh.  I think you misunderstood entirely what I was saying. What I meant was: Not every punishment needs to be solved by those 4 punishments and those 4 only. If I need to warn someone and it had nothing to do with a posting issue, then of course I would not want their 2nd penalty to be a post ban. I would take other action (depending on what the issue is). I guess what I am trying to explain to you is that not "every" chain of punishment should be in this format. Not everyone would do something harsh enough to deserve a post ban, etc.

My main question was: Can we add MORE levels of punishment, etc

I guess it would just be easier to make my own custom warning system, perhaps using the Custom Profile Field Mod, and make my own warning system that would be more in line with, and better suited for my needs/forum.


Oh and btw....How good the features are on SMF2 mean nothing to me because I dont use it..lol. In terms of whether or not "you" think this mod would benefit being used on 2.0, that really isnt for you to decide - its for the people who would be using it on 2.0 to decide.. I havent used 2.0 myself, but how do you know that the built in features of 2.0 are applicable to everyone using it?   I really dont thnk they would have asked you to update it for 2.0 if the one thats already on there was sufficient enough for them. I'm kinda thinkin thats why they asked you to update it...lol.
Title: Re: Visual Warning Mod
Post by: Eleglin on November 20, 2008, 05:16:19 AM
Ok. I think I understand. But as you could imagine, a really customizable warning system could touch a lot of features in SMF. For example, if you want to restrain some access or features, the mod should modify the access rights or the group of your user.
If another one feels that he can do it, I think it could be a good think (because a more flexible system is always suitable) but not really essential and apparently not really simple to do. So if you want to add more levels of punishment in this mod, you need to modify more functions (so you need to understand and control these functions) and it will give you a gas-works.
I'm not a master jedi, so I can't do it. But you could always do your own system. The wangling can help you : if you add some groups with different access-rights, you can use it to punish manually the deviants. It could be complementary with the visual warning system, which is more adapted to restrain post-rights and inform your moderator instantly for these post-limitations. This is how I see the problem.


For 2.0 :
If I don't want to update this mod for 2.0, that's because the new warning system seems to be really flexible and customizable. And it adds premoderation, which some people (especially french admins on french support) has asked me before. :p
I'm not use SMF 2.0 on a developpment forum (for the moment), only for test purpose, and I think that this mod will be obsolete when 2.0 will be gold.
Grudge was the original author of this mod and is now a developper for SMF 2.0. So I'm confident : he will (or have) done a better system than this one.

I updated this mod before because I needed it for SMF 1.1. I don't see the benefits of an update of this mod for 2.0. But if someone wants to update it for SMF 2.0, of course I will let him to do and publish it (if the cuztomisation team is ok).
Title: Re: Visual Warning Mod
Post by: 1923 on November 20, 2008, 09:42:56 AM
No,not manually. Only ENGLISH.
Title: Re: Visual Warning Mod
Post by: Eleglin on November 20, 2008, 10:59:05 AM
This mod will not install magically on other themes than defaut.
if you don't install it manually, you will see nothing. :p

Please refer to the link for manual installation of this mod. I gave it on the first page of this thread (cf F.A.Q.)
Title: Re: Visual Warning Mod
Post by: Kamo on November 24, 2008, 08:38:45 AM
So i guess my problem  (http://www.simplemachines.org/community/index.php?topic=186021.msg1753258#msg1753258) will not be solved ?
Title: Re: Visual Warning Mod
Post by: Eleglin on November 24, 2008, 03:34:44 PM
Quote from: Kamo on October 15, 2008, 11:39:00 AM
Hello
I have looked over this topic and missed this issue.
Smf 1.1.6 with custom theme. VW mod 1.42

Working great with one glitch. Post moderation is not working.  When someone is moderated his post lands in post moderation center. I can approve it or delete it. Well the thing is  both buttons delete the message :/

What can be wrong ?
I have re-test the postmoderation. When you approve a message, the message is sent to the good thread and it is readable. But I can see a problem : this new message doesn't appear as new in the topic list.

If I can improve it, I'll try to do it. But i'm not sure that I can do it quickly.

if you are sure that you can't find the message that you have approved anywhere, you should verify the installation. If the installation is correct, I'm sure that it should appear in the thread, after you approve it.
Title: Re: Visual Warning Mod
Post by: Paracelsus on November 24, 2008, 04:01:55 PM
Quote from: Eleglin on November 24, 2008, 03:34:44 PM
I have re-test the postmoderation. When you approve a message, the message is sent to the good thread and it is readable. But I can see a problem : this new message doesn't appear as new in the topic list.

I reckon the bug you're talking about, it happens to me the whole time... apart from this, I've detected only temporary bugs (and very small ones).
Title: Re: Visual Warning Mod
Post by: Kamo on November 25, 2008, 02:23:17 AM
Quote from: Eleglin on November 24, 2008, 03:34:44 PM
Quote from: Kamo on October 15, 2008, 11:39:00 AM
Hello
I have looked over this topic and missed this issue.
Smf 1.1.6 with custom theme. VW mod 1.42

Working great with one glitch. Post moderation is not working.  When someone is moderated his post lands in post moderation center. I can approve it or delete it. Well the thing is  both buttons delete the message :/

What can be wrong ?
I have re-test the postmoderation. When you approve a message, the message is sent to the good thread and it is readable. But I can see a problem : this new message doesn't appear as new in the topic list.

If I can improve it, I'll try to do it. But i'm not sure that I can do it quickly.

if you are sure that you can't find the message that you have approved anywhere, you should verify the installation. If the installation is correct, I'm sure that it should appear in the thread, after you approve it.

Ok thx. As we are using deafult theme now it should be quite easy. I'll get back to you when i'm done.


edit: ok reinstalled it and now it works but only in english. When i transalted it to polish it failed again.

Other bug beside  the one that You found is when i approve the post - it not only is not shown as new but is shown as mine.

For example if user tester is moderated and made a post i will go approve it and when i see topic list i see that last post is mine not his. When i enter the topic all is back to normal - his post is last.

Title: Re: Visual Warning Mod
Post by: Eleglin on November 25, 2008, 04:39:11 AM
Maybe an error of syntax on polish translation ?
Title: Re: Visual Warning Mod
Post by: katb on November 25, 2008, 02:02:59 PM
hi i am able to view the mod in smf default template but my custom template is not showing warn button and all when i tried to insert required codes manually to my custom template , i am not able to find some options on Display.template.php , i am attaching my Display.template.php here, can you please tell me what modifications i want to do
Title: Re: Visual Warning Mod
Post by: thaz on November 27, 2008, 07:26:50 AM
Hello guys. I tried to install the Mod, but I got following message:

The package you tried to upload either is not a valid package or has become corrupted.

So I copied it directly into the Packages Folder and I it appeared in the admin panel.
So I tried to install it and I got following error message:

Fatal error: packageinstall(): Failed opening required ...l/forum/Packages/temp/VisualWarningPdb.php' (include_path='.') in ...l/forum/Sources/Packages.php on line 552

Any Ideas? I have v1.1.4

Title: Re: Visual Warning Mod
Post by: Eleglin on November 27, 2008, 09:50:09 AM
I have test the two packages and I can't find any error.
You should re-download the mod.
Title: Re: Visual Warning Mod
Post by: thaz on November 27, 2008, 01:55:10 PM
Thank you very much for your help, I redownloaded it's displayed in the packages area.
Can someone tell me if I can install it?
Cause there are some warnings I dont understand:

Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Code    VisualWarningPdb.php    
2.    Execute Modification    VisualWarning_SMF11.mod    Modification parse error
3.    Extract File    ./Sources/VisualWarning11.php    
4.    Extract File    ./Themes/default/VisualWarning.template.php    
5.    Extract File    ./Themes/default/images/warnban.gif    
6.    Extract File    ./Themes/default/images/warnpmod.gif    
7.    Extract File    ./Themes/default/images/warnmute.gif    
8.    Extract File    ./Themes/default/images/warnwarn.gif    
9.    Extract File    ./Themes/default/images/members.gif    
10.    Extract File    ./Themes/default/images/buttons/warn.gif    
11.    Execute Modification    VisualWarning_languages.mod    Modification parse error

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Its the first package I'm installing by the way.

And another question: Do all files on the server who will be modified must be "writeable" (777) ?
Are there other things I need to care for to make a correct installation?

Thanks for your help!
Title: Re: Visual Warning Mod
Post by: Kamo on November 30, 2008, 10:49:43 AM
Quote from: Eleglin on November 25, 2008, 04:39:11 AM
Maybe an error of syntax on polish translation ?


Maybe but pls take a look at the bugs i found and posted.
Title: Re: Visual Warning Mod
Post by: jeremycollins on December 09, 2008, 10:38:44 PM
How can I install this on an SMF 1.1.7 with a different theme?  I have no clue where to start. 

Any help would greatly be appreciated!
Title: Re: Visual Warning Mod
Post by: CesarManara on December 23, 2008, 11:16:16 PM
When i install in SMF 1.1.7 the error msg is received.

7.     Execute Modification     ./Sources/Post.php     Modification parse error
3.     Execute Modification    ./Sources/ModSettings.php     Modification parse error

The mod can not execute the mods in these archives, how i will instal??

This is in the default template of SMF!
Title: Re: Visual Warning Mod
Post by: scenerip2k on January 16, 2009, 11:19:56 AM
any way to get this mod converted to smf 2.0 beta 4?
Title: Re: Visual Warning Mod
Post by: Rumbaar on January 16, 2009, 07:44:28 PM
Quote from: scenerip2k on January 16, 2009, 11:19:56 AM
any way to get this mod converted to smf 2.0 beta 4?
Why?  The warning system is a core feature of SMF 2.x now.
Title: Re: Visual Warning Mod
Post by: scenerip2k on January 18, 2009, 11:18:34 PM
Quote from: Rumbaar on January 16, 2009, 07:44:28 PM
Quote from: scenerip2k on January 16, 2009, 11:19:56 AM
any way to get this mod converted to smf 2.0 beta 4?
Why?  The warning system is a core feature of SMF 2.x now.

because the main one in the core cant ban the users it can only stop them from posting.
Title: Re: Visual Warning Mod
Post by: Rumbaar on January 18, 2009, 11:50:28 PM
That is what the 'ban' function is for :)
Title: Re: Visual Warning Mod
Post by: thebrownshow on January 22, 2009, 10:20:27 AM
I'm having a problem installing version 1.42 on SMF 1.1.7.  I receive a "Error in Package Installation" error.


7.     Execute Modification     ./Sources/Post.php     Test failed
12.     Execute Modification     ./Sources/ManagePermissions.php     Test failed


I'm not worried about these as we're an English forum:


24.     Execute Modification     ./Themes/default/languages/Modifications.french.php     Test failed
25.    Execute Modification    ./Themes/default/languages/Modifications.polish.php    File not found
26.    Execute Modification    ./Themes/default/languages/Modifications.turkish.php    File not found
27.    Execute Modification    ./Themes/default/languages/Modifications.croatian.php    File not found
28.    Execute Modification    ./Themes/default/languages/Modifications.danish.php    File not found
29.    Execute Modification    ./Themes/default/languages/Modifications.spanish.php    Test failed
30.    Execute Modification    ./Themes/default/languages/Modifications.portuguese.php    File not found
31.    Execute Modification    ./Themes/default/languages/Modifications.brazilian.php    File not found


Any ideas?
Title: Re: Visual Warning Mod
Post by: Rumbaar on January 22, 2009, 05:10:53 PM
Please search the forums and even this thread on how to deal with 'Test failed' errors on mod installations.  You'll have to manually input the code for those files.
Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402)
Title: Re: Visual Warning Mod
Post by: thebrownshow on January 22, 2009, 10:10:55 PM
Quote from: Rumbaar on January 22, 2009, 05:10:53 PM
Please search the forums and even this thread on how to deal with 'Test failed' errors on mod installations.  You'll have to manually input the code for those files.
Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402)


I searched this thread before posting and, of course, I certainly understand that I could install it manually.  I just thought that perhaps, since this says it's compatible with 1.1.7, that there may have been an issue I could help debug as far as the auto-installation was concerned.
Title: Re: Visual Warning Mod
Post by: Rumbaar on January 22, 2009, 11:20:51 PM
Have you installed any mods before this?  If so a previous mod has altered code to mean it can't be automatically installed via the Package Manager, and if the case is no indication of it's incompatibility with the 1.1.7 version of SMF.
Title: Re: Visual Warning Mod
Post by: RKen on February 03, 2009, 12:08:17 PM
hi there im from Argentina so i apologize if my english its not good.

Well, i have installed the mod manually cause the package dont work to me, my problem its that i cant config the mod in options, y click in the link on admin>featuresettings>visualwarning but it redirect to me to basic options. Can you help me. Tnx
Title: Re: Visual Warning Mod
Post by: Rumbaar on February 03, 2009, 04:43:29 PM
Are you 100% sure you've correct installed all code manually into all applicable files?  Have you also translated and installed all applicable $txt[] strings into your forums language files?

How come the Package Manager install didn't work for you?  If it returned errors or something else this could be an indicator your SMF version isn't compatible.  What version are you running?
Title: Re: Visual Warning Mod
Post by: RKen on February 04, 2009, 06:28:49 PM
QuoteAre you 100% sure you've correct installed all code manually into all applicable files?  Have you also translated and installed all applicable $txt[] strings into your forums language files?

Yes im sure because im do the same thing twice for ensure, im apply all the mods manually and all works, the translations are traduced and installed in spanish_latin-utf8

QuoteHow come the Package Manager install didn't work for you?  If it returned errors or something else this could be an indicator your SMF version isn't compatible.  What version are you running?

I dont know maybe the host (?), before this forum i have installed another in the same host and the package managen doesnt work neither


What other files also upload in the smf directory? I upload only images, template and the file in sources, 2 and the images nothing more right? i guess a file its miss to upload, well if you can help me i apreciate that, tnx.

Sorry for my english



Edit:
I can use the mod but i cant configure it in Administration panel.
Title: Re: Visual Warning Mod
Post by: Rumbaar on February 04, 2009, 07:27:29 PM
Did you manually run the queries found in the VisualWarningPdb.php file?
Title: Re: Visual Warning Mod
Post by: RKen on February 05, 2009, 11:02:48 PM
QuoteDid you manually run the queries found in the VisualWarningPdb.php file?

Yes i do, like the parser show to me:

VisualWarningPdb.php           This file should not be able to execute standalone. You may have to run the following queries manually.
      
Code (Query) Select
INSERT IGNORE INTO {$db_prefix}settings
(`variable`, `value`)
VALUES ('$key', '$value')
      
Code (Query) Select
CREATE TABLE IF NOT EXISTS {$db_prefix}postmoderation
(ID INT(11) NOT NULL AUTO_INCREMENT,
ID_TOPIC INT(11),
ID_BOARD INT(11),
ID_MEMBER INT(11) NOT NULL DEFAULT '0',
subject TINYTEXT,
posterName TINYTEXT,
posterEmail TINYTEXT,
posterTime BIGINT(20),
posterIP TINYTEXT NOT NULL,
smiliesEnabled TINYINT(4) NOT NULL DEFAULT '1',
body TEXT, icon TINYTEXT,
ID_POLL INT(11) DEFAULT '-1',
PRIMARY KEY (ID)) TYPE = MYISAM COMMENT = 'Visual Warning Post Moderation'
      
Code (Query) Select
[pre]SHOW TABLES LIKE '{$db_prefix}vwarnings'[/pre]       
Code (Query) Select
CREATE TABLE IF NOT EXISTS {$db_prefix}vwarnings
(ID INT(11) NOT NULL AUTO_INCREMENT,
memberID INT(11) NOT NULL,
MessageID INT(11) NOT NULL,
warningText TEXT  NOT NULL,
time INT(11) DEFAULT '0' NOT NULL,
level INT(3) NOT NULL,
timeToWarn INT(3) DEFAULT '-1',
PRIMARY KEY (ID)) TYPE = MYISAM COMMENT = 'Visual Warning Table'
      
Code (Query) Select
ALTER TABLE {$db_prefix}members
ADD warning INT
      
Code (Query) Select
SHOW COLUMNS
FROM {$db_prefix}vwarnings
LIKE 'ID'
      
Code (Query) Select
ALTER TABLE {$db_prefix}vwarnings
ADD TimeToWarn INT(3) DEFAULT '-1'


Obiously changing the "{$db_prefix}" to my smf prefix
   
Title: Re: Visual Warning Mod
Post by: Rumbaar on February 05, 2009, 11:40:37 PM
The tables and fields are present in your db?

Please attach your ModSettings.php & Modifications.spanish_latin-utf8.php files, and I'll take a look.
Title: Re: Visual Warning Mod
Post by: RKen on February 06, 2009, 11:50:52 AM
QuoteThe tables and fields are present in your db?

Yes

Attached Files Below :D
Title: Re: Visual Warning Mod
Post by: perplexed on February 06, 2009, 01:38:46 PM
hi there

is it possible to put all new members straight into post moderation category?  I would rather do this than have to wait for them to post.  I realise there is something like this for 2.0, but I am using 1.1.8 and would like to do this if possible.

thanks
Title: Re: Visual Warning Mod
Post by: Rumbaar on February 06, 2009, 05:56:53 PM
@RKen, okay they look correct.  I forgot to ask for the index.php file, to check if they are in the action array.  When it says index.php you put it into the forums base index.php and not the themes index.php?
Title: Re: Visual Warning Mod
Post by: RKen on February 06, 2009, 06:29:57 PM
Quote from: Rumbaar on February 06, 2009, 05:56:53 PM
@RKen, okay they look correct.  I forgot to ask for the index.php file, to check if they are in the action array.  When it says index.php you put it into the forums base index.php and not the themes index.php?
Yes of course, the index.php in template its a file that redirect me to root (im correct?), so i modify the file in root, index.php no from the template. If you dont know my problem plz can do to me a querie that delete the queries executed from this mod? so i do a clean unistall :D, a lot of tnx for answer me! :D
Title: Re: Visual Warning Mod
Post by: Rumbaar on February 06, 2009, 06:42:12 PM
For this part of your SQL code did you actually set the values to the settings table?

// Insert the settings.
foreach ($toSet as $key => $value)
db_query("
INSERT IGNORE INTO {$db_prefix}settings
(`variable`, `value`)
VALUES ('$key', '$value')", __FILE__, __LINE__);


$toSet = array();
// This is in all installations
$toSet['visualw_pmod_edit'] = 0;
$toSet['visualw_hide'] = 0;
$toSet['visualw_color_pmod'] = 'yellow';
$toSet['visualw_image_pmod'] = 'warnpmod.gif';
$toSet['visualw_mess_pmod'] = 'This User Has Now Had Their Posts Moderated';
$toSet['moderationAutoTime'] = 7;
$toSet['muteAutoTime'] = 7;
$toSet['warningAutoTime'] = 3;
$toSet['autoWarningTime'] = 0;
$toSet['visualw_color_warn'] = 'green';
$toSet['visualw_image_warn'] = 'warnwarn.gif';
$toSet['visualw_mess_warn'] = 'This User Has Received An Official Warning';
$toSet['visualw_color_mute'] = 'orange';
$toSet['visualw_image_mute'] = 'warnmute.gif';
$toSet['visualw_mess_mute'] = 'This User Has Been Muted';
$toSet['visualw_color_ban'] = 'red';
$toSet['visualw_image_ban'] = 'warnban.gif';
$toSet['visualw_mess_ban'] = 'This User Has Been Banned';


You can just dump tables and remove inserted fields.
Title: Re: Visual Warning Mod
Post by: perplexed on February 08, 2009, 11:51:29 AM
Quote from: quiteperplexed on February 06, 2009, 01:38:46 PM
hi there

is it possible to put all new members straight into post moderation category?  I would rather do this than have to wait for them to post.  I realise there is something like this for 2.0, but I am using 1.1.8 and would like to do this if possible.

thanks

anyone?  thanks
Title: Re: Visual Warning Mod
Post by: Eleglin on February 10, 2009, 11:56:39 AM
Quote from: quiteperplexed on February 06, 2009, 01:38:46 PM
hi there

is it possible to put all new members straight into post moderation category?  I would rather do this than have to wait for them to post.  I realise there is something like this for 2.0, but I am using 1.1.8 and would like to do this if possible.

thanks
I won't add any new features to this mod, since 2.0 is now at a release candidate stage and has pretty good features for premoderation and postmoderation. :)
Update for 2.0 when you (and smf) will be ready. ;)
Title: Re: Visual Warning Mod
Post by: karanima on February 15, 2009, 10:45:09 AM
mode was established
The members requested confirmation that the message is not displayed....

>>>>>>You Are Currently Under Post Moderation - Your Post Will Appear After Approva
Title: Re: Visual Warning Mod
Post by: perplexed on February 15, 2009, 02:18:08 PM
Quote from: Eleglin on February 10, 2009, 11:56:39 AM
Quote from: quiteperplexed on February 06, 2009, 01:38:46 PM
hi there

is it possible to put all new members straight into post moderation category?  I would rather do this than have to wait for them to post.  I realise there is something like this for 2.0, but I am using 1.1.8 and would like to do this if possible.

thanks
I won't add any new features to this mod, since 2.0 is now at a release candidate stage and has pretty good features for premoderation and postmoderation. :)
Update for 2.0 when you (and smf) will be ready. ;)

thank you.  I will think of a workaround until then :)
Title: Re: Visual Warning Mod
Post by: Luten on February 20, 2009, 03:42:05 PM
I've got some problem. When I try to accept post in Post Moderation Manager, a post don't show.
Title: Re: Visual Warning Mod
Post by: HR on February 27, 2009, 08:27:44 PM
I'd like confirmation and if it is in fact the case a suggestion for prevention..

IF a member is sited for moderation can that member in fact edit or remove a post pre-moderation?

My assumption is yes if permissions are set to allow member edit or delete of topics that moderation is not a factor if the posts are his/her own.
Title: Re: Visual Warning Mod
Post by: [email protected] on March 20, 2009, 02:07:58 AM
hi, i am interested in give the permission of level 4 to my Global mods because i know thats just admins can put level 4, but i want to give them that permission in the warning mod because they can ban in the admin panel but when they want to put level 4 in waning mod appears the meesage "you cannot administrate this forum" or something, so how can i modifie that and give them that option 4?

thanks in advance.
Title: Re: Visual Warning Mod
Post by: larry008 on April 04, 2009, 01:33:43 AM
Hi

Asks about this Mod

http://custom.simplemachines.org/mods/index.php?mod=878

If a warning is pronounced, one can enter the duration in the field in addition.

Where can I see as an Admin or user when the warning runs off (Date or Time /both?)? In the ACP no tip is to be found and also not if the user gets a PN?

thx
Title: Re: Visual Warning Mod
Post by: alexandervba on April 06, 2009, 04:46:16 PM
Question:

Ive given a membergroup permission to:

Give warnings and perform post moderation


Warn users
Approve posts


I gave the membergroup both permissions. Now he is able to warn a user, but where does that membergroup find some kind of menu to approve posts? Since the membergroup doesnt have admin cp? Where can he find this option?

Thx.
Title: Re: Visual Warning Mod
Post by: alexandervba on April 09, 2009, 07:47:19 AM
help any1?
Title: Re: Visual Warning Mod
Post by: larry008 on April 10, 2009, 08:53:04 AM
no help???

Quote from: larry008 on April 04, 2009, 01:33:43 AM
Hi

Asks about this Mod

http://custom.simplemachines.org/mods/index.php?mod=878

If a warning is pronounced, one can enter the duration in the field in addition.

Where can I see as an Admin or user when the warning runs off (Date or Time /both?)? In the ACP no tip is to be found and also not if the user gets a PN?

thx
Title: Re: Visual Warning Mod
Post by: 24byt on April 15, 2009, 07:04:13 AM
Hi, can someone please tell me why on some themes this mod works and on some doesn't ? It doesn't displays the warn button.. it works only if I add in images>buttons the warn.gif file ( on some themes ). But sometimes it doesn't. Why ?

On my forum I have 2 themes Black45 and Scribbles (http://custom.simplemachines.org/themes/index.php?lemma=247) that I use. Both of them have the warn button inside but only on Black45 displays it..
Can someone help ?
Title: Re: Visual Warning Mod
Post by: alexandervba on April 15, 2009, 05:53:59 PM
Quote from: 24byt on April 15, 2009, 07:04:13 AM
Hi, can someone please tell me why on some themes this mod works and on some doesn't ? It doesn't displays the warn button.. it works only if I add in images>buttons the warn.gif file ( on some themes ). But sometimes it doesn't. Why ?

On my forum I have 2 themes Black45 and Scribbles (http://custom.simplemachines.org/themes/index.php?lemma=247) that I use. Both of them have the warn button inside but only on Black45 displays it..
Can someone help ?

The owners of this mod dont really reply ^^ So Im gonna tell u.

Ive had the same problem. All u gotta do is go to ur FTP, copy the following files (COPY, DONT CUT, eg: make sure the original files stay in here too):

/themes/default/images/buttons/warn.gif
/themes/default/images/warnban.gif
/themes/default/images/warnmute.gif
/themes/default/images/warnpmod.gif
/themes/default/images/warnwarn.gif

Paste them here (so the locations would become):

/themes/YOURTHEMENAME/images/buttons/warn.gif
/themes/YOURTHEMENAME/images/warnban.gif
/themes/YOURTHEMENAME/images/warnmute.gif
/themes/YOURTHEMENAME/images/warnpmod.gif
/themes/YOURTHEMENAME/images/warnwarn.gif
Title: Re: Visual Warning Mod
Post by: Eleglin on April 19, 2009, 06:05:56 AM
Many problems can be solved if people read the FAQ on the first page of the topic. Not all the problèms, of course, but a good proportion of them.

QuoteF.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 (http://docs.simplemachines.org/index.php?topic=402.msg2530#msg2530).

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 (http://docs.simplemachines.org/index.php?topic=402.msg2530#msg2530).
If your server is safe_mode on, please refer to Eldacar's method to getting around the safe mode problem (http://index.php?topic=28393.msg354086#msg354086)

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.
Title: Re: Visual Warning Mod
Post by: NHWD on April 20, 2009, 03:00:41 AM
after i installed this mod i tried to access features and options and it went blank everything else worker but features and options im using a custom theme and i edited the files that needed to be edited
Title: Re: Visual Warning Mod
Post by: Eleglin on April 20, 2009, 03:38:26 AM
You should verify that you have well edited all the files and added the required files.
Probability of 99.9% that there is a problem with the procedure of installation (something you have forgotten ?)
Title: Re: Visual Warning Mod
Post by: alexandervba on April 20, 2009, 07:44:17 PM
Can you tell me why some of my membergroups cant see the links in admin cp to view warnings & post moderation?

Ive just found out. I created a membergroup with access to the banlist + permission to warn + permission to approve post. They cannot see the links in admin cp. All they see is this:

(http://88.198.48.13/foe/prob1.PNG)

Now, Ive found out that if I give this membergroup the following permission: "Member administration, Moderate forum members". Then they can see the following:

(http://88.198.48.13/foe/prob2.PNG)

So to test some stuff, I had removed the permission "Moderate forum members" again, and I manually navigated to this link: "FORUMS/index.php?action=warnlist". It worked fine... Its a bit annoying its not in that list tho... So the permission is allowed, it just doesnt show up in the table unless I approve the membergroup with "Moderate forum members" and Im not willing to do so.

Do you have a fix please? Thx a lot!
Title: Re: Visual Warning Mod
Post by: higherauthority on April 22, 2009, 01:05:25 AM
Will this work with 1.1.8?     or is it just a manual install for 1.1.8
Title: Re: Visual Warning Mod
Post by: Eleglin on April 22, 2009, 03:52:57 AM
It works
Title: Re: Visual Warning Mod
Post by: alexandervba on April 22, 2009, 12:11:49 PM
eleglin, can u help me too pls?
Title: Re: Visual Warning Mod
Post by: Eleglin on April 22, 2009, 02:03:07 PM
Quote from: alexandervba on April 22, 2009, 12:11:49 PM
eleglin, can u help me too pls?
There may be an error somewhere in the mod. Unfortunately, I can't spend time to do test and to search for a fix (because I'm busy IRL)... or not before this summer.
Although, if someone find a fix and is ok for adding it to this mod, I would edit the package. And if a serious member wish to contribute to this mod for a "long time", he could contact me and I will look how we could do this.
Title: Re: Visual Warning Mod
Post by: alexandervba on April 22, 2009, 05:46:03 PM
ok, thank u, unfortunately, i am not that experienced with coding...
Title: Re: Visual Warning Mod
Post by: ilsindaco on April 29, 2009, 09:41:37 AM
Hello, I want to know if it is correct the following behavior of visual warning mod. Practically after a tot of time, the level warning falls (e.g. from 3 to 2). It is a bug or is wanted?

thanx
Title: Re: Visual Warning Mod
Post by: MIAUS on May 03, 2009, 05:40:40 PM
German Translation:

$txt['visual_warning_mod']='Verwarnungs-Modifikation';
$txt['visualw_mess_ban']='Nachricht, die gebannten Mitgliedern angezeigt wird';
$txt['visualw_mess_mute']='Nachricht, die stummgeschalteten Mitgliedern angezeigt wird';
$txt['visualw_mess_pmod']='Nachricht, die Mitgliedern angezeigt wird deren Beiträge freigeschaltet werden müssen';
$txt['visualw_mess_warn']='Nachricht, die verwarnten Mitgliedern angezeigt wird';
$txt['visualw_color_ban']='Nachrichtenfarbe für gebannte Mitglieder';
$txt['visualw_color_mute']='Nachrichtenfarbe für stummgeschaltete Mitglieder';
$txt['visualw_color_pmod']='Nachrichtenfarbe für Mitglieder, deren Beiträge freigeschaltet werden müssen';
$txt['visualw_color_warn']='Nachrichtenfarbe für verwarnte Mitglieder';
$txt['visualw_image_ban']='Bild bei Bann';
$txt['visualw_image_mute']='Bild bei Stummschaltung';
$txt['visualw_image_pmod']='Bild bei Beitragsfreischaltung';
$txt['visualw_image_warn']='Bild bei Verwarnung';
$txt['warningAutoTime']='Standard Zeitspanne bevor Verwarnung verfällt (Tage):';
$txt['moderationAutoTime']='Standard Zeitspanne bevor Beitragsfreischaltung verfällt (Tage):';
$txt['muteAutoTime']='Standard Zeitspanne bevor Stummschaltung verfällt (Tage):';
$txt['visualw_pmod_edit']='Mitglieder mit Beitragsfreischaltung dürfen Nachrichten editieren:';
$txt['visualw_hide']='Verwarnungen sind nur für Mitglieder sichtbar, die auch verwarnen können:';
$txt['visual_require_mod'] = 'Nachrichten müssen freigeschaltet werden';
$txt['visual_raise']='Warnlevel steigern';
$txt['visual_no_perm']='Du hast nicht die erforderliche Berechtigung um Warnlevel zu steigern';
$txt['visual_no_warnings']='Mitglied hat KEINE Verwarnungen!';
$txt['visual_prev_warning']='Details vorhergegangener Verwarnungen';
$txt['visual_current_level']='Aktuelles Warnlevel:';
$txt['visual_topic_raised']='Betreffendes Thema:';
$txt['visual_time_raised']='Betroffene Zeit:';
$txt['visual_reason_raised']='Grund für Steigerung:';
$txt['visual_level_details']='Details für neues Level';
$txt['visual_submit']='Abschicken';
$txt['visual_new_level']='Neues Level:';
$txt['visual_warning_management']='Verwarn-Verwaltung';
$txt['visual_list_desc']='Listet alle Mitglieder auf, die eine Verwarnung haben. Gebannte Mitglieder werden nicht mit aufgeführt. Hier kann man mehrere Mitglieder auf einmal bearbeiten oder bei Klick auf ein einzelnes Mitglied die Warnlevel individuell anpassen.';
$txt['visual_member']='Mitglied';
$txt['visual_level']='Level';
$txt['visual_reason']='Grund';
$txt['visual_when']='Wann';
$txt['visual_text_warn']='Verwarnt';
$txt['visual_warn']='Verwarnen';
$txt['visual_perm_modify']='Du hast keine Berechtigung diese Nachricht zu bearbeiten';
$txt['visual_official_warning']='Du hast eine Verwarnung erhalten';
$txt['visual_received_warning']='Du hast eine Verwarnung wegen eines Regelverstoßes erhalten. Bitte klicke auf den Link für weitere Infos, wie du die Verwarnung entfernen kannst:';
$txt['visual_been_muted']='Du wurdest stummgeschaltet und kannst keine Beiträge mehr verfassen';
$txt['visual_no_karma']='Während du verwarnt bist, kannst du kein Karma verteilen';
$txt['visual_stages']='(0=Nichts, 1=Verwarnt, 2=Moderiert, 3=Stummgeschaltet 4=Gesperrt)';
$txt['visual_text_pmod']='Moderiert';
$txt['visual_text_mute']='Stummgeschaltet';
$txt['visual_text_ban']='Gesperrt';
$txt['visual_none']='Nichts';
$txt['visual_warning_increased']='Deine Verwarnstufe wurde leider erhöht.';
$txt['visual_warning_reduced']='Super! Wir freuen uns. Deine Verwarnstufe wurde verringert.';
$txt['visual_reduced']='Verwarnstufe verringert';
$txt['visual_lasts']='Zeit, die die Verwarnung gültig ist (Leer=Standard)';
$txt['visual_postmod_manager']='Freischaltung von Nachrichten';
$txt['visual_postmod_user_under']='Alle Beiträge dieses Users müssen zuerst von einer Moderatorin freigegeben werden.';
$txt['visual_postmod_under']='Deine Beiträge werden gerade moderiert, d.h. ein Moderator muss sie erst freigeben, bevor sie im Forum erscheinen';
$txt['visual_postmod_not']='Die Beiträge dieses Mitglieds werden nicht moderiert';
$txt['visual_postmod_is']='Die Beiträge dieses Mitglieds werden moderiert, d.h. ein Moderator muss sie erst freigeben, bevor sie im Forum erscheinen';
$txt['visual_postmod_change']='Status des Mitglieds ändern';
$txt['visual_postmod']='Freischaltung von Nachrichten';
$txt['visual_postmod_auth']='Du darfst das nicht!';
$txt['visual_postmod_appear']='Dein Beitrag muss von einer Moderatorin freigegeben werden, bevor er im Forum erscheint';
$txt['visual_postmod_awaiting']='Hier sind alle Nachrichten, die auf Freischaltung warten. Um einen oder mehrere Beiträge freizugeben, diese einfach anhaken und dann auf "Freigeben" klicken. Um Beiträge zu löschen, diese markieren und auf "Löschen" klicken';
$txt['visual_postmod_username']='Mitgliedsname';
$txt['visual_postmod_subject']='Thema/Nachricht';
$txt['visual_postmod_approve']='Freigeben';
$txt['visual_postmod_delete']='Löschen';
$txt['permissiongroup_visual_warn']='Verwarnungen erteilen und Nachrichten moderieren';
$txt['permissionname_visual_warn_any']='Mitglied verwarnen';
$txt['permissionname_visual_approve_any']='Nachrichten freigeben';
Title: Re: Visual Warning Mod
Post by: alexandervba on May 04, 2009, 06:40:52 AM
Btw, I fixed that bug, it wasnt even that hard afterall, if you want to edit it for other users:

in subs.php:

Find:

if (allowedTo('moderate_forum'))
{
$context['admin_areas']['members']['areas']['view_members'] = '<a href="' . $scripturl . '?action=viewmembers">' . $txt[5] . '</a>';
$context['admin_areas']['members']['areas']['warning_manager'] = '<a href="' . $scripturl . '?action=warnlist">' . $txt['visual_warning_management'] . '</a>';
$context['admin_areas']['members']['areas']['postmod_manager'] = '<a href="' . $scripturl . '?action=warnpmman">' . $txt['visual_postmod_manager'] . '</a>';
}


Replace By:

if (allowedTo('moderate_forum'))
{
$context['admin_areas']['members']['areas']['view_members'] = '<a href="' . $scripturl . '?action=viewmembers">' . $txt[5] . '</a>';
}

if (allowedTo('visual_warn_any'))
{
$context['admin_areas']['members']['areas']['warning_manager'] = '<a href="' . $scripturl . '?action=warnlist">' . $txt['visual_warning_management'] . '</a>';
}

if (allowedTo('visual_approve_any'))
{
$context['admin_areas']['members']['areas']['postmod_manager'] = '<a href="' . $scripturl . '?action=warnpmman">' . $txt['visual_postmod_manager'] . '</a>';
}
Title: Re: Visual Warning Mod
Post by: Eleglin on May 04, 2009, 12:15:16 PM
Thanks MIAUS and AlexanderVBA.
@Miaus : Thx, I'll try to edit this mod quickly for this translation.
@AlexanderVBA : ThX, I'll test your fix in the next few weeks on a clean installation, and I'll add it after. Thx for your work.
I'm sorry, but I'm really busy until June/July. :(
Title: Re: Visual Warning Mod
Post by: MIAUS on May 04, 2009, 09:18:24 PM
No hurry :)

I have another problem: using smf 1.1.8: If I downgrade the warning level from 4 (ban) to 0 (nothing) the user will still be banned - is this intended? I have to modify the ban manually to "unban" the user.
Title: Re: Visual Warning Mod
Post by: Eleglin on May 06, 2009, 11:11:11 AM
QuoteI have another problem: using smf 1.1.8: If I downgrade the warning level from 4 (ban) to 0 (nothing) the user will still be banned - is this intended? I have to modify the ban manually to "unban" the user.
I suppose it was intented. When you give the level 4 to an user, it creates a ban with the classic feature of SMF. But when you reduce the level, He's still banned. I suppose this mod was not created for ban/unban..
Title: Re: Visual Warning Mod
Post by: kizko on May 16, 2009, 04:52:26 AM
Should i instal this even i have these errors ?


24.     Execute Modification     ./Themes/default/languages/Modifications.french.php     File not found
25.    Execute Modification    ./Themes/default/languages/Modifications.polish.php    File not found
26.    Execute Modification    ./Themes/default/languages/Modifications.turkish.php    File not found
27.    Execute Modification    ./Themes/default/languages/Modifications.croatian.php    File not found
28.    Execute Modification    ./Themes/default/languages/Modifications.danish.php    File not found
29.    Execute Modification    ./Themes/default/languages/Modifications.spanish.php    File not found
30.    Execute Modification    ./Themes/default/languages/Modifications.portuguese.php    File not found
31.    Execute Modification    ./Themes/default/languages/Modifications.brazilian.php    File not found
Title: Re: Visual Warning Mod
Post by: Sabre™ on May 16, 2009, 04:58:31 AM
Im assuming you do not use those languages, so your answer is Yes.
It will have no impact on your site
Title: Re: Visual Warning Mod
Post by: kizko on May 16, 2009, 05:36:43 AM
Quote512: parseBoardMod(): The filename 'index.php' is not a full path!
File: /home/httpd/vhosts/psp-fanatik.ro/subdomains/forum/httpdocs/Sources/Subs-Package.php
Line: 1660
Title: Re: Visual Warning Mod
Post by: kizko on May 27, 2009, 02:56:56 PM
How can i stop display the warn in users profile ?

Title: Re: Visual Warning Mod
Post by: InfoVísion on June 08, 2009, 06:17:31 PM
Olá amigo.
Está de parabéns pelo sucesso do seu programa.
No entanto estou com problema, que são sei como resolver:

Use the MOD VisualWarning. This only works with the theme "Default" if I use any other issue the "Warning" is not available.
Title: Re: Visual Warning Mod
Post by: Kindred on June 08, 2009, 06:28:54 PM
kizco,   modify profile.template.php

infoVision... as per ANY mod on the 1.1.x series, you will have to manually edit your alternate theme files.
Title: Re: Visual Warning Mod
Post by: erdem86 on June 21, 2009, 04:00:12 PM
After 1.1.9 my mod has started not to remove any warnings after specified number of days. I have to do it manually.

Does anybody else had this problem after 1.1.9 or is it me?
Title: Re: Visual Warning Mod
Post by: vortodox on June 25, 2009, 07:06:07 PM
Quote from: erdem86 on June 21, 2009, 04:00:12 PM
After 1.1.9 my mod has started not to remove any warnings after specified number of days. I have to do it manually.

Does anybody else had this problem after 1.1.9 or is it me?

Silmiral problem, but only with bans.
Title: Re: Visual Warning Mod
Post by: Pinball Wizard on June 25, 2009, 11:27:37 PM
Quote from: Rumbaar on February 04, 2009, 07:27:29 PM
Did you manually run the queries found in the VisualWarningPdb.php file?

Hi Rumbaar.

Look, I'm having the exact same problems as our fellow member RKen had with "Visual Warning Mod". I too changed manually every file that had to be changed, acording to the guide lines of the mod's manual installation, as well as the changed needed on VisualWarningPdb.php. But I still can't access the mod's configuration page...

I noticed one thing, though. At the readme file, it says:

"Legacy Instructions (manual installation):
1) Upload:
      VisualWarning.php to Sources"

But I don't have such file(VisualWarning.php) on the mod package I downloaded...does it have something to do with it, or not?

I'm looking forward for your reply, and I hope I'm not bothering you!
Title: Re: Visual Warning Mod
Post by: kizko on June 26, 2009, 06:07:25 AM
Quote from: Kindred on June 08, 2009, 06:28:54 PM
kizco,   modify profile.template.php

infoVision... as per ANY mod on the 1.1.x series, you will have to manually edit your alternate theme files.

What part to modifz _ i trzed, but no succeded.
Title: Re: Visual Warning Mod
Post by: franklinrony on July 05, 2009, 06:44:26 PM
can tellme please how to add parse_bbc function to pm when warning a user, is here?
// Send user warning IM
   if($member['warning'] != $_REQUEST['level']){
      $imsubject = $member['warning'] > $_REQUEST['level'] ? $txt['visual_reduced'] : $txt['visual_official_warning'];
      $immessage = $member['memberName'] . "\n\n";
      if($member['warning'] < $_REQUEST['level']){
         if ($_REQUEST['msg'] != -1 && $_REQUEST['topic'] != -1)
            $immessage .= $txt['visual_received_warning'] .
               "\n\n $scripturl?topic=$_REQUEST[topic].msg$_REQUEST[msg]#msg$_REQUEST[msg]";
         else
            $immessage .= $txt['visual_warning_increased'];
      }
      else
Title: Re: Visual Warning Mod
Post by: franklinrony on July 11, 2009, 07:52:04 PM
bump
Title: Re: Visual Warning Mod
Post by: uncajesse on July 17, 2009, 02:06:16 AM
I tweaked this to install on SMF v1.1.10, and removed the old ".mod" methods because they can't do regular expressions or (show that they are going to) skip non-existent files.

You must uninstall your old Visual Warning Mod before installing this one, as is the usual because this package doesn't support upgrades.  You won't lose any of your warning data.

This is just an update from v1.42, none of the issues with it's functionality have been addressed, but this should install on all v1.1.10.  Let me know if it doesn't, and attach your files that it fails on, and I'll fix em.

I may eventually fix the bug of the bans not timing out, if that really is a problem.  I haven't looked into it yet.  Anyways, enjoy.
Title: Re: Visual Warning Mod
Post by: Kindred on July 17, 2009, 08:52:55 AM
if you are re-releasing a mod from someone else
1- get permission from the original author (if he/she is still around)
2- submit the mod to the mod site so that it can be reviewed by the mod team for coding practices and security.

Title: Re: Visual Warning Mod
Post by: Pinball Wizard on July 24, 2009, 09:31:27 PM
Quote from: Pinball Wizard on June 25, 2009, 11:27:37 PM
Quote from: Rumbaar on February 04, 2009, 07:27:29 PM
Did you manually run the queries found in the VisualWarningPdb.php file?

Hi Rumbaar.

Look, I'm having the exact same problems as our fellow member RKen had with "Visual Warning Mod". I too changed manually every file that had to be changed, acording to the guide lines of the mod's manual installation, as well as the changed needed on VisualWarningPdb.php. But I still can't access the mod's configuration page...

I noticed one thing, though. At the readme file, it says:

"Legacy Instructions (manual installation):
1) Upload:
      VisualWarning.php to Sources"

But I don't have such file(VisualWarning.php) on the mod package I downloaded...does it have something to do with it, or not?

I'm looking forward for your reply, and I hope I'm not bothering you!

Anyone?

Could someone at least tell me if it's safe to uninstall this mod even if it wasn't installed properly(apparently)?
Title: Re: Visual Warning Mod
Post by: uaFlash on July 25, 2009, 10:47:12 AM
v1.42 doesn't work on smf 1.1.10 :(
Title: Re: Visual Warning Mod
Post by: MaXiForum.cz on July 26, 2009, 06:15:34 AM
Modify your template.
No default template ;)
Title: Re: Visual Warning Mod
Post by: [A-US]James246 on August 01, 2009, 08:15:47 AM
Where do I go to edit the settings, warn users etc. etc.?
Title: Re: Visual Warning Mod
Post by: uaFlash on August 02, 2009, 11:11:39 AM
Quote from: MaxiPes on July 26, 2009, 06:15:34 AM
Modify your template.
No default template ;)
It Works, tnx ;)
Title: Re: Visual Warning Mod
Post by: uaFlash on August 06, 2009, 11:40:50 AM
How to allow moderators to warn users?
Title: Re: Visual Warning Mod
Post by: uncajesse on August 06, 2009, 10:23:21 PM
Quote from: uaFlash on August 06, 2009, 11:40:50 AM
How to allow moderators to warn users?

goto:
/index.php?action=permissions
(Admin --> (Left Nav) Members, Permissions)
then select the Moderator "group" checkbox, and:
(http://stashbox.org/592623/Manage-Permissions.png)
Set Permissions, and then they should be able to warn members.
Title: Re: Visual Warning Mod
Post by: noaccess on August 19, 2009, 06:31:55 PM
What exactly do I have to do to get this to work on SMF 1.1.10?
Title: Re: Visual Warning Mod
Post by: marko_andres on August 25, 2009, 05:46:51 PM
for 1.1.10 ??
Title: Re: Visual Warning Mod
Post by: MaXiForum.cz on August 30, 2009, 11:57:03 AM
Quote from: noaccess on August 19, 2009, 06:31:55 PM
What exactly do I have to do to get this to work on SMF 1.1.10?

Install it manualy.
It works ;)
Title: Re: Visual Warning Mod
Post by: Alyen on September 24, 2009, 04:34:27 AM
error in smf 1.1.10

QuoteFatal error: Call to undefined function VisualWarningSettings() in /var/www/virtual/000.com/htdocs/Sources/ModSettings.php on line 168
Title: Re: Visual Warning Mod
Post by: Kindred on September 24, 2009, 08:29:29 AM
looks like the mod has not been fully installed.
Title: Re: Visual Warning Mod
Post by: Razortide on September 30, 2009, 06:19:16 PM
Got one in Features & Options when I click on the "Visual Warning Mod Tab":

Fatal error: Call to undefined function VisualWarningSettings() in (...)/smf/Sources/ModSettings.php on line 163

On line 163 I have this: $subActions[$_REQUEST['sa']]();

Does anyone have an idea how I can fix this and access the options? (1.1.10, german)
Title: Re: Visual Warning Mod
Post by: Sabre™ on September 30, 2009, 06:40:49 PM
Is that function added to the template?
Could you please attach your ModSettings.php to your next post
Title: Re: Visual Warning Mod
Post by: Razortide on September 30, 2009, 06:46:35 PM
Of course ;-)

It's the one from Sources folder; I hope this is correct? I've found an entry  from 150-153
Title: Re: Visual Warning Mod
Post by: Sabre™ on September 30, 2009, 07:07:11 PM
Sorry for the delay, had to reboot my system.
Try the attached file.
Title: Re: Visual Warning Mod
Post by: Razortide on September 30, 2009, 07:10:22 PM
Thanks a lot!

Do you mind telling me what you've done, so I don't have to ask next time? ;-)
Title: Re: Visual Warning Mod
Post by: Sabre™ on September 30, 2009, 07:15:31 PM
It was a small niggle in the code, in which it was inserted into the karma function.
If I recall correctly, this line is part of the karma mod
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=karma';
$context['settings_title'] = $txt['smf293'];

prepareDBSettingContext($config_vars);
}


and it was placed after the warning mods edits.
So without this in its proper position, the karma function didnt close, and spat itself when the warning mod function was introduced.
Something like that ;)
Title: Re: Visual Warning Mod
Post by: Razortide on September 30, 2009, 07:18:44 PM
Thank you. That helped me a lot.
Title: Re: Visual Warning Mod
Post by: Sabre™ on September 30, 2009, 07:20:23 PM
My pleasure mate :)
Enjoy
Title: Re: Visual Warning Mod
Post by: munze80 on October 17, 2009, 03:58:32 PM
Quote from: uncajesse on July 17, 2009, 02:06:16 AM
I tweaked this to install on SMF v1.1.10, and removed the old ".mod" methods because they can't do regular expressions or (show that they are going to) skip non-existent files.

You must uninstall your old Visual Warning Mod before installing this one, as is the usual because this package doesn't support upgrades.  You won't lose any of your warning data.

This is just an update from v1.42, none of the issues with it's functionality have been addressed, but this should install on all v1.1.10.  Let me know if it doesn't, and attach your files that it fails on, and I'll fix em.

I may eventually fix the bug of the bans not timing out, if that really is a problem.  I haven't looked into it yet.  Anyways, enjoy.

When I want to install this mod smf reports me error to files load.php and defaultDisplay.template.php. Can you fix this? Thanks
Title: Re: Visual Warning Mod
Post by: Kindred on October 17, 2009, 06:06:21 PM
those errors are probably because you have other mods already installed. As with any other mod, you will have to manually apply the changes to those "failed" files.
Title: Re: Visual Warning Mod
Post by: qtime on October 23, 2009, 09:28:32 AM
Question about the update, I have 1.34 running, does the latest version have splitted permissions?
For example a certain membergroup can warn, other membergroup can warn and put on moderate status?
Title: Re: Visual Warning Mod
Post by: hariS. on November 23, 2009, 05:20:48 AM
(http://img137.imageshack.us/img137/5424/15861962.jpg)

Any help ?
Title: Re: Visual Warning Mod
Post by: Kindred on November 23, 2009, 08:16:27 AM
help with WHAT?
Title: Re: Visual Warning Mod
Post by: hariS. on November 23, 2009, 01:32:16 PM
haha , you blind ? , can you that  word "warn" isn't in the square like others are ?
Title: Re: Visual Warning Mod
Post by: Kindred on November 23, 2009, 02:48:36 PM
Please...

1- do not insult others, especially not the ones who are likely to help you.
2- We read through thousands of posts a day. I do not have time to look at a post with no actual information and try to decrypt what you THINK is wrong.
If you have a problem, then CLEARLY STATE what the problem you have is.

And, actually **NO** I can not see what you are talking about because your image links are dead.

Include your version of SMF, your version of the mod and the CLEAR description of the problem.


Title: Re: Visual Warning Mod
Post by: Sabre™ on November 23, 2009, 03:32:57 PM
Kindred is correct hariS.
Please take a moment to read these:
How do I ask support questions the smart way? (http://docs.simplemachines.org/index.php?topic=494.0)
How can I get my problems solved faster? (http://docs.simplemachines.org/index.php?topic=493.0)

then attach your custom themes display.template.php after you have offered the required/requested information.
I say attach it 'again', because you have had changes to it from another thread.
Thank You :)
Title: My warning position problem
Post by: hariS. on November 23, 2009, 07:17:30 PM
Hi my nice and beautiful fellows , my problem is related with this mode called "Visual Warning MOD".

The problem is with the position and background of the word "warrned" , wich won't appear in the square like nubmer of post does etc.

(http://img689.imageshack.us/img689/9248/72448149.jpg) (This is the picture showing the problem ...

MY website link : www.jeditekodjoa.com

I am using SMF 1.1.10

I am using theme called DSV1 from dzinerstudio.com

MOD's installed

(http://img695.imageshack.us/img695/200/55512877.jpg)


And in the attachment there is file wich you may want to use to fix the problem

Am I polite  now :S ?
Title: Re: Visual Warning Mod
Post by: Kindred on November 23, 2009, 07:50:55 PM
and the reason it won't is because you have a custom theme with custom CSS.

Mods only install in the default theme, using CSS styling to appear in the default theme.

Any other theme means that you will probably have to modify the mod's CSS to make it appear. I suggest using firefox with the firebug add-on to find the specific CSS entry and modify it to match your other entries.

Posting your display.template.php is probably not relevant in this case becuase it is 90% likely that the issue is a CSS issue, not a coding issue.

for more specific info, I would need a link to a post showing the moderated icon and text.


oh, and the sarcasm was unnecessary as well...
Title: Re: Visual Warning Mod
Post by: Sabre™ on November 23, 2009, 08:06:06 PM
Also, try the attached.

Quote from: Kindred on November 23, 2009, 07:50:55 PM
oh, and the sarcasm was unnecessary as well...

x2
Title: Re: Visual Warning Mod
Post by: hariS. on November 24, 2009, 04:00:43 AM
Hi again my beautiful friends :(

@ Sabre , thx very much you helped me

Could you make me a favour and edit display.template for "Country flag mode as I encountered  the same problem with that MOD .

Visual Warning MOD : http://www.jeditekodjoa.com/index.php?topic=2741.0 (http://www.jeditekodjoa.com/index.php?topic=2741.0)
(working well )

Country Flag MOD : http://www.jeditekodjoa.com/index.php?topic=3153.0 (http://www.jeditekodjoa.com/index.php?topic=3153.0)
(have the same problem)


@Kindred , can you see the difference :

Before :
(http://img689.imageshack.us/img689/9248/72448149.jpg)

After :
(http://img695.imageshack.us/img695/8862/99707398.jpg)


Country Flag MOD :

(http://img134.imageshack.us/img134/2043/59189558.jpg)


Please don't link me to their support topic , as I seeked for the help  , they didn't answer , you can fix I KNOW THAT :D
Title: Re: Visual Warning Mod
Post by: samurai-lupin on November 29, 2009, 09:17:06 PM
Hello,

I have just noticed that members who are under post moderation can not post any attachments. Is this a bug in my installation or is this feature missing?

Thank you
Title: Re: Visual Warning Mod
Post by: Destructionx on December 01, 2009, 07:56:20 PM
I get these two Errors.

6.     Execute Modification     ./Themes/default/Display.template.php     Test failed
7.    Execute Modification    ./Sources/Post.php    Test failed

I'm using 1.1.11, but it had the same problem with 1.1.10.

Problem: When I Give someone a warning, It does not show on their name.  I'm Using the default theme.
Title: Re: Visual Warning Mod
Post by: Destructionx on December 02, 2009, 09:41:09 PM
Sorry for bumping this, But can anyone help me?
Title: Re: Visual Warning Mod
Post by: Sabre™ on December 03, 2009, 01:20:23 AM
You should not install the mod if you receive errors on installation, Unless you are going to do the 'manual edits' to the failed templates. This will need to be the case for you.
So, you need to look [HERE] (http://custom.simplemachines.org/mods/index.php?action=parse;mod=878;attach=75495;smf_version=1.1.10), and make the changes it suggests for your Display.template.php and Post.php.
Title: Re: Visual Warning Mod
Post by: tomaschx on December 13, 2009, 04:41:10 PM
Hm, the warning dots/images in general are not showing.

I had an error the following error...

7.    Execute Modification    ./Sources/Post.php    Test failed

I installed it manually, though.

Help? :<
Title: Re: Visual Warning Mod
Post by: Kindred on December 14, 2009, 08:39:19 AM
if you are running a custom theme. you will have to manually install it into that theme as well...   specifically display.template.php
Title: Re: Visual Warning Mod
Post by: GunDude on December 14, 2009, 11:34:48 AM
This is a GREAT mod, thanks to the original authors and current support people! 

I have an issue, and it was the same with 1.1.10 and now 1.1.11 --

Post Moderation does not work.  You can give someone this level, and when they post it still gets posted in the forum, never having a chance for it to be moderated.

Everything else with this mod seems to work fine, but it'd be even better if that function worked.

Thanks in advance.
Title: Re: Visual Warning Mod
Post by: sc2sick on December 16, 2009, 05:12:50 PM
I searched the thread, but is there a way to warn anonymously as an admin/moderator?
Title: Re: Visual Warning Mod
Post by: spiros on December 17, 2009, 08:21:12 PM
I have this mod installed and I am planning to upgrade to SMF 2. Has anybody experienced any issues with the upgrade, or do you think I should take some special action before upgrading.
Title: Re: Visual Warning Mod
Post by: Kindred on December 17, 2009, 10:08:29 PM
I believe that much of this mod is already standard in 2.0
Title: Re: Visual Warning Mod
Post by: spiros on December 18, 2009, 07:30:04 AM
I mean whether it being installed might cause problems in the way of upgrading...
Title: Re: Visual Warning Mod
Post by: Kindred on December 18, 2009, 08:23:20 AM
oh... no...   actually, upgrading to 2.0 will remove ALL mods from your forum (it won't lose any data, but, since you are replacing all of the forum files, the mods are essentially gone until you reinstall them on 2.0
Title: Re: Visual Warning Mod
Post by: Carlos Faria on December 18, 2009, 02:16:41 PM
Error in translation:

(http://img163.imageshack.us/img163/4885/catsyh.th.jpg) (http://img163.imageshack.us/img163/4885/catsyh.jpg)

What happens?  ???
Title: Re: Visual Warning Mod
Post by: [SAP]Francis on December 18, 2009, 10:09:26 PM
Quote from: [T]uGa [M]aSter on December 18, 2009, 02:16:41 PM
Error in translation:

(http://img163.imageshack.us/img163/4885/catsyh.th.jpg) (http://img163.imageshack.us/img163/4885/catsyh.jpg)

What happens?  ???
On the end of line 127, add a semi-colon. (;)
Title: Re: Visual Warning Mod
Post by: Carlos Faria on December 19, 2009, 05:22:20 AM
Quote from: [SAP]Francis on December 18, 2009, 10:09:26 PM
Quote from: [T]uGa [M]aSter on December 18, 2009, 02:16:41 PM
Error in translation:

(http://img163.imageshack.us/img163/4885/catsyh.th.jpg) (http://img163.imageshack.us/img163/4885/catsyh.jpg)

What happens?  ???
On the end of line 127, add a semi-colon. ( ;)

ups  :P
Title: Re: Visual Warning Mod
Post by: GunDude on December 19, 2009, 10:59:57 AM
Anybody?

Quote from: GunDude on December 14, 2009, 11:34:48 AM
This is a GREAT mod, thanks to the original authors and current support people! 

I have an issue, and it was the same with 1.1.10 and now 1.1.11 --

Post Moderation does not work.  You can give someone this level, and when they post it still gets posted in the forum, never having a chance for it to be moderated.

Everything else with this mod seems to work fine, but it'd be even better if that function worked.

Thanks in advance.
Title: Re: Visual Warning Mod
Post by: GunDude on December 29, 2009, 12:45:34 PM
Another problem has arisen, now that I've actually used it to warn a user -- my error log gets filled with:

8: Undefined index: visualw_image_
File: /home/tbaja0/public_html/forum/Sources/Load.php
Line: 1058

and

8: Undefined index: visualw_color_
File: /home/tbaja0/public_html/forum/Sources/Load.php
Line: 1059

Here are the two lines from Load.php

Quote
'link' => ($modSettings['visualw_image_' . $warn] != "" ? '<img src="' . $settings['images_url'] . '/' . $modSettings['visualw_image_' . $warn] . '"/>' : '') .
         ($modSettings['visualw_color_' . $warn] != "" ? '<font size="2" color="' . $modSettings['visualw_color_' . $warn] . '">

Anybody have any ideas? 
Title: Re: Visual Warning Mod
Post by: Kindred on December 29, 2009, 02:11:39 PM
that line of code should only be called if $warn is defined...  form the error code, it looks like ti is being called for everyone.
Title: Re: Visual Warning Mod
Post by: infyquest on January 11, 2010, 10:25:23 AM
has anyone experienced permission problems with this mod.
Title: Re: Visual Warning Mod
Post by: mariusfv on January 14, 2010, 01:37:02 PM
Yes i tested on smf 1.1.11 and worK all function...

For that have errors on install ...i tested if you have installed Mod "Admin Lock" unistall him(not compatible) due the fact of modification on display.php...etc
sO MOD IS OK and all function work ok !

Title: Re: Visual Warning Mod
Post by: santac on January 22, 2010, 03:40:17 AM
Hi,

I can't find this in my custom theme (babylon):
$remove_button = create_button('delete.gif', 121, 31, 'align="middle"');

It's only in the default theme, and there is a warn button line.

so where should I put the warn button in my custom theme?
now i can't warn the users ;)
Title: Re: Visual Warning Mod
Post by: GunDude on March 03, 2010, 08:38:42 PM
Quote from: GunDude on December 14, 2009, 11:34:48 AM
This is a GREAT mod, thanks to the original authors and current support people! 

I have an issue, and it was the same with 1.1.10 and now 1.1.11 --

Post Moderation does not work.  You can give someone this level, and when they post it still gets posted in the forum, never having a chance for it to be moderated.

Everything else with this mod seems to work fine, but it'd be even better if that function worked.

Thanks in advance.

I never received a fix for the above problems.... error log fills with errors, and post moderation DOES NOT work.

Any help is appreciated! I love the mod, but wish it all worked properly.  SMF 1.1.11 is what I have, default theme with different color is what I use.
Title: Re: Visual Warning Mod
Post by: kermitthefrog on March 05, 2010, 06:49:06 PM
I wonder if someone can help.
With the VisualWarning 1.41 on SMF 1.11 I get:
An Error Has Occurred!
Unable to load the 'main' template.

when trying to warn someone, no custom theme is being used.
Title: Re: Visual Warning Mod
Post by: kt84 on March 07, 2010, 10:56:52 AM
Hi, I like this mod, although i got a problem from which I am not able to find the Source.
When the Warn level is raised to level 2 or 3 (moderated posts or muted posts) I get the following error when replying to a topic:
You do not have the permission to modify this message.

Does anybody has a clue where the mistake lays?
I got SMF 1.1.11 with germant utf8 language files. Btw the installworked and i also edited the Custom Theme I am using according to the install readme.
Title: Re: Visual Warning Mod
Post by: Dorte on April 28, 2010, 02:28:25 PM
Sorry for asking, but I didn't quite understand this from the description: Is the warning level always public or can it be set so that only admins and mods can see it?
Title: Re: Visual Warning Mod
Post by: Kindred on April 28, 2010, 06:37:55 PM
I believe it is always public with this mod.
Title: Re: Visual Warning Mod
Post by: Dorte on April 29, 2010, 04:04:46 AM
Thanks for replying, Kindred! :)
That would be a pity indeed. I'd like users to know that they're warned but I don't want to give other users the opportunity to point and laugh... Is there any warning mod that can be set for more privacy?
Title: Re: Visual Warning Mod
Post by: Kindred on April 29, 2010, 08:17:15 AM
upgrade to smf 2.0? Post moderation is built in.
Title: Re: Visual Warning Mod
Post by: aerolite on May 23, 2010, 11:13:38 PM
But the built in was really bad, Is it possible to show in which post/topic he got this WARNING?
Title: Re: Visual Warning Mod
Post by: Quexinos on May 29, 2010, 02:14:59 AM
Quote from: GunDude on March 03, 2010, 08:38:42 PM
Quote from: GunDude on December 14, 2009, 11:34:48 AM
This is a GREAT mod, thanks to the original authors and current support people! 

I have an issue, and it was the same with 1.1.10 and now 1.1.11 --

Post Moderation does not work.  You can give someone this level, and when they post it still gets posted in the forum, never having a chance for it to be moderated.

Everything else with this mod seems to work fine, but it'd be even better if that function worked.

Thanks in advance.

I never received a fix for the above problems.... error log fills with errors, and post moderation DOES NOT work.

Any help is appreciated! I love the mod, but wish it all worked properly.  SMF 1.1.11 is what I have, default theme with different color is what I use.
I apologize as I don't have a fix for you but I have the same problem, anyone know what the deal is? 
I'd appreciate any advice except "upgrade to 2.0" please.
Title: Re: Visual Warning Mod
Post by: davyp74 on July 27, 2010, 11:03:46 AM
Hi,
it's possible to show the user warnings near the avatar in post page?
Title: Re: Visual Warning Mod
Post by: Kindred on July 27, 2010, 02:23:18 PM
yes... modify the installation on display.template.php
Title: Re: Visual Warning Mod
Post by: davyp74 on July 28, 2010, 06:15:25 AM
Quote from: Kindred on July 27, 2010, 02:23:18 PM
yes... modify the installation on display.template.php

thank you but i don't know how can i do.
Can you help me?
Title: Re: Visual Warning Mod
Post by: Eleglin on August 03, 2010, 05:06:02 AM
Quote from: Dorte on April 28, 2010, 02:28:25 PM
Sorry for asking, but I didn't quite understand this from the description: Is the warning level always public or can it be set so that only admins and mods can see it?
Possible to hide. Option added since 1.4b - July 2007
Take a look at the options of the mod, in administration center.
Have a nice day.
Title: Re: Visual Warning Mod
Post by: maggieberry on August 12, 2010, 11:55:44 PM
Hi there!
I'm totally new to SMF, and I've been working with this mod for hours at this point. I've read the instructions on editing the files if an error comes up, and I honestly cannot figure it out. I would find the add's and not the find's (if you catch my drift). I am learning--I've managed to install a dozen mods without problems and get the board up and running--I am just having a lot of troubles with this one, so any help would be great.

Aside from the language packs, which I am guessing aren't a problem, this is the error I'm getting during install:

7.     Execute Modification     ./Sources/Post.php     Test failed

Please be gentle! Total newbie here. Thanks so much in advance.

Oh--version 1.1.11
Title: Re: Visual Warning Mod
Post by: Kindred on August 13, 2010, 07:22:33 AM
it means that the section of code that the auto-installer is trying to find is not there.... usually because another mod has already modified it. On the mod page is a "parser". find the edits you need to make to Post.php and manually make them on your own system using ftp and a text editor.
Title: Re: Visual Warning Mod
Post by: maggieberry on August 13, 2010, 10:56:13 AM
Thanks for the reply Kindred!
I did go to a parser site here:
http://resourcez.biz/PackageParser/

but I did not understand what I was supposed to do with the information given once I uploaded my file.

I also went to the mod site where the install instructions are here:
http://custom.simplemachines.org/mods/index.php?action=parse

but, again, I have little idea of what to do. Could you at least tell me if I'm on the right path?

Do I open the modification.xml and do the edits from the 2nd link that are for the Post.php? For instance (I know, it's shocking I'm running a board, but like I said, I've never used an open source board software before--I do have a linux os though, so anyways--coming from Zetabords--frown), the first one says:

Find: [Select]

            'is_last' => true,
         ),

Replace With: [Select]

         ),
         'visualwarning' => array(
            'title' => $txt['visual_warning_mod'],
            'href' => $scripturl . '?action=featuresettings;sa=visualwarning;sesc=' . $context['session_id'],
            'is_last' => true,
         ),


So I find the string of code in the first box and add the string of code after that string from the second box (I did read the online how to as it pertains to xml, so not totally clueless there).

And then, for the ones where the find is missing do I basically look for the after and replace the code inside of search with the finds?
Title: Re: Visual Warning Mod
Post by: maggieberry on August 13, 2010, 02:22:55 PM
I wanted to add that I do believe I have since correctly edited the file to no avail. I also uninstalled all of my mods and deleted them to try to get this one to work, and it's still coming up with the same error. Any help would be great. We would really like to have this mod installed.
Title: Re: Visual Warning Mod
Post by: Kindred on August 13, 2010, 07:20:38 PM
you have to install the mod fully, despite the error and THEN, in addition, make the manul edit (yes, the way you describe)

Also, one 1.1.x, you may have to manually modify any of your custom theme *.template.php files
Title: Re: Visual Warning Mod
Post by: maggieberry on August 13, 2010, 07:59:09 PM
OHHHHHHHHHHHHH....lol

Dang dude! I was seriously giving my migraine a migraine over this last night! It made no sense whatsoever to me in so many different ways, but now that you've told me to install it fully, I have complete understanding, and I thank you so very much!!! I will let you know how it goes!
Title: Re: Visual Warning Mod
Post by: maggieberry on August 14, 2010, 12:06:48 AM
Kindred,
I edited the file, zipped it back in with filezilla onto my server where the packages are with an overwrite--so what do I do now? Anything? Luckily we don't have any custom themes set up yet. Figured we'd do all of the mods first before the themes so that we could square away which ones don't work and will need modified versus having to discover it at a later time.
Title: Re: Visual Warning Mod
Post by: maggieberry on August 14, 2010, 12:40:10 AM
Just wanted to let you know that it's all up and running now. I figured we'd test it out, and it's working super! Thanks again for your help!
Title: Re: Visual Warning Mod
Post by: nightyyx on August 14, 2010, 12:32:37 PM
Looks great mod and i would like so much to use it in my smf forum.
But the problem is that i use the last version smf SMF 2.0 RC3  so i dont have the option to install...it is not supported i think.
Anyone know if it is a trick or if will be exist soon a version for this mod for the last smf?:)
Or at least another mod for smf 2 but almost same with this one?

I use also the mod Adk Portal  2.0 RC4  so i hope it wont be a problem.
thanks
Title: Re: Visual Warning Mod
Post by: Kindred on August 14, 2010, 12:44:45 PM
this will likely not be updated for 2.0, because 2,0 already has warning levels built into it as core functionality
Title: Re: Visual Warning Mod
Post by: Eleglin on August 16, 2010, 10:37:52 AM
I will make no new update for this mod. But since I'm not the original author... if someone wants to make modifications to this mod,  he can contact some people in the customisation team. ^^
Title: Re: Visual Warning Mod
Post by: hcfwesker on September 06, 2010, 08:42:26 AM
Well, only staff member groups are able to give and remove warnings, but regular members are able to see the warnings in their posts.  I know this isn't suppose to be like this, and I followed the instructions, any ideas?

I'm on smf 1.1.11

Shoot, even guests can see the warnings :(

http://www.brawldomain.com/index.php?topic=7503.msg0;boardseen#new

Thanx for any help.
Title: Re: Visual Warning Mod
Post by: Kindred on September 06, 2010, 09:07:20 AM
that is why this mod is called "Visual warning". The warning is visible to everyone.... it's how the mod works, afaik.
Title: Re: Visual Warning Mod
Post by: hcfwesker on September 06, 2010, 09:14:50 AM
Then what is the purpose of this line in the MOd description ...

QuoteVersion 1.4+ adds a new option allowing you to hide level warnings for people unable to warn. (SMF 1.1.x)

yeah ... I'm confused  :o
Title: Re: Visual Warning Mod
Post by: Kindred on September 06, 2010, 10:50:25 AM
hmmm... good point. I haven't used this mod since I upgraded to 2.0...
Title: Re: Visual Warning Mod
Post by: nightyyx on September 22, 2010, 09:29:42 PM
Tried to install this latest version of this mod but i am getting this error message on my smf 1.1.11

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

   Type     Action     Description
1.    Execute Code    VisualWarningPdb.php    
2.    Execute Modification    ./index.php    Test successful
3.    Execute Modification    ./Sources/ModSettings.php    Test successful
4.    Execute Modification    ./Themes/default/Profile.template.php    Test successful
5.    Execute Modification    ./Sources/Display.php    Test successful
6.    Execute Modification    ./Themes/default/Display.template.php    Test successful
7.    Execute Modification    ./Sources/Post.php    Test failed
8.    Execute Modification    ./Themes/default/Post.template.php    Test successful
9.    Execute Modification    ./Sources/Karma.php    Test successful
10.    Execute Modification    ./Sources/Subs.php    Test successful
11.    Execute Modification    ./Sources/Security.php    Test successful
12.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
13.    Execute Modification    ./Themes/default/index.template.php    Test successful
14.    Execute Modification    ./Sources/Load.php    Test successful
15.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful


As you can see only 7 post.php shows that have problem.
I went here http://custom.simplemachines.org/mods/index.php?action=parse;mod=878;attach=75495;smf_version=1.1.10
and added the extra code on post.php that says there.

Still nothing.
I added also the extra code on posttemplate.php

STILL THE SAME ERROR.

And it is strange since i dont have other packages installed on my smf forum expect my custom theme ofcourse.

Title: Re: Visual Warning Mod
Post by: Kindred on September 22, 2010, 09:43:53 PM
you need to actually APPLY the mod, despite the error, and THEN make manual modifications to the file(s) that errored.

Also, on the 1.1.x series, you will have to manually modify any themes other than the default theme.
Title: Re: Visual Warning Mod
Post by: nightyyx on September 22, 2010, 10:12:38 PM
so better to remove the content that i added to  Post.template.php  since it was succesfull on test and also to the post.php and add again the content to the post.php after the install?
What you mean about manual modify of themes?
i didnt saw at this link http://custom.simplemachines.org/mods/index.php?action=parse;mod=878;attach=75495;smf_version=1.1.10 any code for theme..
if i am wrong please correct me.
Title: Re: Visual Warning Mod
Post by: Kindred on September 22, 2010, 10:23:23 PM
mods only install into the default theme on 1.1.x. Any themes other than the default will have to have their template files manually modfied.

(and, you know... all of this has been answered at least 12 dozen times, in nearly every mod thread... and even in the FAQ and Docs... Try using search?)
Title: Re: Visual Warning Mod
Post by: nightyyx on September 22, 2010, 10:27:01 PM
yes i am sorry but i was using long time the smf 2.0 rc3 that hadn't problem like this so i couldnt imagine these issues:)
Title: Re: Visual Warning Mod
Post by: Kindred on September 22, 2010, 10:35:48 PM
yes, there are many things that 2.0 does better than 1.1.x
Title: Re: Visual Warning Mod
Post by: pilladoll on September 30, 2010, 07:58:17 PM
i'm using 1.1.11, when tried to intall, this appears:

Type   Action   Description
1.   Execute Code   VisualWarningPdb.php   
2.   Execute Modification   ./index.php   Test successful
3.   Execute Modification   ./Sources/ModSettings.php   Test successful
4.   Execute Modification   ./Themes/default/Profile.template.php   Test successful
5.   Execute Modification   ./Sources/Display.php   Test successful
6.   Execute Modification   ./Themes/default/Display.template.php   Test successful
7.   Execute Modification   ./Sources/Post.php   Test failed
8.   Execute Modification   ./Themes/default/Post.template.php   Test successful
9.   Execute Modification   ./Sources/Karma.php   Test successful
10.   Execute Modification   ./Sources/Subs.php   Test successful
11.   Execute Modification   ./Sources/Security.php   Test successful
12.   Execute Modification   ./Sources/ManagePermissions.php   Test successful
13.   Execute Modification   ./Themes/default/index.template.php   Test successful
14.   Execute Modification   ./Sources/Load.php   Test successful
15.   Execute Modification   ./Themes/default/languages/Modifications.english.php   Test successful
16.   Extract File   ./Sources/VisualWarning11.php   
17.   Extract File   ./Themes/default/VisualWarning.template.php   
18.   Extract File   ./Themes/default/images/warnban.gif   
19.   Extract File   ./Themes/default/images/warnpmod.gif   
20.   Extract File   ./Themes/default/images/warnmute.gif   
21.   Extract File   ./Themes/default/images/warnwarn.gif   
22.   Extract File   ./Themes/default/images/members.gif   
23.   Extract File   ./Themes/default/images/buttons/warn.gif   
24.   Execute Modification   ./Themes/default/languages/Modifications.french.php   File not found
25.   Execute Modification   ./Themes/default/languages/Modifications.polish.php   File not found
26.   Execute Modification   ./Themes/default/languages/Modifications.turkish.php   File not found
27.   Execute Modification   ./Themes/default/languages/Modifications.croatian.php   File not found
28.   Execute Modification   ./Themes/default/languages/Modifications.danish.php   File not found
29.   Execute Modification   ./Themes/default/languages/Modifications.spanish.php   File not found
30.   Execute Modification   ./Themes/default/languages/Modifications.portuguese.php   File not found
31.   Execute Modification   ./Themes/default/languages/Modifications.brazilian.php   File not found



what should i do?
Title: Re: Visual Warning Mod
Post by: Kindred on September 30, 2010, 08:21:49 PM
why does no one use search?  This question is answered at least 10 times in nearly every mod thread.

It failed because something has already altered the code so it does not match the automatic search/install. You will have to manually install it to that file
Title: Re: Visual Warning Mod
Post by: NoumanQAli on October 30, 2010, 12:24:40 PM
No Text?


(http://i52.tinypic.com/5obj0z.gif)
Title: Re: Visual Warning Mod
Post by: Kindred on October 30, 2010, 07:20:58 PM
try using search?


Mods install (mostly) only in English. (and English UTF-8 is different from English)
Title: Re: Visual Warning Mod
Post by: vince123 on December 04, 2010, 06:26:24 PM
I've tried everything, even did it add manually. But I keep getting this:
(http://i51.tinypic.com/23tjh8w.png)
It also not showing in admin panel.

Quote from: Kindred on October 30, 2010, 07:20:58 PM
try using search?


Mods install (mostly) only in English. (and English UTF-8 is different from English)

Is that whats wrong with mine? If so please tell me how to fix, I'm new with this.
Title: Re: Visual Warning Mod
Post by: Kindred on December 04, 2010, 07:01:24 PM
yes, that is what is wrong.

either switch to English, or update your modifications.english-utf8.php file with the text strings
Title: Re: Visual Warning Mod
Post by: vince123 on December 05, 2010, 03:16:10 AM
Yeah, that was my question, how to switch to english. I'm new to this.

Edit: nevermind, thank you!
Title: Re: Visual Warning Mod
Post by: ms_ukyankee on December 30, 2010, 05:17:44 PM
Quote from: hcfwesker on September 06, 2010, 09:14:50 AM
Then what is the purpose of this line in the MOd description ...

QuoteVersion 1.4+ adds a new option allowing you to hide level warnings for people unable to warn. (SMF 1.1.x)

yeah ... I'm confused  :o

I believe it hides the warning icon that shows in the profile summary in posts only, not the Warning reason added to the post text.

I've updated this for my own use, removed the part where it edits posts and instead adds the warning reason to the private message sent. Back up your original Sources/VisualWarning11.php and replace with the attached file instead if you'd like to try this functionality. It is working well for me, SMF 1.1.12. Hope that helps.
Title: Re: Visual Warning Mod
Post by: ms_ukyankee on January 02, 2011, 06:02:07 AM
Also to get rid of the : Undefined index: return_to_post error appearing in the logs, find in Sources/Post.php


if ($options['return_to_post'] == '1' && $topic != '')
redirectexit("$scripturl?topic=$threadid;start=new");


Change to:
if (!empty($_REQUEST['goback']) && $topic != '')
redirectexit("$scripturl?topic=$topic.new#new");

Title: Re: Visual Warning Mod
Post by: IlyZor on January 02, 2011, 02:35:30 PM
Will there be an update for 1.1.12 ?
Title: Re: Visual Warning Mod
Post by: ms_ukyankee on January 03, 2011, 06:50:39 AM
I've installed on 1.1.12, I don't think it needs updating. I had to make a few manual edits as well. I have a duplicate test forum (mods and templates) that I worked on first to make sure I had done it correctly before applying to the live forum and copying my hand edited files.
Title: Re: Visual Warning Mod
Post by: MRM4 on January 21, 2011, 10:40:23 AM
Quote from: Kindred on December 04, 2010, 07:01:24 PM
yes, that is what is wrong.
either switch to English, or update your modifications.english-utf8.php file with the text strings
I was having the same problem with the text not showing up. I was going to switch my board to English and there is no choice for it. All the choices are whatever lanuage-utf8. Anything I can do about this?
Title: Re: Visual Warning Mod
Post by: impreza on January 21, 2011, 12:54:29 PM
An interesting add-on, works ok
Title: Re: Visual Warning Mod
Post by: Kindred on January 21, 2011, 02:43:46 PM
add the language strings to your modifications.englishutf8.php file
Title: Re: Visual Warning Mod
Post by: netoya on February 25, 2011, 05:36:32 PM
It is a realy greate mod for SMF 1.1.13
Everything works fine, but my forum is in Russian Federation and so, if user name has cyrillic letters the warning not deleted automatically if it expired causing the following errors:
Database error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')
ORDER BY mem.lngfile
LIMIT 0' at line 9
Файл: /home/html/forum/Sources/Subs-Post.php
Строка: 771
?action=recenttopics;latest=1298664642;xml
2: implode(): Invalid arguments passed
Файл: /home/html/forum/Sources/Subs-Post.php
Строка: 769
?action=recenttopics;latest=1298664642;xml
2: array_merge(): Argument #2 is not an array
Файл: /home/html/forum/Sources/Subs-Post.php
Строка: 758
?action=recenttopics;latest=1298664642;xml
2: array_merge(): Argument #1 is not an array
Файл: /home/html/forum/Sources/Subs-Post.php
Строка: 758
?action=recenttopics;latest=1298664642;xml
2: array_diff(): Argument #1 is not an array
Файл: /home/html/forum/Sources/Subs-Post.php
Строка: 755
?action=recenttopics;latest=1298664642;xml
2: array_unique(): The argument should be an array
Файл: /home/html/forum/Sources/Subs-Post.php
Строка: 755
?action=recenttopics;latest=1298664642;xml
2: array_unique(): The argument should be an array
Файл: /home/html/forum/Sources/Subs-Post.php
Строка: 752
?action=recenttopics;latest=1298664642;xml
2: Invalid argument supplied for foreach()
Файл: /home/html/forum/Sources/Subs-Post.php
Строка: 712
?action=recenttopics;latest=1298664642;xml

If user name is on Latin alphabet warn deleted correctly.

Analyzing the code came to the conclusion, it appears when script trying to send a PM to user with Cyrillic letters
Then warn time expired, PM is not send to user regardless of whether it is written his name in Latin or Cyrillic letters
Need your help to solve this problem.

Subs-Post.php attached

Maybe a bug in VisualWarning11.php including Subs-Post.php?
Title: Re: Visual Warning Mod
Post by: v.d. on March 23, 2011, 06:59:34 AM
can someone please help me out.
i`m on SMF 1.1.11. and with 1.42 visual warn mod.
I`ve got problem with PM that is sent to person that is warned. Message is without subject and content.
My forum is in Croatian UTF8, and i have copied $txt lines from Modifications.croatian.php but it still does not work.
Title: Re: Visual Warning Mod
Post by: yogesh_gamer on May 17, 2011, 12:54:39 PM
suing 1.1.13 version
When i click on apply mod i got this message:

Install Actions
Installations actions for "VisualWarning":
Installing this package will perform the following actions:
Type   Action   Description
1.   Execute Code   VisualWarningPdb.php   
2.   Execute Modification   ./index.php   Test successful
3.   Execute Modification   ./Sources/ModSettings.php   Test successful
4.   Execute Modification   ./Themes/default/Profile.template.php   Test successful
5.   Execute Modification   ./Sources/Display.php   Test successful
6.   Execute Modification   ./Themes/default/Display.template.php   Test successful
7.   Execute Modification   ./Sources/Post.php   Test failed
8.   Execute Modification   ./Themes/default/Post.template.php   Test successful
9.   Execute Modification   ./Sources/Karma.php   Test successful
10.   Execute Modification   ./Sources/Subs.php   Test successful
11.   Execute Modification   ./Sources/Security.php   Test successful
12.   Execute Modification   ./Sources/ManagePermissions.php   Test successful
13.   Execute Modification   ./Themes/default/index.template.php   Test successful
14.   Execute Modification   ./Sources/Load.php   Test successful
15.   Execute Modification   ./Themes/default/languages/Modifications.english.php   Test successful
16.   Extract File   ./Sources/VisualWarning11.php   
17.   Extract File   ./Themes/default/VisualWarning.template.php   
18.   Extract File   ./Themes/default/images/warnban.gif   
19.   Extract File   ./Themes/default/images/warnpmod.gif   
20.   Extract File   ./Themes/default/images/warnmute.gif   
21.   Extract File   ./Themes/default/images/warnwarn.gif   
22.   Extract File   ./Themes/default/images/members.gif   
23.   Extract File   ./Themes/default/images/buttons/warn.gif   
24.   Execute Modification   ./Themes/default/languages/Modifications.french.php   File not found
25.   Execute Modification   ./Themes/default/languages/Modifications.polish.php   File not found
26.   Execute Modification   ./Themes/default/languages/Modifications.turkish.php   File not found
27.   Execute Modification   ./Themes/default/languages/Modifications.croatian.php   File not found
28.   Execute Modification   ./Themes/default/languages/Modifications.danish.php   File not found
29.   Execute Modification   ./Themes/default/languages/Modifications.spanish.php   File not found
30.   Execute Modification   ./Themes/default/languages/Modifications.portuguese.php   File not found
31.   Execute Modification   ./Themes/default/languages/Modifications.brazilian.php   File not found
Title: Re: Visual Warning Mod
Post by: Kindred on May 17, 2011, 01:10:09 PM
please try using search.  This same question has been raised and answered in nearly EVERY mod thread... and is addressed in the wiki.

http://wiki.simplemachines.org/smf/Error_in_mod_installation
Title: Re: Visual Warning Mod
Post by: smartmouse on May 18, 2011, 01:59:21 PM
Hello, i have installed SMF 2.0 and then i'm using the built-in warn system.
Now i want to import the data of Visual Warning Mod... is it possible?

What are the related database entries? "smf_vwarnings" table only?
Title: Re: Visual Warning Mod
Post by: Kindred on May 18, 2011, 03:14:11 PM
almost anything is possible.... but there is no easy way to do it.
Title: Re: Visual Warning Mod
Post by: smartmouse on May 18, 2011, 07:28:52 PM
I undestand.

Anyway can you reply to this?

Quote from: smartmouse on May 18, 2011, 01:59:21 PMWhat are the related database entries? "smf_vwarnings" table only?
Title: Re: Visual Warning Mod
Post by: smartmouse on May 20, 2011, 04:00:19 PM
Is Eleglin still partecipating to this forum?
Title: Re: Visual Warning Mod
Post by: timetraveller on May 21, 2011, 06:40:00 PM
Quote from: yogesh_gamer on May 17, 2011, 12:54:39 PM
suing 1.1.13 version
When i click on apply mod i got this message:
.....................
7.   Execute Modification   ./Sources/Post.php   Test failed
..............

I got this too. I looked on that Wiki link and also on an answer on another thread - something about looking at the manual install instructions and parse - which I did and got a whole bunch of code which, as a newbie, frightens the life out of me.

So where do I go from here?
Title: Re: Visual Warning Mod
Post by: Kindred on May 21, 2011, 08:39:25 PM
Since it appears that some other mod has changed the target code, you will have to manually make the code changes
Title: Re: Visual Warning Mod
Post by: timetraveller on May 22, 2011, 06:53:25 PM
How do I do that? The Wiki page was far from clear to me.
Title: Re: Visual Warning Mod
Post by: Kindred on May 22, 2011, 08:03:08 PM
I am not sure how to explain more clearly... Since I wrote the wiki article, I explained in what I thought was clear instructions.

You have to manually edit the files, as indicated in the failure message
Title: Re: Visual Warning Mod
Post by: timetraveller on May 23, 2011, 12:52:04 AM
I don't have an "Edit" button to click, next to the instruction that failed.
Title: Re: Visual Warning Mod
Post by: Kindred on May 23, 2011, 07:26:53 AM
Oh... You are using 1.1..x....    I forgot that 1.1.x does not do that.

Go to the mod download page and click the button to parse for manual installation and look at the instrauctions for the failed file in there....
Title: Re: Visual Warning Mod
Post by: timetraveller on May 23, 2011, 12:29:21 PM
So I find that file.

I chuck it into TextPad.

I go through the file finding the bits and copying in the additional stuff.

Then I put it back in and hope for the best :)

I will of course do my back-ups first.

Title: Re: Visual Warning Mod
Post by: yogesh_gamer on May 23, 2011, 09:04:01 PM
using 1.1.13 version
i can't install this mod.
Automatically test fail
and manually i am getting 550 Internal server error
Title: Re: Visual Warning Mod
Post by: yogesh_gamer on May 30, 2011, 08:22:29 AM
Quote from: yogesh_gamer on May 23, 2011, 09:04:01 PM
using 1.1.13 version
i can't install this mod.
Automatically test fail
and manually i am getting 550 Internal server error
reply me
Title: Re: Visual Warning Mod
Post by: Joe_ on September 23, 2011, 03:17:00 AM
Hey, I know this is extremely old, but would you consider updating this for 2.0?
Title: Re: Visual Warning Mod
Post by: Biology Forums on November 30, 2011, 10:04:23 PM
For some reason, there is no link posted in where is says: Topic Where Raised...

has anyone correct this?
Title: Re: Visual Warning Mod
Post by: Sefket on December 01, 2011, 04:49:51 PM
I run a SMF board 1.1.15, and the Mod Logs doesn't show bans/warns. Another thing - when the staff warn users, it replaces the previous warn with the new one. Is there a way it can show ALL of the logs for that person?
Title: Re: Visual Warning Mod
Post by: Sefket on December 22, 2011, 01:58:43 PM
Bump
Title: Re: Visual Warning Mod
Post by: freija_robin on December 23, 2011, 12:39:36 PM
Hi there. I've got a problem.

When I warn an user, he has two "Warned" text under his nickname, not only one. (see image below)

(http://i44.tinypic.com/k2fmrl.png)

How can I fix it? Thanks!

EDIT

Solved! ^^

I deleted the double code


//  Mod Visual warning :: Hide these things for people unable to warn?
     if ($modSettings['visualw_hide'] == 0 && isset($message['member']['warning']['link']) && $message['member']['warning']['link'] !== '')
          echo'
            ', $message['member']['warning']['link'];
      elseif ($context['can_warn'] && isset($message['member']['warning']['link']) && $message['member']['warning']['link'] !== '')
            echo'
            ', $message['member']['warning']['link'];


in ./Themes/default/Display.template.php file.
Title: Re: Visual Warning Mod
Post by: Sefket on January 30, 2012, 12:41:55 PM
Quote from: Sefket on December 01, 2011, 04:49:51 PM
I run a SMF board 1.1.15, and the Mod Logs doesn't show bans/warns. Another thing - when the staff warn users, it replaces the previous warn with the new one. Is there a way it can show ALL of the logs for that person?

^^

1.1.16 now.
Title: Re: Visual Warning Mod
Post by: S3NTYN3L on February 24, 2012, 08:04:14 AM
Any plans to update this for latest v1 compatibility AND v2?
Title: Re: Visual Warning Mod
Post by: Anarchology on October 11, 2012, 01:11:43 AM
I just installed the mod, and it works flawlessly on 1.1.16. However, I'm planning on giving the privileges to use this mod over to my Global Moderators. However, the one feature I do not want them having the ability to do is the ban feature. Can someone direct me to the code I need to delete or modify just to remove the ability for them to ban.

I did remove the code in languages.english.php file that shows up on the form, so that the Global Moderators will not have the ability to type in the number 4 for a ban. However, I just need a little help making that option unavailable.

Thanks in advance.
Title: Re: Visual Warning Mod
Post by: trex_ln on November 24, 2013, 02:19:57 PM
Hi.,All

i nstall this mod in 1.1.16 it have problem

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE = MYISAM COMMENT = 'Visual Warning Post Moderation'' at line 14
Archivo: /var/Packages/temp/VisualWarningPdb.php
Line: 64


pls. help?
Title: Re: Visual Warning Mod
Post by: Candice on November 24, 2013, 02:26:19 PM
Quote from: trex_ln on November 24, 2013, 02:19:57 PM
Hi.,All

i nstall this mod in 1.1.16 it have problem

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE = MYISAM COMMENT = 'Visual Warning Post Moderation'' at line 14
Archivo: /var/Packages/temp/VisualWarningPdb.php
Line: 64


pls. help?


Try uninstalling it and reinstalling it again.
Title: Re: Visual Warning Mod
Post by: Arantor on November 24, 2013, 03:04:37 PM
That won't help.

The mod is old, it won't work properly on current MySQL versions.
Title: Re: Visual Warning Mod
Post by: trex_ln on November 24, 2013, 04:29:45 PM
Quote from: Arantor on November 24, 2013, 03:04:37 PM
That won't help.

The mod is old, it won't work properly on current MySQL versions.

i use mysql version 5.5.28 and now can fix my problem.

change TYPE= to ENGINE=

Thanks for help
Title: Re: Visual Warning Mod
Post by: Candice on November 24, 2013, 04:34:02 PM
Would it have worked when the mod was new?
Title: Re: Visual Warning Mod
Post by: Arantor on November 24, 2013, 04:38:04 PM
Quote from: Candice on November 24, 2013, 04:34:02 PM
Would it have worked when the mod was new?

Several years ago, yes, it would have worked because MySQL used TYPE= as indicated above but current versions of MySQL do not.
Title: Re: Visual Warning Mod
Post by: Candice on November 24, 2013, 08:16:59 PM
If you used the version of MYSQL from a few years ago this year with that mod, would it work?
Title: Re: Visual Warning Mod
Post by: Arantor on November 24, 2013, 08:19:39 PM
Yes, but that would be strongly NOT recommended.