مد تشکر از پست ها را براتون پیوست کردم.
اگه نتوانستید اونو به صورت اتوماتیک نصب کنید از روش نصب دستی استفاده کنید.
1. البته قبل از اون از کلیه فایل هایی که این مد روی آنها تاثیر میزاره بک آپ بگیرید.
2. ماژول را نصب کنید.
3. فايل زير را باز كنيد :
themedir/Display.template.php
كد زير را سرچ كنيد :
else
unset($normal_buttons['custom']);
كد زير رو بعدش اضافه كنيد :
//Special Lock for the Thank You :)
if($context['thank_you_lock_allowed'])
if(empty($context['is_thank_you_post_locked']))
$normal_buttons['thankyoupostlock'] = array('text' => 'thank_you_post_lock_all_b', 'image' => 'thank_you_lock1.gif', 'lang' => true, 'url' => $scripturl . '?action=thankyoupostcloseall;topic=' . $context['current_topic']);
else
$normal_buttons['thankyoupostlock'] = array('text' => 'thank_you_post_open_all_b', 'image' => 'thank_you_lock2.gif', 'lang' => true, 'url' => $scripturl . '?action=thankyoupostcloseall;topic=' . $context['current_topic']);
كد زير رو پيدا كنيد :
$split_button = create_button('split.gif', 'smf251', 'smf251', 'align="middle"');
كد زير رو بعدش اضافه كنيد:
$thankyoupostpost_button = create_button('thank_you_b.gif', 'thank_you_post_post_b', 'thank_you_post_post_b', 'align="middle"');
$thankyoupostlock_button = create_button('thank_you_b.gif', 'thank_you_post_lock_b', 'thank_you_post_lock_b', 'align="middle"');
$thankyoupostopen_button = create_button('thank_you_b.gif', 'thank_you_post_open_b', 'thank_you_post_open_b', 'align="middle"');
$thankyoupostdelete_button = create_button('thank_you_b.gif', 'thank_you_post_delete_b', 'thank_you_post_delete_b', 'align="middle"');
كد زير رو پيدا كن:
// Show avatars, images, etc.?
كد زير رو قبلش وارد كن:
if(!empty($modSettings['thankYouPostDisplayPage'])) {
echo '
', $txt['thank_you_post_thx_display'], '<br />
-', $txt['thank_you_post_made_display'], ': ', $message['member']['thank_you_post']['made'], '<br />
-', $txt['thank_you_post_became_display'], ': ', $message['member']['thank_you_post']['became'], '<br />
<br />';
}
اين رو سرچ كن :
// What about splitting it off the rest of the topic?
if ($context['can_split'])
echo '
<a href="', $scripturl, '?action=splittopics;topic=', $context['current_topic'], '.0;at=', $message['id'], '">', $split_button, '</a>';
بعدش اين رو بزار:
// Can do some Thank You Post things :)
if ($message['thank_you_post']['post'] && !$message['thank_you_post']['locked'])
echo '
<a href="', $scripturl, '?action=thankyou;topic=', $context['current_topic'], '.0;msg=', $message['id'], '">', $thankyoupostpost_button, '</a>';
if ($message['thank_you_post']['lock'] && $message['thank_you_post']['isThankYouPost'])
echo '
<a href="', $scripturl, '?action=thankyoupostlock;topic=', $context['current_topic'], '.0;msg=', $message['id'], '">', $message['thank_you_post']['locked'] ? $thankyoupostopen_button : $thankyoupostlock_button, '</a>';
if ($message['thank_you_post']['delete'] && $message['thank_you_post']['isThankYouPost'])
echo '
<a href="', $scripturl, '?action=thankyoupostdelete;topic=', $context['current_topic'], '.0;msg=', $message['id'], ';sesc=', $context['session_id'], '" onclick="return confirm('', $txt['remove_thank_you_post'], '?');">', $thankyoupostdelete_button, '</a>';
اين رو پيدا كن:
echo '
</td>
</tr><tr>
<td valign="bottom" class="smalltext" id="modified_', $message['id'], '">';
اينو قبلش بزار :
//Show the Thank You list or the link or.... nothing? XD
if ($message['thank_you_post']['isThankYouPost']) {
echo '
</tr><tr class="ThankOMatic">
<td colspan="2" class="smalltext" width="100%">
<hr width="100%" size="1" class="hrcolor" />';
if(!empty($context['thank_you_post'][$message['id']])) {
echo '
<p>'.$txt['followgiveathank'].'</p><p>';
foreach($context['thank_you_post'][$message['id']]['fulllist'] as $thx)
echo $thx['link'].(!empty($thx['deletelink']) ? $thx['deletelink'] : '').($thx['last'] ? '' : ', ');
echo '
</p>';
}
//Counter and Link to the direkt or complete list :)
echo '
<a href="'.$message['thank_you_post']['href'].'">
'.$txt['thank_you_link_beforecounter'].' '.$message['thank_you_post']['counter'].' '.($message['thank_you_post']['counter'] == 1 ? $txt['thank_you_link_member'] : $txt['thank_you_link_members']).' '.$txt['thank_you_link_aftercounter'].'
</a>';
if($message['thank_you_post']['locked'])
echo '<br />
<span class="smalltext"><i>'.$txt['thank_you_is_locked'].'</i></span>';
}
ادامه داره .....
اينو پيدا كن:
if ($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();');
بعدش اينو بزتر :
if($context['thank_you_post_unlock_all'])
$mod_buttons[] = array('text' => 'thank_you_post_unlock_all', 'image' => 'thankyoulock2.gif', 'lang' => true, 'url' => $scripturl . '?action=thankyoupostunlockall;topic=' . $context['current_topic'] . '.0');