Bu mesajı okuyorsanız bilinki eski gKAANs.oRg yerini yenisine bıraktı!..
Sizlerle buradan devam etmek dileği ile
..
Bu mesajı okuyorsanız bilinki eski gKAANs.oRg yerini yenisine bıraktı!..
Sizlerle buradan devam etmek dileği ile
..
Çeşitli alanlarda Windows’un fontlarının dışına çıkarak yeni fontlar kullanmak ile yazılarımızda farklı havalar estirmek isteriz yada bu yazı ile artık estirmek isteyeceksiniz. Internet (yada başka türlü yollar ile) bilgisayarımıza indirdiğimiz fontları kullanabilmemiz için öncelikle bu fontları sisteme yükleyip tanıtmamız lazım.. Bu iş Windows’ta her tür sürümü için çok basit bir yol ile hallediliyor.
WordPress Mu yani çok kullanıcılı (kullanıcının kendine ait, istediği gibi düzenleyebileceği) blog sisteminin getirdiği bir sorundur bağlantı alt yapısında kendinden gelen /blog eki (Örnek: http://blog.kaansengul.com/blog/bir-yazi). Yalnız bu sadece ana blog’da sahip olunan bir ektir ki oluşturulan diğer bloglarda bu olmaz.
Örnek olarak gKAANs.oRg‘u incelediğimizde (WordPress Mu altyapısını kullanır) yazı bağlantılarında /blog ekinin olmadığını göreceksiniz. Birazdan anlatacaklarımı doğru! uyguladığınız taktirde sorunsuz bir şekilde bu ekten kurtulacaksınız.
Resimdeki gibi kendi bağlantı yapısını istediğiniz gibi oluşturabilmenize rağmen WordPress Mu sistemi (ana blog için) otomatik olarak /blog ekini ekliyor!
Yapacağımız değişiklik sadece wp-admin/options-permalink.php dosyasını kapsıyor.
Bu dosyayı bir editör ile açın ve
if ( isset($_POST['permalink_structure']) ) {
$permalink_structure = $_POST['permalink_structure'];
if (! empty($permalink_structure) )
$permalink_structure = preg_replace('#/+#', '/', '/' . $_POST['permalink_structure']);
if( constant( 'VHOST' ) == 'no' && $permalink_structure != '' && $current_site->domain.$current_site->path == $current_blog->domain.$current_blog->path ) {
$permalink_structure = '/blog' . $permalink_structure;
}
$wp_rewrite->set_permalink_structure($permalink_structure);
}
kodlarını bulun ve
if ( isset($_POST['permalink_structure']) ) {
$permalink_structure = $_POST['permalink_structure'];
if (! empty($permalink_structure) )
$permalink_structure = preg_replace('#/+#', '/', '/' . $_POST['permalink_structure']);
$wp_rewrite->set_permalink_structure($permalink_structure);
}
ile değiştirin.
if ( isset($_POST['category_base']) ) {
$category_base = $_POST['category_base'];
if (! empty($category_base) )
$category_base = preg_replace('#/+#', '/', '/' . $_POST['category_base']);
if( constant( 'VHOST' ) == 'no' && $category_base != '' && $current_site->domain.$current_site->path == $current_blog->domain.$current_blog->path ) {
$category_base = '/blog' . $category_base;
}
$wp_rewrite->set_category_base($category_base);
}
kodlarını bulun ve
if ( isset($_POST['category_base']) ) {
$category_base = $_POST['category_base'];
if (! empty($category_base) )
$category_base = preg_replace('#/+#', '/', '/' . $_POST['category_base']);
$wp_rewrite->set_category_base($category_base);
}
ile değiştirin.
if ( isset($_POST['tag_base']) ) {
$tag_base = $_POST['tag_base'];
if (! empty($tag_base) )
$tag_base = preg_replace('#/+#', '/', '/' . $_POST['tag_base']);
if( constant( 'VHOST' ) == 'no' && $tag_base != '' && $current_site->domain.$current_site->path == $current_blog->domain.$current_blog->path ) {
$tag_base = '/blog' . $tag_base;
}
$wp_rewrite->set_tag_base($tag_base);
}
kodlarını bulun ve
if ( isset($_POST['tag_base']) ) {
$tag_base = $_POST['tag_base'];
if (! empty($tag_base) )
$tag_base = preg_replace('#/+#', '/', '/' . $_POST['tag_base']);
$wp_rewrite->set_tag_base($tag_base);
}
ile değiştirin.
Yukarıdaki değişiklikler ile altyapıdaki değişikliği tamamladığımız. Şimdiki yapacaklarımız ise yönetici panelindeki /blog yazılarını silmek
Bulun:
<td>
<?php if( constant( 'VHOST' ) == 'no' && $current_site->domain.$current_site->path == $current_blog->domain.$current_blog->path ) { echo "/blog"; $permalink_structure = str_replace( "/blog", "", $permalink_structure ); }?>
<input name="permalink_structure" id="permalink_structure" type="text" class="code" style="width: 60%;" value="<?php echo attribute_escape($permalink_structure); ?>" size="50" />
</td>
ile değiştirin
<td> <input name="permalink_structure" id="permalink_structure" type="text" class="code" style="width: 60%;" value="<?php echo attribute_escape($permalink_structure); ?>" size="50" /> </td>
Bulun:
<tr>
<th><label for="category_base"><?php _e('Category base'); ?></label></th>
<td><?php if( constant( 'VHOST' ) == 'no' && $current_site->domain.$current_site->path == $current_blog->domain.$current_blog->path ) { echo "/blog"; $category_base = str_replace( "/blog", "", $category_base ); }?> <input name="category_base" id='category_base' type="text" class="code" value="<?php echo attribute_escape( $category_base ); ?>" size="30" /></td>
</tr>
ile değiştirin
<tr>
<th><label for="category_base"><?php _e('Category base'); ?></label></th>
<td><input name="category_base" id='category_base' type="text" class="code" value="<?php echo attribute_escape( $category_base ); ?>" size="30" /></td>
</tr>
Bulun:
<tr>
<th><label for="tag_base"><?php _e('Tag base'); ?></label></th>
<td><?php if( constant( 'VHOST' ) == 'no' && $current_site->domain.$current_site->path == $current_blog->domain.$current_blog->path ) { echo "/blog"; $tag_base = str_replace( "/blog", "", $tag_base ); }?> <input name="tag_base" id="tag_base" type="text" class="code" value="<?php echo attribute_escape($tag_base); ?>" size="30" /></td>
</tr>
ile değiştirin
<tr>
<th><label for="tag_base"><?php _e('Tag base'); ?></label></th>
<td><input name="tag_base" id="tag_base" type="text" class="code" value="<?php echo attribute_escape($tag_base); ?>" size="30" /></td>
</tr>
Bağlantılarımızda ve yönetim paneli bağlantı ayarlarında bulunan /blog ekini ortadan kaldırdık! Herhangi bir soru ve sorunu bana bildirdiğiniz taktirde yardım etmeye çalışacağım