Visual Warning Mod

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

Previous topic - Next topic

Eleglin

No, you have to get this :

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

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

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

// This is a new topic or an already existing one. Save it.
No support by PM or Mail.

Rumbaar

Ah, glad I asked then.  Was having trouble manually reading the XML and working our the search before/after flags.

Thank you for your assistance.  I'll be a lot more comfortable doing the manual part of the installation now :)
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

sgtcyrex

I'm having trouble getting this to show in the ORANGE-LT skin, and i'm not sure what to edit...

Could you give me a heads up? It's probably the same for all non-standard skins, right?

kicho

#103
Oh, I'm having trobule with BluBlur theme. Can someone help me?
I can't see icon "warn". Help me!

ilovegames

Hi there, I have installed the visual warning mod.
I have checked the circle so my moderators can approve
posts.  It seems they can not. Am I missing something?
We are running 1.1.4 with the following mods:

    Mod Name     Version     
1.    Ad Managment    2.3   
2.    cbi, 1.0    1.0   
3.    Bookmark Mod By Leipe Po    1.2    (not installed won't work)
4.    Sticky First Post (extends sticky topic)    1.3.2   
5.    Users Online Today Mod    1.4.0   
6.    Signature Option Post    1.1   
7.    FlashChat Integration    1.0   
8.    SMFShop    3.0   
9.    Invite    1.14   
10.    Bookmarks    1.0    (not installed it won't work)
11.    SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update    1.0    12.    VisualWarning

ilovegames

Hi there, I have installed the visual warning mod.
I have checked the circle so my moderators can approve
posts.  It seems they can not. Am I missing something?
We are running 1.1.4 with the following mods:

    Mod Name     Version     
1.    Ad Managment    2.3   
2.    cbi, 1.0    1.0   
3.    Bookmark Mod By Leipe Po    1.2    (not installed won't work)
4.    Sticky First Post (extends sticky topic)    1.3.2   
5.    Users Online Today Mod    1.4.0   
6.    Signature Option Post    1.1   
7.    FlashChat Integration    1.0   
8.    SMFShop    3.0   
9.    Invite    1.14   
10.    Bookmarks    1.0    (not installed it won't work)
11.    SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update    1.0    12.    VisualWarning

zukdj

Time Warning Lasts (Blank=Default): Does anyone know what the default time is? I'm new to this and my thought was to make the default 30 days but after one day the warning is gone when I warn a user. I'm using SMF 1.1.4 with Tiny Portal. Any suggestions are greatly appreciated. Keep in mind I am very new to PHP.

Dumpling

#107
I'm currently using SMF 1.1.4 and this is my first time installing the Visual Warning Mod (if that info helps).

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

I am having the following problem after installation...





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

Edit: I'm sorry the images are not clickable. I don't know how to make them so they are. You can always right-click and go to View image... :P Sorry

Dumpling

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

I think it's is whatever you set it to be in the configuration in the Admin CP. I think the example shown in the screenshot on the mod page was 7 days. It seems you can preset the "default" in the Admin CP --> Features and Options --> Visual Warning...

Dumpling

#109
I'm trying to mod this manually...and got stuck here >>

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

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

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

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

Please help. Thank you. :(

TrueSatan

Your language settings are wrong...please see other replies of mine to other postings of yours on other mods.

Dumpling

Yes sir! Thank you! :) I already replied to one of your other postings. So far, everything seems to be work fine. Thank you so much for you help (again).

TrueSatan


topbuyer

Hi,

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

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

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

Thanks.

dashaman

it should be fine just install it because you dont need the french language you need english only

[SAP]Francis

Problem, Moderators can't have permissions to Warn persons... So moderators can't warn persons.

Vehicles Forum

Founded By Francis Morissette

Eleglin

It's a very interesting question.

A warning applicates to an user on the whole forum. That's why we have set theses permissions as general permissions, and not as board permissions.
Well, as you know, moderators don't have "general permissions" since they are set per board. They have specific permissions which can only be used on the board they moderate.

If you want these permissions for a moderator, you should assign him on a "global moderator" group, and assign the relevant group the permissions you wish them to have.
No support by PM or Mail.

forty

this mod works for me but theres one thing i dont like with the mod.
i dont want moderators to ban users it should only be an admins job. how can i do that?
thanks.

Eleglin

Please refer to README before asking a question :

QuoteOn installation only the admin will have permission to warn and/or approve posts. If you wish to change that just go to membergroup permissions and assign the relevant group the permissions you wish them to have. Warning - banning is through username only - if you want advanced ban you need to do this manually. Also - even if you give a member the right to warn people they cannot ban them unless they are an admin (ie issue level 4)
No support by PM or Mail.

topbuyer

Any Suggestion on my query?


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

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

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

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

Thanks.

Advertisement: