Welcome Guest. Please Login or Register  


You are here: Index > Advanced Electron Forums > Languages and International Support > Türkçe (Turkish) > Topic : Linkleri Ziyaretçilere Yasaklamak

A2 Hosting

News:

Group Message
Hello Guest,

Welcome to the AEF Board. AEF is getting better and better and is also becoming more popular.
Take a few seconds to Register, its free, and it inspires us to work harder and improve on whatever we can improve on.
Give us some feedback, and tell your buddies about AEF!

Thanks,
The AEF Team



Threaded Mode | Print  

 Linkleri Ziyaretçilere Yasaklamak (1 Replies, Read 8161 times)
WebTurk
Group: Member
Post Group: Newbie
Posts: 44
Status:
Anlatım & Türkçeleştirme: Web Türk
Forum Versiyon: 1.0.8
Orjinal İngilizce Konu: _Hide_link_for_user-t3919.html]http://www.anelectron.com/board/i ndex.php/[mod]_Hide_link_for_user-t3919.html
Orjinal Türkçe Konu: http://iysturkiye.com/forum/linkleri-ziyaretcilere-yasaklamak-t- 178.html
Açın: main\functions\bbc_functions.php
Code
function return_url($url){
   
    $url = stripslash($url);
   
    $url = clean_url($url);
   
    $u = $url;
   
    $extra = '';
   
    return '<a href="'.$u.'" target="_blank">'.$u.'</a>';

}

Değiştir:
Code
function return_url($url){
global $logged_in;
   
    $url = stripslash($url);
    $url = clean_url($url);
    $u = $url;
    $extra = '';
   
    if(!$logged_in) {
        return 'Üzgünüm, Linkleri Sadece Kayıtlı Üyeler Görebilir.';
    }
   
    else {
        return '<a href="'.$u.'" target="_blank">'.$u.'</a>';
    }

}

Bul:
Code
function check_url($href, $name){
    $href = preg_replace("/javascript:/i", "javascript-aef: ", $href);
   
    return '<a href="'.stripslash($href).'" target="_blank">'.stripslash($name).'</a>';
}

Değiştir:
Code
function check_url($href, $name){
    global $logged_in;
    $href = preg_replace("/javascript:/i", "javascript-aef: ", $href);
    if(!$logged_in) {
        return ''Üzgünüm, Linkleri Sadece Kayıtlı Üyeler Görebilir';
    }
    else {
        return '<a href="'.stripslash($href).'" target="_blank">'.stripslash($name).'</a>';
    }
}

İzinsiz Kullanılamaz.

Edited by WebTurk : July 9, 2009, 12:42 pm
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Members who read this topic
, WebTurk, tekir90, ozgur34, korsanturk61, webtimi


Users viewing this topic
1 guests, 0 users.

A2 Hosting

All times are GMT. The time now is September 15, 2019, 12:56 pm.

  Powered By AEF 1.1.0 Preview © 2007-2011 AEF Group. All rights reservedQueries: 13  |  Page Created In:0.028