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

S3NTYN3L

Quote from: DDT13 on April 29, 2008, 07:41:32 PM
Maybe you could make a v2 Beta Public version, because I like your way better and I would like to use it on my v2 board.


Was this directed at me?

Sorry, I wouldn't know where to begin with editing the actual code...
All I'm doing is editing the file the code gets installed to by changing the paths in the <file name=""> tags...

Sub Zero`


Eleglin

@cellax :
Thx for notifying this error. I fix it in the package.
For your template, I can give you an example of correct code (this is on my forum) :

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

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

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

@DDT13:
The creator was Grudge. I'm just a good servant, who updated and fixed this for 1.1 final and next versions. Since Grudge is developper for 2.0 branch, you can see the "warning" features in 2.0 as the new warning way.
I don't know if I will update this mod for 2.0, since I haven't install SMF 2.0 and wait for a stable version. But it's possible that I will not update this mod for the new branch.
No support by PM or Mail.

Apllicmz

Nice Mod
thank you Update 115
Translate Portugues/Brazilian

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



Deoxys94

Nice mod!!  8)  8)  8)

Translate Spanish:

File:

$languagedir/Modifications.spanish.php

Find:

?>

Add Before:

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



No doy soporte por MP ni MSN
...Leo los foros como todos...
Я не говорят по-русски xD
No Hablo ruso xD

Harvest

#285
Is there any  way to change the warning consequence. For instance turn the Post Moderation off, and display a information via index.template.php.  I couldn't find any $context['user'] hook or something like that to check the logged in user warning level. Could You help out?

Ferrin

This would like to build in the "WoW-DK" theme.  What only must be adapted by the structure to this in the "BoardIndexTemplate.php"? And I do not know how? Knows this perhaps must one like me paraphrase this?



Thank you for your help!
My English is not the best. German is more my language.

Marcus Forsberg

Could u help me install this on Kelo-lt?


spiros

I upgraded to 1.1.5 and now when I try to Warn I get this:

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

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

Deoxys94

Quote from: spiros on May 18, 2008, 07:07:26 AM
I upgraded to 1.1.5 and now when I try to Warn I get this:

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

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

You need make the Upgrade with largue_update

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

QuoteCould u help me install this on Kelo-lt?

Yes
But you need make manually edit files on your theme......


No doy soporte por MP ni MSN
...Leo los foros como todos...
Я не говорят по-русски xD
No Hablo ruso xD

spiros

QuoteYou need make the Upgrade with largue_update

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

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

Deoxys94

Quote from: Largue UpdateUsing modifications, or not using SMF 1.1.4? No problem, this is what you need.

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

no....

Create a backup of your important files and run the upgrade  ;)


No doy soporte por MP ni MSN
...Leo los foros como todos...
Я не говорят по-русски xD
No Hablo ruso xD

SlammedDime

No, do not run the upgrade.  There is no need to and it can only complicate things further.  It may be an issue with this mod that you'll need to investigate further.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

SantaClaws

How come when i mute someone they can still Private Message people?

[SAP]Francis

Quote from: pk3r 0wn on May 24, 2008, 07:59:09 AM
How come when i mute someone they can still Private Message people?
That's not a feature.

Vehicles Forum

Founded By Francis Morissette

MrCreatoR

How can i change the yellow (Moderation) to some other color? i changed that in the mod's files, and reinstalled the mod, but the text is still yellow, where should i change it?

And also one problem - when i remove all warnings, the post still have the modified part, i.e: it's still showing the images and the text of that warning, so i need to edit the post every time manualy, any ideas why, is that a known bug?

SantaClaws

Admin CP>>Features And Options>>Visual Warning Mod>>Then change color to what you want.

Sub Zero`

My global mod can't warn people, nor can I find a place in his permissions to make it so he can.

Eleglin

QuoteAnd also one problem - when i remove all warnings, the post still have the modified part, i.e: it's still showing the images and the text of that warning, so i need to edit the post every time manualy, any ideas why, is that a known bug?
No. When you warn, it modify the message. So this is normal.
Quote
My global mod can't warn people, nor can I find a place in his permissions to make it so he can.
This is not a feature. You should allow them for each section.

No support by PM or Mail.

Advertisement: