Autor Tópico: ThankYouMod -Agradecimento  (Lida 7083 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
ThankYouMod -Agradecimento
« em: 17 de Novembro de 2007, 11:56 »
forum/index.php

Código: [Seleccione]
'sticky' => array('LockTopic.php', 'Sticky'),
Código: [Seleccione]
'thankyouadd' => array('ThankYou.php', 'thank_you_add'),
'thankyoulist' => array('ThankYou.php', 'thank_you_list'),
'thankyoulock' => array('ThankYou.php', 'thank_you_lock'),
'thankyoupost' => array('ThankYou.php', 'thank_you_post'),
'thankyouremove' => array('ThankYou.php', 'thank_you_remove'),


Sources/Display.php

Código: [Seleccione]
t.numReplies, t.numViews, t.locked, ms.subject, t.isSticky, t.ID_POLL,
Código: [Seleccione]
t.numReplies, t.numViews, t.locked, ms.subject, t.isSticky, t.ID_POLL, t.thank_you,
Código: [Seleccione]
// Is this topic sticky, or can it even be?
$topicinfo['isSticky'] = empty($modSettings['enableStickyTopics']) ? '0' : $topicinfo['isSticky'];

Código: [Seleccione]
// Is this topic sticky, or can it even be?
$topicinfo['isSticky'] = empty($modSettings['enableStickyTopics']) ? '0' : $topicinfo['isSticky'];

// Is this Thank You Topic?
$context['isThankYou'] = empty($topicinfo['thank_you']) ? FALSE : allowedTo('thank_you_view') && ($topicinfo['thank_you'] == 1 || $topicinfo['thank_you'] == 2);
$context['ThankYouLockStatus'] = empty($topicinfo['thank_you']) ? '1' : $topicinfo['thank_you'];

Código: [Seleccione]
$messages = array();
$posters = array();
while ($row = mysql_fetch_assoc($request))
{
if (!empty($row['ID_MEMBER']))
$posters[] = $row['ID_MEMBER'];
$messages[] = $row['ID_MSG'];
}
mysql_free_result($request);

Código: [Seleccione]
$messages = array();
$posters = array();
$first_msg_found = FALSE;
while ($row = mysql_fetch_assoc($request))
{
if (!empty($row['ID_MEMBER']))
$posters[] = $row['ID_MEMBER'];
$messages[] = $row['ID_MSG'];

//First Message in this list?
if(!$first_msg_found)
$first_msg_found = $context['topic_first_message'] == $row['ID_MSG'];
}
mysql_free_result($request);

//Load The Thank You infomations :)
require_once($sourcedir . '/ThankYou.php');
//Okay This is not the First Page so i need only Settings ;)

if(!$first_msg_found || !$context['isThankYou']) {
thank_you_loadPremission();
$context['isThankYou'] = FALSE;
}
//Oh the First Page :) Nice here i must add this tiny little list or the link :)
else
$context['isThankYou'] = thank_you_list(FALSE);

Código: [Seleccione]
if (empty($options['view_newest_first']))
$counter++;
else
$counter--;

return $output;

Código: [Seleccione]
//I only add to the first post a Thank You List or the link (at the bottom of the post *grin*)
if($counter == 0 && $context['isThankYou']) {
$output['body'] .= doUBBC('[hr]', FALSE).'<font size="1"><span class="smalltext">'.$context['thank_you']['info'].'</span></font>';
}

Sources/Load.php

Código: [Seleccione]
b.ID_THEME, b.override_theme, b.permission_mode, b.countPosts
Código: [Seleccione]
b.thank_you_automatic,
b.ID_THEME, b.override_theme, b.permission_mode, b.countPosts

Código: [Seleccione]
'name' => $row['bname'],
'description' => $row['description'],

Código: [Seleccione]
'name' => $row['bname'],
'description' => $row['description'],
'thank_you_automatic' => !empty($row['thank_you_automatic']),


sources/ManageBoards.php


Código: [Seleccione]
'count_posts' => 1,
Código: [Seleccione]
'count_posts' => 1,
'thank_you_automatic' => 0,

Código: [Seleccione]
$boardOptions['posts_count'] = isset($_POST['count']);
Código: [Seleccione]
$boardOptions['posts_count'] = isset($_POST['count']);
$boardOptions['thank_you_automatic'] = isset($_POST['thank_you']);

sources/ManagePermissions.php

Código: [Seleccione]
'member_admin' => array(
'moderate_forum' => false,
'manage_membergroups' => false,
'manage_permissions' => false,
'manage_bans' => false,
'send_mail' => false,
),

Código: [Seleccione]
'member_admin' => array(
'moderate_forum' => false,
'manage_membergroups' => false,
'manage_permissions' => false,
'manage_bans' => false,
'send_mail' => false,
),
'thank_you' => array(
'thank_you_view' => false,
'thank_you_post' => false,
'thank_you_add' => true,
'thank_you_lock' => true,
'thank_you_remove' => true,
),

Código: [Seleccione]
'mark_any_notify',
'mark_notify',

Código: [Seleccione]
'thank_you_post',
'thank_you_add',
'thank_you_lock',
'thank_you_remove',
'mark_any_notify',
'mark_notify',


sources/ModSettings.php

Código: [Seleccione]
'layout' => array(
'title' => $txt['mods_cat_layout'],
'href' => $scripturl . '?action=featuresettings;sa=layout;sesc=' . $context['session_id'],
),

Código: [Seleccione]
'layout' => array(
'title' => $txt['mods_cat_layout'],
'href' => $scripturl . '?action=featuresettings;sa=layout;sesc=' . $context['session_id'],
),
'ThankYou' => array(
'title' => $txt['Thank_You_Headline'],
'href' => $scripturl . '?action=featuresettings;sa=ThankYou;sesc=' . $context['session_id'],
),

Código: [Seleccione]
'layout' => 'ModifyLayoutSettings',
Código: [Seleccione]
'layout' => 'ModifyLayoutSettings',
'ThankYou' => 'ModifyThankYouSettings',

Código: [Seleccione]
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=karma';
$context['settings_title'] = $txt['smf293'];

prepareDBSettingContext($config_vars);
}

Código: [Seleccione]
function ModifyThankYouSettings()
{
global $txt, $scripturl, $context, $settings, $sc;

$config_vars = array(
//Thank you User Settings?
array('check', 'Thank_You_UserOrder'),
array('check', 'Thank_You_MemberColor'),
array('check', 'Thank_You_AddCounter'),
'',
//ThankYouList or not ;)
array('check', 'Thank_You_LinkListOnly'),
array('check', 'Thank_You_AddLink'),
array('int', 'Thank_You_UserPreview'),
'',
//HideMod
array('check', 'Thank_You_ShowHidden'),
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=ThankYou');
}

$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=ThankYou';
$context['settings_title'] = $txt['Thank_You_Headline'];

prepareDBSettingContext($config_vars);
}


sources/Post.php


Código: [Seleccione]
t.locked, IFNULL(ln.ID_TOPIC, 0) AS notify, t.isSticky, t.ID_POLL, t.numReplies, mf.ID_MEMBER,
Código: [Seleccione]
t.locked, IFNULL(ln.ID_TOPIC, 0) AS notify, t.isSticky, t.ID_POLL, t.numReplies, mf.ID_MEMBER, t.thank_you,
Código: [Seleccione]
list ($locked, $context['notify'], $sticky, $pollID, $context['num_replies'], $ID_MEMBER_POSTER, $ID_FIRST_MSG, $first_subject, $lastPostTime) = mysql_fetch_row($request);
Código: [Seleccione]
list ($locked, $context['notify'], $sticky, $pollID, $context['num_replies'], $ID_MEMBER_POSTER, $context['isThank_You'], $ID_FIRST_MSG, $first_subject, $lastPostTime) = mysql_fetch_row($request);
Código: [Seleccione]
$context['can_lock'] = allowedTo('lock_any') || ($ID_MEMBER == $ID_MEMBER_POSTER && allowedTo('lock_own'));
$context['can_sticky'] = allowedTo('make_sticky') && !empty($modSettings['enableStickyTopics']);

Código: [Seleccione]
$context['can_lock'] = allowedTo('lock_any') || ($ID_MEMBER == $ID_MEMBER_POSTER && allowedTo('lock_own'));
$context['can_sticky'] = allowedTo('make_sticky') && !empty($modSettings['enableStickyTopics']);
$context['can_Thank_you'] = allowedTo('thank_you_add_any') || ($ID_MEMBER == $ID_MEMBER_POSTER && allowedTo('thank_you_add_own'));
$context['add_thank_you'] = !empty($_REQUEST['add_thank_you']);


Código: [Seleccione]
$locked = 0;
// !!! These won't work if you're making an event.
$context['can_lock'] = allowedTo(array('lock_any', 'lock_own'));
$context['can_sticky'] = allowedTo('make_sticky') && !empty($modSettings['enableStickyTopics']);

$context['notify'] = !empty($context['notify']);
$context['sticky'] = !empty($_REQUEST['sticky']);


Código: [Seleccione]
$locked = 0;
// !!! These won't work if you're making an event.
$context['can_lock'] = allowedTo(array('lock_any', 'lock_own'));
$context['can_sticky'] = allowedTo('make_sticky') && !empty($modSettings['enableStickyTopics']);
$context['can_Thank_you'] = allowedTo(array('thank_you_add_any', 'thank_you_add_own'));

$context['notify'] = !empty($context['notify']);
$context['sticky'] = !empty($_REQUEST['sticky']);
$context['add_thank_you'] = !empty($_REQUEST['add_thank_you']);

Código: [Seleccione]
$context['is_new_topic'] = empty($topic);
Código: [Seleccione]
$context['thank_you_automatic'] = empty($topic) && $board_info['thank_you_automatic'] && !isset($_REQUEST['preview']);
$context['is_new_topic'] = empty($topic);

Código: [Seleccione]
$request = db_query("
SELECT t.locked, t.isSticky, t.ID_POLL, t.numReplies, m.ID_MEMBER
FROM ({$db_prefix}topics AS t, {$db_prefix}messages AS m)
WHERE t.ID_TOPIC = $topic
AND m.ID_MSG = t.ID_FIRST_MSG
LIMIT 1", __FILE__, __LINE__);
list ($tmplocked, $tmpstickied, $pollID, $numReplies, $ID_MEMBER_POSTER) = mysql_fetch_row($request);
mysql_free_result($request);

Código: [Seleccione]
$request = db_query("
SELECT t.locked, t.isSticky, t.ID_POLL, t.numReplies, m.ID_MEMBER, t.thank_you
FROM ({$db_prefix}topics AS t, {$db_prefix}messages AS m)
WHERE t.ID_TOPIC = $topic
AND m.ID_MSG = t.ID_FIRST_MSG
LIMIT 1", __FILE__, __LINE__);
list ($tmplocked, $tmpstickied, $pollID, $numReplies, $ID_MEMBER_POSTER, $add_thank_you) = mysql_fetch_row($request);
mysql_free_result($request);

Código: [Seleccione]
if (isset($_POST['sticky']) && (empty($modSettings['enableStickyTopics']) || empty($_POST['sticky']) || !allowedTo('make_sticky')))
unset($_POST['sticky']);

Código: [Seleccione]
if (isset($_POST['sticky']) && (empty($modSettings['enableStickyTopics']) || empty($_POST['sticky']) || !allowedTo('make_sticky')))
unset($_POST['sticky']);
//Add Thank You to the Topic?
if (isset($_POST['add_thank_you']) && !allowedTo(array('thank_you_add_any', 'thank_you_add_own')))
unset($_POST['add_thank_you']);

Código: [Seleccione]
SELECT
m.ID_MEMBER, m.posterName, m.posterEmail, m.posterTime,

Código: [Seleccione]
SELECT
m.ID_MEMBER, m.posterName, m.posterEmail, m.posterTime, t.thank_you,

Código: [Seleccione]
// Change the sticky status of this topic?
if (isset($_POST['sticky']) && (!allowedTo('make_sticky') || $_POST['sticky'] == $row['isSticky']))
unset($_POST['sticky']);

if ($row['ID_MEMBER'] == $ID_MEMBER && !allowedTo('modify_any'))

Código: [Seleccione]
// Change the sticky status of this topic?
if (isset($_POST['sticky']) && (!allowedTo('make_sticky') || $_POST['sticky'] == $row['isSticky']))
unset($_POST['sticky']);
//Change the Thank YOu of the Topic?
if (isset($_POST['add_thank_you']) && !empty($row['thank_you']) && !(allowedTo('thank_you_add_any') || ($ID_MEMBER == $ID_MEMBER_POSTER && allowedTo('thank_you_add_own'))))
unset($_POST['add_thank_you']);

if ($row['ID_MEMBER'] == $ID_MEMBER && !allowedTo('modify_any'))

Código: [Seleccione]
'sticky_mode' => isset($_POST['sticky']) && !empty($modSettings['enableStickyTopics']) ? (int) $_POST['sticky'] : null,
Código: [Seleccione]
'sticky_mode' => isset($_POST['sticky']) && !empty($modSettings['enableStickyTopics']) ? (int) $_POST['sticky'] : null,
'thank_you_mode' => isset($_POST['add_thank_you']),


sources/Security.php

Código: [Seleccione]
'poll_post',
'poll_add_own', 'poll_add_any',
'poll_edit_own', 'poll_edit_any',
'poll_lock_own', 'poll_lock_any',
'poll_remove_own', 'poll_remove_any',

Código: [Seleccione]
poll_post',
'poll_add_own', 'poll_add_any',
'poll_edit_own', 'poll_edit_any',
'poll_lock_own', 'poll_lock_any',
'poll_remove_own', 'poll_remove_any',
'thank_you_post',
'thank_you_add_own', 'thank_you_add_any',
'thank_you_lock_own', 'thank_you_lock_any',
'thank_you_remove_own', 'thank_you_remove_any',


sources/Subs-Boards.php

Código: [Seleccione]
if (isset($boardOptions['posts_count']))
$boardUpdates[] = 'countPosts = ' . ($boardOptions['posts_count'] ? '0' : '1');

Código: [Seleccione]
if (isset($boardOptions['posts_count']))
$boardUpdates[] = 'countPosts = ' . ($boardOptions['posts_count'] ? '0' : '1');

// Okay Automatic Thank you?
if (isset($boardOptions['thank_you_automatic']))
$boardUpdates[] = 'thank_you_automatic = ' . ($boardOptions['thank_you_automatic'] ? '1' : '0');

Código: [Seleccione]
b.boardOrder, b.countPosts, b.memberGroups, b.ID_THEME, b.override_theme,
Código: [Seleccione]
b.boardOrder, b.countPosts, b.memberGroups, b.ID_THEME, b.override_theme,
b.thank_you_automatic,

Código: [Seleccione]
'description' => $row['description'],
'count_posts' => empty($row['countPosts']),
Değiştir

Código: [Seleccione]
'description' => $row['description'],
'count_posts' => empty($row['countPosts']),
'thank_you_automatic' => !empty($row['thank_you_automatic']),

Código: [Seleccione]
$msgOptions['attachments'] = empty($msgOptions['attachments']) ? array() : $msgOptions['attachments'];
$topicOptions['id'] = empty($topicOptions['id']) ? 0 : (int) $topicOptions['id'];
$topicOptions['poll'] = isset($topicOptions['poll']) ? (int) $topicOptions['poll'] : null;
$topicOptions['lock_mode'] = isset($topicOptions['lock_mode']) ?  $topicOptions['lock_mode'] : null;
$topicOptions['sticky_mode'] = isset($topicOptions['sticky_mode']) ? $topicOptions['sticky_mode'] : null;

Código: [Seleccione]
$topicOptions['thank_you_mode'] = isset($topicOptions['thank_you_mode']) ? $topicOptions['thank_you_mode'] : FALSE;

Código: [Seleccione]
// Creating is modifying...in a way.
db_query("
UPDATE {$db_prefix}messages
SET ID_MSG_MODIFIED = $msgOptions[id]
WHERE ID_MSG = $msgOptions[id]", __FILE__, __LINE__);

Código: [Seleccione]
//Correct the thank you if set :)
if(!empty($topicOptions['id']) && $topicOptions['thank_you_mode']) {
global $sourcedir;
include_once($sourcedir.'/ThankYou.php');
thank_you_addfast($topicOptions['id']);
}

// Creating is modifying...in a way.
db_query("
UPDATE {$db_prefix}messages
SET ID_MSG_MODIFIED = $msgOptions[id]
WHERE ID_MSG = $msgOptions[id]", __FILE__, __LINE__);

Código: [Seleccione]
$topicOptions['poll'] = isset($topicOptions['poll']) ? (int) $topicOptions['poll'] : null;
$topicOptions['lock_mode'] = isset($topicOptions['lock_mode']) ? $topicOptions['lock_mode'] : null;
$topicOptions['sticky_mode'] = isset($topicOptions['sticky_mode']) ? $topicOptions['sticky_mode'] : null;

// This is longer than it has to be, but makes it so we only set/change what we have to.


Código: [Seleccione]
$topicOptions['poll'] = isset($topicOptions['poll']) ? (int) $topicOptions['poll'] : null;
$topicOptions['lock_mode'] = isset($topicOptions['lock_mode']) ? $topicOptions['lock_mode'] : null;
$topicOptions['sticky_mode'] = isset($topicOptions['sticky_mode']) ? $topicOptions['sticky_mode'] : null;
$topicOptions['thank_you_mode'] = isset($topicOptions['thank_you_mode']) ? $topicOptions['thank_you_mode'] : FALSE;

// This is longer than it has to be, but makes it so we only set/change what we have to.

Código: [Seleccione]
if ($topicOptions['sticky_mode'] !== null || $topicOptions['lock_mode'] !== null || $topicOptions['poll'] !== null)
{
db_query("
UPDATE {$db_prefix}topics
SET
isSticky = " . ($topicOptions['sticky_mode'] === null ? 'isSticky' : $topicOptions['sticky_mode']) . ",
locked = " . ($topicOptions['lock_mode'] === null ? 'locked' : $topicOptions['lock_mode']) . ",
ID_POLL = " . ($topicOptions['poll'] === null ? 'ID_POLL' : $topicOptions['poll']) . "
WHERE ID_TOPIC = $topicOptions[id]
LIMIT 1", __FILE__, __LINE__);
}

Código: [Seleccione]
if ($topicOptions['sticky_mode'] !== null || $topicOptions['lock_mode'] !== null || $topicOptions['poll'] !== null || $topicOptions['thank_you_mode'])
{
db_query("
UPDATE {$db_prefix}topics
SET
isSticky = " . ($topicOptions['sticky_mode'] === null ? 'isSticky' : $topicOptions['sticky_mode']) . ",
locked = " . ($topicOptions['lock_mode'] === null ? 'locked' : $topicOptions['lock_mode']) . ",
ID_POLL = " . ($topicOptions['poll'] === null ? 'ID_POLL' : $topicOptions['poll']) . ",
thank_you = " . ($topicOptions['thank_you_mode'] === FALSE ? 'thank_you' : '1') . "
WHERE ID_TOPIC = $topicOptions[id]
LIMIT 1", __FILE__, __LINE__);
}


languages/index.portuguese.php


Código: [Seleccione]
?>
Código: [Seleccione]
$txt['d_thank_you_lock1'] = 'Fechar Agradecimento';
$txt['d_thank_you_lock2'] = 'Abrir Agradecimento';
$txt['d_thank_you_remove'] = 'Remover Agradecimento';
$txt['d_thank_you_remove_warn'] = 'Tem a certeza que deseja remover Agradecimento do topico?';
$txt['d_thank_you_post'] = 'Obrigado muito muito!!!';
$txt['d_thank_you_add'] = 'Adicionar Agradecimento';
$txt['d_thank_you'] = 'Obrigado';

languages/ManagePermissions.portuguese.php

Código: [Seleccione]
$txt['permissiongroup_thank_you'] = 'Mod de Agradecimeno';
$txt['permissionname_thank_you_view'] = 'Ver lista de Agradecimento';
$txt['permissionhelp_thank_you_view'] = 'Esta permissão permite que um usuário v agradecer você para alistar. Sem esta permissão, o usuário verá somente o tópico.';
$txt['permissionname_thank_you_post'] = 'Poste Agradecimento';
$txt['permissionhelp_thank_you_post'] = 'This permission allows a user to add his name to the Thank you list';
$txt['permissionname_thank_you_add'] = 'Adicionar Obrigado';
$txt['permissionhelp_thank_you_add'] = 'This permission allows a user to add a Thank You to the existing thread.';
$txt['permissionname_thank_you_add_own'] = 'Proprio Obrigado';
$txt['permissionname_thank_you_add_any'] = 'Qualquer Obrigado';
$txt['permissionname_thank_you_lock'] = 'Trancar Obrigado';
$txt['permissionhelp_thank_you_lock'] = 'Permitir utilizador Trancar a Lista de Agradecimento';
$txt['permissionname_thank_you_lock_own'] = 'Proprio Obrigado';
$txt['permissionname_thank_you_lock_any'] = 'Qualquer Obrigado';
$txt['permissionname_thank_you_remove'] = 'Apagar Obrigado';
$txt['permissionhelp_thank_you_remove'] = 'Permitir utilizador apagar a lista de Agradecimento';
$txt['permissionname_thank_you_remove_own'] = 'Proprio Agradecimento';
$txt['permissionname_thank_you_remove_any'] = 'Qualquer Agradecimento';



languages/ModSettings.portuguese.php

Código: [Seleccione]
$txt['Thank_You_Headline'] = 'Mod de Agradecimento';
$txt['Thank_You_MemberColor'] = 'Mostre As Ligações Coloridas Do Membro';
$txt['Thank_You_UserPreview'] = 'Quanto usuario estao na lista de Agradecimento de membros Mostrar a Lista<br /><font size=1>(<b>0 = all</b>)</font>';
$txt['Thank_You_LinkListOnly'] = 'Nenhuma lista da inspecção prévia do membro, somente ligação agradecer você para alistar';
$txt['Thank_You_UserOrder'] = 'O último agradecimento esta na primeira posição (normal na última posição)';
$txt['Thank_You_AddLink'] = 'Adicionar Link cada vez na extremidade da lista';
$txt['Thank_You_AddCounter'] = 'Mostre um contador na frente de cada usuário que agradeceu.';
$txt['Thank_You_ShowHidden'] = 'Mostre o índice escondido<br /><font size=1><a href="http://mods.simplemachines.org/index.php?mod=118">(require Hide Mod Special)</a></font>';

languages/ManageBoards.portuguese.php

Código: [Seleccione]
$txt['mboards_thank_you_automatic'] = 'Automatico Obrigado';
$txt['mboards_thank_you_automatic_desc'] = 'Cada linha gerada nova transforma-se  "Add Thank You".';


languages/Post.portuguese.php

Código: [Seleccione]
$txt['thank_you_after2'] = 'Adicionar Obrigado';
themes/Display.template.php

Código: [Seleccione]
$split_button = create_button('split.gif', 'smf251', 'smf251', 'align="middle"');
Código: [Seleccione]
//Creat Thank You Buttons :)
if (isset($context['thank_you']['premission'])) {
if ($context['thank_you']['premission']['post'])
$thanks_button = create_button('thank_you_b.gif', 'd_thank_you_post', 'd_thank_you', 'align="middle"');
elseif ($context['thank_you']['premission']['add'])
$thanks_button = create_button('thank_you_b.gif', 'd_thank_you_add', 'd_thank_you_add', 'align="middle"');
}

Código: [Seleccione]
if ($context['can_split'])
echo '
<a href="', $scripturl, '?action=splittopics;topic=', $context['current_topic'], '.0;at=', $message['id'], '">', $split_button, '</a>';

Código: [Seleccione]
//Add Thnak You Buttons :)
if (isset($context['thank_you']['premission'])) {
if ($context['thank_you']['premission']['post'])
echo '<a href="' . $scripturl . '?action=thankyoupost;topic=' . $context['current_topic'] . '.0">' . $thanks_button . '</a>';
elseif ($context['thank_you']['premission']['add'])
echo '<a href="' . $scripturl . '?action=thankyouadd;topic=' . $context['current_topic'] . '.0">' . $thanks_button . '</a>';
}
Código: [Seleccione]
($context['can_remove_post'] && !empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1)
$mod_buttons[] = array('text' => 'quickmod_delete_selected', 'image' => 'delete_selected.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . $txt['quickmod_confirm'] . '\');" id="quickmodSubmit"', 'url' => 'javascript:document.quickModForm.submit();');


Código: [Seleccione]
if (isset($context['thank_you']['premission']))
$mod_buttons += array(
'lock_thank_you' => array('test' => 'thank_you_lock', 'text' => 'd_thank_you_lock'.$context['ThankYouLockStatus'], 'image' => 'thank_you_lock'.$context['ThankYouLockStatus'].'.gif', 'lang' => true, 'custom' => '', 'url' => $scripturl . '?action=thankyoulock;topic=' . $context['current_topic'] . '.0'),
'remove_thank_you' => array('test' => 'thank_you_delete', 'text' => 'd_thank_you_remove', 'image' => 'thank_you_delete.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . $txt['d_thank_you_remove_warn'] . '\');"', 'url' => $scripturl . '?action=thankyouremove;topic=' . $context['current_topic'] . '.0'),
);


themes/ManageBoards.template.php

Código: [Seleccione]
<td valign="top" align="right">
<input type="checkbox" name="count" ', $context['board']['count_posts'] ? ' checked="checked"' : '', ' class="check" />
</td>
</tr>';

Código: [Seleccione]
// Here is the New Thank You Option for the Board Premissions
echo '
<tr>
<td>
<b>', $txt['mboards_thank_you_automatic'], '</b><br />
', $txt['mboards_thank_you_automatic_desc'], '<br /><br />
</td>
<td valign="top" align="right">
<input type="checkbox" name="thank_you" ', $context['board']['thank_you_automatic'] ? ' checked="checked"' : '', ' class="check" />
</td>
</tr>';

themes/Post.template.php

Código: [Seleccione]
<tr>
<td class="smalltext"><label for="check_smileys"><input type="checkbox" name="ns" id="check_smileys"', $context['use_smileys'] ? '' : ' checked="checked"', ' value="NS" class="check" /> ', $txt[277], '</label></td>', '
<td class="smalltext">', $context['can_move'] ? '<input type="hidden" name="move" value="0" /><label for="check_move"><input type="checkbox" name="move" id="check_move" value="1" class="check" /> ' . $txt['move_after2'] . '</label>' : '', '</td>
</tr>', $context['can_announce'] && $context['is_first_post'] ? '
<tr>
<td class="smalltext"><label for="check_announce"><input type="checkbox" name="announce_topic" id="check_announce" value="1" class="check" /> ' . $txt['announce_topic'] . '</label></td>
<td class="smalltext"></td>
</tr>' : '', '

Código: [Seleccione]
', $context['can_Thank_you'] && empty($context['isThank_You']) ? '
<tr>
<td class="smalltext"><label for="check_thank_you"><input type="checkbox" name="add_thank_you" id="add_thank_you"' . ($context['add_thank_you'] || $context['thank_you_automatic'] ? ' checked="checked"' : '') . ' value="1" class="check" /> '.$txt['thank_you_after2'].'</label></td>
<td class="smalltext"></td>
</tr>' : '', '



Se tiver qualquer duvida coloque aqui