$txt['no_copy_main'] = 'Ziyaretçilerin anasayfada kopyalama yapmasını engelle';
$txt['no_copy_msg'] = 'Ziyaretçilerin konu listesinde kopyalama yapmasını engelle';
$txt['no_copy_dsply'] = 'Ziyaretçilerin mesaj içinde kopyalama yapmasını engelle';
$txt['no_copy_txt'] = 'Lütfen Üye olunuz!';
?>
themes/Display.template.php yi aç
bul
global $context, $settings, $options, $txt, $scripturl, $modSettings;
değiştir
global $context, $settings, $options, $txt, $scripturl, $modSettings;
if ($modSettings['no_copy_dsply'] && !$context['user']['is_logged'])
{
echo '
<script language=JavaScript>
<!--
var message="', $txt['no_copy_txt'], '";
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
//form tags to omit in NS6+:
var omitformtags=["input", "textarea", "select"]
omitformtags=omitformtags.join("|")
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
</script>';
}
themes/MessageIndex.template.php yi aç
bul
global $context, $settings, $options, $scripturl, $modSettings, $txt;
değiştir
global $context, $settings, $options, $scripturl, $modSettings, $txt;
if ($modSettings['no_copy_msg'] && !$context['user']['is_logged'])
{
echo '
<script language=JavaScript>
<!--
var message="', $txt['no_copy_txt'], '";
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
//form tags to omit in NS6+:
var omitformtags=["input", "textarea", "select"]
omitformtags=omitformtags.join("|")
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
</script>';
}
themes/BoardIndex.template.php yi aç
bul
global $context, $settings, $options, $txt, $scripturl, $modSettings;
değiştir
global $context, $settings, $options, $txt, $scripturl, $modSettings;
if ($modSettings['no_copy_main'] && !$context['user']['is_logged'])
{
echo '
<script language=JavaScript>
<!--
var message="', $txt['no_copy_txt'], '";
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
//form tags to omit in NS6+:
var omitformtags=["input", "textarea", "select"]
omitformtags=omitformtags.join("|")
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
</script>';
}
uygulamarı sorunsuz bir şekilde yaptıktan sonra admin panelinden forum seçeneklerine girip modla ilgili ayarlarınızı aktifleştirmeyi unutmayın...
Alıntıdır smf
S.a ben herşeyi olduğu gibi yapmama rağmen seçeneklerin çıktığı yerlerin yanında yazı göremiyorum.Görememek sorun değilde bari o boşluk olan yerlere bunların çalışması için ne yazmam gerekiyor onu söyleseniz ? çünkü check kutucuğu şeklinde deil yanında text boşluğu vermiş