Webmaster Forumu

Geri git   Webmaster Forumu > Webmaster Kaynak Eğitim Tanıtım Hizmet > Hazır Uygulamalar Forumlar Paket Programlar > WordPress

WordPress WordPress Temalar Eklentiler

Cevapla
 
LinkBack Seçenekler Stil
  #1 (permalink)   iTrader 
Alt 2007-08-04, 01:27
pigeon - ait Kullanıcı Resmi (Avatar)
Şaman
 
Üyelik tarihi: Feb 2005
Nerden: Ankara
Mesajlar: 2.979
Tecrübe Puanı: 5
iTrader: %100/11
pigeon will become famous soon enoughpigeon will become famous soon enough
Question wp de html linklerde büyük harf kullanma ?

html sitemi wordpress e çeviriyorum ancak eski bazı linkler Forumİyinet.html şeklinde. ancak wp de linklerde büyük harf kullanamıyorum. forumiyinet.html şeklinde yaratıyor uzantıyı.
bunun bir yolu var mıdır?
Alıntı ile Cevapla

  #2 (permalink)   iTrader 
Alt 2007-08-04, 01:37
mami
 
Üyelik tarihi: Sep 2006
Nerden: dreamcity
Mesajlar: 4.308
Blog Entries: 3
Tecrübe Puanı: 0
iTrader: %100/18
Mywedding is just really niceMywedding is just really niceMywedding is just really niceMywedding is just really nice
Standart

belki htaccess le düzeltebilirsin, bide sql e giden kodlara ekleme olursa yapılır, tabii bilen bir arkadaş olması lazım.
Alıntı ile Cevapla

  #3 (permalink)   iTrader 
Alt 2007-08-04, 01:53
selim61 - ait Kullanıcı Resmi (Avatar)
belki bir gün
 
Üyelik tarihi: May 2006
Nerden: <?=selim61?>
Mesajlar: 3.435
Blog Entries: 6
Tecrübe Puanı: 6
iTrader: %91/18
selim61 has a spectacular aura aboutselim61 has a spectacular aura aboutselim61 has a spectacular aura about
Standart

Alıntı:
pigeon´isimli üyeden Alıntı Mesajı göster
html sitemi wordpress e çeviriyorum ancak eski bazı linkler Forumİyinet.html şeklinde. ancak wp de linklerde büyük harf kullanamıyorum. forumiyinet.html şeklinde yaratıyor uzantıyı.
bunun bir yolu var mıdır?
wp de o tarz link kullanamazsın yada baya bi ugraşman gerekiyor.
http://codex.wordpress.org/Using_Permalinks
%postname% de oynamalara gidebilirsin
siten.com/%post_id%/%postname%.html yapıcaksan tabi. id yi okutarak gerisi formalite yapabilirsin ama sadece siten.com/Forumİyinet.html yapman kanımca mümkün değil.
Alıntı:
%year%
The year of the post, four digits, for example 2004
%monthnum%
Month of the year, for example 05
%day%
Day of the month, for example 28
%hour%
Hour of the day, for example 15
%minute%
Minute of the hour, for example 43
%second%
Second of the minute, for example 33
%postname%
A sanitized version of the title of the post. So “This Is A Great Post!” becomes “this-is-a-great-post” in the URI (see note below)
%post_id%
The unique ID # of the post, for example 423
%category%
A sanitized version of the category name. Nested sub-categories appear as nested directories in the URI.
%author%
A sanitized version of the author name.
__________________
mail selim61[at]gmail.com
Alıntı ile Cevapla

  #4 (permalink)   iTrader 
Alt 2007-08-04, 02:02
pigeon - ait Kullanıcı Resmi (Avatar)
Şaman
 
Üyelik tarihi: Feb 2005
Nerden: Ankara
Mesajlar: 2.979
Tecrübe Puanı: 5
iTrader: %100/11
pigeon will become famous soon enoughpigeon will become famous soon enough
Standart

teşekkürler.
araştıralım biraz daha.
Alıntı ile Cevapla

  #5 (permalink)   iTrader 
Alt 2007-08-04, 03:06
selim61 - ait Kullanıcı Resmi (Avatar)
belki bir gün
 
Üyelik tarihi: May 2006
Nerden: <?=selim61?>
Mesajlar: 3.435
Blog Entries: 6
Tecrübe Puanı: 6
iTrader: %91/18
selim61 has a spectacular aura aboutselim61 has a spectacular aura aboutselim61 has a spectacular aura about
Standart

çok basit bi yaklaşımla ;wp-includes altında post.php
PHP- Kodu:
$wpdb->query(
"INSERT IGNORE INTO $wpdb->posts
(post_author, post_date, post_date_gmt, post_content, post_content_filtered, post_title, post_excerpt,  post_status, post_type, comment_status, ping_status, post_password, post_name, to_ping, pinged, post_modified, post_modified_gmt, post_parent, menu_order, post_mime_type)
VALUES
('$post_author', '$post_date', '$post_date_gmt', '$post_content', '$post_content_filtered', '$post_title', '$post_excerpt', '$post_status', '$post_type', '$comment_status', '$ping_status', '$post_password', '$post_name', '$to_ping', '$pinged', '$post_date', '$post_date_gmt', '$post_parent', '$menu_order', '$post_mime_type')"
); 
$post_name yi kendimize göre değiştirebiliriz.sayfanın başına bi fonksiyon atarak kendi url mizi kendimiz yaparız.
PHP- Kodu:
function StripUrl($title)//senin zevkine kalmış
{
$title str_replace("#"""$title);
$title str_replace("/"""$title);
$title str_replace("$"""$title);
$title str_replace("&amp;"""$title);
$title str_replace("&"""$title);
$title str_replace("+"""$title);
$title str_replace(","""$title);
$title str_replace(":"""$title);
$title str_replace(";"""$title);
$title str_replace("="""$title);
$title str_replace("?"""$title);
$title str_replace("@""-"$title);
$title str_replace("<"""$title);
$title str_replace(">"""$title);
$title str_replace("%"""$title);
$title str_replace("{"""$title);
$title str_replace("}"""$title);
$title str_replace("|"""$title);
$title str_replace("\\"""$title);
$title str_replace("^"""$title);
$title str_replace("~"""$title);
$title str_replace("["""$title);
$title str_replace("]"""$title);
$title str_replace("`"""$title);
$title str_replace("'"""$title);
$title str_replace("\""""$title);
$title str_replace(" ""-"$title);
return 
$title;//ucwords le felan ilk harfi büyük yapabilirsin.

$post_name yerinede StripUrl($post_title) yazarsak , konu yazarken başlığı nasıl yazmışsak irili ufaklı db ye post_name i öyle ekler.Localde linkler sorunsuzdu ama mutlaka bi yerde patlak verir
__________________
mail selim61[at]gmail.com
Alıntı ile Cevapla

Cevapla

Seçenekler
Stil


Benzer Konular
Konu Konuyu Başlatan Forum Cevaplar Son Mesaj
Mysql sorguda büyük küçük harf hakimi MySQL Veritabanı SQL 3 2008-01-01 16:28


Bütün Zaman Ayarları WEZ +2 olarak düzenlenmiştir. Şu Anki Saat: 16:01 .


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0

Firefox