Visual Warning Mod

Started by xenovanis, November 06, 2005, 01:39:15 AM

Previous topic - Next topic

ghostfreak

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.

http://www.xfilesforum.net - Dare To Believe?
http://www.idealforum.co.uk - The Green Blitz!

DemonicInfluence

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???

ametzler

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

Fatherguido

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

DHC

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.

Fatherguido

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?

ProtoMan.EXE

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

mpetrie

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

pcigre

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?

DemonicInfluence

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

J. Williams

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?
Joshua Jon Williams
Back in Action.

Nic-

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

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Fatherguido

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>';

kriskd

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.
SMF 2.0.2

Bigguy

I don't think it matters but I would use this:

VisualWarning_SMF11R3.mod

kriskd

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.
SMF 2.0.2

kriskd

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.  :-\
SMF 2.0.2

kriskd

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!
SMF 2.0.2

kriskd

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!
SMF 2.0.2

Advertisement: