Forumlar - Seditio CMS - SE » Core Labs - Seditio SEO Sef Link Yapma Anlatım

Sef link yapýmý Seo url nasýl yapýlýr Seditio SEO Link
 

> 1 < [2] ILERI
Author
Message
Kaan

Administrators

Online status

678 posts

#429   2013-10-19 22:58 GMT        

System/fonksi
Kod:
p[/red][/b]'de Alttakini Bulun
[code]/* ------------------ */
function sed_alphaonly($text)
{
return(preg_replace('/[^a-zA-Z0-9_]/', '', &#
t));
}

/* ------------------ */[/code]
Altına Ekleyin.
[code]function ntSEO($text) {
$text=str_replace(" ","-",trim($text));
$text=preg_replace("@[^A-Za-z0-9\-_ĞÜŞİÖÇğüşıöç]+@i","",$text);
$text=str_replace(" +"," ",trim($text));
$text=str_replace("[-]+","-",$text);
$text=str_replace(" +","_",$text);
$text=strtolowerTR($text);
if ((mb_substr($text,-1)=='_')||(mb_substr($text,-1)=='-')) $text=mb_substr($text,0,-1);
return $text;
}
function strtolowerTR($text) {
$TRBul=array('Ğ','Ü','Ş','İ','Ö','Ç','ğ','ü','ş','ı','ö','ç');
$TRDegistir=array('g','u','s','i','o','c','g','u','s','i','o','c');
$text=str_replace($TRBul,$TRDegistir,$text);
$text=strtolower($text);
return $text;
}

function trtolower($text){
//türkçe karakterleri küçültelim
$text=str_replace('Ç','ç',$text);
$text=str_replace('İ','i',$text);
$text=str_replace('I','ı',$text);
$text=str_replace('Ğ','ğ',$text);
$text=str_replace('Ö','ö',$text);
$text=str_replace('Ş','ş',$text);
$text=str_replace('Ü','ü',$text);
//ingilizce karakterleri küçült
$text=strtolower($text);
return $text;
}

function ucwordsTR($text){
$text=ucwords($text);
$text=preg_replace("/^ç(.*?)$/","Ç$1",$text);
$text=preg_replace("/^ğ(.*?)$/","Ğ$1",$text);
$text=preg_replace("/^ı(.*?)$/","I$1",$text);
$text=preg_replace("/^ş(.*?)$/","Ş$1",$text);
$text=preg_replace("/^ö(.*?)$/","Ö$1",$text);
$text=preg_replace("/^ü(.*?)$/","Ü$1",$text);
return $text;
}

function ucfirstTR($text){
$text=ucwords($text);
$text=preg_replace("/^ç(.*?)$/","Ç$1",$text);
$text=preg_replace("/^ğ(.*?)$/","Ğ$1",$text);
$text=preg_replace("/^ı(.*?)$/","I$1",$text);
$text=preg_replace("/^ş(.*?)$/","Ş$1",$text);
$text=preg_replace("/^ö(.*?)$/","Ö$1",$text);
$text=preg_replace("/^ü(.*?)$/","Ü$1",$text);
return $text;
}

function trtoupper($text){
$text=str_replace('ç','Ç',$text);
$text=str_replace('ı','I',$text);
$text=str_replace('i','İ',$text);
$text=str_replace('ğ','Ğ',$text);
$text=str_replace('ö','Ö',$text);
$text=str_replace('ş','Ş',$text);
$text=str_replace('ü','Ü',$text);
$text=strtoupper($text);
return $text;
}[/code]
Kaydet Kapat

[1] > 2 < [3] [4] [5] [6] [7] [8] [9]


Bunlara baktınızmı?
Forumlar için önceki ve sonraki konu yapma
Seditio 175+ Forum Hide Link
Seditio Veritabanı Yönetimi
Kişiliğim, hayatım hakkında konuşabilirsiniz. Fikir yürüte bilirsiniz. Beni öyle böyle sanabilirsiniz. Ama emin olamazsınız. Sizin hakkımdaki yorumlarınız, sanmalarınız benim gerçek de ne olduğumu değiştirmez. Baktığım yeri söyleye bilirsiniz ama ne gördüğümü ASLA...

Bu mesaj Kaan tarafından 2013-10-25 21:39 GMT, 4689 Gün önce düzenlendi.
> 1 < [2] ILERI