Witam

Wiesz co najd?u?ej ?yje? - prowizorka hehe
To taki zau?ek SMF, nie doko?czony rozdzia?.. co?, co powinno by? rozwi?zane par? lat temu.
Jak pami?tam kiedy?, jakie? 2, mo?e 3 lata temu dorobi?em komu?, jako cz??? komercyjnego projektu, okienko do zafajkowania w zezwoleniach.
Mo?na by?o da? zezwolenie grupom, do widzialno?ci tego buttona, ale to by? projekt komercyjny, gdzie btw do??czy?em forum na silniku SMF i dorobi?em par? dingsów. Ju? dawno o tym zapomnia?em. pami?tam tylko, ?e musia?em po za stylem równie? pozmienia? w kilku plikach z silnika.
SMF w dowolnej wersji nie posiada mo?liwo?ci wy??czenia tego buttona. Owszem chyba widzia?em takiego moda .. Print Permissions czy podobnie, mo?e to by?o Print Page Permissions, musisz poszuka?, i nie wiem przypadkiem, czy nie chodzi?o o wersj? 2.0
Nie interesowa?o mnie to, wi?c pami?tam to tylko pobie?nie.
Ja to za?atwiam w jedn? minute ??cznie z podmian? pliku na serverze.
Wy??czasz jedn? lini? kodu w pliku Display.template.php i buttona nie ma!
Poka?? to na stylu default z oryginalnej paczki instalacynej SMF 1.1.11
Edytujemy plik:
Display.template.php i dok?adnie w linii 172 masz tabil? z tym buttonem i trzeba zakomentowa? na pocz?tku t? lini? dwoma --> //
Poka?? wi?cej kodu, a pó?niej kod z zakomentowanym wpisem buttona print
Tak jest w oryginalnym pliku:
// Build the normal button array. $normal_buttons = array( 'reply' => array('test' => 'can_reply', 'text' => 146, 'image' => 'reply.gif', 'lang' => true, 'url' => $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies']), 'notify' => array('test' => 'can_mark_notify', 'text' => 125, 'image' => 'notify.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . ($context['is_marked_notify'] ?
$txt['notification_disable_topic'] : $txt['notification_enable_topic']) . '\');"', 'url' => $scripturl . '?action=notify;sa=' . ($context['is_marked_notify'] ?
'off' : 'on') . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']), 'custom' => array(), 'send' => array('test' => 'can_send_topic', 'text' => 707, 'image' => 'sendtopic.gif', 'lang' => true, 'url' => $scripturl . '?action=sendtopic;topic=' . $context['current_topic'] . '.0'), 'print' => array('text' => 465, 'image' => 'print.gif', 'lang' => true, 'custom' => 'target="_blank"', 'url' => $scripturl . '?action=printpage;topic=' . $context['current_topic'] . '.0'), ); // Special case for the custom one. // Created by GeSHi 1.0.8.10 | code: -› [code=PHP] | load:0.020s | speed:58.23 KB/s
Teraz zakomentuj? buttona print:
// Build the normal button array. $normal_buttons = array( 'reply' => array('test' => 'can_reply', 'text' => 146, 'image' => 'reply.gif', 'lang' => true, 'url' => $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies']), 'notify' => array('test' => 'can_mark_notify', 'text' => 125, 'image' => 'notify.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . ($context['is_marked_notify'] ?
$txt['notification_disable_topic'] : $txt['notification_enable_topic']) . '\');"', 'url' => $scripturl . '?action=notify;sa=' . ($context['is_marked_notify'] ?
'off' : 'on') . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']), 'custom' => array(), 'send' => array('test' => 'can_send_topic', 'text' => 707, 'image' => 'sendtopic.gif', 'lang' => true, 'url' => $scripturl . '?action=sendtopic;topic=' . $context['current_topic'] . '.0'), // 'print' => array('text' => 465, 'image' => 'print.gif', 'lang' => true, 'custom' => 'target="_blank"', 'url' => $scripturl . '?action=printpage;topic=' . $context['current_topic'] . '.0'), ); // Special case for the custom one. // Created by GeSHi 1.0.8.10 | code: -› [code=PHP] | load:0.018s | speed:67.29 KB/s
Wida? t? zakomentowan? lini? w kolorze bladoniebieskim..
To samo mo?na w taki sposób jak poda?em wy?ej, wykona? we wszystkich stylach, które posiadaj? w?asny plik Display.template.php
Tomeh, do it! - its realy easy

Pozdrawiam

roco