evitar copiar en un post
Publicado: 01 Sep 2011, 12:33
hola queria saber si existe la remota posibilidad de que en un post se elija la opcion de evitar el boton derecho o el copiar...se podra? gracias!!!!!!!!!!!!!!!!
phpBB España Oficial, Soporte Internacional Oficial del sistema de foros phpBB en Español, extensiones, estilos, traducciones, guías, tutoriales, videos, redes sociales, webmaster.
https://www.phpbb-es.com/foro/
Código: Seleccionar todo
<script language=JavaScript>
<!--
var message="Aqui tu mensaje que deseas que salga cuando intenten copiar.";
var z;
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
}
function key(e) {
if (document.all) {
/*if ((event.keyCode!=18)){
alert(message);
} else {
alert(event.keyCode);
}*/
if ((window.event.ctrlKey==true)&&((event.keyCode==80)||(event.keyCode==112))) {
self.close();
}
alert(message);
//alert(event.keyCode);
return false;
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
document.onkeypress=key;
function disableselect(e){
return false
}
function reEnable(){
return true
}
function reclear(){
z=document.body.innerHTML;
document.body.innerHTML=message;
}
function reclose(){
document.body.innerHTML=z;
self.close();
}
window.onbeforeprint=reclear;
window.onafterprint=reclose;
//if IE4+
document.onselectstart=new Function ("return false")
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
//alert(navigator.appName);
//--></script>
Código: Seleccionar todo
<!-- INCLUDE overall_header.html -->
<h2><a href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a></h2>
<!-- NOTE: remove the style="display: none" when you want to have the forum description on the topic body -->
<!-- IF FORUM_DESC --><div style="display: none !important;">{FORUM_DESC}<br /></div><!-- ENDIF -->
<!-- IF MODERATORS or U_MCP -->
<p>
<!-- IF MODERATORS -->
<strong><!-- IF S_SINGLE_MODERATOR -->{L_MODERATOR}<!-- ELSE -->{L_MODERATORS}<!-- ENDIF -->:</strong> {MODERATORS}
<!-- ENDIF -->
Yo usaría uno de estos BBCodes:georwill04 escribió:se podra?