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).
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
Latest version
Version 1.31 will work with 1.0.x, 1.1 bèta 3 public, 1.1 RC1, 1.1 RC2, 1.1 RC3, 1.1 final and 1.1.1.
Changelog
- Updated to work with SMF 1.1.1
- Added a whole proper visual warning section in the "Features and Options" area (only for SMF 1.1 RC2, 1.1 RC3, SMF 1.1 and SMF 1.1.1)
- Added French translation (by Eleglin and Val). 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!!!
so much i wanted this mod but i have some errors look:
1. clicking in admin panel -> Warning Management i have the followinr error:
Unable to load the 'list_warnings' template.
2. clicking in admin panel -> Post Moderation Manager i have thie error:
Unable to load the 'pmod_manager' template.
That is due to a bug in the packagemanager. You need to upload the file VisualWarning.template.php to your /Themes/default directory and the file VisualWarning11.php to your /Sources directory.
Excellent timing Xeno.
It was only last night that I started looking in to this one for a 1.0.5 board.
You must be psychic. Thanks for the update. :)
Have there been any changes to the database structure? The reason I ask, the 1.0.5 board already has previous version records and table structure from a previous install. I would be looking to install and upload the mod manually and just would like your opinion as to whether to uninstall the tables and records from MySQL first.
Cheers
Quote from: xenovanis on November 06, 2005, 03:42:41 AM
That is due to a bug in the packagemanager. You need to upload the file VisualWarning.template.php to your /Themes/default directory and the file VisualWarning11.php to your /Sources directory.
Great mod this i was waiting i think is one of the most important mod that SMF not have it must be to default coz is very important control users from staff
thanx
Its kind of wierd.
I checked & the files were put in place?
I think the bug is just a common ftp problem (overusing)
Quote from: scs on November 06, 2005, 08:36:37 AM
Its kind of wierd.
I checked & the files were put in place?
I think the bug is just a common ftp problem (overusing)
There is a confirmed bug in the packagemanager. It does upload the files but once uploaded they are empty (0kb).
Quote from: Fizzy on November 06, 2005, 03:52:26 AM
Excellent timing Xeno.
It was only last night that I started looking in to this one for a 1.0.5 board.
You must be psychic. Thanks for the update. :)
Have there been any changes to the database structure? The reason I ask, the 1.0.5 board already has previous version records and table structure from a previous install. I would be looking to install and upload the mod manually and just would like your opinion as to whether to uninstall the tables and records from MySQL first.
Cheers
Thanks Fizzy. :) Actually, I just updated the 1.1 Beta 3 Public version (made by permutations) to 1.1 RC1 and there weren't any changes in the database there.
If I understand correctly you want to re-install the mod on a 1.0.5 board where it was installed before? I think that is safe to do, the installer skips existing tables and columns.
They didn't appear empty
Yes, you have a point there. I use different servers and on one the packagemanager works, and on another it doesn't. But in this case it didn't work and that is a bug. Now, back on topic?
Ok i've had no errors at all with this.
The button looks a bit smudged(unclear)
Quote from: xenovanis on November 06, 2005, 11:23:25 AM
Thanks Fizzy. :) Actually, I just updated the 1.1 Beta 3 Public version (made by permutations) to 1.1 RC1 and there weren't any changes in the database there.
If I understand correctly you want to re-install the mod on a 1.0.5 board where it was installed before? I think that is safe to do, the installer skips existing tables and columns.
Thanks Xeno for putting my mind at rest. :)
Karma +1
Quote from: scs on November 06, 2005, 02:53:46 PM
Ok i've had no errors at all with this.
The button looks a bit smudged(unclear)
Well, I'm not a designer, so I created one with the buttongenerator. Feel free to design another button though. ;)
Quote from: Fizzy on November 06, 2005, 03:01:57 PM
Thanks Xeno for putting my mind at rest. :)
Karma +1
You're welcome. :) Still backup though, always backup :P
"Back-up" is my middle name ;)
Any live demos? or screenshots? Would really appreciate it!
I'm debating whether to write my own, or not.. this mod does not seem to do it for me for what I am looking for..
Thanks
i had this very BAD error, and i am trying to uninstall but the package has WAY too many files, i don';t know where to look.
this is error:
Fatal error: Cannot redeclare autowarn() (previously declared in /homepages/20/d107436098/htdocs/bb/bb/Sources/Security.php:227) in /homepages/20/d107436098/htdocs/bb/bb/Sources/Security.php on line 281
that's bad, ins't it?
Nitro, did you uninstall any previous versions of this mod? It looks like it's installed twice.
Ok I know this is probably someplace else but I cant really find it. I have added this and it works great under the default theme, but under helios and any others I have it does not show up. So how can I fix this, keep in mind im not very programming smart....
You need to adapt custom themefiles to work with this mod.
How to make mods work with themes? (http://www.simplemachines.org/community/index.php?topic=34526.0)
If you are using SMF 1.0.5, you need to make the changes descriped in the file VisualWarning_SMF10.mod.
If you are using SMF 1.1 Beta 3 Public, you need to make the changes descriped in the file VisualWarning_SMF11.mod.
If you are using SMF 1.1 RC1, you need to make the changes descriped in the file VisualWarning_SMF11R1.mod.
Um, what does it do?
Quote from: Bonk on November 08, 2005, 08:46:34 AM
Um, what does it do?
Added description to the first post. Will add some screenshots soon ;)
Coolness! 8) Thanks. We just might use this one. (as it looks like it won't be lost in a future 1.0.5 -> 1.1.x upgrade of our forums)
Bonk,
This is a great and very useful mod. Personally I think the dev team would do well to include Xeno's mod in to the main release, but that's just my opinion :)
Thanks Fizzy, but that's way to much credit for me. :-[ I only updated it because I needed it, Grudge created it.
hi thx for the nice mod
but the problem is that i get this message when i click on "Post Moderation Manegment"
"Unable to load the 'main' template."
i am using SMF 1.1RC1 and i installed the mod using Packages instillation
i uploaded it to the Packages folder in my site and then installed it
so any body can help
thx
sounds like you have mambo/joomla? just wondering
i have SMF 1.1 RC1 and using the defualt theme
i am getting the same problem with any mod that i install
can u help
Seems to be working OK for me. (haven't tested using it yet though, as I cannot create a new account as registrations seem to be broken on MySQL 5 - hope to resolve that shortly...)
Getting errors posting as a moderated user - not sure if php 5.0.5 or MySQL 5.0.15 related:
Quote
8: Undefined index: returnToPost
File: \forum\Sources\Post.php
Line: 1294
8: Undefined variable: scripturl
File: \forum\Sources\Post.php
Line: 1297
Think its php 5.0.5...
It seems to work despite these errors however... (so far).
It works for me up to banning:
Quote
Database Error
Field 'hostname' doesn't have a default value
File: \forum\Sources\VisualWarning.php
Line: 185
Running on php 5.0.5 and MySQL 5.0.15 in strict mode.
To get it to work, I had to modify the ban query code like so:
elseif ( $major_version == '1.0' ) {
db_query("
INSERT INTO {$db_prefix}banned (ID_MEMBER, ban_type, hostname, email_address, reason, notes, restriction_type, ban_time, expire_time)
VALUES ($_REQUEST[user], 'user_ban', '', '', '$message', '$txt[visual_warning_management]', 'full_ban', $ban_time, $expire_time)", __FILE__, __LINE__);
}
Though it really should use the member account's actual e-mail address...
I have not done so for the other database versions...
Hi Bonk,
I'm very sorry for the delay. I will look into those errors as soon as I'm up to it. Right now I'm having some personal problems, so I won't be able to spend much time on it.
No problem xenovanis, I understand.
Its working OK for us for now, it would be nice to get it running error free though, when you get the chance to look at it.
Our admins and mods love it! Thanks for the effort you've already put into updating it.
Quote from: Bonk on November 11, 2005, 11:08:54 AM
To get it to work, I had to modify the ban query code like so:
.....
Though it really should use the member account's actual e-mail address...
I have not done so for the other database versions...
I installed SMF for the first time at all. As I have the same error, it would be nice, if you tell me rigth path and file to make the bug-fix. thx
Sources\VisualWarning.php lines 182-186. My fix posted above is only for 1.0.x. I am not working with 1.1.x yet.
ok im running the new 1.1rc1 and with this mod i se everything but the WARN button on the post.
i am useing the helios mutli skin so any help i would like...
thank you
i want reply for tell only that this mod work like a charm with SMF 1.1 RC without no problme and not error
thx again
I know i am asking a stupid question but i installed this mod and everything i dont see a error my only question is how to use it i mean where should i click to warn the members
Quote from: desistyle on November 17, 2005, 07:23:11 PM
I know i am asking a stupid question but i installed this mod and everything i dont see a error my only question is how to use it i mean where should i click to warn the members
same here guys it stalls fine it just dont show the warn button or anything like that. and i have followed the HOW TO GET MODS TO WORK WITH OTHER THEMES and it still dont work please help.
p.s. please see my other post!
thank you
This mod only modifies the default theme.
To make it work with other themes, read through the .mod file in the mod and make the same changes to the theme you are using. That is what I had to do to get it to work with the pure_dark theme.
(search the .mod file for instances of "template.php" and make the same additions to the theme you are using as it adds to the default theme.)
You might want to check your forum on the default theme first to make sure it is working there first.
well im just lost so i guess i wont be useing this mod.
thank you
well i installed this mod and everything but i dont see the warn thing on 7dana theme but as soon i switch back to default theme its there can u plz help me with this can u put this mod in 7dana theme too plz plz
In Post.template.php of the 7dana theme find this line (or something similar):
if ($context['can_post_attachment'])
replace with;
if (isset($context['warning']))
echo'
<tr>
<td align="center" colspan="2">
<font size="2">' . $txt['visual_postmod_appear'] . '</font>
</td>
</tr>';
elseif ($context['can_post_attachment'])
How do I modify files? (http://www.simplemachines.org/community/index.php?topic=24110.0)
Quote from: xenovanis on November 19, 2005, 08:40:46 AM
In Post.template.php of the 7dana theme find this line (or something similar):
if ($context['can_post_attachment'])
replace with;
if (isset($context['warning']))
echo'
<tr>
<td align="center" colspan="2">
<font size="2">' . $txt['visual_postmod_appear'] . '</font>
</td>
</tr>';
elseif ($context['can_post_attachment'])
How do I modify files? (http://www.simplemachines.org/community/index.php?topic=24110.0)
Sir Sorry to disturb u but it does not have post.template.php it has only these files
Display.template.php
Help.template.php
index.php
index.template.php
Sorry for that. Make these changes to your 7dana files. Remember, it could look a little different for this theme.
index.template.php
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<b>', $txt[616], '</b><br />';
if (isset($context['user']['awaiting_mod']))
echo '<br />' . $context['user']['awaiting_mod'];
Display.template.php
if ($message['can_remove'])
echo '
<a href="', $scripturl, '?action=deletemsg;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';sesc=', $context['session_id'], '" onclick="return confirm(\'', $txt[154], '?\');">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/delete.gif" alt="' . $txt[121] . '" border="0" />' : $txt[31]), '</a>';
if ($context['can_warn'])
echo '
<a href="', $scripturl, '?action=warnadd;topic=', $context['current_topic'], ';start=', $context['start'], ';user=', $message['member']['id'], ';msg=', $message['id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/im_visualw.gif" alt="' . $txt['visual_raise'] . '" border="0" />' : $txt['visual_warn']), '</a>';
if (isset($message['member']['group']) && $message['member']['group'] != '')
echo '
', $message['member']['group'], '<br />';
if (isset($message['member']['warning']['link']) && $message['member']['warning']['link'] != '')
echo'
', $message['member']['warning']['link'];
Just as a note, Stryker...
nealry ALL mods will only modify the default theme. It's the nature of the beast.
Quote from: xenovanis on November 19, 2005, 06:39:11 PM
Sorry for that. Make these changes to your 7dana files. Remember, it could look a little different for this theme.
index.template.php
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<b>', $txt[616], '</b><br />';
if (isset($context['user']['awaiting_mod']))
echo '<br />' . $context['user']['awaiting_mod'];
Display.template.php
if ($message['can_remove'])
echo '
<a href="', $scripturl, '?action=deletemsg;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';sesc=', $context['session_id'], '" onclick="return confirm(\'', $txt[154], '?\');">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/delete.gif" alt="' . $txt[121] . '" border="0" />' : $txt[31]), '</a>';
if ($context['can_warn'])
echo '
<a href="', $scripturl, '?action=warnadd;topic=', $context['current_topic'], ';start=', $context['start'], ';user=', $message['member']['id'], ';msg=', $message['id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/im_visualw.gif" alt="' . $txt['visual_raise'] . '" border="0" />' : $txt['visual_warn']), '</a>';
if (isset($message['member']['group']) && $message['member']['group'] != '')
echo '
', $message['member']['group'], '<br />';
if (isset($message['member']['warning']['link']) && $message['member']['warning']['link'] != '')
echo'
', $message['member']['warning']['link'];
Wow dude u rock u are simply the bestttttttttt... thanks for helping me out
unable to load main template
1.1rc1 juno theme from bloc
http://arkserver.servehttp.com/forum/index.php
Quote from: ArkServer on November 20, 2005, 07:43:42 PM
unable to load main template
1.1rc1 juno theme from bloc
http://arkserver.servehttp.com/forum/index.php
Could be due to a problem with the packagemanager. Try uploading the file VisualWarning.template.php to your /Themes/default directory and the file VisualWarning11.php to your /Sources directory. Also, make sure you make the changes as explained in the file VisualWarning_SMF11R1.mod to your themefiles.
Quote from: xenovanis on November 19, 2005, 06:39:11 PM
Sorry for that. Make these changes to your 7dana files. Remember, it could look a little different for this theme.
index.template.php
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<b>', $txt[616], '</b><br />';
if (isset($context['user']['awaiting_mod']))
echo '<br />' . $context['user']['awaiting_mod'];
Display.template.php
if ($message['can_remove'])
echo '
<a href="', $scripturl, '?action=deletemsg;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';sesc=', $context['session_id'], '" onclick="return confirm(\'', $txt[154], '?\');">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/delete.gif" alt="' . $txt[121] . '" border="0" />' : $txt[31]), '</a>';
if ($context['can_warn'])
echo '
<a href="', $scripturl, '?action=warnadd;topic=', $context['current_topic'], ';start=', $context['start'], ';user=', $message['member']['id'], ';msg=', $message['id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/im_visualw.gif" alt="' . $txt['visual_raise'] . '" border="0" />' : $txt['visual_warn']), '</a>';
if (isset($message['member']['group']) && $message['member']['group'] != '')
echo '
', $message['member']['group'], '<br />';
if (isset($message['member']['warning']['link']) && $message['member']['warning']['link'] != '')
echo'
', $message['member']['warning']['link'];
thank you so much this is what i was asking for....now only one more question for you
how do i change the button? to match my theme...
i already have one but which one doi replace? does anyone know.
plus i am getting this when i use the warn button....
Unable to load the 'add_warning' template.
Name your button im_visualw.gif and upload it to your Themes/
your_theme*/images/english directory, where your_theme is your custom theme. If you have any other languages installed, upload the button to these directories as well.
Quote from: stryker69 on November 21, 2005, 08:31:32 AM
plus i am getting this when i use the warn button....
Unable to load the 'add_warning' template.
Upload the file VisualWarning.template.php to your /Themes/default directory.
1 more question, can a moderator warn user? if not can you tell me how? i liek this mod a lot and thanks for the help!
Quote from: ArkServer on November 21, 2005, 11:13:46 AM
1 more question, can a moderator warn user? if not can you tell me how? i liek this mod a lot and thanks for the help!
Yes, it's a permission.
thank you xenovanis you are one of the most helpfull people on here. keep up the good work....
props to you.
Quote from: stryker69 on November 21, 2005, 07:50:10 PM
thank you xenovanis you are one of the most helpfull people on here. keep up the good work....
props to you.
Agree, gj! all my problems are solved :)
Hi,
I'm getting this error:
QuoteFatal error: Call to undefined function: autowarn() in /home/exaequo/public_html/forum/index.php on line 151
because of the mods new data in index.php. What should I do?
If I remove it, the mod stops working, of course.
It also happened to me that the package manager, somehow, installed it twice and I had to do uninstall to remove the double "entrances". But now if I want to remove the mod totally, I have to do file by file. :(
Anyway, the plan is to use the mod and not remove it, so if you could help, I would really appreciate it.
The easiest way to completely remove it is uploading all files from the updatepackage again. After that yo can install the mod again. Unfortunately, this will remove any other installed mods as well.
Thanks for your reply.
The problem is not the mod installed twice, cause I managed to remove one of them nor that I have to remove manually or upload fresh files, if I want it gone. :)
I don't want to go through this trouble, if I can correct what causes the error in index.php. The strangest thing is that after the mod was successfully installed (and that includes the removal of the second installation and thus any double information) the mod worked perfectly. It was only 24h later that this error in index.php appeared. ???
When i installed this mod on my SMF 1.1 RC1 using package manager i got couple of errors. Can you please tell me how to fix them?
(http://img308.imageshack.us/img308/2411/error17pa.jpg)
and when i try to warn someone i get this error:
(http://img308.imageshack.us/img308/4052/error27vl.jpg)
can someone tell me how can i give only like one user a permsiion to warn other just one member and just the permission to warn other members
this mod is no good its very buggy! Not Recommended for boards running RC1
Ok, my problem is solved. Apparently during installation the following files were not modified:
Themes/default/Post.template.php
Sources/Security.php
It was a matter of desinstalling and installing again now.
Quote from: b0bby on November 29, 2005, 09:33:59 PM
this mod is no good its very buggy! Not Recommended for boards running RC1
Your problem is caused by a bug in the packagemanager. If you have read through this topic, you would have found at least one post with a similar issue, just a couple of posts above your input.
I need help installing this mod because I'm getting the could not load main board or sumtin as mentioned b4 and even tried what it said and I still get this error. so can some1 install it for me please ???
http://www.simplemachines.org/community/index.php?topic=55512.msg400802#msg400802
it still says the same thing
I've installed it on a brand new installation. I moved the files as stated, however I get nothing in admin. no 'warning admin' and no warn button, or anything. hell, the graphics are not even in the images folder.
I'd say it's me, however this is a brand new beast.
-sigh- Never mind. It's an ID10t error. I installed the board as root, and am running it as another user so the permissions are farked..
Running my own server, so I can screw it up real good. LOL!!!! Just going to murder/reinstall.. I'll let ya know yeah or nay, however this is the only logical explaination for the strangeness I am encountering..
Very good mod, gj.
I have a problem:
I installed the mod automatically through smf-board, and it works great on english language. But when I change language to swedish then I get this:
(http://www.videohelp.se/avatar/svenska.jpg)
But when I use the english language I get this:
(http://www.videohelp.se/avatar/engelsk.jpg)
Do someone know the problem?
Another thing, I installed/removed it a couple of times. And now I see 3 "warn"-buttons.
(http://www.videohelp.se/avatar/warn.jpg)
that is because in your modifications.sweedish.php file the equivalent of warning management is set up wrong, Don't use spaces... Also, for the warn buttons, it is because in the display.template.php you have to delete 2 copies of the code for the warning button
thx for the help. :)
I got rid of the "extra" buttons, but when I watch in my Modifications.swedish.php file I see only this:
<?php
// Version: 1.1 RC1; Modifications
?>
well, then another reason is that it isn't there..
$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['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';
All that english text u have to translate to sweedish so that there will be something there.
you see how after the "=" sign, there is an english word, well, u have to translate that to sweedish for there to be something there.
Thx for all the help. It works now. :D
I have no "warn"-button, instead a text (Raise Warning Level) showing. But I saw something in this thread about that problem.
(http://img308.imageshack.us/img308/2411/error17pa.jpg) (this picture is borrowed)
But i didn´t see any answer to fix this problem.
u dont have the image in the right image folder..
Quote from: DemonicInfluence on December 19, 2005, 04:51:04 PM
u dont have the image in the right image folder..
=), it was that easy. thx alot.
thx to all the people that helped me, I appreciate that.
Does this mod makes the posts to be approved by the "admin" only before they are desplayed?
What? It makes it so if a person is moderated, when they post, it has to be approved by an admin b4 they are displayed.
I wanted if a person is just a user (not modarated)
Can this mod do it ?
No. I pretty sure not..
can moderators use this mod in where they are moderating?
unless u set up a separate membergroup and let them warn, no.
I'm having a few problems with this one for some reason.
I'm working on a 1.0.5 Install, no other Mods and have uploaded the Package Manager version 1.27
The installation didn't show any errors,
The Admin Panel options are all perfect and fully funtional
Graphics all show correctly and admin can add a member to the "Warned" group
"Warned" numbers appear properly in the smf_members table against the selected members.
BUT!
When adding a new thread as a moderated or muted member the post is accepted without verification,
The postmoderation table remains totally empty.
Any suggestions?
I'm not sure Fizzy. I did not touch the 1.0.5 installation files, I only added an option to use it with 1.1 RC1... And, as much as I'm willing to look into it, at this moment I'm realy loaded with work, and I'm not sure I am capable of really determing the problem. Sorry :-\
Not a problem Xeno :) I quite understand ;) I just thought I would ask in case it rang any bells :)
I'll have a dig in to the code further and see if I can get to the bottom of it.
Is there a version for 1.1 RC2
Quote from: pcigre on January 01, 2006, 09:00:20 AM
Is there a version for 1.1 RC2
No. Will see if I can update, but it will probably take some time as I am very busy irl at the moment.
woot cant wait :)
works fine, thx :)
but, if i have a member who's moderated and writes a new post, how can a admin or mod be instructed by that?! i do not want to look up every visit in the adminpanel
ups, okay, i found it ^^
Okay, other question:
a moderated or muted user cannot edit his post, but he can clear it?! how can i stop this? thanks for your help
i have a smf 1.0.5. by the way
I am trying to uninstall this mod in preperation for the upgrade to RC2. I keep getting errors when I try to uninstall. (See screenshot) Can I uninstall this mod and make the changes that failed manually ??? Please help. Would I edit these 3 files before uninstalling or after ???
(http://img.photobucket.com/albums/v704/bigguy982/visualw.jpg)
How strange, I tested install and uninstall ??? Just these three files?
Open the file VisualWarning_SMF11R1.mod and reverse the modifications for these files. On a sidenote, I *think* you can safely proceed if you are uploading the upgradepackage right after this, because all three files will be overwritten with newer ones.
Yep just these 3. I hadn`t planned on doing the upgrade right away. I am using smf 1.0.5 btw. So open the xml file and revers these modifications then ???
Hang on, I thought you were running 1.1RC1. You'll need the VisualWarning_SMF10.mod then.
What is this "VisualWarning_SMF10.mod" ??? Why do I need this if I`m uninstalling.
That file describes all alterations made to your files. You need it if you want to reverse the changes.
oh, were do I get thatfile ??? Can I uninstall with package manager and then do modifications ??? Or do I do the manual modifications first then uninstall. ???
Quote from: Bigguy on January 08, 2006, 05:22:57 PM
oh, were do I get thatfile ??? Can I uninstall with package manager and then do modifications ??? Or do I do the manual modifications first then uninstall. ???
That file should be in the package. Yes, you can uninstall first. Like I said, it's probably not a big deal, because all files it fails on are overwritten by newer files. Just make sure to backup before upgrading. Always backup...
If I uninstall this mod and those warnings are still there will it make my board not work ???
EDIT: I think I have uninstalled it successfully, thank you for your help.
Does any upgrade come, for this mod, to v. 1.1 RC2?
I'm looking for an upgrade for the 1.1 RC2 forum as well. I really liked this feature and can't wait to install it again.
I don't think it is updated yet. However, i believe it is being worked on.
I hope so as I really need this mod :)
Yeah it would be very useful :)
yeah, this is one of the most useful mods i've used. love it :)
Same :) Are there any warning mods for RC2 out at the moment?
I dont think so.
That's why this mod is so important :)
Is it possible that you cannot warn admins?
Quote from: DemonicInfluence on January 16, 2006, 08:52:42 PM
I dont think so.
You're right.
Quote from: ArkServer on January 17, 2006, 10:13:19 AM
Is it possible that you cannot warn admins?
There's no sense in warning admins IMHO ;). So it isn't possible..
Hello i´ve just installed SMF RC2 and i need to install mod 'Visual Warning Mod' to moderate posts in my forum before they are published , i've seen that this mod is for the older version but i really need this feature for new version. Is it available? will be available soon? I think that it´s a great forum, but i couldn't install SMF in my job if i don´t have this feature. Thank you in advance.
Not yet. SOon i think..
I really need to get this going with RC2. Can anyone give me any information on what to modify to make this work?
Anyone working on this to make it compatible with rc2?
Please, make this mod working with RC2.
Tain't that simple! Give the poor joe a break! He knows we all want that! He prolly has a life(He should drop that and become a monk solely devoted to enhancing SMF but thats another story). Welp anywho, give the guy a break!
Sorry, is not just possible install this mod with the RC2 ? :'(
? ? ? :)
sheesh, Federico... haven't you read all the previous responses??
This mod has not yet been updated for RC2.
No one has made the updates to have this mod install/run under RC2.
Xenovanis has said he will, but he is busy right now and will do it when he can...
Thanks Kindred for the answer!
Sorry, have not read to all the answers of this theared!
I will wait Xenovanis the mod for RC2 :)
Bye... Federico from Italy ;)
I modified the relevant files but I must have missed something as it still didn'r work.
That mod i've changed so that it succesfully works in 1.1 RC2 ;) ;)
Quote from: huijaa on February 06, 2006, 06:34:50 PM
That mod i've changed so that it succesfully works in 1.1 RC2 ;) ;)
You want to say that there is a RC2 version?
yeah,
./Themes/default/Display.template.php (1 of 2)
./Sources/Post.php (2 of 7)
./Themes/default/index.template.php (1 of 1)
are changed. I don't know that it can work perfectly, but only 100% installed.
Can you share this with us?
Good!!! huijaa!
Quote from: pcigre on February 06, 2006, 06:50:26 PM
Can you share this with us?
Huijaa.... please...please :D
This mod, i've made, is wrong for 1.1 RC2, because of basic (themes) on 1.1 RC1 or earlier.
Please ask xenovanis (http://www.simplemachines.org/community/index.php?action=profile;u=6985) for updating to 1.1 RC2 (or newer?)
I'm sorry... :'(
Huijaa.
I have sent PM to xenovanis ;)
QuoteI'm sorry...
;)
maybe he/she will wait until the final version 1.1 come out.
Can i have a version that installs to 1.0.6 Classic theme?
Okay, first of all, I'm very sorry for not responding sooner. At the moment I am very busy IRL, I can hardly find time to even get online.
As a second note: wining, complaining, PM'ing or mailing will definately not help to speed things up. Au contraire, this is something I really dislike. So, please, show a little patience.
Hi Guys just been surfing the community looking for a Approve post per topic or Catogory area.
Ive used VW before and never saw a post moderation by Group or By Catogory area.
However I see many posts where the person is asking for a Approve post per group or Catogory and gets referred to this Mod.
I am missing some documentation somewhere?
As I dont recall reading that VW does this ?
I was under the impression VW was a PER User setup ?
Thanks
Cozmo
I use this mod for a few days now, haven`t seen an option for moderated post by group or category, only for single users.. :)
Quote from: mforum on February 18, 2006, 04:07:17 AM
I use this mod for a few days now, haven`t seen an option for moderated post by group or category, only for single users.. :)
Thats correct. It would be a handy option to have, also to be able to set it so all new members could be moderated automatically, without the need for them to post first.
Some of the other Forum software has this option, So it must be a limitation or control issue in the program I am not sure. But there are posts going back to 2004 asking about this.
Dont get me wrong SMF is superior to most Forum makers. And it may be the security and relaibilty that might limit it to not be able to do this? I dont know. Just not sure why it not and option.
There was a Approve Post mod and its gone by the way side not sure why perhaps with the new Mysql and Progs it didnt work?
Ive needed this despertly since last winter, hopeful it would be here but alas not yet.
Guess the gods must have a reason for it not being standard or even a mod as there must be several dozen requests for a mod like this.
Maybe some day.
Cozmo
Can I use this with SMF 1.1 RC2?
Not yet. It needs to be re-done for RC2 because of the default theme change.
Having had to edit the install file myself for to say RC2 it said;
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 failed
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 failed
15. Execute Modification ./Sources/Load.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/english/im_visualw.gif
So a pretty good result despite the theme change.
I'll do the parts that failed manually. :)
Coolies :)
SMF Version: SMF 1.0.6
I downloaded the warning mod not that long ago latst version! But moderators cannot ban people thaey can do everything else appart from banning :( This is a screenshot of what they should be able to do in their premissions list!
(http://i2.photobucket.com/albums/y40/kgh/ScreenShot015.jpg)
Quote from: greenlodge on February 25, 2006, 05:03:49 AM
SMF Version: SMF 1.0.6
I downloaded the warning mod not that long ago latst version! But moderators cannot ban people thaey can do everything else appart from banning :( This is a screenshot of what they should be able to do in their premissions list!
(http://i2.photobucket.com/albums/y40/kgh/ScreenShot015.jpg)
If i am right you must first give them permision to ban from admin panel membergroups permissions :)
sorry, this may be a dumb question, but what units is the
"time warning lasts" in?
I.E. if I put "5" in that box, does it last 5 minutes, 5 hours, 5 days, etc...
ck
days I think
It would be usefull to add an option so a user can be warned indepented from a post.
For example, for his pm`s or his profile (signature, avatar, etc) :)
I agree with that, because on our forum it was a PM that caused someone to need to be warned.
ck
I would really like this mod for 1.1RC2! Anyone converting it?
It will be done. The Author has posted regarding this earlier in the thread.
http://www.simplemachines.org/community/index.php?topic=55512.msg484402#msg484402
I'll take a look and see if I can get it in for RC2. :)
I'm waiting this mod for 1.1 RC2... :P
:'( don't work :'(
Hi...
I'm an admin of a SMF fórum (1.1 RC2) and i need install this system, the Visual Warning MOD.
I want install this mod but i've some problems in that... I read the manual very times and i cant pass to next point.
I do the first and the second points:
1 - Upload all quoted files;
2 - Run VisualWarningdb.php file to create all tables;
But in the 3rd point ("Using boardmod run the mod file and upload all the files affected by the modifications") i cant found the boardmod, i'm brazilian, my english is "so so", and i need better informations to found the boardmod.
I'm waiting some help... Thanks!
This modification has not been updated for smf 1.1 RC2 yet. It should be soon though.
Quote from: Bigguy on March 03, 2006, 12:26:33 PM
This modification has not been updated for smf 1.1 RC2 yet.
:'( :'(
Quote from: Bigguy
It should be soon though
I Hope so :o
I am trying to install the mod "VisualWarning_v1.27. " in SMF RC2 and I have problems. I tried to install the mod using the admin of SMF and he give a message that doesn't find installation data. then I decided to install following manually the file "modification.xml" and "readme.txt." I edited the files:
index.php
ModSettings.php
Profile.template.php
Display.php
Display.template.php
Post.php
Post.template.php
Karma.php
ManagePermissions.php
Subs.php
Security.php
Modifications.dutch.php
Modifications.english.php
index.template.php
Load.php
And I turned the file "VisualWarningdb.php."
But I am having problems in the file Load.php in this line
elseif (!empty($user_info['theme']) && !isset($_REQUEST['theme']) && (!empty($modSettings['theme_allow']) || allowedTo('admin_forum')))
The foruns link and error: http://www.vilamakers.com/forum
How can I solve this problem? Help...
@mglink: As stated numerous times in this thread, this mod does not work with RC2.
I think your going to have to manually uninstall it.
I edited the install file to allow RC2 and sides from what I posted earlier, it works fine.
Oh... really! This mod doesnt work with RC2, i wasnt saw the version! Excuse me...
Did you get this working with RC2 ??? I think alot of pple would be interested in knowing if it works fine.
Quote from: Gary G. on March 03, 2006, 07:47:36 PM
I edited the install file to allow RC2 and sides from what I posted earlier, it works fine.
Quote from: Gary G. on March 03, 2006, 07:47:36 PM
I edited the install file to allow RC2 and sides from what I posted earlier, it works fine.
Care to post your code changes Gary, so the rest of us can do it manually?
i extracted the files from the tar.gz file then in the install file I changed RC1 to say RC2. Then manually installed the bits that failed.
That worked to a fashion. However, there are some parts missing from the Admin section. On my RC1 test site, there is quite a lot of things that can be changed in Admin. On the RC2 one most are not there. But the basic fuctionality is there, so it can be used.
EDIT: Found the parts I though were missing (it was late at night when I installed it). So yes, I can confirm that Gary G's way does work.
Any chance of posting some a little more detailed for the less proficient user?
I want come back to SMF1.1 RC1 :'(
(from rc1 to rc2 I losted my theme and this mod)
You cant downgrade. Unless you use a backup.
Follow what I did here, use 7zip to extract then follow this quote by me.
Quote from: AwwLilMaggie on March 04, 2006, 07:59:27 AM
i extracted the files from the tar.gz file then in the install file I changed RC1 to say RC2. Then manually installed the bits that failed.
How?
Excuse me, but I'm italian and I don't understand english very well..
Exist a possibility that this mod works in RC2?
Without manual editing this mod does not work with RC2 yet. From what I hear if you do do some editing it will work.
Quote from: Gary G. on March 07, 2006, 04:31:31 PM
You cant downgrade. Unless you use a backup.
Follow what I did here, use 7zip to extract then follow this quote by me.
Quote from: AwwLilMaggie on March 04, 2006, 07:59:27 AM
i extracted the files from the tar.gz file then in the install file I changed RC1 to say RC2. Then manually installed the bits that failed.
Quote from: forgyx on March 07, 2006, 06:10:11 PM
How?
Excuse me, but I'm italian and I don't understand english very well..
Exist a possibility that this mod works in RC2?
ok, but where is xenovanis?
Why he doesn't upgrade this mod?
It would, of course, be a massive help to people, if more details of what files to edit, where to find them, and where to find the bits you need to add, were posted.
Quotemanually installed the bits that failed
is just a little vague.
Anything that fails must be added manually, also if you look in the install.xml file that comes with the mod, you should have all the info you need in there. I wont garrentee this will work.
Dear SMF Users
If you wish to use it on smf,try this version of it.
Visual Warning Mod (http://mods.simplemachines.org/index.php?mod=283)
That version is not compatible with smf 1.1 rc2 it is for smf 1.0 rc2
Sorry about that.
Link has been corrected.
finally ;)
This is my first mod ever. i tried to do this by Package Manager but gave up. So I followed the manual instrctions. So far so good but I don't understand these instructions.
Using boardmod run the mod file and upload all the files affected by the modifications
What's a boardmod?
what version!!
Sorry about that. That would help eh? DOH! I'm using SMF 1.0.7
okay. In the package it either has a boardmod.xml or install.xml or something like that.. In it, it has loks to add after/before/replace.. If it is something that has tags like this:;
<add after>
Then just do using common sense..
If it is something like this:
<search position=after>
After means to add before. ANd before is to add after.. Replace same..
Hope it helped..
I have no boardmod.xml or install.xml in the package but I do have modification.xml & package-info.xml
then it is modification.xml
ok thanx. I looked and I have no clue to what I should be modifying in this. Isn't this file for package manager installation? I'm manually installing the mod. Too advanced for me here I guess.
Search in there for an add replace or something like that..
I see a lot of <add> tags here is the doc. itself
Quote<?xml version="1.0"?>
<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ATTENTION: If you are trying to install this manually, you should try
the package manager. If it will not work for you, please take a look
at the following for information on this format:
http://mods.simplemachines.org/docs/manual-install.php
Modifications use this general format...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
<file name="$sourcedir/filename.php">
<operation>
<search position="after"><![CDATA[ ]]></search>
<add><![CDATA[ ]]></add>
</operation>
</file>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">
<id>Grudge:VisualWarning</id>
<version>1.27</version>
<file name="$boarddir/index.php">
<operation>
<search position="before"><![CDATA[ 'viewquery' => array('ViewQuery.php', 'ViewQuery'),
]]></search>
<add><![CDATA[ 'warnadd' => array('VisualWarning.php', 'AddWarning'),
'warnadd2' => array('VisualWarning.php', 'AddWarning2'),
'warnlist' => array('VisualWarning.php', 'ListWarnings'),
'warnlist2' => array('VisualWarning.php', 'ListWarnings2'),
'warnpmman' => array('VisualWarning.php', 'Manager'),
'warnpmman2' => array('VisualWarning.php', 'Manager2'),
]]></add>
</operation>
<operation>
<search position="before"><![CDATA[ // Log this user as online.
writeLog();
]]></search>
<add><![CDATA[ // Check if time to run visual warning update
if ($modSettings['autoWarningTime'] < time())
autoWarn();
]]></add>
</operation>
</file>
<file name="$sourcedir/ModSettings.php">
<operation>
<search position="before"><![CDATA[ array('text', 'karmaSmiteLabel'),
]]></search>
<add><![CDATA[ array('heading', &$txt['visual_warning_mod']),
array('text', 'visualw_mess_ban'),
array('text', 'visualw_mess_mute'),
array('text', 'visualw_mess_pmod'),
array('text', 'visualw_mess_warn'),
array('rule'),
array('text', 'visualw_color_ban'),
array('text', 'visualw_color_mute'),
array('text', 'visualw_color_pmod'),
array('text', 'visualw_color_warn'),
array('rule'),
array('text', 'visualw_image_ban'),
array('text', 'visualw_image_mute'),
array('text', 'visualw_image_pmod'),
array('text', 'visualw_image_warn'),
array('rule'),
array('text', 'muteAutoTime'),
array('text', 'moderationAutoTime'),
array('text', 'warningAutoTime'),
array('rule'),
array('check', 'visualw_pmod_edit'),
]]></add>
</operation>
</file>
<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 ($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>
<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="$themedir/Display.template.php">
<operation>
<search position="before"><![CDATA[ if ($message['can_remove'])
echo '
<a href="', $scripturl, '?action=deletemsg;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';sesc=', $context['session_id'], '" onclick="return confirm(\'', $txt[154], '?\');">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/delete.gif" alt="' . $txt[121] . '" border="0" />' : $txt[31]), '</a>';
]]></search>
<add><![CDATA[ if ($context['can_warn'])
echo '
<a href="', $scripturl, '?action=warnadd;topic=', $context['current_topic'], ';start=', $context['start'], ';user=', $message['member']['id'], ';msg=', $message['id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/im_visualw.gif" alt="' . $txt['visual_raise'] . '" border="0" />' : $txt['visual_warn']), '</a>';
]]></add>
</operation>
<operation>
<search position="before"><![CDATA[ if (isset($message['member']['group']) && $message['member']['group'] != '')
echo '
', $message['member']['group'], '<br />';
]]></search>
<add><![CDATA[ if (isset($message['member']['warning']['link']) && $message['member']['warning']['link'] != '')
echo'
', $message['member']['warning']['link'];
]]></add>
</operation>
</file>
<file name="$sourcedir/Post.php">
<operation>
<search position="before"><![CDATA[ $context['show_spellchecking'] = $modSettings['enableSpellChecking'] && function_exists('pspell_new');
]]></search>
<add><![CDATA[ if ($user_info['warning'] > 2)
fatal_error($txt['visual_been_muted']);
if ($user_info['warning'] == 2)
$context['warning'] = 1;
]]></add>
</operation>
<operation>
<search position="after"><![CDATA[ global $ID_MEMBER, $user_info, $board_info, $options;
]]></search>
<add><![CDATA[ global $scripturl, $threadid;
]]></add>
</operation>
<operation>
<search position="before"><![CDATA[ require_once($sourcedir . '/Subs-Post.php');
loadLanguage('Post');
]]></search>
<add><![CDATA[ if ($user_info['warning'] > 2)
fatal_error($txt['visual_been_muted']);
]]></add>
</operation>
<operation>
<search position="before"><![CDATA[ $msgOptions['modify_time'] = time();
$msgOptions['modify_name'] = addslashes($user_info['name']);
}
modifyPost($msgOptions, $topicOptions, $posterOptions);
}
]]></search>
<add><![CDATA[ // This is a new post, not an admin, user's posts are moderated - save it.
elseif(!isset($_REQUEST['msg']) && !$user_info['is_admin'] && $user_info['warning'] == 2){
$idtostore = $topic == null ? -1 : $topic;
$request = db_query("
INSERT INTO {$db_prefix}postmoderation
(ID_MEMBER, ID_TOPIC, ID_BOARD, subject, posterName,
posterEmail, posterTime, posterIP, body, icon,smiliesEnabled, ID_POLL)
VALUES ($ID_MEMBER, '$idtostore', '$board', '$_POST[subject]',
'$_POST[guestname]', '$_POST[email]', " . time() . ", '$_SERVER[REMOTE_ADDR]',
'$_POST[message]','$_POST[icon]', " . (isset($_POST['ns']) ? '0' : '1') . ", $ID_POLL)", __FILE__, __LINE__);
if ($options['return_to_post'] == '1' && $topic != '')
redirectexit("$scripturl?topic=$threadid;start=new");
else
redirectexit("$scripturl?board=$board");
}
]]></add>
</operation>
<operation>
<search position="before"><![CDATA[ // Editing a message...
elseif (isset($_REQUEST['msg']))
{
checkSession('get');
]]></search>
<add><![CDATA[ // Check user has no warnings on this message
if ($user_info['warning'] > 1 && empty($modSettings['visualw_pmod_edit']))
fatal_error($txt['visual_perm_modify']);
if ($user_info['warning'] > 0){
$request = db_query("
SELECT warningText
FROM {$db_prefix}vwarnings
WHERE memberID=$ID_MEMBER
AND messageID=$_REQUEST[msg] LIMIT 1", __FILE__, __LINE__);
if (mysql_fetch_assoc($request))
fatal_error($txt['visual_perm_modify']);
}
]]></add>
</operation>
<operation>
<search position="before"><![CDATA[ if (isset($_REQUEST['msg']) && !empty($topic))
{
$_REQUEST['msg'] = (int) $_REQUEST['msg'];
]]></search>
<add><![CDATA[ // Check user has no warnings on this message
if ($user_info['warning'] > 1 && empty($modSettings['visualw_pmod_edit']))
fatal_error($txt['visual_perm_modify']);
if ($user_info['warning'] > 0){
$request = db_query("
SELECT warningText
FROM {$db_prefix}vwarnings
WHERE memberID=$ID_MEMBER
AND messageID=$_REQUEST[msg] LIMIT 1", __FILE__, __LINE__);
if (mysql_fetch_assoc($request))
fatal_error($txt['visual_perm_modify']);
}
]]></add>
</operation>
<operation>
<search position="before"><![CDATA[ // Permissions check!
isAllowedTo('calendar_post');
]]></search>
<add><![CDATA[ // warning
if ($user_info['warning'] > 1)
fatal_error($txt['visual_postmod_auth']);
]]></add>
</operation>
</file>
<file name="$themedir/Post.template.php">
<operation>
<search position="replace"><![CDATA[ if ($context['can_post_attachment'])
]]></search>
<add><![CDATA[ if (isset($context['warning']))
echo'
<tr>
<td align="center" colspan="2">
<font size="2">' . $txt['visual_postmod_appear'] . '</font>
</td>
</tr>';
elseif ($context['can_post_attachment'])
]]></add>
</operation>
</file>
<file name="$sourcedir/Karma.php">
<operation>
<search position="before"><![CDATA[ // If you're a guest or can't do this, blow you off...
is_not_guest();
]]></search>
<add><![CDATA[ // If you have ANY warning, also blow you off
if ($user_info['warning'] > 1)
fatal_error($txt['visual_no_karma']);
]]></add>
</operation>
</file>
<file name="$sourcedir/ManagePermissions.php">
<operation>
<search position="before"><![CDATA[ 'profile' => array(
'profile_view' => true,
'profile_identity' => true,
'profile_extra' => true,
'profile_title' => true,
'profile_remove' => true,
'profile_server_avatar' => false,
'profile_upload_avatar' => false,
'profile_remote_avatar' => false,
)
]]></search>
<add><![CDATA[ ,
'visual_warn' => array(
'visual_warn_any' => false,
'visual_approve_any' => false,
)
]]></add>
</operation>
</file>
<file name="$sourcedir/Subs.php">
<operation>
<search position="replace"><![CDATA[ if (allowedTo('moderate_forum'))
$context['admin_areas']['members']['areas']['view_members'] = '<a href="' . $scripturl . '?action=viewmembers">' . $txt[5] . '</a>';
]]></search>
<add><![CDATA[ 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>';
}
]]></add>
</operation>
<operation>
<search position="before"><![CDATA[ $context['user']['unread_messages'] = &$user_info['unread_messages'];
]]></search>
<add><![CDATA[ if (allowedTo('visual_approve_any'))
{
$result = db_query("
SELECT COUNT(*)
FROM {$db_prefix}postmoderation", __FILE__, __LINE__);
list($modmsg) = mysql_fetch_row($result);
if ($modmsg)
$context['user']['awaiting_mod'] = $modmsg . ' ' . $txt['visual_require_mod'];
}
]]></add>
</operation>
<operation>
<search position="before"><![CDATA[function setupThemeContext()
{
global $modSettings, $user_info, $scripturl, $context, $settings, $options, $txt, $maintenance;
]]></search>
<add><![CDATA[ global $db_prefix; // Grudge's Mod
]]></add>
</operation>
</file>
<file name="$sourcedir/Security.php">
<operation>
<search position="after"><![CDATA[// Do banning related stuff. (ie. disallow access....)
function is_not_banned($forceCheck = false)
]]></search>
<add><![CDATA[function autoWarn()
{
global $txt, $db_prefix, $modSettings, $sourcedir;
loadLanguage('InstantMessage');
// Only check warning levels once every blue moon
updateSettings(array('autoWarningTime' => time() + 86400));
$request = db_query("
SELECT ID, memberID, timeToWarn, time, level
FROM {$db_prefix}vwarnings WHERE level < 4 AND level > 0", __FILE__, __LINE__);
include_once($sourcedir . '/Subs-Post.php');
while ($row = mysql_fetch_assoc($request)){
$IM=0;
if($row['timeToWarn'] == -1){
// Check if time is expired
if ($row['level'] == 1)
$timeinc = $modSettings['warningAutoTime']*86400;
elseif ($row['level'] == 2)
$timeinc = $modSettings['moderationAutoTime']*86400;
else
$timeinc = $modSettings['muteAutoTime']*86400;
}
else
$timeinc = $row['timeToWarn']*86400;
if(time() > $row['time'] + $timeinc){
db_query("
UPDATE {$db_prefix}vwarnings
SET level = level - 1, time = " . time() . "
WHERE ID=$row[ID]", __FILE__, __LINE__);
db_query("
UPDATE {$db_prefix}members
SET warning=warning - 1
WHERE ID_MEMBER=$row[memberID]",__FILE__, __LINE__);
$IM=1;
}
if ($IM==1){
$result = db_query("
SELECT memberName, ID_MEMBER, emailAddress
FROM {$db_prefix}members
WHERE ID_MEMBER=$row[memberID]", __FILE__, __LINE__);
list($nameTo, $toID, $emailTo) = mysql_fetch_row($result);
$result = db_query("
SELECT ID_MEMBER, realName, memberName FROM {$db_prefix}members
WHERE ID_GROUP=1 LIMIT 1", __FILE__, __LINE__);
$fromInfo = mysql_fetch_row($result);
$from = array(
'id' => $fromInfo[0],
'name' => $fromInfo[1],
'username' => $fromInfo[2],
);
$immessage = $nameTo . "\n\n" . $txt['visual_warning_reduced'];
sendpm($toID, null, $txt['visual_reduced'], $immessage, $from);
}
}
}
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.dutch.php">
<operation>
<search position="after"><![CDATA[?>
]]></search>
<add><![CDATA[$txt['visual_warning_mod']='Visual Warning Mod';
$txt['visualw_mess_ban']='Bericht voor gebande gebruiker';
$txt['visualw_mess_mute']='Bericht voor verstomde gebruiker';
$txt['visualw_mess_pmod']='Bericht voor gebruiker onder postmoderatie';
$txt['visualw_mess_warn']='Bericht voor gewaarschuwde gebruiker';
$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['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';
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.english.php">
<operation>
<search position="after"><![CDATA[?>
]]></search>
<add><![CDATA[$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['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';
]]></add>
</operation>
</file>
<file name="$themedir/index.template.php">
<operation>
<search position="before"><![CDATA[ // Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<b>', $txt[616], '</b><br />';
]]></search>
<add><![CDATA[ if (isset($context['user']['awaiting_mod']))
echo '<br />' . $context['user']['awaiting_mod'];
]]></add>
</operation>
</file>
<file name="$sourcedir/Load.php">
<operation>
<search position="before"><![CDATA[ mem.birthdate, mem.memberIP, mem.ICQ, mem.AIM, mem.YIM, mem.MSN, mem.posts, mem.lastLogin,
]]></search>
<add><![CDATA[ mem.warning, " . "
]]></add>
</operation>
<operation>
<search position="before"><![CDATA[ mem.karmaBad, mem.memberIP, mem.lngfile, mem.ID_GROUP, mem.ID_THEME, mem.buddy_list, mem.pm_ignore_list,
]]></search>
<add><![CDATA[ mem.warning, " . "" . "
]]></add>
</operation>
<operation>
<search position="before"><![CDATA[ 'email' => isset($user_settings['emailAddress']) ? $user_settings['emailAddress'] : '',
]]></search>
<add><![CDATA[ 'warning' => isset($user_settings['warning']) ? $user_settings['warning'] : 0,
]]></add>
</operation>
<operation>
<search position="after"><![CDATA[ 'aim' => $profile['AIM'] != '' && (empty($modSettings['guest_hideContacts']) || !$user_info['is_guest']) ? array(
]]></search>
<add><![CDATA[ 'warning' => $profile['warning'] > 0 ? array(
'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] . '">
' . $txt['visual_text_' . $warn] . '</font>' : '') . '<br />',
) : array('link' => ''),
]]></add>
</operation>
<operation>
<search position="before"><![CDATA[ $profile['signature'] = parse_bbc($profile['signature'], true, 'sig' . $profile['ID_MEMBER']);
]]></search>
<add><![CDATA[ if ($profile['warning'] == 1)
$warn = 'warn';
elseif ($profile['warning'] == 2)
$warn = 'pmod';
elseif ($profile['warning'] == 3)
$warn = 'mute';
elseif ($profile['warning'] == 4)
$warn = 'ban';
]]></add>
</operation>
</file>
</modification>
Quote from: DemonicInfluence on April 10, 2006, 03:40:23 PM
okay. In the package it either has a boardmod.xml or install.xml or something like that.. In it, it has loks to add after/before/replace.. If it is something that has tags like this:;
<add after>
Then just do using common sense..
If it is something like this:
<search position=after>
After means to add before. ANd before is to add after.. Replace same..
Hope it helped..
<file name="$boarddir/index.php">
<operation>
<search position="before"><![CDATA[ 'viewquery' => array('ViewQuery.php', 'ViewQuery'),
]]></search>
<add><![CDATA[ 'warnadd' => array('VisualWarning.php', 'AddWarning'),
'warnadd2' => array('VisualWarning.php', 'AddWarning2'),
'warnlist' => array('VisualWarning.php', 'ListWarnings'),
'warnlist2' => array('VisualWarning.php', 'ListWarnings2'),
'warnpmman' => array('VisualWarning.php', 'Manager'),
'warnpmman2' => array('VisualWarning.php', 'Manager2'),
]]></add>
</operation>
<operation>
<search position="before"><![CDATA[ // Log this user as online.
writeLog();
]]></search>
<add><![CDATA[ // Check if time to run visual warning update
if ($modSettings['autoWarningTime'] < time())
autoWarn();
]]></add>
</operation>
</file>
That says to edit index.php... ANd read above post for more help.
ohh ohhhhhhh.... Now I GET IT! those are the modification directions. Gosh I feel like such a dope! It's a pain to be dyslexic. Thank you so much.
lol. no prb.
I have a question. I am new to this and am programing illiterate to a point. I have just installed a fresh install of 1.0.7 will this mod work with my install.
I see references to 1.1RC1 and 1.1RC2 which does my 1.0.7 fall under so when looking for other mods to add I can be sure I have the right version for my board.
Iwould like very much to add this to my board as I have used the warn system on another board where I'm admin and find it very useful.
This is were the isual warning mod is. If your version # is not there I dont think it is compatible.
http://mods.simplemachines.org/?action=search;basic_search=visual+warning
I need some help with this please.
How can I make it so that posts that have been approved from moderation show up as new posts ?
Hello, we are experiencing a small problem with the mod. At the board where I am an administrator along with another guy, the other guy warned himself by mistake. And now that Warning thingy is always displaying under his name even though it's ages since the warning expired. Is there any way to get rid of his warning withouth reinstalling the vwarn mod?
Have you tried to reduce the warning level to 0?
How do you do that?
do you mean the amount of days he is warned? because the warning already has expired.
No, I mean hit the "Warn button" in one of his posts and set the warning level to 0 (zero). That should remove the warning.
Quote from: Hwoarang on August 06, 2006, 10:45:06 PM
How do you do that?
do you mean the amount of days he is warned? because the warning already has expired.
Try this
Admin CP -> Members -> Warning Management -> ( If his nick is there, click on it then change the New Level: to 0 )
Hope this help :)
Yeah hmm, i think i got my warning mods mixed up a bit. this problem is for the vwarn mod whcih dosen't seem to have those options.
Bug. ID of last message in topic is not changes when message has moderated and information about new message is not showes.
To fix it in file Source/VisualWarning11.php find
$request = db_query("
SELECT ID_MSG
FROM {$db_prefix}messages
WHERE ID_TOPIC = $row[ID_TOPIC]
ORDER BY posterTime LIMIT 1", __FILE__, __LINE__);
and add DESC before LIMIT, i.e.
$request = db_query("
SELECT ID_MSG
FROM {$db_prefix}messages
WHERE ID_TOPIC = $row[ID_TOPIC]
ORDER BY posterTime DESC LIMIT 1", __FILE__, __LINE__);
is it possible that a local moderator can only warn in the board he moderates and not outside his own board?
No, and I'm sorry to say I have no intention of implementing this.
It should be a nice feature because now everyone can warn or ban people as long as they are in that membergroup.
But oh well, ill try to find someone to help me with this. nice mod though.
I may have missed it, but can you set members to be moderated before they've posted anything?
What I want to do is have *all* new members moderated by default. Once they've posted a few sensible messages and I'm happy they can be trusted, I wan't to remove the moderation for the member.
I can see how to add moderation once they've posted something, but I want to pre-empt spammers buy keeping their posts hidden.
Cheers
Mike
I'm afraid that's not possible.
Hi,
Just upgraded an old YABB SE to the 1,1 Rc2 - No problem !
Then I added the mod in the "packages" menu of the board
But I cannot see any warning buttons in the users posts.
Any idea what to do? - Must it then be manually installed? - I use the Classic theme...
Yes, it will only install in the default theme, so you need to change the themefiles manually.
How to make mods work with themes? (http://www.simplemachines.org/community/index.php?topic=34526.0)
I tried installing this mod on my 1.1 RC2 Forum and got an error when installing.
I had to modify karma.php and managepermissions.php manually but I think I spotted a codeing error for the
<edit file>
$sourcedir/ManagePermissions.php
</edit file>
<search for>
'profile' => array(
'profile_view' => true,
'profile_identity' => true,
'profile_extra' => true,
'profile_title' => true,
'profile_remove' => true,
'profile_server_avatar' => false,
'profile_upload_avatar' => false,
'profile_remote_avatar' => false,
)
</search for>
<add after>
,
'visual_warn' => array(
'visual_warn_any' => false,
'visual_approve_any' => false,
)
</add after>
This piece seems to have a bracket in the wrong place
,
'visual_warn' => array(
'visual_warn_any' => false,
'visual_approve_any' => false,
)
It should be
),
'visual_warn' => array(
'visual_warn_any' => false,
'visual_approve_any' => false,
Bracket before ), instead of at the end
Anyways it all works gooooooooood 8)
Tried to install this mod on my board version 1.1 RC2. Received the "Successful install" message, and then on the next click, received this:
"Fatal error: Cannot redeclare autowarn() (previously declared in /home/dhcoopri/public_html/forum/Sources/Security.php:198) in /home/dhcoopri/public_html/forum/Sources/Security.php on line 252"
Now cannot access the Admin CP to remove the modification - and the forum is hosed.
Please help.
I can't find the way to reach the option available on this picture. What link am I supposed to click?
(http://www.simplemachines.org/community/index.php?action=dlattach;topic=55512.0;attach=11002;image)
Quote from: DHC on August 25, 2006, 08:12:19 PM
Tried to install this mod on my board version 1.1 RC2. Received the "Successful install" message, and then on the next click, received this:
"Fatal error: Cannot redeclare autowarn() (previously declared in /home/dhcoopri/public_html/forum/Sources/Security.php:198) in /home/dhcoopri/public_html/forum/Sources/Security.php on line 252"
Now cannot access the Admin CP to remove the modification - and the forum is hosed.
Please help.
Have you tried to install this twice? Open the file Security.php and look for a double statement on line 198 and 252. Remove one.
@ckgb
I can't tell you what you need to click if I don't know what you are trying to accomplish.
Quote@ckgb
I can't tell you what you need to click if I don't know what you are trying to accomplish.
I apologize for improper explanation.
For example if I want to change "Default time before mute removed" - how can I reach the page that has the settings change option?
Your looking at it? Change the 7 to whatever days you want and click save.
That is the question. How do I navigate to this page in my Administration panel?
Admin -> Features and Options
There should be a menu option for the Visual Warning Mod at the bottom of your screen.
I just might sound real stupid. But I go in there and can't find it.
:-[ Can anybody help me with this please?
Please don't bump, it's extemely rude to bump only after an hour or so. It makes me less interested in helping you out.
What version of SMF are you using? What language are you using?
I apologize. Won't happen again. :-X
RC3 and forum administration is in english.
I haven't tested this in RC3 yet, this could very well be a compatibility problem. In the RC2 version, there was a tab next to the Basic Features options.
Well another warning mod for RC3 is back alive I think :P
Thank you.
Yup, this is exctly the tab I do not have. Though installation went with no mistakes.
Is there any way I could manyally add some type of code to my forum files for this tab to appear?
I haven't had the time to look in to it, I've no idea.
Ok. Thank you very much. Appreciate the great support.
Will wait for the update info.
:)
upgraded to RC3 and the this mods RC3 version.
I lost the link to go to post that need moderation. The text is there but is not clickable.
Yes, well, that's probably because it's not updated to work with 1.1 RC3 yet.
Quote from: xenovanis on August 26, 2006, 12:04:04 PM
Yes, well, that's probably because it's not updated to work with 1.1 RC3 yet.
Quote from: the mod pageCompatible With: 1.0.5, 1.1 Beta 3 Public, 1.1 RC1, 1.1 RC2, 1.1 RC3
It isn't?
Quote from: xenovanis on August 26, 2006, 02:38:06 AM
Quote from: DHC on August 25, 2006, 08:12:19 PM
Tried to install this mod on my board version 1.1 RC2. Received the "Successful install" message, and then on the next click, received this:
"Fatal error: Cannot redeclare autowarn() (previously declared in /home/dhcoopri/public_html/forum/Sources/Security.php:198) in /home/dhcoopri/public_html/forum/Sources/Security.php on line 252"
Now cannot access the Admin CP to remove the modification - and the forum is hosed.
Please help.
Have you tried to install this twice? Open the file Security.php and look for a double statement on line 198 and 252. Remove one.
@ckgb
I can't tell you what you need to click if I don't know what you are trying to accomplish.
Yes, here is what I have done:
* Tried to install it more than once - it failed
* Re-upoaded ALL original files (SMF 1.1 RC2 files, I mean)
* Re-installed the modification.
* Experienced more problems
I guess the Modification files are NOT being overwritten when I re-upload the SMF files.
So.... I was able to remove the duplicate code in the Security.php file.
Now, I have the problem that the "Warn" icon appears twice in the post window. Can you tell where I can remove that code as well? And any other instances where there may be problems with duplicate code?
Thanks
This mod is very useful. It should be written to make it easier to moderate users, meaning that you should be able to select an option in permissions to moderate a whole group or individual. I've been able to solve this problem by manually running a query to set all members as moderated.
update smf_members set warning =2 where ID_GROUP =0;
update smf_members set warning =2 where ID_GROUP =21;
update smf_members set warning =2 where ID_GROUP =22;
update smf_members set warning =2 where ID_GROUP =27
You just need to change the group number to be appropriate for your forum. This will set all users in each group as moderated. If you want to set the users as not moderated, do the same thing with a 0 in place of the 2.
Quote from: xenovanis on August 26, 2006, 12:04:04 PM
Yes, well, that's probably because it's not updated to work with 1.1 RC3 yet.
This is VERY confusing!
On the downloads site, Aaron *insists* the modification HAS BEEN updated to work with RC3 - HOWEVER - I cannot successfully install it because I get the error message that the Test Failed with the Post.php file.
xenovanis, I do not mean to be rude - but would you please coordinate with Aaron so that we know if this mod is SUPPOSED to work with RC3?
And also - please help me figure out the problem of the error message when trying to Apply Mod in Package Manager.
Thanks!
DHC,
I just tested it again on a new SMF 1.1 RC3 installation, and it works fine for me. Would you happen to be using other modifications that have modified Post.php?
@ Aäron, I'm so sorry, I never noticed you updated this mod :-[
@ DHC and ckgb, please ignore my previous comments about the mod not being updated.
Quote from: Aäron on August 30, 2006, 03:55:14 AM
DHC,
I just tested it again on a new SMF 1.1 RC3 installation, and it works fine for me. Would you happen to be using other modifications that have modified Post.php?
Maybe. Not sure how I would know if other mods made changes to Post.php or not. Here is a list of installed mods:
* vReportBoard Mod
* Reason for Editing Mod
* Ad Management
* Global Announcements
* Reg Bar
With my RC2 installation, I had MANY additional modifications, including the Visual Warning mod - and they all seemed to peacefully co-exist.
Anyway, I sure would like to get this mod installed and working.
Thanks!
Thank you.
This way can I come back to saying that for some reason after installation there is no administrative portion link to be found where it was supposed to be?
I've installed this fine but when I click on the 'Warning Management' or 'Post Moderation Manager' I get this:
Unable to load the 'main' template.
Help?
Heya
I just installed it correctly, but its not working perfectly
I suppose that if you want to add someone to the warning list you go to Admin -> Warnming Management -> submit to add someone
only the button Submit does not work ::)
so i cant add anyone to the list of it... thats pretty bad
whats wrong?
no... to add someone to the warning list, you clikc on the WARN button that was added to the message display screen (display.template.php)
Quote from: xenovanis on August 30, 2006, 05:03:28 AM
@ Aäron, I'm so sorry, I never noticed you updated this mod :-[
@ DHC and ckgb, please ignore my previous comments about the mod not being updated.
Aaron or xenovanis,
Would you please let me know if you are planning to reply to the questions raised in this topic? I know you are busy - and I know your efforts are volunteered, and would like to thank you for your efforts.
Still, I have sent PM's (upon request) and posted here in the open forum thinking there would be a reply - but there has been nothing for about a week.
Please let me know if you will be acting on these issues.
Thanks
Can someone help me please? I'm trying to install this mod on my forum and getting the following errors during install -
7. Execute Modification ./Sources/Post.php Test failed
13. Execute Modification ./Sources/ManagePermissions.php Test failed
I've tried using the 1.29 and 1.3 files (one dl'd through package manager, one through the mod page itself and uploaded to "packages") and receive the same error. I'm running 1.1 RC2, and it is completely current including the latest security patch.
I installed this mod several weeks ago on my test forum, just to examine the functionality, etc. I have all the same mods installed on both. I cannot remember, however, if the mod installed manually without issue or not. I do remember that I had to fix a few lines of code (I think there was a missing ")" or something) - but I can't recall if that was before or after installation. My brain is a bit fried, lately. ;)
Do I just push through the installation and manually edit the ManagerPermissions.php and Post.php files after installation? Or something else?
Thanks for any help you can offer. :)
Quote from: Sapphire_H on September 04, 2006, 05:28:05 PM
Can someone help me please? I'm trying to install this mod on my forum and getting the following errors during install -
7. Execute Modification ./Sources/Post.php Test failed
13. Execute Modification ./Sources/ManagePermissions.php Test failed
I've tried using the 1.29 and 1.3 files (one dl'd through package manager, one through the mod page itself and uploaded to "packages") and receive the same error. I'm running 1.1 RC2, and it is completely current including the latest security patch.
I installed this mod several weeks ago on my test forum, just to examine the functionality, etc. I have all the same mods installed on both. I cannot remember, however, if the mod installed manually without issue or not. I do remember that I had to fix a few lines of code (I think there was a missing ")" or something) - but I can't recall if that was before or after installation. My brain is a bit fried, lately. ;)
Do I just push through the installation and manually edit the ManagerPermissions.php and Post.php files after installation? Or something else?
Thanks for any help you can offer. :)
I am not sure what product you are using with a version "1.3". I was hopeful that xenovanis or Aaron might update the current version (1.29) to eliminate the many bugs there seem to be with the modification - but I don't find it anywhere.
As for the problems you experienced - I had EXACTLY the same problem with the 'post.php' test.
It seems this modification is NOT ready for prime time - unfortunately.
I hope they get around to fixing/updating it soon.
It would also be nice if they would respond to the PM's (made at their request) and the posts in this topic - but as it is all a volunteer effort - we cannot be TOO demanding :-X Still, a little communication would be nice.
Good luck
Hmm... Something was seriously wrong with my package manager.
The Mod file fails to execute. So I manually added ALL the files, and manually added ALL the code. For the most part, I can see it. Settings, main template loads and everything. See the warn button, click it, takes me to the warning page. But! None of the settings are being saved. I did line by line when adding, and I'm confident I didn't miss anything. I checked and double checked, but I'm probably missing something miniscule.
Any ideas?
Quote from: Jay T on August 26, 2006, 12:00:31 PM
upgraded to RC3 and the this mods RC3 version.
I lost the link to go to post that need moderation. The text is there but is not clickable.
Just an update - I ended up "cheating" and hiring Tony to install it for me. ;D
Problems here also, using SMF 1.1 RC3 and I get:
13. Execute Modification ./Sources/ManagePermissions.php Test failed
My installation is pretty much clean, I just have SMF arcade as a mod.
Quote from: Sapphire_H on September 07, 2006, 04:23:21 AM
Just an update - I ended up "cheating" and hiring Tony to install it for me. ;D
Who is "Tony"???
This may help you find out whom it is:
http://www.simplemachines.org/community/index.php?action=profile;u=128
Thanks JJ. :)
Yup, that's Tony. 8) I've had him do several jobs for me over the last few months. Great guy!
This mod is working very well for us. I use it with TinyPortal "Articles" to write my TOS & Posting Guidelines in HTML. Then I've set HTML anchors at each individual TOS/Posting Guideline "rule," and provided the moderators with a list of links to each of those anchors. This way, when someone violates, they're able to just post a link directly to the section of the TOS/Guidelines which "justifys" the warning. Saves a lot of trouble with members claiming a moderator is picking on them. ;) I run a site about adoption, and there's a whole lot of emotional "baggage" involved in the topic - this mod coupled with the HTML anchors goes a long way towards demonstrating to the members that they're not being moderated just because someone doesn't like their opinion - we get that complaint a lot. LOL
Kudos to the programmer(s) who wrote it!!
Sorry to be so stupid, but for the life of me I can't find where to use this mod after I've installed it. Where do I go to apply levels to users? Using Neutron1 theme 1.1 RC3. There is no Visual Warning tab in Features and Options. Thanks.
Jay
You must modify your theme to work with the modifications or else it won't work and you'll likely to recieve errors which will then cause much more fuss :D
Quote from: haktanir2 on September 07, 2006, 06:35:36 AM
Problems here also, using SMF 1.1 RC3 and I get:
13. Execute Modification ./Sources/ManagePermissions.php Test failed
My installation is pretty much clean, I just have SMF arcade as a mod.
Should I install anyway?
Nope, you need to check what has previously modified the file :P
You can install....if you want to do those edits manually.
Quote from: haktanir2 on September 07, 2006, 04:18:22 PM
Quote from: haktanir2 on September 07, 2006, 06:35:36 AM
Problems here also, using SMF 1.1 RC3 and I get:
13. Execute Modification ./Sources/ManagePermissions.php Test failed
My installation is pretty much clean, I just have SMF arcade as a mod.
Should I install anyway?
Quote from: J J Williams on September 07, 2006, 04:23:47 PM
Nope, you need to check what has previously modified the file :P
The only thing that could have edited it is SMF arcade as it adds trophies to the messages.
How would I do the edits manually? Would I just install it and then check the file giving the error? Or would I have to manually edit everything?
No you just manually edit the file that failed on install. Everything else would have installed fine. All the edits are in the install.xml file. or in the modification.xml file what ever it might be called. NOT the package-info.xml.
EDIT: BACK IT UP BEFORE YOU SCREW IT UP.
Quote from: Bigguy on September 07, 2006, 04:48:10 PM
No you just manually edit the file that failed on install. Everything else would have installed fine. All the edits are in the install.xml file. or in the modification.xml file what ever it might be called. NOT the package-info.xml.
EDIT: BACK IT UP BEFORE YOU SCREW IT UP.
Alright so I found this:
<file name="$sourcedir/ManagePermissions.php">
<operation>
<search position="before"><![CDATA[ 'profile' => array(
'profile_view' => true,
'profile_identity' => true,
'profile_extra' => true,
'profile_title' => true,
'profile_remove' => true,
'profile_server_avatar' => false,
'profile_upload_avatar' => false,
'profile_remote_avatar' => false,
)
]]></search>
<add><![CDATA[ ,
'visual_warn' => array(
'visual_warn_any' => false,
'visual_approve_any' => false,
)
]]></add>
</operation>
</file>
I'll install and then go to this file and make the changes. That is all right?
Yes find this:
'profile' => array(
'profile_view' => true,
'profile_identity' => true,
'profile_extra' => true,
'profile_title' => true,
'profile_remove' => true,
'profile_server_avatar' => false,
'profile_upload_avatar' => false,
'profile_remote_avatar' => false,
)
and before it add:
,
'visual_warn' => array(
'visual_warn_any' => false,
'visual_approve_any' => false,
)
Remember backup first though, that's very important.
Thanks a lot, seems to have worked.
Your quite welcome.
Nope didn't, messed up the permissions page. Time to uninstall. ::)
It shouldn't have if you did the edit right.
Quote from: J J Williams on September 07, 2006, 03:46:42 PM
You must modify your theme to work with the modifications or else it won't work and you'll likely to recieve errors which will then cause much more fuss :D
Thanks very much for this information. Is there a link to information on how to modify a theme to work with a mod? Thanks again.
Jay
Yes there is. try here for an answer:
http://docs.simplemachines.org/index.php?board=45.0;sort=subject
Quote from: Bigguy on September 07, 2006, 05:21:20 PM
Yes there is. try here for an answer:
http://docs.simplemachines.org/index.php?board=45.0;sort=subject
Thanks!
Jay
Quote from: Bigguy on September 07, 2006, 05:10:41 PM
It shouldn't have if you did the edit right.
The mod itself worked but the Permissions section of the Admin console became a white page.
Maybe the edits for "ManagePermissions.php" didn't get done right, I'm not to sure.
Working n well done on my forum using SMF 1.1 RC3 w/ Dilber MC Theme.
Thanks to xenovanis / Aaron who create this Mod and hoping not late to update when the real SMF 1.1 announce. ;)
Quote from: tibpin2 on September 09, 2006, 12:36:18 AM
Working n well done on my forum using SMF 1.1 RC3 w/ Dilber MC Theme.
Thanks to who create this Mod and hoping not late to update when the real SMF 1.1 announce. ;)
Did you install it through the Package Manager? Any other modifications installed PRIOR to installing this one?
Quote from: DHC
Did you install it through the Package Manager? Any other modifications installed PRIOR to installing this one?
Yes, i'm installing trough Package Manager and afterward i copy *.gif from theme/default directory to theme/diblermc directory.
Just follow the order from README incl in the Mod package.
I install visualwarning129
Warning just given to my member. :P
Sample:
http://tibp-indonesia.com/TukarInfoBisPak/index.php?topic=3453.0
but my forum in indonesian language 8)
Quote from: tibpin2 on September 09, 2006, 12:53:08 AM
Quote from: DHC
Did you install it through the Package Manager? Any other modifications installed PRIOR to installing this one?
Yes, i'm installing trough Package Manager and afterward i copy *.gif from theme/default directory to theme/diblermc directory.
Just follow the order from README incl in the Mod package
Did you have any OTHER mods installed PRIOR to installing this mod?
Quote from: DHC
Did you have any OTHER mods installed PRIOR to installing this mod?
Nope..
Quote from: ckgb
That is the question. How do I navigate to this page in my Administration panel?
In RC3 under "Members" section on left
Members
Warning Management
Post Moderation Manager
Membergroups
Permissions
Registration
Ban List
Quote from: tibpin2 on September 09, 2006, 01:12:53 AM
Quote from: DHC
Did you have any OTHER mods installed PRIOR to installing this mod?
Nope..
It is looking like this modification doesn't 'play well' if there are other mods previously installed. I think the author should make a note of that on the download page so that people might be aware of it.
FWIW
Just started getting the "Hacking Attempt" error when trying to warn a member. It was working fine and started this all of a sudden.
I have RC3+TP
7. Execute Modification ./Sources/Post.php Test failed
9. Execute Modification ./Sources/Karma.php Test failed
13. Execute Modification ./Sources/ManagePermissions.php Test failed
Have you tried installing it without TinyPortal?
Oh no....
I cannot uninstall everything to install one mod... makes no sense.... there must be a fix or everyone who has other mods is with serious problems, right? *s*
Quote from: Syndel on September 12, 2006, 04:56:17 PM
Oh no....
I cannot uninstall everything to install one mod... makes no sense.... there must be a fix or everyone who has other mods is with serious problems, right? *s*
I have EXACTLY the same problem. Already installed other mods - and so now cannot install the Visual Warning Mod through the Package Manager.
Presumably, if I went through the manual install, I *might* be able to get it to work - but that sort of defeats the purpose of the Package Manager concept (I *think*).
I can imagine it must be difficult for a developer to come up with a modification that considers all the possibilities of OTHER modification that have gone on before it.
The part that is REALLY baffling to me is - I have maybe 5 or 6 mods installed in RC3 and encountered this problem. I have a separate board which runs RC2 and has maybe 20 modifications (including the Visual Warning mod) and they ALL installed and function just fine together. For some reason - what was possible with the RC2 version seems NOT possible with the RC3 version.
- Dan
Yeah.... and I am no PHP wiz... actually I am quite dumb... so I always forget a . , or ; / and it messes up the whole thing *le sigh*
Copy and paste is the best way if you have a good php editor.
Quote from: Bigguy on September 12, 2006, 05:30:40 PM
Copy and paste is the best way if you have a good php editor.
C&P is pretty easy - as is finding a good PHP editor (I presume PSPad is OK?).
The hard part for me is interpreting the code so that I know what to do once I open the PHP files - plus, as I said before, this sort of defeats the whole point of a Package Manager, doesn't it??
Some mods will interfere with others. It's really no ones fault as it is really hard to make a mod that is compatible with everything. I would suggest looking in the "install.xml" for the edits or uninstalling a mod at a time and then trying to reinstall the Visual Warning mod. Sometimes it just has to be done this way.
FWIW - in 1.1 RC3, I discovered the conflict which was preventing the Visual Warning Mod from installing through the Package Manager. I had previously installed the Mod, 'Reason for Editing', which *also* changed the post.php file.
To get the Visual Warning mod to install, I had to first un-install the Reason for Editing - then install Visual Warning - then re-install Reason for Editing.
I hope this helps others who are having similar problems.
- Dan
Quote from: Jay T on September 12, 2006, 02:42:07 PM
Just started getting the "Hacking Attempt" error when trying to warn a member. It was working fine and started this all of a sudden.
Evertime I try and upload this mod I get:
The package you tried to upload either is not a valid package or has become corrupted.
Quote from: ghostfreak on September 16, 2006, 05:53:40 AM
Evertime I try and upload this mod I get:
The package you tried to upload either is not a valid package or has become corrupted.
what version???
I am using SMF 1.1RC3 and I had it working with the last theme I was using. I just changed my theme to Ig-Oh. I have altered everything I at least thought I was supposed to by hand going through the installation file. I can't seem to get a link to appear in the posts that actually allow us to warn members. I can easily make a button to add in with the other buttons on each post but I can't seem to find what file and where to add in this one last part. Thanks for any and all help!!
Adam
Quote from: DHC on August 26, 2006, 06:55:29 PM
Now, I have the problem that the "Warn" icon appears twice in the post window. Can you tell where I can remove that code as well? And any other instances where there may be problems with duplicate code?
Thanks
I have this same issue ........ I have seen a resolution to it yet. Everything appears to work okay but there are two icons
Quote from: Fatherguido on September 18, 2006, 11:00:45 AM
Quote from: DHC on August 26, 2006, 06:55:29 PM
Now, I have the problem that the "Warn" icon appears twice in the post window. Can you tell where I can remove that code as well? And any other instances where there may be problems with duplicate code?
Thanks
I have this same issue ........ I have seen a resolution to it yet. Everything appears to work okay but there are two icons
The code for the modification appeared twice in one of the files.
You probably won't like my solution. I ended up reinstalling RC3 in its entirety. I then reinstalled the mods. After some manipulation, I managed to get everything to work OK - but there are still some mods for RC2 I am hoping will get updated so I can install them. Specifically 'Ignore User' and 'Topic Ratings'.
Good luck.
Quote from: DHC on September 18, 2006, 11:34:35 AM
Quote from: Fatherguido on September 18, 2006, 11:00:45 AM
Quote from: DHC on August 26, 2006, 06:55:29 PM
Now, I have the problem that the "Warn" icon appears twice in the post window. Can you tell where I can remove that code as well? And any other instances where there may be problems with duplicate code?
Thanks
I have this same issue ........ I have seen a resolution to it yet. Everything appears to work okay but there are two icons
The code for the modification appeared twice in one of the files.
You probably won't like my solution. I ended up reinstalling RC3 in its entirety. I then reinstalled the mods. After some manipulation, I managed to get everything to work OK - but there are still some mods for RC2 I am hoping will get updated so I can install them. Specifically 'Ignore User' and 'Topic Ratings'.
Good luck.
Ewwwwww Not a place I want to go ......there has to be a way to remove the duplicated code ............ do you have any idea where I might find it?
SMF Version: SMF 1.1 RC3
I don't know how to set up the following and don't understand what they meant , please help me :
- Message To Show For Banned User
- Message To Show For Muted User
- Message To Show For Post Moderated User
- Message To Show For Warned User
- Color of Message For Banned User
- Color of Message For Muted User
- Color of Message For Post Moderated User
- Color of Message For Warned User
- Image to Show For Banned User
- Image to Show For Muted User
- Image to Show For Post Moderated User
- Image to Show For Warned User
- Default Time Before Mute Removed (Days)
- Default Time Before Moderation Removed (Days)
- Default Time Before Warning Removed (Days)
- Moderated Users May Edit Messages
What are those things about ? Thank you very much
Quote from: jazz on August 27, 2006, 03:38:02 AM
This mod is very useful. It should be written to make it easier to moderate users, meaning that you should be able to select an option in permissions to moderate a whole group or individual. I've been able to solve this problem by manually running a query to set all members as moderated.
update smf_members set warning =2 where ID_GROUP =0;
update smf_members set warning =2 where ID_GROUP =21;
update smf_members set warning =2 where ID_GROUP =22;
update smf_members set warning =2 where ID_GROUP =27
You just need to change the group number to be appropriate for your forum. This will set all users in each group as moderated. If you want to set the users as not moderated, do the same thing with a 0 in place of the 2.
Thanks for the tip. I really need all
new users to be moderated after having some dork post an img tag that linked to a pornographic photo.
If you also set the default value for warning in the smf_members table to 2, you'll get all new members moderated, which is close to what I, and I suspect many other smf users, need.
The problem with this, in fact the whole mod IMHO, is that unless you're reprimanding someone for a particular post, they don't show up in the moderated users list, so you have to manually hack the relevent user's warning value in the database table if you think their bona fide and can be unmoderated. Thankfully though, doing this extra change doesn't send them an email or show the moderated icon - which would be inappropriate as they're only being monitored because their new, not necessarily bad.
Please, please, change the mod to allow groups, individuals, and new users to have moderation switched on/off via the member list and member groups list, with or without them getting an email and visual warning symbol. Keep the visual warning as an option for troublemakers or for threads that get out of hand. End of pleading.
Cheers - Mike
Quote from: Syndel on September 12, 2006, 04:31:09 PM
13. Execute Modification ./Sources/ManagePermissions.php Test failed
Donćt have TP. Any solution?
Quote from: pcigre on October 07, 2006, 10:28:17 AM
Quote from: Syndel on September 12, 2006, 04:31:09 PM
13. Execute Modification ./Sources/ManagePermissions.php Test failed
Donćt have TP. Any solution?
try manually editing
Quote from: mpetrie on September 25, 2006, 09:45:42 AM
Quote from: jazz on August 27, 2006, 03:38:02 AM
This mod is very useful. It should be written to make it easier to moderate users, meaning that you should be able to select an option in permissions to moderate a whole group or individual. I've been able to solve this problem by manually running a query to set all members as moderated.
update smf_members set warning =2 where ID_GROUP =0;
update smf_members set warning =2 where ID_GROUP =21;
update smf_members set warning =2 where ID_GROUP =22;
update smf_members set warning =2 where ID_GROUP =27
You just need to change the group number to be appropriate for your forum. This will set all users in each group as moderated. If you want to set the users as not moderated, do the same thing with a 0 in place of the 2.
Thanks for the tip. I really need all new users to be moderated after having some dork post an img tag that linked to a pornographic photo.
If you also set the default value for warning in the smf_members table to 2, you'll get all new members moderated, which is close to what I, and I suspect many other smf users, need.
The problem with this, in fact the whole mod IMHO, is that unless you're reprimanding someone for a particular post, they don't show up in the moderated users list, so you have to manually hack the relevent user's warning value in the database table if you think their bona fide and can be unmoderated. Thankfully though, doing this extra change doesn't send them an email or show the moderated icon - which would be inappropriate as they're only being monitored because their new, not necessarily bad.
Please, please, change the mod to allow groups, individuals, and new users to have moderation switched on/off via the member list and member groups list, with or without them getting an email and visual warning symbol. Keep the visual warning as an option for troublemakers or for threads that get out of hand. End of pleading.
Cheers - Mike
Here's a question, did the user register a first name and a last name; then spread through the boards and pmed users it?
i have an error when warn a post and this is error message
Hacking attempt...
UPDATE smf_messages
SET body = 'day co fai la lan ca'c oppa o thailand ko nhi?
[center][img]http://xxxxxxxx/forums/Themes/default/images/warnwarn.gif[/img] [color=green][/color][/center]'
WHERE ID_MSG = 26141
File: /home/xxxxxxxx/domains/xxxxxxxx/public_html/forums/Sources/VisualWarning.php
Line: 147
i think it's because of " ' " . how can i solve this problem ?
thx u
use \' for any single quotes within a statement.
I am using the versatility2 theme and added the Visual Warning Mod .......... I manually added all the items I need to make it work BUT the button is too high. I created a new button but even the original was about 50% too high.
Here is the code I added to make the button show up along with additional code above and below (because this is not the default theme)
Any ideas on what I need to change for alignment?
// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '<a href="', $scripturl, '?action=post;msg=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '">', $modify_button, '</a>';
// warning button manually added
if ($context['can_warn'])
echo '<a href="', $scripturl, '?action=warnadd;topic=', $context['current_topic'], ';start=', $context['start'], ';user=', $message['member']['id'], ';msg=', $message['id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/im_visualw.gif" alt="' . $txt['visual_raise'] . '" border="0" />' : $txt['visual_warn']), '</a>';
// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '<a href="', $scripturl, '?action=deletemsg;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';sesc=', $context['session_id'], '" onclick="return confirm(\'', $txt[154], '?\');">', $remove_button, '</a>';
// What about splitting it off the rest of the topic?
if ($context['can_split'])
echo '<a href="', $scripturl, '?action=splittopics;topic=', $context['current_topic'], '.0;at=', $message['id'], '">', $split_button, '</a>';
I just downloaded this mod and checked out the manual modifications I'll have to make on my version of the classic template -- wow, it looks like a lot and I'll have to do it when I have a good chunk of quiet time.
Question -- Do I make modifications based on what's in the modification.xml file or VisualWarning_SMF11R3.mod? I'm using SMF 1.1 RC3.
I don't think it matters but I would use this:
VisualWarning_SMF11R3.mod
I just attempted to install this mod and got the following error:
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 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
I will cancel the install at this point. Can someone advise?
Edit:
I went through my Post.php file and that had been modified for the eBay bbc tag mod. I suppose I should uninstall and unmod that mod and then give this a try? I'll wait until I get some advice before I proceed any further.
Okay, after reading this thread a bit, I realized the conflict was with the "Reason for Editing" mod. Once I uninstalled that and removed my modifications for my theme, this installed just fine. Now for the real work... all the manual mods that need to be done to my template. :-\
Wow... I'm not convinced I'm going to get this to work. I just sat down to start the manual modifications that need to be done to my version of the classic template and I couldn't even find this piece of code in order to add the code after it:
<edit file>
$themedir/Display.template.php
</edit file>
<search for>
$remove_button = create_button('delete.gif', 121, 31, 'align="middle"');
</search for>
<add after>
$warn_button = create_button('warn.gif', 'visual_warn', 'visual_warn', 'align="middle"');
</add after>
This instruction comes from VisualWarning_SMF11R3.mod.
However, when I look at modification.xml, this instruction as well as the next instruction in VisualWarning_SMF11R3.mod is not even there. So now I'm even more confused as to which one I should be moding from!
Okay, I think I got it working. Yeah for me! A couple of questions now....
- Where do I find the Visual Warning Mod screen where I define the text I want to use?
- For the time of the warning, what units is that in? Minutes? Hours? Days?
- The post moderation looks nice, but it would be nice if it would warn the affected user that their post must be approved by an admin. At the moment, it just kicks them back to the board index after attempting a post. Let me know if I'm just doing something wrong.
Thanks for a great mod!
I have SMF 1.1 RC3, a fresh install. I did install Dilber MC mod, Dilber MC theme, and Advanced Visual Verification, but successfully uninstalled all three. I am using the default theme.
When I successfully install VisualWarning 1.29, I am not getting the admin panel that is supposed to be in the features/options area (assuming it works the same as the version I was just running on my 1.1 RC2 forum). I can see the area to view moderated messages and to see members who are warned. My moderators are happily warning dummy accounts with success and glee.
There have been several posts discussing the same problem, but I didn't find an answer to any of them. I admit I'm exhausted from cleaning up a porn attack which forced me to upgrade to 1.1 RC3 ahead of schedule. Maybe it's fatigue. Maybe it's because the message I'm looking for this time doesn't have an optimistically photoshopped body part sticking out of it and waving like a flag. But I can't find it.
Please, will anyone show mercy and point me in the direction of getting this mod up and running so I can finally get some sleep? I've depended on it for so long I can't imagine going on without it.
Thanks.
Receiving no response, I instand a brand-spanking new copy of SMF 1.1 RC3. Right out of the box the first thing I did was install this mod.
Nope. No panel for setting up the text, colors, and graphics for warnings.
Is this mod no longer being supported? If it doesn't work and isn't supported, perhaps it should be removed from the mod site.
For the option of setting warning stuff, look in the Karma option, I've noticed it being in there when I used it.
-AwwLilMaggie
And there it is! It never occured to me to look there. Thanks so much lil maggie! (I love your site, btw)
Quote from: AwwLilMaggie on October 31, 2006, 05:08:38 PM
For the option of setting warning stuff, look in the Karma option, I've noticed it being in there when I used it.
-AwwLilMaggie
Thank you to Maggie as well! I've been waiting for this answer!
Heya
I've got an error at my forum at this mod
It shows up this error in the error log
8: Undefined index: visual_warn
File: /forum/Sources/Subs.php
Line: 3681
return '<img src="' . $settings['images_url'] . '/buttons/' . $name . '" alt="' . $txt[$alt] . '" ' . $custom . ' />' . ($label != '' ? '<b>' . $txt[$label] . '</b>' : '');
What is wrong with it?
Thanks
Hey... Nice mod but:
1. Can I get it to say "You have X posts waiting to be approved" under check latest topics? It's hard to remember to check in admin.
2. The menu is under karma, how can I move it under features, or its own tab?
3. And are the blank boxes supposed to be there just to space out the options? Or is my languages file missing a few strings?
Could anyone give me some tips on how to make this mod visible in an older template, please?
I have 1.1RC3 installed but a template from 1.0 versions. The features of this mod do not show in this template, contrary to what happens with the standard templates that come with 1.1RC3.
Thanks.
Well it would be best if you updated your templates to RC3 really.
Anyway:
1. Download the version of the mod for the right version of your forum
2. Open the zip file
3. Open visualwarningSMFXX.mod (where XX is your forum version)
4. Then just change the theme's code from there as it says.
You're right, but I don't have enough coding knowledge to do that and changing the whole template would make it incompatible with the website's overall design, because it was based on the template design. Or better said, I have not found a RC3 template with a design compatible with the rest of the website.
I've noticed that the old template version does not have a few files that the RC3 has and thus are modified by the Visual Warning Mod. What should I do in that case?
If you use the correct mod version with your template version, you shouldn't have any problems just copy/pasting what you need into your templates.
OK, good tip. I will try that! :)
Ok, there's something that leaves me absolutely puzzled. I've checked the template files in "default" and they have all the changes by the mod.
However, the only template files I have in the our current theme folder are:
BoardIndex.template
index.template
MessageIndex.template
while the mod requires these template files to be modified:
Display.template
Post.template
Profile.template
index.template
Where is our current theme getting all the other data, as it does not have Display.template, etc.?
If your theme does not have a certain file, it will use the file in the default theme.
From the looks of it, you do no need to do anything to integrate the mod into your forum, because it has already been done through the default theme
Ok, in admin it actually shows the Warning Managment section. However, the button that should appear in each post to apply the warning does not show up, making it impossible to use right now. I will try to investigate a bit more... but any help would be appreciated.
You have to upload the images from the mod folder into your custom theme images folder.
I very recently installed SMF and am attempting to add a couple of mods, this one being one of them. Being new, I think I missed a step or have done something wrong, the warning options are still not available. I did a manual install per these instructions in the readme file:
Legacy Instructions (manual installation):
1) Upload:
VisualWarning.php to Sources
VisualWarning.template.php to Themes/default
All image files except im_warn.gif to Themes/default/images
im_visualw.gif to the english subdirectory of images
VisualWarningdb.php, VisualWarningPdb.php to the root of your forum
2) Run the VisualWarningdb.php file that should now be in the root of your forum (ie www.yoursite.com/smf/VisualWarningdb.php - note the capitals). Choose the installation that applies and this should create the tables. If you are unsure select "new SMF installation" and ignore any errors thrown up.
3) Using boardmod run the mod file and upload all the files affected by the modifications
I have gone through step 2, but did not do step 3. I'm not sure what that is or how to run it. I am running SMF1.1. Any help will be appreciated.
Quote from: MRM4 on December 05, 2006, 10:28:00 AM
I very recently installed SMF and am attempting to add a couple of mods, this one being one of them. Being new, I think I missed a step or have done something wrong, the warning options are still not available. I did a manual install per these instructions in the readme file:
Legacy Instructions (manual installation):
1) Upload:
VisualWarning.php to Sources
VisualWarning.template.php to Themes/default
All image files except im_warn.gif to Themes/default/images
im_visualw.gif to the english subdirectory of images
VisualWarningdb.php, VisualWarningPdb.php to the root of your forum
2) Run the VisualWarningdb.php file that should now be in the root of your forum (ie www.yoursite.com/smf/VisualWarningdb.php - note the capitals). Choose the installation that applies and this should create the tables. If you are unsure select "new SMF installation" and ignore any errors thrown up.
3) Using boardmod run the mod file and upload all the files affected by the modifications
I have gone through step 2, but did not do step 3. I'm not sure what that is or how to run it. I am running SMF1.1. Any help will be appreciated.
Boardmod is specifically another name for the package manager; basically extract the .xml and .mods files, then add them to a new archive with a mature name. Then upload the archive to the Packages folder in which it should be recognized and ready for use. If not; it will require manually editting certain files which may include files that the forum is dependant on.
Thanks for the help. I did all of that and it still does not work.
Any chance this mod can be made 1.1 Final compatible? Is there an easy edit I could do to make it compatible?
I also wait for the update of this mod for SMF 1.1 version!
Quote from: L.G.S on December 01, 2006, 03:18:28 PM
You have to upload the images from the mod folder into your custom theme images folder.
It is there. However, it's no just the button that doesn't show. There's not even a link to the function as it usually shows when the image is missing... :(
The mod looks good but I haven´t tried it. ;)
But I have a fast question: If I´m using a forum with another language which file do I change to make this mod work with my forum? Now I can´t see anything..:(
thx in advanced..
Uninstalled 1.29 then upgraded then installed 1.30
I attempted to warn and received this error
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/lionzman/public_html/forum/Sources/Subs-Post.php
Line: 792
Subs-Post.php lines 781-798
$request = db_query("
SELECT
mem.memberName, mem.realName, mem.ID_MEMBER, mem.emailAddress, mem.lngfile, mg.maxMessages,
mem.pm_email_notify, mem.instantMessages," . (allowedTo('moderate_forum') ? ' 0' : "
(mem.pm_ignore_list = '*' OR FIND_IN_SET($from[id], mem.pm_ignore_list))") . " AS ignored,
FIND_IN_SET($from[id], mem.buddy_list) AS is_buddy, mem.is_activated,
(mem.ID_GROUP = 1 OR FIND_IN_SET(1, mem.additionalGroups)) AS is_admin
FROM {$db_prefix}members AS mem
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))
WHERE mem.ID_MEMBER IN (" . implode(", ", $all_to) . ")
ORDER BY mem.lngfile
LIMIT " . count($all_to), __FILE__, __LINE__);
$notifications = array();
while ($row = mysql_fetch_assoc($request))
{
// Has the receiver gone over their message limit, assuming that neither they nor the sender are important?!
if (!empty($row['maxMessages']) && $row['maxMessages'] <= $row['instantMessages'] && !allowedTo('moderate_forum') && !$row['is_admin'])
{
I can't install it it says it is not compatible with my forum I am using latest 1.1
Can the moderators use this feature as well?
It works perfect but i would like more then just the admin to be able to use it.
the permission to use this is in the permissions section
It would be great to see this mod for version 1.1 Final. *Hint*
I manually installed on 1.1 and 1.1.1
Works perfect. It wont take no more than 5 to 10 minutes to do it, Its well worth it!
<edit file>
$boarddir/index.php
</edit file>
<search for>
// Log this user as online.
writeLog();
</search for>
<add after>
// Check if time to run visual warning update
if ($modSettings['autoWarningTime'] < time())
autoWarn();
</add after>
<search for>
'viewquery' => array('ViewQuery.php', 'ViewQuery'),
</search for>
<add after>
'warnadd' => array('VisualWarning.php', 'AddWarning'),
'warnadd2' => array('VisualWarning.php', 'AddWarning2'),
'warnlist' => array('VisualWarning.php', 'ListWarnings'),
'warnlist2' => array('VisualWarning.php', 'ListWarnings2'),
'warnpmman' => array('VisualWarning.php', 'Manager'),
'warnpmman2' => array('VisualWarning.php', 'Manager2'),
</add after>
<edit file>
$sourcedir/ModSettings.php
</edit file>
<search for>
array('text', 'karmaSmiteLabel'),
</search for>
<add after>
array('heading', &$txt['visual_warning_mod']),
array('text', 'visualw_mess_ban'),
array('text', 'visualw_mess_mute'),
array('text', 'visualw_mess_pmod'),
array('text', 'visualw_mess_warn'),
array('rule'),
array('text', 'visualw_color_ban'),
array('text', 'visualw_color_mute'),
array('text', 'visualw_color_pmod'),
array('text', 'visualw_color_warn'),
array('rule'),
array('text', 'visualw_image_ban'),
array('text', 'visualw_image_mute'),
array('text', 'visualw_image_pmod'),
array('text', 'visualw_image_warn'),
array('rule'),
array('text', 'muteAutoTime'),
array('text', 'moderationAutoTime'),
array('text', 'warningAutoTime'),
array('rule'),
array('check', 'visualw_pmod_edit'),
</add after>
<edit file>
$themedir/Profile.template.php
</edit file>
<search for>
<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 for>
<add before>
';
if ($context['member']['warning']['link'] != '')
echo'
<td><b>' . $txt['visual_current_level'] . ' </b></td>
<td>' . $context['member']['warning']['link'] . '</td>
</tr><tr>
';
echo'
</add before>
<edit file>
$sourcedir/Display.php
</edit file>
<search for>
$context['can_reply'] &= empty($topicinfo['locked']) || allowedTo('moderate_board');
</search for>
<add after>
$context['can_warn'] = allowedTo('visual_warn_any');
</add after>
<edit file>
$themedir/Display.template.php
</edit file>
<search for>
if ($message['can_remove'])
echo '
<a href="', $scripturl, '?action=deletemsg;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';sesc=', $context['session_id'], '" onclick="return confirm(\'', $txt[154], '?\');">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/delete.gif" alt="' . $txt[121] . '" border="0" />' : $txt[31]), '</a>';
</search for>
<add after>
if ($context['can_warn'])
echo '
<a href="', $scripturl, '?action=warnadd;topic=', $context['current_topic'], ';start=', $context['start'], ';user=', $message['member']['id'], ';msg=', $message['id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/im_visualw.gif" alt="' . $txt['visual_raise'] . '" border="0" />' : $txt['visual_warn']), '</a>';
</add after>
<search for>
if (isset($message['member']['group']) && $message['member']['group'] != '')
echo '
', $message['member']['group'], '<br />';
</search for>
<add after>
if (isset($message['member']['warning']['link']) && $message['member']['warning']['link'] != '')
echo'
', $message['member']['warning']['link'];
</add after>
<edit file>
$sourcedir/Post.php
</edit file>
<search for>
$context['show_spellchecking'] = $modSettings['enableSpellChecking'] && function_exists('pspell_new');
</search for>
<add after>
if ($user_info['warning'] > 2)
fatal_error($txt['visual_been_muted']);
if ($user_info['warning'] == 2)
$context['warning'] = 1;
</add after>
<search for>
global $board, $topic, $txt, $db_prefix, $modSettings, $sourcedir, $context;
</search for>
<add after>
global $scripturl, $threadid;
</add after>
<search for>
require_once($sourcedir . '/Subs-Post.php');
loadLanguage('Post');
</search for>
<add after>
if ($user_info['warning'] > 2)
fatal_error($txt['visual_been_muted']);
</add after>
<search for>
$msgOptions['modify_time'] = time();
$msgOptions['modify_name'] = addslashes($user_info['name']);
}
modifyPost($msgOptions, $topicOptions, $posterOptions);
}
</search for>
<add after>
// This is a new post, not an admin, user's posts are moderated - save it.
elseif(!isset($_REQUEST['msg']) && !$user_info['is_admin'] && $user_info['warning'] == 2){
$idtostore = $topic == null ? -1 : $topic;
$request = db_query("
INSERT INTO {$db_prefix}postmoderation
(ID_MEMBER, ID_TOPIC, ID_BOARD, subject, posterName,
posterEmail, posterTime, posterIP, body, icon,smiliesEnabled, ID_POLL)
VALUES ($ID_MEMBER, '$idtostore', '$board', '$_POST[subject]',
'$_POST[guestname]', '$_POST[email]', " . time() . ", '$_SERVER[REMOTE_ADDR]',
'$_POST[message]','$_POST[icon]', " . (isset($_POST['ns']) ? '0' : '1') . ", $ID_POLL)", __FILE__, __LINE__);
if ($options['return_to_post'] == '1' && $topic != '')
redirectexit("$scripturl?topic=$threadid;start=new");
else
redirectexit("$scripturl?board=$board");
}
</add after>
<search for>
// Editing a message...
elseif (isset($_REQUEST['msg']))
{
checkSession('get');
</search for>
<add after>
// Check user has no warnings on this message
if ($user_info['warning'] > 1 && empty($modSettings['visualw_pmod_edit']))
fatal_error($txt['visual_perm_modify']);
if ($user_info['warning'] > 0){
$request = db_query("
SELECT warningText
FROM {$db_prefix}vwarnings
WHERE memberID=$ID_MEMBER
AND messageID=$_REQUEST[msg] LIMIT 1", __FILE__, __LINE__);
if (mysql_fetch_assoc($request))
fatal_error($txt['visual_perm_modify']);
}
</add after>
<search for>
if (isset($_REQUEST['msg']) && !empty($topic))
{
$_REQUEST['msg'] = (int) $_REQUEST['msg'];
</search for>
<add after>
// Check user has no warnings on this message
if ($user_info['warning'] > 1 && empty($modSettings['visualw_pmod_edit']))
fatal_error($txt['visual_perm_modify']);
if ($user_info['warning'] > 0){
$request = db_query("
SELECT warningText
FROM {$db_prefix}vwarnings
WHERE memberID=$ID_MEMBER
AND messageID=$_REQUEST[msg] LIMIT 1", __FILE__, __LINE__);
if (mysql_fetch_assoc($request))
fatal_error($txt['visual_perm_modify']);
}
</add after>
<search for>
// Permissions check!
isAllowedTo('calendar_post');
</search for>
<add after>
// warning
if ($user_info['warning'] > 1)
fatal_error($txt['visual_postmod_auth']);
</add after>
<edit file>
$themedir/Post.template.php
</edit file>
<search for>
if ($context['can_post_attachment'])
</search for>
<replace>
if (isset($context['warning']))
echo'
<tr>
<td align="center" colspan="2">
<font size="2">' . $txt['visual_postmod_appear'] . '</font>
</td>
</tr>';
elseif ($context['can_post_attachment'])
</replace>
<edit file>
$sourcedir/Karma.php
</edit file>
<search for>
// If you're a guest or can't do this, blow you off...
is_not_guest();
</search for>
<add after>
// If you have ANY warning, also blow you off
if ($user_info['warning'] > 1)
fatal_error($txt['visual_no_karma']);
</add after>
<edit file>
$sourcedir/Subs.php
</edit file>
<search for>
if (allowedTo('moderate_forum'))
$context['admin_areas']['members']['areas']['view_members'] = '<a href="' . $scripturl . '?action=viewmembers">' . $txt[5] . '</a>';
</search for>
<replace>
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>
<search for>
$context['user']['unread_messages'] = &$user_info['unread_messages'];
</search for>
<add after>
if (allowedTo('visual_approve_any'))
{
$result = db_query("
SELECT COUNT(*)
FROM {$db_prefix}postmoderation", __FILE__, __LINE__);
list($modmsg) = mysql_fetch_row($result);
if ($modmsg)
$context['user']['awaiting_mod'] = $modmsg . ' ' . $txt['visual_require_mod'];
}
</add after>
<search for>
function setupThemeContext()
{
global $modSettings, $user_info, $scripturl, $context, $settings, $options, $txt, $maintenance;
</search for>
<add after>
global $db_prefix; // Grudge's Mod
</add after>
<edit file>
$sourcedir/Security.php
</edit file>
<search for>
// Do banning related stuff. (ie. disallow access....)
function is_not_banned($forceCheck = false)
</search for>
<add before>
function autoWarn()
{
global $txt, $db_prefix, $modSettings, $sourcedir;
loadLanguage('PersonalMessage');
// Only check warning levels once every blue moon
updateSettings(array('autoWarningTime' => time() + 86400));
$request = db_query("
SELECT ID, memberID, timeToWarn, time, level
FROM {$db_prefix}vwarnings WHERE level < 4 AND level > 0", __FILE__, __LINE__);
include_once($sourcedir . '/Subs-Post.php');
while ($row = mysql_fetch_assoc($request)){
$IM=0;
if($row['timeToWarn'] == -1){
// Check if time is expired
if ($row['level'] == 1)
$timeinc = $modSettings['warningAutoTime']*86400;
elseif ($row['level'] == 2)
$timeinc = $modSettings['moderationAutoTime']*86400;
else
$timeinc = $modSettings['muteAutoTime']*86400;
}
else
$timeinc = $row['timeToWarn']*86400;
if(time() > $row['time'] + $timeinc){
db_query("
UPDATE {$db_prefix}vwarnings
SET level = level - 1, time = " . time() . "
WHERE ID=$row[ID]", __FILE__, __LINE__);
db_query("
UPDATE {$db_prefix}members
SET warning=warning - 1
WHERE ID_MEMBER=$row[memberID]",__FILE__, __LINE__);
$IM=1;
}
if ($IM==1){
$result = db_query("
SELECT memberName, ID_MEMBER, emailAddress
FROM {$db_prefix}members
WHERE ID_MEMBER=$row[memberID]", __FILE__, __LINE__);
list($nameTo, $toID, $emailTo) = mysql_fetch_row($result);
$result = db_query("
SELECT ID_MEMBER, realName, memberName FROM {$db_prefix}members
WHERE ID_GROUP=1 LIMIT 1", __FILE__, __LINE__);
$fromInfo = mysql_fetch_row($result);
$from = array(
'id' => $fromInfo[0],
'name' => $fromInfo[1],
'username' => $fromInfo[2],
);
$immessage = $nameTo . "\n\n" . $txt['visual_warning_reduced'];
sendpm($toID, null, $txt['visual_reduced'], $immessage, $from);
}
}
}
</add before>
<edit file>
$languagedir/Modifications.english.php
</edit file>
<search for>
?>
</search for>
<add 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['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';
</add before>
<edit file>
$sourcedir/ManagePermissions.php
</edit file>
<search for>
'profile' => array(
'profile_view' => true,
'profile_identity' => true,
'profile_extra' => true,
'profile_title' => true,
'profile_remove' => true,
'profile_remote_avatar' => false,
)
</search for>
<add after>
,
'visual_warn' => array(
'visual_warn_any' => false,
'visual_approve_any' => false,
)
</add after>
<edit file>
$themedir/index.template.php
</edit file>
<search for>
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<b>', $txt[616], '</b><br />';
</search for>
<add after>
if (isset($context['user']['awaiting_mod']))
echo '<br />' . $context['user']['awaiting_mod'];
</add after>
<edit file>
$sourcedir/Load.php
</edit file>
<search for>
mem.birthdate, mem.memberIP, mem.ICQ, mem.AIM, mem.YIM, mem.MSN, mem.posts, mem.lastLogin,
</search for>
<add after>
mem.warning, " . "
</add after>
<search for>
mem.karmaBad, mem.memberIP, mem.lngfile, mem.ID_GROUP, mem.ID_THEME, mem.buddy_list, mem.pm_ignore_list,
</search for>
<add after>
mem.warning, " . "" . "
</add after>
<search for>
'email' => isset($user_settings['emailAddress']) ? $user_settings['emailAddress'] : '',
</search for>
<add after>
'warning' => isset($user_settings['warning']) ? $user_settings['warning'] : 0,
</add after>
<search for>
'aim' => $profile['AIM'] != '' && (empty($modSettings['guest_hideContacts']) || !$user_info['is_guest']) ? array(
</search for>
<add before>
'warning' => $profile['warning'] > 0 ? array(
'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] . '">
' . $txt['visual_text_' . $warn] . '</font>' : '') . '<br />',
) : array('link' => ''),
</add before>
<search for>
$profile['signature'] = parse_bbc($profile['signature'], true, 'sig' . $profile['ID_MEMBER']);
</search for>
<add after>
if ($profile['warning'] == 1)
$warn = 'warn';
elseif ($profile['warning'] == 2)
$warn = 'pmod';
elseif ($profile['warning'] == 3)
$warn = 'mute';
elseif ($profile['warning'] == 4)
$warn = 'ban';
</add after>
if I manualy modify then one day I will have problem uninstalling it :'(
Alright I need some help with this one. I have it installed on a 1.1.1 board and believe it is working but when I go into the admin Karma section my admin area looks incomplete and it throws about 4 pages of undefined index errors for the modificationsenglish.template
Any Ideas where I went wrong on this one ??
Can you provide those error messages?
Can anyone help me on how to install this modification manually? I tried doing it through the official SMF docs, but they didn't help me.
Quote from: J J Williams on December 29, 2006, 07:30:51 AM
Can you provide those error messages?
8: Undefined index: size
File: /Themes/default/languages/ModSettings.english.php (eval?)
Line: 1404
8: Undefined index: value
File: /Themes/default/languages/ModSettings.english.php (eval?)
Line: 1404
8: Undefined index: name
File: /Themes/default/languages/ModSettings.english.php (eval?)
Line: 1404
8: Undefined index: disabled
File: /Themes/default/languages/ModSettings.english.php (eval?)
Line: 1404
8: Undefined index: type
File: /Themes/default/languages/ModSettings.english.php (eval?)
Line: 1396
8: Undefined index: type
File: /Themes/default/languages/ModSettings.english.php (eval?)
Line: 1385
8: Undefined index: type
File: /Themes/default/languages/ModSettings.english.php (eval?)
Line: 1380
8: Undefined index: type
File: /Themes/default/languages/ModSettings.english.php (eval?)
Line: 1376
8: Undefined index: type
File: /Themes/default/languages/ModSettings.english.php (eval?)
Line: 1372
8: Undefined index: help
File: /Themes/default/languages/ModSettings.english.php (eval?)
Line: 1364
There are a few of them... There are 4 pages of these every time I go into the Admin section under the Karma settings. Thanks for any help you can give... I went through and tested the MOD and everything does work. But the display in the admin section is a bit off as well.. I am thinking something didn't get modded that needed to but I can't find it or figure out what else needs to be done.
Well I fixed the errors I was getting in the admin section....
In the mod file it does this in ModSettings.php
array('heading', &$txt['visual_warning_mod']),
array('text', 'visualw_mess_ban'),
array('text', 'visualw_mess_mute'),
array('text', 'visualw_mess_pmod'),
array('text', 'visualw_mess_warn'),
array('rule'),
array('text', 'visualw_color_ban'),
array('text', 'visualw_color_mute'),
array('text', 'visualw_color_pmod'),
array('text', 'visualw_color_warn'),
array('rule'),
array('text', 'visualw_image_ban'),
array('text', 'visualw_image_mute'),
array('text', 'visualw_image_pmod'),
array('text', 'visualw_image_warn'),
array('rule'),
array('text', 'muteAutoTime'),
array('text', 'moderationAutoTime'),
array('text', 'warningAutoTime'),
array('rule'),
array('check', 'visualw_pmod_edit'),
What I changed it to is this... Which no longer produces errors and looks much better...
'',
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'),
Hope this helps the development of this MOD.. :D
it is not available for 1.1.1 ... :'(
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Quote from: Kindred on December 27, 2006, 10:32:15 AM
the permission to use this is in the permissions section
Its not there.
I looked and looked.
Anyone ?
Is 1.1.1 version on its way?
I installed it on 1.1.1 !!!
What is the problem ?? It works great on 1.1.1
Quote from: Gargoyle on December 31, 2006, 06:15:18 PM
I installed it on 1.1.1 !!!
What is the problem ?? It works great on 1.1.1
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
it is not available for 1.1.1 ...
Is 1.1.1 version on its way?
Quote from: usernamelol on January 02, 2007, 01:25:01 AM
Quote from: Gargoyle on December 31, 2006, 06:15:18 PM
I installed it on 1.1.1 !!!
What is the problem ?? It works great on 1.1.1
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
You can open the xml file and modify it in there to install on 1.1.1
The only file it would not work on for me was the one I posted about above.
Hello everybody ^^
I'm a French young webmaster, and I've just installed Visual Warning Mod for one of my SMF Forums.
But there wasn't a French translation.
I've modified the Modifications.english.php (in the language directory of the template I'm using) to Modifications.french.php and translated all the sentences.
This file is joined to this post.
I hope it will be helpful for you ;)
Bye ^^
PS: I don't think that my translation is the best, but the sense is here :)
Quote from: Gargoyle on December 29, 2006, 11:34:06 AM
Well I fixed the errors I was getting in the admin section....
In the mod file it does this in ModSettings.php
array('heading', &$txt['visual_warning_mod']),
array('text', 'visualw_mess_ban'),
array('text', 'visualw_mess_mute'),
array('text', 'visualw_mess_pmod'),
array('text', 'visualw_mess_warn'),
array('rule'),
array('text', 'visualw_color_ban'),
array('text', 'visualw_color_mute'),
array('text', 'visualw_color_pmod'),
array('text', 'visualw_color_warn'),
array('rule'),
array('text', 'visualw_image_ban'),
array('text', 'visualw_image_mute'),
array('text', 'visualw_image_pmod'),
array('text', 'visualw_image_warn'),
array('rule'),
array('text', 'muteAutoTime'),
array('text', 'moderationAutoTime'),
array('text', 'warningAutoTime'),
array('rule'),
array('check', 'visualw_pmod_edit'),
What I changed it to is this... Which no longer produces errors and looks much better...
'',
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'),
Hope this helps the development of this MOD.. :D
Awesome - this helped a LOT
Quote from: bammoeller on December 28, 2006, 11:42:52 AM
I manually installed on 1.1 and 1.1.1
Works perfect. It wont take no more than 5 to 10 minutes to do it, Its well worth it!
Hi bammoeller - thank you for all the code changes you posted. I just want to make sure I do this correctly. I assume I should follow these steps:
1. Upload the package using package manager.
2. Do the modifications you provided to the SMF files you listed.
3.
Then attempt to apply the mod package?
Or do the modifications you provided make applying the packaged mod unneccessary?
Thanks!
I downloaded every file that was listed off my server and manually edited them all.
Then i simply uploaded the files after i was done.
You dont need to upload the package and appy it because you will manually be doing this.
As other users, I found that the mod does not work in SMF 1.1.1 (the message is described in other recent posts).
It was suggested by Gargoyle to edit the XML file, but I and most of us find it difficult to do it.
Will there be a mod for version 1.1.1 or clear directions on how to do it with the current mod version?
Thanks so much.
It says I got a wrong smf version,
My version is
SMF File Your Version Current Version
SMF Package SMF 1.1.1 SMF 1.1.1
Quote from: kriskd on October 14, 2006, 12:53:26 PM
Okay, I think I got it working. Yeah for me! A couple of questions now....
- Where do I find the Visual Warning Mod screen where I define the text I want to use?
- For the time of the warning, what units is that in? Minutes? Hours? Days?
- The post moderation looks nice, but it would be nice if it would warn the affected user that their post must be approved by an admin. At the moment, it just kicks them back to the board index after attempting a post. Let me know if I'm just doing something wrong.
Can someone please tell me what the time units are for the warning?
Days, I think
It says I got a wrong smf version,
My version is
SMF 1.1.1 SMF 1.1.1
Quote from: binklespup on January 12, 2007, 06:25:45 AM
Quote from: kriskd on October 14, 2006, 12:53:26 PM
Okay, I think I got it working. Yeah for me! A couple of questions now....
- Where do I find the Visual Warning Mod screen where I define the text I want to use?
- For the time of the warning, what units is that in? Minutes? Hours? Days?
- The post moderation looks nice, but it would be nice if it would warn the affected user that their post must be approved by an admin. At the moment, it just kicks them back to the board index after attempting a post. Let me know if I'm just doing something wrong.
Can someone please tell me what the time units are for the warning?
Quote from: Eleglin on January 12, 2007, 08:07:49 AM
Days, I think
Thanks, can someone confirm this please.
Anyone knows?
Quote from: God of Ikiliki on January 12, 2007, 02:12:32 PM
Anyone knows?
Yes, it doesnt work on 1.1.1
BTW can it please be updated for 1.1.1, please, please, please. :D :D :D
There is no interest to warn someone for a few hours or a few minutes.
It's written on the PC Admin, for this mod : times for.... (days)
W00t
I made it so I can use it on 1.1.1
yay :D
i have modified the errors manually in the mod while making some test apply to make it work with smf 1.1.1
after it was installed it says i am having a wrong version of smf (note my smf 1.1.1 was an upgrade only from 1.1)
what else has to be edited ?
pls pls pls make it compatible with 1.1.1 this is the only warning mod we have so far.
Ok, one more here to add to the "plea"! Please, make it compatible with 1.1.1. :)
Ditto! Pretty please?
Quote from: God of Ikiliki on January 13, 2007, 02:11:44 PM
W00t
I made it so I can use it on 1.1.1
yay :D
are you sure you'd made it worked???
pls pls pls make it work with smf 1.1.1
yup, same here... unable to install on 1.1.1
What did u change God of Ikiliki?
1.1.1 ?
A new release (version 1.31) is now available here (http://custom.simplemachines.org/mods/index.php?mod=218)
Version 1.31 will work with 1.0.x, 1.1 beta 3 public, 1.1 RC1, 1.1 RC2, 1.1 RC3, 1.1 final and 1.1.1.
Changelog
- Updated to work with SMF 1.1.1
- Added a whole proper visual warning section in the "Features and Options" area (only for SMF 1.1 RC2, 1.1 RC3, SMF 1.1 and SMF 1.1.1)
- Added French translation (by Eleglin and Val). Please refer to the file 'modification.xml'
Sorry to report, but it doesnt install... says that changing ./Sources/Post.php failed.
In forum log I see :
512: parseBoardMod(): The filename 'index.php' is not a full path!
file: /srv/www/rat/www/htdocs/forum/Sources/Subs-Package.php
String: 1661
If I open this file on 1661 I see:
trigger_error('parseBoardMod(): The filename \\\\\\\\'' . $working_file . '\\\\\\\\' is not a full path!', E_USER_WARNING);
What does it mean and how it can be fixed?
Of cause I can manually change post.php, but is it safe?
BTW, I'm using SMF 1.1.1.
Have you installed other mods before this ?
Thanks for the prompt answer.
Yes, It was a clean install SMF 1.1.1, then I installed the following mods:
Reason For Editing Mod 1.14
Merge Double Posts 1.0.6
Sticky First Post (extends sticky topic)
Member Color Link 1.8.7
Signature Settings Mod 1.0
Ignore user 1.3
There were no issues with installation of mentioned mods.
Hm... I have test this package with clean install SMF 1.0.8 until 1.1.1 and it was ok.
it's probably an issue between Visual W. and one of these mods. I think that the problem is with installation of Reason for editing mod and Visual Warning.
Please make backups of your sources and database before installing mods.
If you are ease with manual installation of mods, you can do it at your own risk. If you are not sure, you should not install it.
PS : I don't use to install more than 5 mods. I think there are some problems with more when you want to uninstall one of these.
On my 1.1.1, if I click Apply, no warning, error etc., but once I click Install, after it installs ALL screens are blank, wherever I click.
Fortunately, I had a current backup of all php files and could restore it.
hi googd mod a idea to this mod coould be
in every post show a warning bar and reaches 100%, you will be banned.
Quote from: Eleglin on January 27, 2007, 03:56:08 AM
it's probably an issue between Visual W. and one of these mods. I think that the problem is with installation of Reason for editing mod and Visual Warning.
Thanks for pointing me to the correct direction! You're right, it was "reason for editing" that prevented "Visual Warning" from install.
I removed "reason for editing", then I was able to install "Visual Warning" and reinstall "reason for editing after that.
So, if you want to uninstall Visual Warning, you must uninstall Reason for Editing, before.. ;D
Yes, I understand this :-)
But what can cause that nothing is anymore displayed after installing it? Does it screw up display.php or what could be the reason?
Quote from: softtouch on January 27, 2007, 08:43:13 PM
But what can cause that nothing is anymore displayed after installing it? Does it screw up display.php or what could be the reason?
before installing V.W., have you installed other mods ?
Is it possible to have the warnings visible only to the admin, moderators and the member that is being warned and not the entire board?
Unfortunately, there is still no parameter to make the content of the warnings visible only to the admin and moderators. So, you must delete the modification in the message, if you want to hide it.
I will see later to improve it. ;)
Quote from: Eleglin on January 28, 2007, 04:11:08 AM
Quote from: softtouch on January 27, 2007, 08:43:13 PM
But what can cause that nothing is anymore displayed after installing it? Does it screw up display.php or what could be the reason?
before installing V.W., have you installed other mods ?
Yes, I have a couple installed.
This mod shows for all modifications successful if I click apply , no failure so I dont understand what could be wrong.
It would be nice to have the link
So, does this mod work well with the 1.1.1. version?
Max
Quote from: Cabby on January 28, 2007, 10:05:48 AM
It would be nice to have the link
I have removed it completely, because it render my forum useless, all pages are blank.
I had a similar problem with another mod before, I got the blank screen every time I clicked the package manager link, so I could not even uninstall it and had to do it by hand. But everything else was working. Now I get the blank page on just all links, whatever I type/click.
Quote from: Eleglin on January 28, 2007, 07:38:08 AM
Unfortunately, there is still no parameter to make the content of the warnings visible only to the admin and moderators. So, you must delete the modification in the message, if you want to hide it.
I will see later to improve it. ;)
Thank you very much for your reply! :)
Thanks, I've installed it smoothly, except that the warning button does not show at all in the menu of buttons on the posts, so the mod can't really be used. I suspect it is related to the fact that I'm using the xtSMF Theme!. The rest is ok, as far I've seen, including all the links in the admin. Any tips, please?
This mod is installed on the default's theme only. You will need to edit manually your template files. More information here (http://docs.simplemachines.org/index.php?topic=402).
Thanks for your input. I've tried that before, but the theme folder has only the following files:
BoardIndex.template.php
index.template.php
MessageIndex.template.php
The only one with changes that can be applied is index.template.php which was already done.
I'm a bit lost. During the 1.0 version the mod worked with the theme. I think it has to do with some changes for 1.1, but I really don't know... :(
Does the warning button appear on the default theme ?
How many theme's directory have you got ?
the warning button's appearance in posts is determined in display.template.php. If it is not showing up then eithger you did not get it applied in your default theme, or you have a copy of that file in your alternative theme directory.
I have this working just fine, on 4 different themes....
I have 4 theme directories:
babylon
classic
default
xtSMF
The button shows only in the default theme. Not the case for all the rest, but they do have a display.templalte.php file in the folder, except for the xtSMF directory. ???
This piece of code is showing in default's display.template.php, so everything is indeed ok there:
// Show the member's primary group (like 'Administrator') if they have one.
if (isset($message['member']['group']) && $message['member']['group'] != '')
echo '
', $message['member']['group'], '<br />';
if (isset($message['member']['warning']['link']) && $message['member']['warning']['link'] != '')
echo'
', $message['member']['warning']['link'];
So, edit the display.template.php files in the directories :
/babylon
/classic
and add the piece of code which determines the warning button's appareance in each ones.
I suppose that your xtSMF is not based upon the defaut theme. :)
Ok, I've done it to both. It is based on YaBB SE Classic. It is weird, isn't it? Is there any way I can change that? But many thanks anyway, because it is working now! ;D
xtSMF them_info:
<?xml version="1.0"?>
<theme-info xmlns="http://www.simplemachines.org/xml/theme-info" xmlns:smf="http://www.simplemachines.org/">
<!-- Theme name, used purely for aesthetics. -->
<name>xtSMF Theme!</name>
<!-- Author: A.M.A -->
<author name="Simple Machines">[email protected]</author>
<!-- Website... where to get updates and more information. -->
<website>http://www.simplemachines.org/</website>
<!-- Template layers to use, defaults to "main". -->
<layers>main</layers>
<!-- Templates to load on startup. Default is "index". -->
<templates>index</templates>
<!-- Base this theme off another? Default is blank, or no. It could be "default". -->
<based-on></based-on>
</theme-info>
Quote from: bluesyrio on January 30, 2007, 11:38:37 AM
Ok, I've done it to both. It is based on YaBB SE Classic. It is weird, isn't it? Is there any way I can change that? But many thanks anyway, because it is working now! ;D
I think that a change will corrupt the appearance of your theme. You don't want that, do you ? :P
Not at all! :D Thanks again for you help!
Where is the link to download this mod ?
Mod is good, but I need to know how to make it work in a custom theme! >:(
PLEASE HELP! :'(
Please PM me if you can help me out, I really need this mod working.
Quote from: Vinspire on January 31, 2007, 09:41:05 PM
Where is the link to download this mod ?
HERE (http://custom.simplemachines.org/mods/index.php?mod=218)
Quote from: Apoclypse on February 01, 2007, 12:33:50 AM
Mod is good, but I need to know how to make it work in a custom theme! >:(
PLEASE HELP! :'(
Please PM me if you can help me out, I really need this mod working.
This mod is installed on the default's theme only. You will need to edit manually your template files. More information here (http://docs.simplemachines.org/index.php?topic=402).
I just upgraded to 1.1.1 - this was the first mod I tried to install (I used this on 1.1rc2 for a long time - we depend on it, so I wanted it ASAP) after the upgrade, and I got this:
Quote1. 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 failed
14. Execute Modification ./Themes/default/index.template.php Test successful
15. Execute Modification ./Sources/Load.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
I've now installed a few other mods, just to see if that might somehow help - exact same failures with post.php and managepermissions.php
Any suggestions?
verify your CHMod (http://docs.simplemachines.org/index.php?topic=477.msg686#msg686) on these files.
Also, you can do a manual installation of mods (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531). It's really easy :)
Above all, make backup of your database and files !
Wont be that bad of a task. You only have to edit two files.
Thanks very much Eleglin - it's working now! :)
Thanks, this is a nice mod but I have a question about it.
Everything works fine, but when you ban an user, the mod bans only users nickname, not for example ip or hostname, and allows banned user just to register a new account and keep spamming. Is there any way to easily ban also users hostname, without adding hostname manually?
Quote from: Dadin on February 06, 2007, 08:28:28 AM
Thanks, this is a nice mod but I have a question about it.
Everything works fine, but when you ban an user, the mod bans only users nickname, not for example ip or hostname, and allows banned user just to register a new account and keep spamming. Is there any way to easily ban also users hostname, without adding hostname manually?
hem... you can't be sure than you ban only one user; if you ban an IP or an hostname : An IP or an hostname can be used by many users !
So I won't do this if I was you. ;D
Well, banning ip is pretty much the only way to stop spamming, I have experience with the users who just create a new account and keep spamming if only user id is banned..
I have always used both user id and ip ban and it hasn't caused any problems.. And possibility that the same IP is used by several users is pretty small..
QuoteI have always used both user id and ip ban and it hasn't caused any problems.. And possibility that the same IP is used by several users is pretty small..
If some members use AOL, these possibilities are much greater.
So it is the case in France, I supposed it's the same in other countries.
This modification wouldn't be safe, I think.
Ban IP or host name will not stop them to spam your forum. Advanced users can visit your forum by other ways.
Elegin... I always ban by username, host, email and IP...
yes, the user can still get aorund the ban... but that takes care of most of the users with issues since it's not usualyl worth their time and effort to come back..
As far as I know, ban IP is useless and dangerous.
Useless because the ban person can have a floating IP (still majority of the connections in France) and thus return after a simple ban IP. Moreover, IPs are erased at the end of month.
As I said, some members can have the same IP (a lot of AOL users in France). When you ban one, you can ban them too. So, I am not convinced.
Now imagine that the admin or other guys are ban : it could be a problem, isn't it ? :)
IPs are erased at the end of every month?
not so in the US... My computer has had the same IP since I started with my host... 3 years ago...
Quote from: Kindred on February 06, 2007, 06:02:58 PM
IPs are erased at the end of every month?
not so in the US... My computer has had the same IP since I started with my host... 3 years ago...
Same here... Dial-up IP banning is bad though.. I agree on that one.. The high speed users are the ones most effected by an IP banning. I have 13 users on AOL and their IP's get shuffled more than a deck of cards at a poker tournament... ;D
Anyone can install on SoftMC theme? ::)
Ok, so I lied - I thought because I got it installed it was working - took me a few days to realize that, in fact, no character images were showing up at registration, so no one could get through the registration process.
I disabled all the built in visual verifications (1.1.1) and tried installing the mod - got the following error when clicking on "Register":
Fatal error: Cannot redeclare template_verification_settings() (previously declared in /home/sou10001/public_html/forum/Sources/Load.php(1751) : eval()'d code:701) in /home/sou10001/public_html/forum/Sources/Load.php(1751) : eval()'d code on line 885
Uninstalling the mod caused a failure in the personalmessage.php file, but it did uninstall otherwise.
So now I'm stumped - and being swamped by spambots again. Suggestions?
Mods currently installed:
SMF 1.0.7 / 1.1 RC2 Update 1.0 [ List Files ] [ Delete ]
MessagePreviewOnHover 1.4 [ Uninstall ] [ List Files ] [ Delete ]
SMF Staff Page 1.5.1 [ Uninstall ] [ List Files ] [ Delete ]
Enchanced post template 1.0.2 [ Uninstall ] [ List Files ] [ Delete ]
SMF Links 1.6.3 [ Uninstall ] [ List Files ] [ Delete ]
MessagePreviewOnHover 1.4 [ Uninstall ] [ List Files ] [ Delete ]
VisualWarning 1.31 [ Uninstall ] [ List Files ] [ Delete ]
Search Topic 1.01 [ List Files ] [ Delete ]
Custom Profile Field Mod 3.16 [ Uninstall ] [ List Files ] [ Delete ]
View Only Boards 1.0 [ Uninstall ] [ List Files ] [ Delete ]
BBCode Bar For Signature 1.2 [ Uninstall ] [ List Files ] [ Delete ]
Ignore Boards 2.0.1 [ Uninstall ] [ List Files ] [ Delete ]
Ignore user 1.3 [ Uninstall ] [ List Files ] [ Delete ]
PM On Registration 1.0.2 [ Uninstall ] [ List Files ] [ Delete ]
Reason For Editing Mod 1.14 [ Uninstall ] [ List Files ] [ Delete ]
7. Execute Modification .Sources//Post.php Test failed
What do I do?
Is it possible to set it so that the user gets banned automatically after receiving THREE warnings? Also, would you be able to un-ban them afterwards easily enough?
Sorry, I'm just a bit worried about installign this mod...
question - at stage three, 3) Mute - instant message and the inability to post polls or messages.
Can a member still post in the ultimate shoutbox? If so, could that be prevented also?
Same for personal messages?
I tried installing it to 1.1.1 and got the following message:
Some of the files the package manager needs to modify are not writable. This needs to be changed by logging into FTP and using it to chmod or create the files and folders. Your FTP information may be temporarily cached for proper operation of the package manager.
220 You will be disconnected after 15 minutes of inactivity.
Quote from: Cabby on February 11, 2007, 02:11:02 PM
7. Execute Modification .Sources//Post.php Test failed
What do I do?
Try to manually modify Post.php
does it work for smf 1.1.2?
Yes, it works. You only need to use this updated package info.
Quote from: Zenigata on February 21, 2007, 09:29:47 AM
Quote from: Cabby on February 11, 2007, 02:11:02 PM
7. Execute Modification .Sources//Post.php Test failed
What do I do?
Try to manually modify Post.php
which code we should manualy replace in post.php and where exactly in that file?
I figured out my problem and got it installed with no problems. But I have a new question. I have the board set to the Babylon theme. The warning buttons will not show up with that theme with each post. They will show up in the default theme. I'd like to use the Babylon theme. What can I do to get them to show up using the Babylon theme?
Quote from: Farmacija on February 21, 2007, 10:43:05 AM
which code we should manualy replace in post.php and where exactly in that file?
Open the package and follow the code in VisualWarning_SMF11.
Quote from: MRM4 on February 21, 2007, 11:29:35 AM
What can I do to get them to show up using the Babylon theme?
Hi,
please modify Display.Template.php and index.template.php in you theme directory by following the code lines in VisualWarning_SMF11.
Quote from: Zenigata on February 21, 2007, 11:35:05 AM
Quote from: MRM4 on February 21, 2007, 11:29:35 AM
What can I do to get them to show up using the Babylon theme?
Hi,
please modify Display.Template.php and index.template.php in you theme directory by following the code lines in VisualWarning_SMF11.
Got it. Thanks!!!
This code in modification.xml <operation error="fatal">
- <search position="after" regexp="false" whitespace="exact">
- <![CDATA[ global $ID_MEMBER, $user_info, $board_info, $options;
]]>
</search>
i cant find in my post.php! i can only find this code global $ID_MEMBER, $user_info, $board_info, $options, $func;
and its repeat so many times in post.php file that i dont know where exactly i should put the code :-\
On the banning issue with this mod is there a way to add the users email addy.
At my 2 sites we have stopped IP and Host banning because it would ban a lot of other site members who all have the same host and with IP's being the way they are sometimes it's also not fair to ban an IP and punish someone who had nothing to do with the offending member being banned.
I have noticed that when banning in smf you can ban both username and email which is at least a little more then username and is a little added measure.
Can this little added measure of adding the email when banning with this mod be integrated into the mod. Might not be much of a help because they can alwys use a differnent email when reregistering if they are bright enough to do so(most aren't) but it would help a little.
Quote from: perplexed on February 20, 2007, 10:22:33 AM
question - at stage three, 3) Mute - instant message and the inability to post polls or messages.
Can a member still post in the ultimate shoutbox? If so, could that be prevented also?
Same for personal messages?
*bump*
personnal messages = instant messages... :-\
is that what that means? I thought it meant they got an instant message to say they were muted, not that it prevented them from sending instant messages.
I get this error when I warn someone:
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/vol3/byethost9.com/b9_222711/silvanost.byethost31.com/htdocs/foro/Sources/Subs-Post.php
Line: 775
Any help?
Quote from: perplexed on February 24, 2007, 07:57:44 PM
is that what that means? I thought it meant they got an instant message to say they were muted, not that it prevented them from sending instant messages.
->
Quote from: ReadmeAnyone put in any of these states will have a marker next to each of their posts as a "punishment". Warnings are given by clicking the "warn" button next to an offending post. When a warning is issued you have the choice of what level at and how long the warning should last (or indefinitely). It will also leave a comment in the post so everyone can see why the user was warned as well as an IM to the user telling them what has happened. If a user has been given a time limit on a warning they will be downgraded after that time has expired.
I think they can send IM, but I have never been muted, so I can't say... :D
Also, it's not a big problem. If the bullet is muted, it is because he's a a bullet. Now, if he wants to say that to other people, he is a BIG bullet... :P
QuoteCan a member still post in the ultimate shoutbox? If so, could that be prevented also?
Yes, he can. because these are two different and separate mods.
I am having problems with this mod...I can't make It work with wowdk theme.I have modified display.template.php,but It still don't show the warn button or the warning level below the avatar...
For the button and warn indicators to show the images need to be put in the themes/images/english folder and any other language folders you have in the images folder.
I believe the index template also has to edited to add the warn button. That would be added in the section where it says show the home button, show the search button etc.
I hope this helps
Yeah!.Thanks...now everything is working great ^^.
Updated ! (http://custom.simplemachines.org/mods/index.php?mod=218)
Version 1.32 will work with 1.0.x, 1.1 bèta 3 public, 1.1 RC1, 1.1 RC2, 1.1 RC3, 1.1 final, 1.1.1 and 1.1.2.
There isn't any new feature or important fix in this package (since 1.31); it's just a comptability release !
on that linked page in your post eleglin there isn't written that it is compatibile with smf 1.1.2, its just for 1.1.1.. Please correct that. :)
I have asked for that, but the package is compatible. You can use it on 1.1.2 without any problem ;)
ok, just write there too because users can think that it isn't compatibile :)
okay got this installed but getting en error when I try to warn someone
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 'm not THE ONLY ONE who's seen it all before, here. Just the one with the big en' at line 2
File: /home/neminiin/public_html/Sources/VisualWarning11.php
Line: 147
I believe its because of the single quotes in the post that its copying, guessing the post isn't being properly slashed?
Hi!
Modification works great, but there is a lot of deficiencies which cause many problems, like not updating date of last post in topics which moderated posts are already added.
Please, can anyone do something with this.
I was wondering if there was any way to turn the term "muted" into "suspended". I tried looking for instances of the term in index.php but couldn't find it to change.
Thanks in advance either way.
text strings are in themes/default/langauges/modifications.english.php
Thank you very much!
I seem to have a little problem with this.
If I ban someone, it adds them to the ban list, but when I reduce the ban to 0 it leaves the ban on the ban list
Anyone help ?
Also, I have asked this in other areas but this is the only mod I can see with a post-moderation feature.
I would like if possible to have a particular board that is post moderated with the option to set trusted users as not needing post moderation.
Also, I think it would be good for all new registrations to be set as moderated and then be able to remove that once they are seen as genuine/respectable posters.
I know this is not exactly what this particular mod is for but if it could be extended or a new mod written for this type of thing...would for me... be great :D
not only is that "not exactly what this mod is for" that is not at all what this mod is for.
This mod is a WARNING mod, to warn, moderate or ban existign users.
what you are looking for would have nothing to do with this mod... and should be requested in a separate thread in the mod-requests board.
Quote from: Kindred on March 15, 2007, 11:32:40 AM
not only is that "not exactly what this mod is for" that is not at all what this mod is for.
This mod is a WARNING mod, to warn, moderate or ban existign users.
what you are looking for would have nothing to do with this mod... and should be requested in a separate thread in the mod-requests board.
Sorry,
Found that board after I made this post
Quote1. 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 .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 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
Anyone can help ? :)
before installing V.W., have you installed other mods ?
Those:
(http://img79.imageshack.us/img79/8870/scr7024dcbb1.png)
I have a q.:
The length of the raised warning, in which time offset do they last?
days, years, weeks, hours?
Would love to hear what time it is when I fill in 7 ;)
Thanks!
Days !
If you look in the admin panel, you can also set the defaults
Where can you set it as default?
You will find it in:
Login to your admin panel.
Under the heading "Configuration" on the left hand nav bar, click "Features and Options"
You will then see the "Visual Warning Mod" tab
Can you please give me a link to it, since this tab is missing at my forum ??? :-\
paste this after index.php on your forum:
?action=featuresettings;sa=visualwarning
Found some major problems at my forum, this link won't work at my forum, and I can't uninstall mods on a very weird way.
SO well will re-install all code files, with mods included etc. hope it will work out good again.
Thanks anyway for your help!
Why are muted users allowed to PM?!!
I didn't mute them for nothing
im having errors with this mod
R31 POWER Yesterday at 10:56:32 PM
59.100.175.147 3a8414e0b95f6f9e4832c955e6c390f8
http://forum.asdfasdf.com/index.php?board=11.0
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 '' at line 9
File: /hermes/web08/b2071/pow.gbertram/forum/htdocs/Sources/Subs-Post.php
Line: 771
$request = db_query("
SELECT
mem.memberName, mem.realName, mem.ID_MEMBER, mem.emailAddress, mem.lngfile, mg.maxMessages,
mem.pm_email_notify, mem.instantMessages," . (allowedTo('moderate_forum') ? ' 0' : "
(mem.pm_ignore_list = '*' OR FIND_IN_SET($from[id], mem.pm_ignore_list))") . " AS ignored,
FIND_IN_SET($from[id], mem.buddy_list) AS is_buddy, mem.is_activated,
(mem.ID_GROUP = 1 OR FIND_IN_SET(1, mem.additionalGroups)) AS is_admin
FROM {$db_prefix}members AS mem
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))
WHERE mem.ID_MEMBER IN (" . implode(", ", $all_to) . ")
ORDER BY mem.lngfile
**LINE771*** LIMIT " . count($all_to), __FILE__, __LINE__);
$notifications = array();
while ($row = mysql_fetch_assoc($request))
Quote from: Inflame on March 21, 2007, 12:02:31 PM
Why are muted users allowed to PM?!!
I didn't mute them for nothing
They can't post public messages, but they can send PM
Please make one for 1.1.2
Quote from: God of Ikiliki on March 25, 2007, 05:07:34 AM
Please make one for 1.1.2
Yes, definitely! This mod was the one I relied on most on my 1.1.1 board, but since the upgrade, I've not had its capabilities and I REALLY need them.
Quote from: BlackMagic48 on March 25, 2007, 12:05:44 PM
Quote from: God of Ikiliki on March 25, 2007, 05:07:34 AM
Please make one for 1.1.2
Yes, definitely! This mod was the one I relied on most on my 1.1.1 board, but since the upgrade, I've not had its capabilities and I REALLY need them.
did either of you think to look back a few pages?
http://www.simplemachines.org/community/index.php?topic=55512.msg971909#msg971909
Visual warning 1.32 works with 1.1.2.
Please read the description, before posting. :)
I'm not the author of this mod, so I can't update the information on this page.
If a moderator can do it, it would be nice. ;)
how the heck do i get visual warning 1.31 please tell me for 2m rs cash or do it for free pelase just send me it i beg u 100billions pound to my email adress
[email protected] or add me on msn
[email protected]
Fatal error: Cannot redeclare autowarn() (previously declared in /homepages/34/d200501047/htdocs/fusion-fx/forums/Sources/Security.php:199) in /homepages/34/d200501047/htdocs/fusion-fx/forums/Sources/Security.php on line 253
Chris,
Despite the lack of an actual QUESTION in your post, I assume you are asking "Why do I get this error and how do I fix it?".
You appear to have installed the mod twice.
You will have to go through the code and remove the double entries...
Thought i put that in my post :\ and wouldnt it appear if it was installed once after i un installed it?
not if you had a failed install one time... the install was partial but failed midway means that some of the code was changed, but the installation did not complete, hence the "installed" flag was not set.
Quote from: Eleglin on March 27, 2007, 09:26:13 AM
Visual warning 1.32 works with 1.1.2.
Please read the description, before posting. :)
I'm not the author of this mod, so I can't update the information on this page.
If a moderator can do it, it would be nice. ;)
Despite this, it still says that the mod is not compatible with my forum.
could you help me out on how to make this mod work for moderators?
coz it only works on admin group! Moderators cant even see the warn button to make use for punk members :)
thnx in advance!!!
more power to you guyz!
Give the permissions for modérators on "members settings".
I have seen this error message several times on this topic but still no real answers :
Databasefout: 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
Bestand: /home/vhosts/powerlifting-forum.nl/httpdocs/new_forum/Sources/Subs-Post.php
Regel: 771
Running on 1.1.2. It does seem to show the warning in the post
This is de sub-post.php lines 760 to 774
$request = db_query("
SELECT
mem.memberName, mem.realName, mem.ID_MEMBER, mem.emailAddress, mem.lngfile, mg.maxMessages,
mem.pm_email_notify, mem.instantMessages," . (allowedTo('moderate_forum') ? ' 0' : "
(mem.pm_ignore_list = '*' OR FIND_IN_SET($from[id], mem.pm_ignore_list))") . " AS ignored,
FIND_IN_SET($from[id], mem.buddy_list) AS is_buddy, mem.is_activated,
(mem.ID_GROUP = 1 OR FIND_IN_SET(1, mem.additionalGroups)) AS is_admin
FROM {$db_prefix}members AS mem
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))
WHERE mem.ID_MEMBER IN (" . implode(", ", $all_to) . ")
ORDER BY mem.lngfile
LIMIT " . count($all_to), __FILE__, __LINE__);
$notifications = array();
while ($row = mysql_fetch_assoc($request))
{
Good mod. I need to mod for the other theme. ;)
This may be a stupid question and if it's been asked already then I apologise, but are the warnings viewable by all members or just board mods, Global mods and admins? Oh and does the warned member recieve an email or PM with the details of the warning?
I'd like a warning system in place but I don't want everyone to see who's been warned, how and why, just the mods etc
As designed, the warning is visible to everyone. (the whole point of a visual warning, after all)
the warning recipient receives a PM on the warned post.
you could modify it to only display the warning to mods, etc... (but that defeats to purpose, IMO)
Quote from: Eleglin on April 11, 2007, 08:00:30 AM
Give the permissions for modérators on "members settings".
thnx for this sir :)
more power!
Quote from: Nic- on October 09, 2006, 12:52:24 PM
i have an error when warn a post and this is error message
Hacking attempt...
UPDATE smf_messages
SET body = 'day co fai la lan ca'c oppa o thailand ko nhi?
[center][img]http://xxxxxxxx/forums/Themes/default/images/warnwarn.gif[/img] [color=green][/color][/center]'
WHERE ID_MSG = 26141
File: /home/xxxxxxxx/domains/xxxxxxxx/public_html/forums/Sources/VisualWarning.php
Line: 147
i think it's because of " ' " . how can i solve this problem ?
thx u
i get the same error, and reading from all the replies, it seems like this problem hasnt been fixed yet :(
can someone please consider to debug the visualwarning.php file on line 147 and explain in layman terms how do i fix it.
am about to drop this mod due to the excessive problems when using it, specifically the "hacking attempt..." error.
I'm getting a few test faileds on this. Can someone help me with how to manually install on the following?
7. Execute Modification ./Sources/Post.php Test failed
9. Execute Modification ./Sources/Karma.php Test failed
10. Execute Modification ./Sources/Subs.php Test failed
Quote from: dumbelljunkie on April 15, 2007, 04:31:47 AM
I have seen this error message several times on this topic but still no real answers :
Databasefout: 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
Bestand: /home/vhosts/powerlifting-forum.nl/httpdocs/new_forum/Sources/Subs-Post.php
Regel: 771
Running on 1.1.2. It does seem to show the warning in the post
This is de sub-post.php lines 760 to 774
$request = db_query("
SELECT
mem.memberName, mem.realName, mem.ID_MEMBER, mem.emailAddress, mem.lngfile, mg.maxMessages,
mem.pm_email_notify, mem.instantMessages," . (allowedTo('moderate_forum') ? ' 0' : "
(mem.pm_ignore_list = '*' OR FIND_IN_SET($from[id], mem.pm_ignore_list))") . " AS ignored,
FIND_IN_SET($from[id], mem.buddy_list) AS is_buddy, mem.is_activated,
(mem.ID_GROUP = 1 OR FIND_IN_SET(1, mem.additionalGroups)) AS is_admin
FROM {$db_prefix}members AS mem
LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))
WHERE mem.ID_MEMBER IN (" . implode(", ", $all_to) . ")
ORDER BY mem.lngfile
LIMIT " . count($all_to), __FILE__, __LINE__);
$notifications = array();
while ($row = mysql_fetch_assoc($request))
{
yep, same error here
hihi..I am using smf 1.1.2..when i tried installing the mod, I was told that there are 3 errors:
./Sources/Subs.php
./Sources/Karma.php
./Sources/Post.php
Any idea how to solve this? =)
sounds like conflicts with existing modifications
you will have to apply the mod manually, looking for the correct code and using human intelligence to figure out what in the modified code looks correct.
I keep getting "Invalid Request Variable" when I submit some Visual Warning Mod actions.. I have several mods installed. Could you please tell me which template I need to remodify?
without seeing the actual errors, we can't even begin to imagine...
Hi!
I love this MOD, but my user's favorite theme is Saf-Multicolor..., how can I manually install this mod in this theme? I Can't find Post.template.php..., where should I put that code? Or is any version of this MOD to Saf-Multicolor?
Thanks in advance ;)
HecKel
if you do not have a post.template.php in your theme, then it will use the one in the dfeault directory and you don't have to do anything...
however, there are a bunch of other template files which I assume you WILL have to modify manually, to get it working on your theme, including display.template.php
ok, I'll try to modify my theme to get this mod working ;)
By the way, when some file doesn't exists in a theme, that theme use the file from default theme?
Thanks ;)
HecKel
Quote from: HecKel on May 10, 2007, 04:41:15 PM
By the way, when some file doesn't exists in a theme, that theme use the file from default theme?
Yes, that's why custom themes don't have so many template files (since the ones from the default theme are sometimes enough to do the job).
Kindred, can I provide you a temp-Mod Account and a FTP-Account to have a look into the Code? The "Invalid-Request-Variable" is really annoying :).
Thanks for helping me.
PM me the information.
I may not be able to get to looking at it until later today, though...
OK, i need help with this mod. I use a custom theme on my forum (http://www.crimsonregret.info/forum (http://www.crimsonregret.info/forum)), and i tried to install the visual warning mod through the packages bit in the admin screen. Nothing happened - although it does work in default theme mode. So i tried to install it manually, but it didn't work. I managed to get onto the admin bit of the warning page, but it wouldn't work. No warning tags show up on members profiles and there isn't a button for mods to warn them.
I really like this mod, and i really want to use it! Help me!
(Apologies if this is has already been covered)
you will need to manually apply the mod in your custom theme... Specifically in Display.template.php
how do i make it so global mods can ban people? had had a spammer on the site, one of our global mods tried to ban him using this mod, but it says: error accured you do not have permission to administer this forum" or some ****** like that......
BUT! he can still mute, moderate, blah blah, warn,,,, but not ban?!?!??! god dam
admin > permissions > Global mods membergroup > Manage ban list
banning is a separate permission
thanks brother
Is this mod working 100% with 1.1.2? And where is the download link? I do not see a link in the first post, and I am sure dont want to read 25 pages just to find a link...
Quote from: softtouch on May 15, 2007, 07:50:32 AM
Is this mod working 100% with 1.1.2? And where is the download link? I do not see a link in the first post, and I am sure dont want to read 25 pages just to find a link...
Check the main place it would be next time mate: http://custom.simplemachines.org/mods/index.php?mod=218
When you don't see the link on the forum go to the mod site: http://custom.simplemachines.org/mods/
I'm not sure if this has been posted before and I didn't look though all 25 pages, so sorry if it has.
I love this mod BUT if you are using a test account to test this mod, PLEASE:
1. Do not use the same ip as the test account and ban the test account. If you try to use the test account while it is banned you will also be banned!!! You will be banned even if you are an admin.
2. Make sure any settings (ip, username, or email) for the test account are not the same are yours or you might be banned even if you are an admin. This is because you both will have the same settings.
Luckily, I wasn't the only admin or person with permissions to access the settings. If you are the only person with permission to change settings then you will be sorry and will have to use a backup or reinstall your entire site!!!
I did this to myself (dumb a$$...LOL) and I just want to make sure it will helps others not make the same mistake. ;D
Quote
1. Do not use the same ip as the test account and ban the test account. If you try to use the test account while it is banned you will also be banned!!! You will be banned even if you are an admin.
haha i just did this a few minutes ago. i had to go into the database and fix it. oops!
I've question in Warning Management and when I show any warn field: Topic Where Raised: is blank :(
hey just a quick Q, for hte first time in ~5 months a members has been moderated; unfortunately unlike a previous install(dating back quite a while) there is no longer a clickable link for 'blah blah messages are waiting to be moderated', any idea on how to do so?
Guys, I want to use this mod with the classic theme. I've installed it with the core theme and know it works.
Could anyone walk me through the template code changes required to do so with 1.1.2?
The classic theme has the following templates..
boardindex
display
index
messageindex
post
recent
Do I have to make edits to those, if so, what? Or can I just access the .mod file and change the location where the theme is updated to show the mod, i.e. from default to the classic template location?
Can anyone help?
any update for helios template????
read through the mod xml file... apply the code changes by hand to the helios files...
we need it to work with 1.1.3
I don't want my members to see the warning status of a member, is it possible if I installed this mod?
Quote from: Spoonkitty on July 01, 2007, 07:05:55 AM
we need it to work with 1.1.3
But it works with 1.1.3 :D
askepot.... you would have to change the code that the mod installs in display.template.php and profile.template.php
spoonkitty, the mod may require you to use emulate 1.1 or to update the XML file to add 1.1.3. It runs fine under 1.1.3, but probably requires that minor correction to install into 1.1.3
I added 1.1.3 in the install/uninstall in package-info.xml and it installed fine .....
I'm not able to give anybody warnings ....
I'm able to see 2 new button in my admin panel "Warning Management" and "Post Moderation Manager" ......but I'm not able to do anything :( ....
I'm not able to give warnings to anyone :( ......
What should I do ???
Thanks in advance .....
Quote from: kamili34 on July 02, 2007, 01:30:57 AM
Quote from: Spoonkitty on July 01, 2007, 07:05:55 AM
we need it to work with 1.1.3
But it works with 1.1.3 :D
i tired installing and it says its not compatible.
1- use the "warn" button that is added in the message view (display.template.php)
If it's not there, that is probably because you are using a theme other than default, and you need to install that section of code manually into your theme's display.template.php file...
2- make sure you have permissions to warn (in the admin > permissions screen)
I tried to install the mod again but I'm getting this error message :
QuoteInstalling 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 failed
10. Execute Modification ./Sources/Subs.php Test failed
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 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
What should I do now ???
Quote from: Kindred on July 02, 2007, 07:58:47 AM
askepot.... you would have to change the code that the mod installs in display.template.php and profile.template.php
spoonkitty, the mod may require you to use emulate 1.1 or to update the XML file to add 1.1.3. It runs fine under 1.1.3, but probably requires that minor correction to install into 1.1.3
hello, thanks for replying.. but can you help me change the codes? i have no idea how and what codes needs to be changed..
thanks :)
Quote from: hadesflames on July 02, 2007, 10:12:12 PM
Quote from: kamili34 on July 02, 2007, 01:30:57 AM
Quote from: Spoonkitty on July 01, 2007, 07:05:55 AM
we need it to work with 1.1.3
But it works with 1.1.3 :D
i tired installing and it says its not compatible.
thats wat it says with mine too it says its either corruct or not compatibale with the version of the forum im using and im using 1.1.3
can u make one working in version 1.1.3 ???
Quote from: The^_^King on July 04, 2007, 02:35:35 AM
can u make one working in version 1.1.3 ???
yes can someone please do what this guy said i really want the warning system
I would have to look at the mod a little more closely but you should be able to carry on with the install and then make the other modifications manually.
Quote from: redone on July 04, 2007, 02:44:42 AM
I would have to look at the mod a little more closely but you should be able to carry on with the install and then make the other modifications manually.
What are the modifications which have to be made in order for this mod to work ? ....
Any help would be greatly appreciated ;) .....
Quote from: askepott on July 02, 2007, 12:39:20 AM
I don't want my members to see the warning status of a member, is it possible if I installed this mod?
Not with this version.
I'm trying to add this functionnality on v1.4 but it's still in development.
v1.4 should work with SMF 1.1.x but not with previous ones.
Quotecan u make one working in version 1.1.3
I will submit very soon a new version (v1.33) which works with 1.1.3 and others, but which add no new functionnalities.
Be patient please ! ;D
If you are so busy, you can still a do a manual installation. It's working fine. :D
I'll be waiting for the release 1.1.3v mod ......
Just let me know by when should we except it ??? ...
I can't upload it on the modification pages... so I upload it here.. :-\
Quote from: Eleglin on July 08, 2007, 05:38:49 AM
I can't upload it on the modification pages... so I upload it here.. :-\
Hey thanks for the mod :) ....
I'll let you know after installing ;)
I have error in ./Sources/Post.php when install this mod
please help
thx
Quote from: Asterix[M] on July 12, 2007, 05:39:05 PM
I have error in ./Sources/Post.php when install this mod
please help
thx
More information please
Mod Version : ?
SMF version : ?
Other mods installed : ?
I have mod version 113
smf version 1.1.3
and this mod instaled
1.K-Detection 2.0
2.Global Headers Footers
3.Invite 1.13
4.RSS Feed Icon
5.Topic starter 1.2
6.Reason For Editing Mod 1.14
7.SMF Quick Theme Changer 1.0.0
8.View Only Boards 1.1
9.YouTube BBC Tag (XHTML Compliant) 1.2
10. cbi 1.0
11.SMF Gallery Lite 1.7.6
12.SMF 1.0.11 / 1.1.3 Update 1.1
13.Sticky First Post (extends sticky topic) 1.3.2
14.Custom Profile Field Mod 3.16
15.Show Multiple Badges (Aka Stars) 1.0
16.Users Online Today Mod 1.4.0
thx for help
Have you try a manual installation ? ;)
great mod 8) :D ;D
only one question.
is it posible to make the notifyingmessages to the offender come from a certain acount?
I added another download becuase members were getting errors with Eleglin versions.
Please tell me if you get any errors.
Also note this will only work on 1.1.3
i've noticed 1 error.
in the notifying message the url to the message is
http://jccforum.igotfree.com/index.php?topic=171/236#236
instead of
http://jccforum.igotfree.com/index.php?topic=171.msg236#msg236
and is it possible to let these notifying-messages all standard come from 1 acount for the protection of the moderators?
Ok, I upload an update of this mod HERE.
If you want to update to a later version of Visual Warning, you must:
1. Backup your database and your files !
2. Uninstall the version you're currently running and delete the package.
3. Upload and install the new version of the package.
Don't worry about losing your member settings - the database isn't touched when you uninstall.
Quoteand is it possible to let these notifying-messages all standard come from 1 acount for the protection of the moderators?
Sorry, it's not possible. ;)
What does basically change with update?
I've installed manually any file...not sure that it will work.
And I have a 1.1. RC3..any suggestion? Do I ?
Quote from: tatore on July 28, 2007, 06:12:51 AM
What does basically change with update?
I've installed manually any file...not sure that it will work.
And I have a 1.1. RC3..any suggestion? Do I ?
If you have 1.1RC3, you can upload the new
visualwarning11.php in folder
/sources
It will fix a bug with notifying message.
...
I think you should update your forums too. 1.1 RC3 is not a "stable" version. :-\
..just overwriting the existing file (please, tell me yes ;D ).
QuoteI think you should update your forums too. 1.1 RC3 is not a "stable" version.
I will,but I'm waiting the version with moderated boards .
Actually, this is the best mod close to my needs.
Yes. In this version, I have updated this file. So you can delete the existing file and put the new file instead of it. ( It's "overwriting" ? I'm not very ease with this language, sorry :) )
QuoteInsert Quote
Yes. In this version, I have updated this file. So you can delete the existing file and put the new file instead of it. ( It's "overwriting" ? I'm not very ease with this language, sorry )
Sorry..it's my english :-[
Replace the existing one with the new one.
Well!
Everything seems to work fine, except an error (the same, hundred times) I guess caused from a msn bot (I see it from IP)
Quotehttp://www.dixxxxxion.net/forum/index.php?option=com_smf&Itemid=99999999&topic=4597.msg141415
8: Undefined index: visual_warn
File: /home/dixxxpa/public_html/forum/Sources/Subs.php
Linea: 3594
Did anyone had the same problem?
That does seem like a common error is it effecting the mod though?
I really don't know.
The line on subs is:
return '<img src="' . $settings['images_url'] . '/buttons/' . $name . '" alt="' . $txt[$alt] . '" ' . $custom . ' />' . ($label != '' ? '<b>' . $txt[$label] . '</b>' : '');
But it is not affected by mod, and really don't understand what does it look for "undefined index"-
I have a problem - fully installed - no error messages - but just a 2-line space between Members & Membergroups...? Any suggestions...
Quote from: TDW on July 30, 2007, 06:28:48 PM
I have a problem - fully installed - no error messages - but just a 2-line space between Members & Membergroups...? Any suggestions...
What theme are you using? If your not using the SMF default theme you have to manual install it. (Manual Installation of Mods (http://ugf.da4.org/Themes/default/images/maintab_back.gif))
1.1.3 - default theme... - mod installed: visualwarning1-1-3
open display.template.php and verify that the mod did not add an extra BR
Just solved it - found it int he ad management thread, strnagely enough. I installed that mod and couldn't see that in the Conficuration menu either.
Noticed in the Ad Management support thread that it might be a default language problem - I was set to English utf8 - changed it to JUST English and voila - it's all there!
Many thanks anyway!
I can't uninstall it says there is no uninstall.
How do I upgrade to the new version.
I run SMF 1.1.3.
Thanks
Please post your questions on the new thread for an easier support. :
http://www.simplemachines.org/community/index.php?topic=186021.0
If you can't uninstall it with the package manager, you should uninstall it manually ou keep your version.
Please read this document : http://docs.simplemachines.org/index.php?topic=402.msg2530#msg2530
and so... to encourage people to post in the correct thread: this one is locked.