SMF Ziyaretçilere Mause Yasakları

Son güncelleme:
  • Ziyaretçilere mause yasakları; ziyaretçilerin forumda kopyalama yapmasını engeller.(üyeler için geçerli değil)



    sources/ModSettings.php yi açın
    bul
    // Basic stuff, user languages, titles, flash, permissions...
    array('check[/swf2][swf3]allow_guestAccess'),
    değiştir


    // Basic stuff, user languages, titles, flash, permissions...
    array('check[/swf2][swf3]allow_guestAccess'),
    array('check[/swf2][swf3]no_copy_main'),
    array('check[/swf2][swf3]no_copy_msg'),
    array('check[/swf2][swf3]no_copy_dsply'),

    langauge/Modifications.turkish.php yi aç
    bul
    ?>

    değiştir


    $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;
    }

    document.oncontextmenu=new Function("alert(message);return false")

    // -->
    </script>
    <script type="text/javascript">

    //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;
    }

    document.oncontextmenu=new Function("alert(message);return false")

    // -->
    </script>
    <script type="text/javascript">

    //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;
    }

    document.oncontextmenu=new Function("alert(message);return false")

    // -->
    </script>
    <script type="text/javascript">

    //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
0 0 0
  • Tsk galiba ilk ben denedim mod sorunsuz çalişiyor ellerinde sağlık
0 0 0
  • 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ş :S
0 0 0