News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

¿como hago que los visitantes no puedan imprimir?

Started by The-Undiod, November 25, 2008, 06:11:18 PM

Previous topic - Next topic

The-Undiod

Hola amigos como puedo hacer que los visitantes NO puedan imprimir.

Espero me puedan ayudar!!!

The-Undiod


4Kstore

si podes adjuntar el archivo display.template.php podríamos ver que se puede hacer, ami en el default ni me aparece eso, aunque tambien supongo que se debe poder configurar desde el admin panel.


Saludos!

¡¡NEW MOD: Sparkles User Names!!!

awek


manixless

hola

en el Display.template.php

buscar:

// 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']),

y antes de eso poner:

if ($message['member']['is_guest']){


buscar:

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


despues de eso poner:

}else {
$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'),
);
}


saludos


Advertisement: