Autor Tópico: Aviso para membros com Pontuação  (Lida 11649 vezes)

0 Membros e 2 Visitantes estão a ver este tópico.

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5073
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
Aviso para membros com Pontuação
« em: 22 de Abril de 2009, 07:08 »



profile.template.php

Pesquisar por
Código: [Seleccione]
echo '
<td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
</tr>';

// Show the users signature.

Trocar por este
Código: [Seleccione]
// Alerta by rallyproco and Update Candidosa2 smfpt.net:)
if ($context['user']['is_owner'] || $context['user']['is_admin'])
{

echo '
<td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
</tr>

<tr><td><b>Aviso Pontuação: </b></td>
<td><img src="' . $settings['images_url'] . '/uyari', $context['member']['options']['uyari']['value'], '.gif" alt="', $context['member']['options']['uyari'], '" /> %', $context['member']['options']['uyari']['value'], '0</td>
</tr>

<tr><td><font color=#FF0000><b>Razões de Aviso: </b></td>
', !empty($context['member']['options']['neden1']) ? '</tr><tr> <td><b><font color=#FF0000> 1:</b></td> <td>' . parse_bbc($context['member']['options']['neden1']) . '</td>' : '', '

', !empty($context['member']['options']['neden2']) ? '</tr><tr> <td><b><font color=#FF0000> 2:</b></td> <td>' . parse_bbc($context['member']['options']['neden2']) . '</td>' : '', '

', !empty($context['member']['options']['neden3']) ? '</tr><tr> <td><b><font color=#FF0000> 3:</b></td> <td>' . parse_bbc($context['member']['options']['neden3']) . '</td>' : '', '

', !empty($context['member']['options']['neden4']) ? '</tr><tr> <td><b><font color=#FF0000> 4:</b></td> <td>' . parse_bbc($context['member']['options']['neden4']) . '</td>' : '', '

', !empty($context['member']['options']['neden5']) ? '</tr><tr> <td><b><font color=#FF0000> 5:</b></td> <td>' . parse_bbc($context['member']['options']['neden5']) . '</td>' : '', '

', !empty($context['member']['options']['neden6']) ? '</tr><tr> <td><b><font color=#FF0000> 6:</b></td> <td>' . parse_bbc($context['member']['options']['neden6']) . '</td>' : '', '

', !empty($context['member']['options']['neden7']) ? '</tr><tr> <td><b><font color=#FF0000> 7:</b></td> <td>' . parse_bbc($context['member']['options']['neden7']) . '</td>' : '', '

', !empty($context['member']['options']['neden8']) ? '</tr><tr> <td><b><font color=#FF0000> 8:</b></td> <td>' . parse_bbc($context['member']['options']['neden8']) . '</td>' : '', '

', !empty($context['member']['options']['neden9']) ? '</tr><tr> <td><b><font color=#FF0000> 9:</b></td> <td>' . parse_bbc($context['member']['options']['neden9']) . '</td>' : '', '

', !empty($context['member']['options']['neden10']) ? '</tr><tr> <td><b><font color=#FF0000> 10:</b></td> <td>' . parse_bbc($context['member']['options']['neden10']) . '</td>' : '', '


</tr>
'; }

echo '
<tr><td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
</tr>';

// Show the users signature.

Pesquisar
Código: [Seleccione]
// If karma is enabled let the admin edit it...
if ($context['user']['is_admin'] && !empty($modSettings['karmaMode']))
{
echo '
<tr>
<td colspan="2"><hr width="100%" size="1" class="hrcolor" /></td>
</tr><tr>
<td valign="top"><b>', $modSettings['karmaLabel'], '</b></td>
<td>
', $modSettings['karmaApplaudLabel'], ' <input type="text" name="karmaGood" size="4" value="', $context['member']['karma']['good'], '" onchange="setInnerHTML(document.getElementById(\'karmaTotal\'), this.value - this.form.karmaBad.value);" style="margin-right: 2ex;" /> ', $modSettings['karmaSmiteLabel'], ' <input type="text" name="karmaBad" size="4" value="', $context['member']['karma']['bad'], '" onchange="this.form.karmaGood.onchange();" /><br />
(', $txt[94], ': <span id="karmaTotal">', ($context['member']['karma']['good'] - $context['member']['karma']['bad']), '</span>)
</td>
</tr>';
}

Alterar por

Código: [Seleccione]
// Alerta  by rallyproco update translate candidosa2 suporte smfpt.net:)

if ($context['allow_admin'])
{
echo'

<tr><td colspan="2"><hr width="100%" size="1" class="hrcolor" /></td></tr>
<tr><td><b>Alerta Pontuação: </b></td>
<td><select name="options[uyari]">
<option></option>
<option ', (@$context['member']['options']['uyari'] == '1' ? ' selected="selected"' : ''), '>1</option>
<option ', (@$context['member']['options']['uyari'] == '2' ? ' selected="selected"' : ''), '>2</option>
<option ', (@$context['member']['options']['uyari'] == '3' ? ' selected="selected"' : ''), '>3</option>
<option ', (@$context['member']['options']['uyari'] == '4' ? ' selected="selected"' : ''), '>4</option>
<option ', (@$context['member']['options']['uyari'] == '5' ? ' selected="selected"' : ''), '>5</option>
<option ', (@$context['member']['options']['uyari'] == '6' ? ' selected="selected"' : ''), '>6</option>
<option ', (@$context['member']['options']['uyari'] == '7' ? ' selected="selected"' : ''), '>7</option>
<option ', (@$context['member']['options']['uyari'] == '8' ? ' selected="selected"' : ''), '>8</option>
<option ', (@$context['member']['options']['uyari'] == '9' ? ' selected="selected"' : ''), '>9</option>
<option ', (@$context['member']['options']['uyari'] == '10' ? ' selected="selected"' : ''), '>10</option>
</select>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="' . $settings['images_url'] . '/uyari', $context['member']['options']['uyari']['value'], '.gif" alt="', $context['member']['options']['uyari'], '" /> %', $context['member']['options']['uyari']['value'], '0</td>';

echo'



</tr>';


echo '
<tr>
<td><font color=#FF0000> 1: </b></td> <td><input type="text" name="default_options[neden1]" size="50" value="', @$context['member']['options']['neden1'], '" /></td>
</tr>

<tr>
<td><font color=#FF0000> 2: </b></td> <td><input type="text" name="default_options[neden2]" size="50" value="', @$context['member']['options']['neden2'], '" /></td>
</tr>
<tr>
<td><font color=#FF0000> 3: </b></td> <td><input type="text" name="default_options[neden3]" size="50" value="', @$context['member']['options']['neden3'], '" /></td>
</tr>
<tr>
<td><font color=#FF0000> 4: </b></td> <td><input type="text" name="default_options[neden4]" size="50" value="', @$context['member']['options']['neden4'], '" /></td>
</tr>
<tr>
<td><font color=#FF0000> 5: </b></td> <td><input type="text" name="default_options[neden5]" size="50" value="', @$context['member']['options']['neden5'], '" /></td>
</tr>
<tr>
<td><font color=#FF0000> 6: </b></td> <td><input type="text" name="default_options[neden6]" size="50" value="', @$context['member']['options']['neden6'], '" /></td>
</tr>

<tr>
<td><font color=#FF0000> 7: </b></td> <td><input type="text" name="default_options[neden7]" size="50" value="', @$context['member']['options']['neden7'], '" /></td>
</tr>
<tr>
<td><font color=#FF0000> 8: </b></td> <td><input type="text" name="default_options[neden8]" size="50" value="', @$context['member']['options']['neden8'], '" /></td>
</tr>
<tr>
<td><font color=#FF0000> 9: </b></td> <td><input type="text" name="default_options[neden9]" size="50" value="', @$context['member']['options']['neden9'], '" /></td>
</tr>
<tr>
<td><font color=#FF0000> 10: </b></td> <td><input type="text" name="default_options[neden10]" size="50" value="', @$context['member']['options']['neden10'], '" /></td>
</tr>

';
}

display.template.php

Pesquisar
Código: [Seleccione]
// Done with the information about the poster... on to the post itself.
Adicionar acima
Código: [Seleccione]
//Alerta by rallyproco Suporte smfpt.net translate by candidosa2
echo '
<br><br>Alerta Pontuação:<br><img src="' . $settings['images_url'] . '/uyari', $message['member']['options']['uyari']['value'], '.gif" alt="', $context['member']['options']['uyari'], '" /> %', $message['member']['options']['uyari']['value'], '0<br />';



if ($context['allow_admin'])
{
echo'
<br /><a href="', $message['member']['href'], ';sa=forumProfile"><img src="' . $settings['images_url'] . '/uyaributon.gif" alt="Alerta Pontuação" border="0" /><br /><br />';

}

As imagens estão no anexo

« Última modificação: 27 de Fevereiro de 2010, 00:17 por candidosa2 »

Offline M. Kazka

  • Suporte
  • *
  • Mensagens: 299
  • Rank: 1
  • Sexo: Masculino
Re:Aviso para membros com Pontuação
« Responder #1 em: 22 de Abril de 2009, 18:05 »
Muito bom isso, eu estava querendo mesmo.

obrigado!  notworthy notworthy notworthy notworthy notworthy

Offline Friend

  • Iniciar SmfPt
  • *
  • Mensagens: 6
  • Rank: 0
Re: Aviso para membros com Pontuação
« Responder #2 em: 26 de Fevereiro de 2010, 06:20 »
podias colocar de novo a imagem no anexo ?
Obrigado

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5073
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
Re: Aviso para membros com Pontuação
« Responder #3 em: 27 de Fevereiro de 2010, 00:18 »
ja esta actualizado no primeiro tópico anexo