Etiketler: örneğin, l, şekildede, diyelimki, pid, olacaktır, download, sayfanızdaki, index, iletişime, iletisimbilgileri, linklerinizi, isteyenler, sayfanın, istediğimiz, geniş, inceleyebilir, biz, sayfamız, dosyasının |
| « Önceki başlık :: Sonraki başlık » |
| Yazar |
Mesaj |
SistemCesur Türk

Durum: Çevrimdışı Kayıt: 19.01.2006
Mesajlar: 12297
Level: 69
| Deneyim: |
12829 / 12829 |
|
|
|
100% |
|
Tarih: Wed Aug 22, 2007 7:42 pm Mesaj konusu: index.php YERİNE index.html OLSUN SAYFA UZANTILARINIZ !! |
|
|
ADMİN PANELİNDEKİ RESMİ
Bu forumdaki linkleri sadece kayıtlı kullanıcılar görebilir! Kayıt olmak içinburaya tıklayınız... |
ÇALIŞTIĞI AN :=)
Bu forumdaki linkleri sadece kayıtlı kullanıcılar görebilir! Kayıt olmak içinburaya tıklayınız... |
BENİM HOSTUM CPANEL PLESKLERDE ÇALIŞIRMI BİLMİYORUM LOCALDEDE KURMADIM BİRŞEY DİYEMEM ONUN HAKKINDADA CPANELDE DENENMİŞTİR...
KESİN ÇALIŞIYOR ADIM GİBİDE EMİNİM ŞUAN KENDİM KULLANIYORUM.
BİRAZ UZUN AMA FARKLI BİRŞEY YAPMAK İSTEYENLER İÇİN GÜSEL EKLENTİ BU ;D
ÖRNEK BAKIN;
Bu forumdaki linkleri sadece kayıtlı kullanıcılar görebilir! Kayıt olmak içinburaya tıklayınız... |
| Kod: |
/*
+--------------------------------------------------------------------------
| | ========================================
| by Jack
|
| (c) 2005 mkportal-fr.com
| http://www.mkportal-fr.com
|| http://www.mkportal.gen.tr
|
+---------------------------------------------------------------------------
|
| > Powered by Neuroitc
| > http://www.neuroitc.net
| > Turkish Lang. : SABQCES
| > http://www.cesurturk.com
|
+--------------------------------------------------------------------------
|
| > MKPortal
| > Written By Amedeo de longis
| > Date started: 9.2.2004
|
+--------------------------------------------------------------------------
*/ |
==============================DESCRIPTION==================================
This MOD enables you to change the addresses of mkportal for a better referencing.
=============================YÜKLEME==================================
ANA DİZİNDHİ .htaccess DOSYASI
------------------------------
AÇ /.htaccess
------------------------------
EKLE :
| Kod: |
RewriteEngine On
RewriteRule ^index\.html /index.php [L]
RewriteRule [.]*-page\-([0-9]*)\.html /index.php?pid=$1 [L]
RewriteRule ^downloads\.html /index.php?ind=downloads [L]
RewriteRule ^downloads\-section\-([0-9]*)\.html /index.php?ind=downloads&op=section_view&idev=$1 [L]
RewriteRule ^downloads\-section\-([0-9]*)-([0-9]*)\.html /index.php?ind=downloads&op=section_view&idev=$1&order=&st=$2 [L]
RewriteRule ^downloads\-file\-([0-9]*)\.html /index.php?ind=downloads&op=entry_view&iden=$1 [L]
RewriteRule ^downloads\-submit\.html /index.php?ind=downloads&op=submit_file [L]
RewriteRule ^downloads\-addfile\.html /index.php?ind=downloads&op=add_file [L]
RewriteRule ^downloads\-editfile-([0-9]*)\.html /index.php?ind=downloads&op=update_file&iden=$1 [L]
RewriteRule ^downloads\-search\.html /index.php?ind=downloads&op=search [L]
RewriteRule ^downloads\-searchresult\.html /index.php?ind=downloads&op=result_search [L]
RewriteRule ^downloads\-comment-([0-9]*)\.html /index.php?ind=downloads&op=submit_comment&ide=$1 [L]
RewriteRule ^downloads\-rate-([0-9]*)\.html /index.php?ind=downloads&op=submit_rate&ide=$1 [L]
RewriteRule ^downloads\-edit-([0-9]*)\.html /index.php?ind=downloads&op=edit_file&iden=$1 [L]
RewriteRule ^downloads\-delete-([0-9]*)\.html /index.php?ind=downloads&op=del_file&iden=$1 [L]
RewriteRule ^blog\.html /index.php?ind=blog [L]
RewriteRule ^blog\-([0-9]*)\.html /index.php?ind=blog&op=home&idu=$1 [L]
RewriteRule ^blog\-rate-([0-9]*)\.html /index.php?ind=blog&op=submit_rate&ide=$1 [L]
RewriteRule ^blog\-comment-([0-9]*)-([0-9]*)\.html /index.php?ind=blog&op=home&idu=$1&singlepost=$2 [L]
RewriteRule ^gallery\.html /index.php?ind=gallery [L]
RewriteRule ^gallery\-section\-([0-9]*)\.html /index.php?ind=gallery&op=section_view&idev=$1 [L]
RewriteRule ^gallery\-section\-([0-9]*)-([0-9]*)\.html /index.php?ind=gallery&op=section_view&idev=$1&order=&st=$2 [L]
RewriteRule ^gallery\-image\-([0-9]*)\.html /index.php?ind=gallery&op=foto_show&ida=$1 [L]
RewriteRule ^gallery\-search\.html /index.php?ind=gallery&op=search [L]
RewriteRule ^gallery\-searchresult\.html /index.php?ind=gallery&op=result_search [L]
RewriteRule ^gallery\-submit\.html /index.php?ind=gallery&op=submit_file [L]
RewriteRule ^gallery\-addfile\.html /index.php?ind=gallery&op=add_file [L]
RewriteRule ^gallery\-editfile-([0-9]*)\.html /index.php?ind=gallery&op=update_file&iden=$1 [L]
RewriteRule ^gallery\-present\.html /index.php?ind=gallery&op=slide_start [L]
RewriteRule ^gallery\-ecard\-([0-9]*)\.html /index.php?ind=gallery&op=submit_postcard&ide=$1 [L]
RewriteRule ^gallery\-comment\-([0-9]*)\.html /index.php?ind=gallery&op=submit_comment&ide=$1 [L]
RewriteRule ^gallery\-rate\-([0-9]*)\.html /index.php?ind=gallery&op=submit_rate&ide=$1 [L]
RewriteRule ^gallery\-edit\-([0-9]*)\.html /index.php?ind=gallery&op=edit_file&iden=$1 [L]
RewriteRule ^gallery\-delete\-([0-9]*)\.html /index.php?ind=gallery&op=del_file&iden=$1 [L]
RewriteRule ^news\.html /index.php?ind=news [L]
RewriteRule ^news\-section\-([0-9]*)\.html /index.php?ind=news&op=news_show_category&idc=$1 [L]
RewriteRule ^news\-section\-([0-9]*)-([0-9]*)\.html /index.php?ind=news&op=news_show_category&idc=$1&order=&st=$2 [L]
RewriteRule ^news\-([0-9]*)\.html /index.php?ind=news&op=news_show_single&ide=$1 [L]
RewriteRule ^news\-submit\.html /index.php?ind=news&op=submit_news [L]
RewriteRule ^news\-addnews\.html /index.php?ind=news&op=reg_data [L]
RewriteRule ^news\-editnews-([0-9]*)\.html /index.php?ind=news&op=update_news&idnews=$1 [L]
RewriteRule ^news\-search\.html /index.php?ind=news&op=search [L]
RewriteRule ^news\-searchresult\.html /index.php?ind=news&op=result_search [L]
RewriteRule ^news\-edit\-([0-9]*)\.html /index.php?ind=news&op=edit&idnews=$1 [L]
RewriteRule ^news\-delete\-([0-9]*)\.html /index.php?ind=news&op=delete&idnews=$1 [L]
RewriteRule ^news\-comment\-([0-9]*)\.html /index.php?ind=news&op=submit_comment&idnews=$1 [L]
RewriteRule ^topsite\.html /index.php?ind=topsite [L]
RewriteRule ^site\-([0-9]*)\.html /index.php?ind=topsite&op=click_site&idb=$1 [L]
RewriteRule ^rate-site\-([0-9]*)\.html /index.php?ind=topsite&op=submit_rate&ide=$1 [L]
RewriteRule ^topsite-submit\.html /index.php?ind=topsite&op=submit_site [L]
RewriteRule ^reviews\.html /index.php?ind=reviews [L]
RewriteRule ^reviews\-section\-([0-9]*)\.html /index.php?ind=reviews&op=section_view&idev=$1 [L]
RewriteRule ^reviews\-section\-([0-9]*)-([0-9]*)\.html /index.php?ind=reviews&op=section_view&idev=$1&order=&st=$2 [L]
RewriteRule ^reviews\-([0-9]*)\.html /index.php?ind=reviews&op=entry_view&iden=$1 [L]
RewriteRule ^reviews\-search\.html /index.php?ind=reviews&op=search [L]
RewriteRule ^reviews\-searchresult\.html /index.php?ind=reviews&op=result_search [L]
RewriteRule ^reviews\-submit\.html /index.php?ind=reviews&op=submit_file [L]
RewriteRule ^reviews\-submitfile\.html /index.php?ind=reviews&op=submit_file1 [L]
RewriteRule ^reviews\-addfile\.html /index.php?ind=reviews&op=add_file [L]
RewriteRule ^reviews\-editfile-([0-9]*)\.html /index.php?ind=reviews&op=update_file&iden=$1 [L]
RewriteRule ^reviews\-comment\-([0-9]*)\.html /index.php?ind=reviews&op=submit_comment&ide=$1 [L]
RewriteRule ^reviews\-rate\-([0-9]*)\.html /index.php?ind=reviews&op=submit_rate&ide=$1 [L]
RewriteRule ^reviews\-edit\-([0-9]*)\.html /index.php?ind=reviews&op=edit_file&iden=$1 [L]
RewriteRule ^reviews\-delete\-([0-9]*)\.html /index.php?ind=reviews&op=del_file&iden=$1 [L]
RewriteRule ^quote\.html /index.php?ind=quote [L]
RewriteRule ^quote\-submit\.html /index.php?ind=quote&op=submit_quote [L]
RewriteRule ^chat\.html /index.php?ind=chat [L]
RewriteRule ^staff\.html /index.php?ind=staff [L]
RewriteRule ^shoutbox\.html /index.php?ind=urlobox [L]
RewriteRule ^shoutbox-delete-([0-9]*)\.html /index.php?ind=urlobox&op=delete&idurlo=$1[L]
RewriteRule ^websites\.html /index.php?ind=websites [L]
RewriteRule ^websites\-section\-([0-9]*)\.html /index.php?ind=websites&op=section_view&idev=$1 [L]
RewriteRule ^websites\-section\-([0-9]*)-([0-9]*)\.html /index.php?ind=websites&op=section_view&idev=$1&order=&st=$2 [L]
RewriteRule ^websites\-([0-9]*)\.html /index.php?ind=websites&op=entry_view&iden=$1 [L]
RewriteRule ^websites\-search\.html /index.php?ind=websites&op=search [L]
RewriteRule ^websites\-searchresult\.html /index.php?ind=websites&op=result_search [L]
RewriteRule ^websites\-submit\.html /index.php?ind=websites&op=submit_file [L]
RewriteRule ^websites\-submitsite\.html /index.php?ind=websites&op=submit_file1 [L]
RewriteRule ^websites\-addsite\.html /index.php?ind=websites&op=add_file [L]
RewriteRule ^websites\-editsite-([0-9]*)\.html /index.php?ind=websites&op=update_file&iden=$1 [L]
RewriteRule ^websites\-comment\-([0-9]*)\.html /index.php?ind=websites&op=submit_comment&ide=$1 [L]
RewriteRule ^websites\-rate\-([0-9]*)\.html /index.php?ind=websites&op=submit_rate&ide=$1 [L]
RewriteRule ^websites\-edit\-([0-9]*)\.html /index.php?ind=websites&op=edit_file&iden=$1 [L]
RewriteRule ^websites\-delete\-([0-9]*)\.html /index.php?ind=websites&op=del_file&iden=$1 [L]
RewriteRule ^websites\-badlink\-([0-9]*)\.html /index.php?ind=websites&op=submit_badlink&ide=$1 [L]
RewriteRule ^articoli\.html /index.php?ind=articoli [L]
RewriteRule ^articoli\-section\-([0-9]*)\.html /index.php?ind=articoli&op=section_view&idev=$1 [L]
RewriteRule ^articoli\-section\-([0-9]*)-([0-9]*)\.html /index.php?ind=articoli&op=section_view&idev=$1&order=&st=$2 [L]
RewriteRule ^articoli\-([0-9]*)\.html /index.php?ind=articoli&op=entry_view&iden=$1 [L]
RewriteRule ^articoli\-search\.html /index.php?ind=articoli&op=search [L]
RewriteRule ^articoli\-searchresult\.html /index.php?ind=articoli&op=result_search [L]
RewriteRule ^articoli\-submit\.html /index.php?ind=articoli&op=submit_file [L]
RewriteRule ^articoli\-submitfile\.html /index.php?ind=articoli&op=submit_file1 [L]
RewriteRule ^articoli\-addsite\.html /index.php?ind=articoli&op=add_file [L]
RewriteRule ^articoli\-editfile-([0-9]*)\.html /index.php?ind=articoli&op=update_file&iden=$1 [L]
RewriteRule ^articoli\-comment\-([0-9]*)\.html /index.php?ind=articoli&op=submit_comment&ide=$1 [L]
RewriteRule ^articoli\-rate\-([0-9]*)\.html /index.php?ind=articoli&op=submit_rate&ide=$1 [L]
RewriteRule ^articoli\-edit\-([0-9]*)\.html /index.php?ind=articoli&op=edit_file&iden=$1 [L]
RewriteRule ^articoli\-delete\-([0-9]*)\.html /index.php?ind=articoli&op=del_file&iden=$1 [L] |
------------------------------
KAYDET VE GÖNDER
------------------------------------------------------------
------------------------------------------------------------
------------------------------
AÇ /mkportal/admin/ad_main.php
------------------------------
------------------------------
| Kod: |
| In function ad_show() |
------------------------------
BUL :
| Kod: |
| $loadleftf = $mklib->unloadforumleft; |
Add after:
| Kod: |
//added urlfriendky
$urlfriendly = $mklib->friendurl;
//end urlfriendly |
------------------------------
Find :
| Kod: |
$checkleftf2 = "checked=\"checked\"";
if ($loadleftf == "1") {
$checkleftf1 = "checked=\"checked\"";
$checkleftf2 = "";
} |
SONRASINA EKLE :
| Kod: |
//added urlfriendly
$urlfriendly2 = "checked=\"checked\"";
if ($urlfriendly == "1") {
$urlfriendly1 = "checked=\"checked\"";
$urlfriendly2 = "";
}
//end urlfriendly |
------------------------------
BUL:
| Kod: |
<tr>
<td width=\"50%\" height=\"60\" class=\"modulex\">{$mklib->lang['ad_disablezip']}</td>
<td width=\"50%\" class=\"modulex\" align=\"center\">{$mklib->lang['ad_yes']} <input type=\"radio\" value=\"1\" name=\"disablegzip\" $checkgzipd /> {$mklib->lang['ad_no']} <input type=\"radio\" value=\"0\" name=\"disablegzip\" $checkgzipd2 /></td>
</tr> |
SONRASINA EKLE :
| Kod: |
<!-- added urlfriendly -->
<tr>
<td width=\"50%\" height=\"60\" class=\"modulex\"><b>{$mklib->lang['ad_enableurlfriendly']}</b></td>
<td width=\"50%\" class=\"modulex\" align=\"center\">{$mklib->lang['ad_yes']} <input type=\"radio\" value=\"1\" name=\"enableurlfriendly\" $urlfriendly1 /> {$mklib->lang['ad_no']} <input type=\"radio\" value=\"0\" name=\"enableurlfriendly\" $urlfriendly2 /></td>
</tr>
<!-- end urlfriendly --> |
------------------------------
------------------------------
| Kod: |
| In function main_save() |
------------------------------
BUL:
| Kod: |
| $loadrightf = $mkportals->input['loadrightf']; |
SONRASINA EKLE :
| Kod: |
//--added urlrewriting
$enableurlfriendly = $mkportals->input['enableurlfriendly'];
//--end urlrewriting |
BUL:
| Kod: |
$content = "<?php\n\n \$FORUM_PATH = \"$forumpath\"; \n \$FORUM_VIEW = \"$forumview\"; \n \$PORTAL_VIEW = \"$portalview\"; \n \$FORUM_CD = \"$forumcd\"; \n \$FORUM_CS = \"$forumcs\"; \n \$SITE_NAME = \"$sitename\"; \n \$SITE_URL = \"$siteurl\"; \n \$MK_TEMPLATE = \"$template\";\n \$MK_LANG = \"$mklang\";\n \$MK_EDITOR = \"$mkeditor\";\n \$MK_BOARD = \"$MK_BOARD\";\n \$MK_TIMEDIFF = \"$timediff\";\n \$MK_OFFLINE = \"$offline\";\n \$MK_DISABLEGZIP = \"$disablegzip\";\n \$MK_PORTALWIDTH = \"$portalwidth\";\n \$MK_COLUMNWIDTH = \"$columnwidth\";\n \$MK_DISABLENAV = \"$shownav\";\n \$MK_LOADLEFTC = \"$loadleftg\";\n \$MK_LOADRIGHTC = \"$loadrightg\";\n \$MK_UNLOADLEFTF = \"$loadleftf\";\n \$MK_UNLOADRIGHTF = \"$loadrightf\";\n ?>";
|
SONRASINA EKLE :
| Kod: |
| $content = "<?php\n\n \$FORUM_PATH = \"$forumpath\"; \n \$FORUM_VIEW = \"$forumview\"; \n \$PORTAL_VIEW = \"$portalview\"; \n \$FORUM_CD = \"$forumcd\"; \n \$FORUM_CS = \"$forumcs\"; \n \$SITE_NAME = \"$sitename\"; \n \$SITE_URL = \"$siteurl\"; \n \$MK_TEMPLATE = \"$template\";\n \$MK_LANG = \"$mklang\";\n \$MK_EDITOR = \"$mkeditor\";\n \$MK_BOARD = \"$MK_BOARD\";\n \$MK_TIMEDIFF = \"$timediff\";\n \$MK_OFFLINE = \"$offline\";\n \$MK_DISABLEGZIP = \"$disablegzip\";\n \$MK_PORTALWIDTH = \"$portalwidth\";\n \$MK_COLUMNWIDTH = \"$columnwidth\";\n \$MK_DISABLENAV = \"$shownav\";\n \$MK_LOADLEFTC = \"$loadleftg\";\n \$MK_LOADRIGHTC = \"$loadrightg\";\n \$MK_UNLOADLEFTF = \"$loadleftf\";\n \$MK_UNLOADRIGHTF = \"$loadrightf\";\n \$MK_FRIENDURL = \"$enableurlfriendly\";\n ?>"; |
------------------------------
KAYDET VE GÖNDER
------------------------------------------------------------
------------------------------------------------------------
AÇ /mkportal/include/functions.php
------------------------------
------------------------------
| Kod: |
In function printpage, function printpage_forum, function printpage_admin and function printpage_blog: |
------------------------------
BUL :
| Kod: |
| $output .= $this->footer(); |
iKSİNDEN BİRİ:
| Kod: |
| $output .= $this->footer_admin(); |
SONRASINA EKLE :
| Kod: |
//--added urlrewriting
if($this->friendurl){
$output = $this->urlrewriting($output);
}
//--end urlrewriting |
|
|
| Başa dön |
|
 |
|
SistemCesur Türk

Durum: Çevrimdışı Kayıt: 19.01.2006
Mesajlar: 12297
Level: 69
| Deneyim: |
12829 / 12829 |
|
|
|
100% |
|
Tarih: Wed Aug 22, 2007 7:43 pm Mesaj konusu: |
|
|
| Alıntı: |
rewiterule olayını farklı şekildede kullanabiliriz önce .htaccess dosyasının en üstüne alttaki kodu ekliyoruz.
| Kod: |
Options +FollowSymLinks
RewriteEngine On
|
daha sonra html/htm uzantılı yapmak istediğimiz php uzantılı sayfamızı alttaki şekilde ekliyoruz.
Diyelimki mkportaldaki download sayfamızı html uzantılı yapmak istiyoruz.
| Kod: |
| RewriteRule ^yukleme_bolgesi.html$ index.php?ind=downloads [L,NC] |
Yukarıdaki eklentiyi yaptığımızda
Bu forumdaki linkleri sadece kayıtlı kullanıcılar görebilir! Kayıt olmak içinburaya tıklayınız... | sayfasıBu forumdaki linkleri sadece kayıtlı kullanıcılar görebilir! Kayıt olmak içinburaya tıklayınız... | şeklinde olacaktır.
Bunu çoğaltabiliriz örneğin mkportalda oluşturduğumuz bi sayfa olsun sayfanın içeriğide bizimle iletişime geçilecek bilgiler olsun. Oluşturduğumuz sayfaBu forumdaki linkleri sadece kayıtlı kullanıcılar görebilir! Kayıt olmak içinburaya tıklayınız... | olacaktır biz bunu istediğimiz isimde htm/html uzantılı şekle sokalım.
| Kod: |
| RewriteRule ^iletisimbilgileri.htm$ index.php?pid=100 [L,NC] |
artık sayfamızBu forumdaki linkleri sadece kayıtlı kullanıcılar görebilir! Kayıt olmak içinburaya tıklayınız... | şeklinde oldu.
Yukarıdaki işlemleri uyguladıktan sonra portalınızdaki/sayfanızdaki falanfilan.php şeklindeki linklerinizi düzenleyip falanfilan.html haline getirmelisiniz. Daha geniş bilgi almak isteyenlerBu forumdaki linkleri sadece kayıtlı kullanıcılar görebilir! Kayıt olmak içinburaya tıklayınız... | adresini inceleyebilir.
|
|
|
| Başa dön |
|
 |
Sayfanın En Üstüne Çıkmak İçin BURAYA TIKLA !
|