News:

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

Main Menu

Visual Warning Mod

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

Previous topic - Next topic

Kenny01

Quote from: Oga123 on March 05, 2008, 07:47:01 AM
Quote from: Oga123 on March 05, 2008, 07:46:22 AM
Quote from: gtron on March 05, 2008, 07:33:58 AM
how do we remove Current Level:      Banned from someone that needs to be unbanned?
You click modify then type in 0 in all the box then click save.

gtron

Quote from: Oga123 on March 05, 2008, 07:47:24 AM
Quote from: Oga123 on March 05, 2008, 07:47:01 AM
Quote from: Oga123 on March 05, 2008, 07:46:22 AM
Quote from: gtron on March 05, 2008, 07:33:58 AM
how do we remove Current Level:      Banned from someone that needs to be unbanned?
You click modify then type in 0 in all the box then click save.

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

Kenny01

Quote from: gtron on March 05, 2008, 10:49:50 AM
Quote from: Oga123 on March 05, 2008, 07:47:24 AM
Quote from: Oga123 on March 05, 2008, 07:47:01 AM
Quote from: Oga123 on March 05, 2008, 07:46:22 AM
Quote from: gtron on March 05, 2008, 07:33:58 AM
how do we remove Current Level:      Banned from someone that needs to be unbanned?
You click modify then type in 0 in all the box then click save.

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

You click on the visual ban button which can be found on top of the last post he made before he get ban, and you type in 0 in all the check box then click save. That will remove all the ban.

Robin1989

is it usual to get errors upon installation test - i havnt procceded yet incase your not meant to
i get the following errors

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

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


Kenny01

I advice you stop the installation and try installing it manually.

xraffle

I just installed SMF 1.1.4. on my site and I'm having a problem installing the Visual Warning Mod. I downloaded the package onto my forum, but when I click on "Apply Mod" this is the error I keep receiving:

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

It seems like my forum has a problem with executing the modification. Any help would be greatly appreciated.

Kenny01

Try instalng it manually.

E-World

Quote from: E-World on February 09, 2008, 11:57:33 PM
Sorry if it's already been answered before but how exactly do I install this mod on a custom theme, I've got it on the default but can you list the steps I need to take to install it on the custom theme.
My forum is hxxp:www.e-worldforums.co.nr [nonactive] if you need to check the theme.
Hello! Does anyone have an answer for me?

Eleglin

Keep mind that an installation with the package manager :
- don't add the translations on the languages files (except English (iso) )
- don't add the features on the language files for English-UTF8
- don't add the features on a modified theme (it adds only on default theme)
Please refer to Readme and modifications.xml (which are on the zip); You should do a manual installation, as described here.
No support by PM or Mail.

Kenny01

@ Eleglin your link is not working.

lonrot

Hello, is it possible to move the "warn" button under the avatar, for example below the karma?

Kenny01

Quote from: lonrot on March 29, 2008, 12:19:30 PM
Hello, is it possible to move the "warn" button under the avatar, for example below the karma?
There's no need because it's only the admin that can see the button.

lonrot

Nope, my mods are actually requesting me to do it since the warn button is too close to the modify button.

Mystiquo

icon don't work with me i have a italian and cerberus theme thanks

cellax

#274
hi all,

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


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

thx for this mod

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

I am trying to create a button but I cannot find a condition to show it, the following conditions don't work:
$context['admin_areas']['members']['areas']['warning_manager']
$context['awaiting_mod']
$context['can_warn']

xXxexpertxXx

Ok i installed the "VisualWarning" mod! When i would like to Warn someone, mute someone, moderate someone or ban someone it only gives me the option to do that in days! is it possible for me to ban, mute, moderator, warn someone for like an hour?

S3NTYN3L

I'm sorry if this may have been answered already, but...

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

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

Where exactly does this message appear?

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

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


Anyone know where its at?

Babounet

Pls, i would like to install this mod an other theme and not the default theme.

What can I do?

S3NTYN3L

You can edit the install.xml (or modification.xml)...

You'll see install paths like:

$themedir/whateverfile.php

or

$languages/whateverfile.php


Just change it to:

Themes/The_name_of_your_theme/whateverfile.php

or

Themes/The_name_of_your_theme/languages/whateverfile.php


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



Also, if anyone can answer my question two posts above this one, I'd appreciate it...

Sub Zero`

Maybe you could make a v2 Beta Public version, because I like your way better and I would like to use it on my v2 board.

Advertisement: