Bu modifikasyon yazdır butonunu ve yazdır sayfasını görüntülemeyi üye izinlerine bağlar.
ıstediğiniz üye grubuna üye izinlerinden yetki verebilirsiniz.
Paketlerden kurabilirsiniz.
Modifikasyon paketi ektedir.
Modifikasyon sıfır default tema ve sıfır smf dosyaları baz alınarak hazırlanmıştır.
Modifikasyon resmi site onayına sunulmuştur.




Manuel kurulum:

./Themes/default/Display.template.php
Find:
Kod:

'print' => array('text' => 'print', 'image' => 'print.gif', 'lang' => true, 'custom' => 'rel="new_win nofollow"', 'url' => $scripturl . '?action=printpage;topic=' . $context['current_topic'] . '.0'),

Replace:
Kod:

'print' => array((allowedTo('printpage_permission')) ? 1 : 'test' => 'nothinglol', 'text' => 'print', 'image' => 'print.gif', 'lang' => true, 'custom' => 'rel="new_win nofollow"', 'url' => $scripturl . '?action=printpage;topic=' . $context['current_topic'] . '.0'),

./Themes/default/Printpage.template.php
find:
Kod:



Replace:
Kod:

';
if (allowedTo('printpage_permission') )
echo '

Find:
Kod:

echo '

', $txt['title'], ': ', $post['subject'], '

', $txt['post_by'], ': ', $post['member'], ' ', $txt['search_on'], ' ', $post['time'], '


', $post['body'], '
';
}

Replace:
Kod:

if (allowedTo('printpage_permission') ){
echo '

', $txt['title'], ': ', $post['subject'], '

', $txt['post_by'], ': ', $post['member'], ' ', $txt['search_on'], ' ', $post['time'], '


', $post['body'], '
';}
else
echo '
', $context['forum_name_html_safe'], '

', $txt['print_help'], '

';
}

./Sources/ManagePermissions.php
Find:
Kod:

$groupLevels['board']['restrict'] = array(
'poll_view',

Replace:
Kod:

$groupLevels['board']['restrict'] = array(
'poll_view',
'printpage_permission',

Find:
Kod:

'karma_edit' => array(false, 'general', 'moderate_general'),

Replace:
Kod:

'karma_edit' => array(false, 'general', 'moderate_general'),
'printpage_permission' => array(false, 'general', 'view_basic_info'),

./Themes/default/languages/Modifications.english.php
add:
Kod:

$txt['permissionname_printpage_permission'] = 'Show the print page.';
$txt['permissionhelp_printpage_permission'] = 'You can print page according to Member groups.';
$txt['print_help'] = 'You are not authorized to view this page. Contact the site administrator if you believe that an error.';

./Themes/default/languages/Modifications.turkish.php
add:
Kod:

$txt['permissionname_printpage_permission'] = 'Yazdır sayfasını göster.';
$txt['permissionhelp_printpage_permission'] = 'Üye gruplarına göre yazdır sayfasını gösterebilirsiniz.';
$txt['print_help'] = 'Bu sayfayı görüntülemeye yetkiniz yok. Bir hata olduðunu düşünüyorsanız site yöneticisine başvurunuz.';



Kaynak