Ana Menü
Ana Menü
Yararlı İçerikler
PHP Fusion Lisans
Modül Veritabanı
Yeni Dosyalar
En Çok İndirilen 5 Dosya
Anket
Cep Telefonunuzun Markası?
Nokia
56% [41 Oy]
Apple (iPhone)
3% [2 Oy]
HTC
1% [1 Oy]
Samsung
21% [15 Oy]
Motorola
1% [1 Oy]
LG
7% [5 Oy]
Siemens
0% [0 Oy]
Diğer
7% [5 Oy]
Blackberry
3% [2 Oy]
Cep Telefonu Kullanmıyorum
1% [1 Oy]
Oy: 73
Oy vermek için üye girişi yapmış olmanız gerekmektedir.
Başlama Tarihi: 10/08/2010 18:35
Anket Arşivi
Çevrimiçi Kullanıcılar
· Çevrimiçi Ziyaretçiler: 5
· Çevrimiçi Üyeler: 0
· Toplam Üye Sayısı: 1,109
· En Yeni Üye: dont
Sitemize Destek Olun
En Son Ziyaret
Sitemizi Ekleyin
Aşağıdaki kod ile sitemizin linkini kendi sitenize ekleyebilirsiniz. Kodu alıp sitenize eklemeniz yeterlidir.
Beslemeler
Bot Şaplak Panel
· Son Kontrol: 09/09/2010 08:43
· Spam sayısı: 0
· Son Kontrol Eden: 1110
Burada Olan Üyeler: 1 ziyaretçi
Haberler bölümü için URL modifikasyonu (V7)
sean-paul38
Mesaj Tarihi 06-01-2010 20:53
Yeni Gelen
Mesaj Sayısı: 29
Katılım Tarihi: 02.01.10
Merhaba arkadaşlar.uzun zamandır kendi sitemde kullandığım url modifikasyonunu sizlere sunuyorum.Öncelikle şunu söyleyim bu benim kendi çalışmam değil.V6 da bir destek sitesinden almıştım daha sonra v7 ye uyarlayıp kullanmaya devam ettim.
Bu modifikasyon ile haberler bölümünde url ler de haber başlığı yer alacak.
NOT: win host ta çalışmaz.
Örnek: http://www.cilginbiyologlar.com/4-bin-yillik-insan-dnasi-rn4061.html
http://www.cilgin...n4061.html
Maincore.php deki function kodu için @antiseptic arkadaşımıza teşekkürler.
Google sitemap xml modülündeki değişiklik için @chatlaq arkadaşımıza teşekkür ederiz.
NOT:Dosyalarda Değişiklik yapmadan önce mutlaka yedek alın.
EDİT: Eklenti Güncellenmiştir!
-Standart haberlerde devamı yazısındaki link sorunu giderilmiştir.
-Başlık altında bildirilen sorunlar çözülerek ilk mesaj güncellenmiştir.
evet başlayalım...
1-Sitenizin ana dizininde bulunan .htaccess dosyasını açın ve içine şu kodu ekleyin:
Kod RewriteEngine On
RewriteBase /
RewriteRule ^haberler\.html$ news_cats.php [L]
RewriteRule ^(.*)-nc([0-9]*).html$ news_cats.php?cat_id=$2 [L,NC]
RewriteRule ^(.*)-rn([0-9]*).html$ news.php?readmore=$2 [L,NC]
eğer siteniz bir klasör içinde kuruluysa örneğin fusion diye bir klasörde .htaccess deki şu kodu RewriteBase / şu şekilde değiştirin RewriteBase /klasör adı/
2-maincore.php yi açın şunu bulun:
Kod ?>
şu kodu üstüne ekleyin:
Kod // Fusion v7 SEO by antiseptic - www.pcturk.org - başlangıç
function seoname($seoit) {
$seoit = str_replace('"','',$seoit);
$seoit = str_replace(''','',$seoit);
$seoit = str_replace('<','',$seoit);
$seoit = str_replace('>','',$seoit);
$seoit = str_replace('&','',$seoit);
$seoit = str_replace('\','',$seoit);
$seoit = str_replace('&','',$seoit);
$seoit = str_replace('+','',$seoit);
$seoit = str_replace('|','',$seoit);
$seoit = str_replace(';','',$seoit);
$seoit = str_replace('é','',$seoit);
$seoit = str_replace('½','',$seoit);
$seoit = str_replace('?','',$seoit);
$seoit = str_replace('=','',$seoit);
$seoit = str_replace('/','',$seoit);
$seoit = str_replace('\\','',$seoit);
$seoit = str_replace('@','',$seoit);
$seoit = str_replace('~','',$seoit);
$seoit = str_replace('!','',$seoit);
$seoit = str_replace('£','',$seoit);
$seoit = str_replace('$','',$seoit);
$seoit = str_replace('%','',$seoit);
$seoit = str_replace('ğ','g',$seoit);
$seoit = str_replace('Ğ','G',$seoit);
$seoit = str_replace('ı','i',$seoit);
$seoit = str_replace('İ','i',$seoit);
$seoit = str_replace('ü','u',$seoit);
$seoit = str_replace('Ü','U',$seoit);
$seoit = str_replace('Ş','S',$seoit);
$seoit = str_replace('ş','s',$seoit);
$seoit = str_replace('ö','o',$seoit);
$seoit = str_replace('Ö','O',$seoit);
$seoit = str_replace('Ç','C',$seoit);
$seoit = str_replace('ç','c',$seoit);
$seoit = str_replace(':','_',$seoit);
$seoit = str_replace('^','',$seoit);
$seoit = str_replace('*','',$seoit);
$seoit = str_replace('_','',$seoit);
$seoit = str_replace('{','',$seoit);
$seoit = str_replace('}','',$seoit);
$seoit = str_replace('[','',$seoit);
$seoit = str_replace(']','',$seoit);
$seoit = str_replace('-','',$seoit);
$seoit = str_replace(' & ','',$seoit);
$seoit = str_replace('"','',$seoit);
$seoit = str_replace('.','',$seoit);
$seoit = str_replace('\'','',$seoit);
$seoit = str_replace(',','',$seoit);
$seoit = str_replace(' ','-',$seoit);
$seoit = str_replace(':','',$seoit);
$seoit = str_replace('#','',$seoit);
$seoit = str_replace('(','',$seoit);
$seoit = str_replace(')','',$seoit);
$seoit = str_replace('---','-',$seoit);
$seoit = str_replace('--','-',$seoit);
$seoit = strtolower($seoit);
return $seoit;
}
function makepagenavseo($start, $count, $total, $range = 0, $link = "")
{
global $locale;
if ($link == "") { $link = FUSION_SELF."?"; }
$pg_cnt = ceil($total / $count);
if ($pg_cnt <= 1) { return ""; }
$idx_back = $start - $count;
$idx_next = $start + $count;
$cur_page = ceil(($start + 1) / $count);
$res = $locale['global_092']." ".$cur_page.$locale
['global_093'].$pg_cnt.": ";
if($idx_back >= 0) {
if($cur_page > ($range + 1)) {
$res .= "<a href='".$link."-r0.html'>1</a>...";
}
}
$idx_fst = max($cur_page - $range, 1);
$idx_lst = min($cur_page + $range, $pg_cnt);
if ($range == 0) {
$idx_fst = 1;
$idx_lst = $pg_cnt;
}
for ($i = $idx_fst; $i <= $idx_lst; $i++) {
$offset_page = ($i - 1) * $count;
if ($i == $cur_page) {
$res .= "<span><strong>".$i."</strong></span>";
} else {
$res .= "<a href='".$link."-
r".$offset_page.".html'>".$i."</a>";
}
}
if ($idx_next < $total) {
if ($cur_page < ($pg_cnt - $range)) {
$res .= "...<a href='".$link."-r".($pg_cnt - 1)
* $count.".html'>".$pg_cnt."</a>\n";
}
}
return "<div class='pagenav'>\n".$res."</div>\n";
}
// Fusion v7 SEO by antiseptic - www.pcturk.org - bitiş
3-news.php yi açın:
şu kodu bulun: 57. satır olması lazım.
Kod "news_ext" => $data['news_extended'] ? "y" : "n",
şu kodu altına ekleyin:
Kod "news_subject" => $data['news_subject'],
şu kodu bulun:153. satırda başlıyor
Kod $news_info = array(
"news_id" => $data['news_id'],
"user_id" => $data['user_id'],
"user_name" => $data['user_name'],
"news_date" => $data['news_datestamp'],
"news_ext" => "n",
"news_reads" => $data['news_reads'],
"news_comments" => dbcount("(comment_id)", DB_COMMENTS, "comment_type='N' AND comment_item_id='".$data['news_id']."'"),
"news_allow_comments" => $data['news_allow_comments']
);
şu kod ile değiştirin:
Kod $news_info = array(
"news_id" => $data['news_id'],
"user_id" => $data['user_id'],
"user_name" => $data['user_name'],
"news_date" => $data['news_datestamp'],
"news_ext" => "n",
"news_reads" => $data['news_reads'],
);
şu kodu blun:44.satırda başlıyor olması lazım
Kod $news_subject = "<a name='news_".$data['news_id']."' id='news_".$data['news_id']."'></a>".stripslashes($data['news_subject']);
if ($data['news_cat_image']) {
$news_cat_image = "<a href='news_cats.php?cat_id=".$data['news_cat_id']."'><img src='".get_image("nc_".$data['news_cat_name'])."' alt='".$data['news_cat_name']."' class='news-category' /></a>";
} else {
$news_cat_image = "";
}
şununla değiştirin:
Kod $news_subject = "<a href='".seoname($data['news_subject'])."-rn".$data['news_id'].".html'>".stripslashes($data['news_subject'])."</a>";
if ($data['news_cat_image']) {
$news_cat_image = "<a href='".seoname($data['news_cat_name'])."-nc".($data['news_cat_id']).".html'><img src='".get_image("nc_".$data['news_cat_name'])."' alt='".$data['news_cat_name']."' class='news-category' /></a>";
} else {
$news_cat_image = "";
}
şu kodu bulun 69. satırda başlıyor:
Kod if ($news_info['news_ext'] == "y" || $news_info['news_allow_comments']) {
$news_[0] .= $news_info['news_ext'] == "y" ? "<a href='".FUSION_SELF."?readmore=".$news_info['news_id']."'>".$locale['global_072']."</a> ·\n" : "";
$news_[0] .= $news_info['news_allow_comments'] ? "<a href='".FUSION_SELF."?readmore=".$news_info['news_id']."'>".$news_info['news_comments'].($news_info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a> ·\n" : "";
$news_[0] .= $news_info['news_reads'].$locale['global_074']." ·\n";
}
şununla değiştirin:
Kod if ($news_info['news_ext'] == "y" || $news_info['news_allow_comments']) {
$news_[0] .= $news_info['news_ext'] == "y" ? "<a href='".seoname($data['news_subject'])."-rn".$news_info['news_id'].".html'>".$locale['global_072']."</a> ·\n" : "";
$news_[0] .= $news_info['news_allow_comments'] ? "<a href='".seoname($data['news_subject'])."-rn".$news_info['news_id'].".html'>".$news_info['news_comments'].($news_info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a> ·\n" : "";
$news_[0] .= $news_info['news_reads'].$locale['global_074']." ·\n";
}
şu kodu bulun 87. satırda başlıyor.
Kod $news_[$ncolumn] .= "<br />\n";
$news_[$ncolumn] .= $news_info['news_ext'] == "y" ? "<a href='".FUSION_SELF."?readmore=".$news_info['news_id']."'>".$locale['global_072']."</a> ·\n" : "";
$news_[$ncolumn] .= $news_info['news_allow_comments'] ? "<a href='".FUSION_SELF."?readmore=".$news_info['news_id']."#comments'>".$news_info['news_comments'].($news_info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a> ·\n" : "";
$news_[$ncolumn] .= $news_info['news_reads'].$locale['global_074']." ·\n";
şununla değiştirin:
Kod $news_[$ncolumn] .= "<br />\n";
$news_[$ncolumn] .= $news_info['news_ext'] == "y" ? "<a href='".seoname($data['news_subject'])."-rn".$news_info['news_id'].".html'>".$locale['global_072']."</a> ·\n" : "";
$news_[$ncolumn] .= $news_info['news_allow_comments'] ? "<a href='".seoname($data['news_subject'])."-rn".$news_info['news_id'].".html#comments'>".$news_info['news_comments'].($news_info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a> ·\n" : "";
$news_[$ncolumn] .= $news_info['news_reads'].$locale['global_074']." ·\n";
şu kodu bulun 146. satırda:
Kod $news_cat_image = "<a href='news_cats.php?cat_id=".$data2['news_cat_id']."'><img src='".get_image("nc_".$data2['news_cat_name'])."' alt='".$data2['news_cat_name']."' class='news-category' /></a>";
şununla değiştirin:
Kod $news_cat_image = "<a href='".seoname($data2['news_cat_name'])."-nc".($data2['news_cat_id']).".html'><img src='".get_image("nc_".$data2['news_cat_name'])."' alt='".$data2['news_cat_name']."' class='news-category' /></a>";
Eğer bu haberi paylaş modifikasyonu kullanıyorsunuz şu düzeltmeyi yapın eğer kullanmıyorsanız tamamen kırmızı ile belirtilen bu kısmı geçip devam ediniz.
şu kodu bulun
Kod // bookmark start BY J8UR //http://www.phpfusion-ar.com
opentable("Bu Haberi Paylaş");
echo "<table width='100%' class='tbl-border' cellspacing='1' cellpadding='0'>\n";
echo "<tr>\n<td class='tbl2' colspan='2' align='center'>\n";
?>
<!-- J8UR Book mark Add your acont -->
<script type="text/javascript">
addthis_pub = 'YOUR-ACCOUNT-ID';
</script><a href="http://www.addthis.com/bookmark.php" onMouseOver="return addthis_open(this, '', '[URL]', '[TITLE]')" onMouseOut="addthis_close()" onClick="return addthis_sendto()"><img src="http://s9.addthis.com/button1-bm.gif" width="125" height="16" border="0" alt="" /></a><script type="text/javascript" src="http://s7.addthis.com/js/152/addthis_widget.js"></script>
<!-- J8UR Book mark Add your acont -->
<?php
echo "</td>\n</tr>\n";
echo "<tr>\n<td class='tbl2' style='width:80px;'>Url</td>\n";
echo "<td class='tbl1'><input type='text' value='".$settings['siteurl']."news.php?readmore=".$_GET['readmore']."' class='textbox' style='font-size:11px;width:100%' onClick='javascript:this.select();' /></td>\n</tr>\n";
echo "<tr>\n<td class='tbl2' style='width:80px;'>BBCode</td>\n";
echo "<td class='tbl1'><input type='text' value='."news.php?readmore=".$_GET['readmore']."]".$data['news_subject']."' class='textbox' style='font-size:11px;width:100%' onClick='javascript:this.select();' /></td>\n</tr>\n";
echo "<tr>\n<td class='tbl2' style='width:80px;'>HTML</td>\n";
echo "<td class='tbl1'><input type='text' value='<a href=\"".$settings['siteurl']."news.php?readmore=".$_GET['readmore']."\">".$data['news_subject']."</a>' class='textbox' style='font-size:11px;width:100%' onClick='javascript:this.select();' /></td>\n</tr>\n";
echo "</table>\n";
closetable();
// bookmark end BY J8UR //http://www.phpfusion-ar.com
şu kod ile değiştirin:
Kod opentable("Bu Haberi Paylaş");
echo "<table width='100%' class='tbl-border' cellspacing='1' cellpadding='0'>\n";
echo "<tr>\n<td class='tbl2' colspan='2' align='center'>\n";
?>
<!-- J8UR Book mark Add your acont -->
<script type="text/javascript">
addthis_pub = 'YOUR-ACCOUNT-ID';
</script><a href="http://www.addthis.com/bookmark.php" onMouseOver="return addthis_open(this, '', '[URL]', '[TITLE]')" onMouseOut="addthis_close()" onClick="return addthis_sendto()"><img src="http://s9.addthis.com/button1-bm.gif" width="125" height="16" border="0" alt="" /></a><script type="text/javascript" src="http://s7.addthis.com/js/152/addthis_widget.js"></script>
<!-- J8UR Book mark Add your acont -->
<?php
echo "</td>\n</tr>\n";
echo "<tr>\n<td class='tbl2' style='width:80px;'>Url</td>\n";
echo "<td class='tbl1'><input type='text' value='".$settings['siteurl']."".seoname($data['news_subject'])."-rn".$news_info['news_id'].".html' class='textbox' style='font-size:11px;width:100%' onClick='javascript:this.select();' /></td>\n</tr>\n";
echo "<tr>\n<td class='tbl2' style='width:80px;'>BBCode</td>\n";
echo "<td class='tbl1'><input type='text' value='."".seoname($data['news_subject'])."-rn".$news_info['news_id'].".html]".$data['news_subject']."' class='textbox' style='font-size:11px;width:100%' onClick='javascript:this.select();' /></td>\n</tr>\n";
echo "<tr>\n<td class='tbl2' style='width:80px;'>HTML</td>\n";
echo "<td class='tbl1'><input type='text' value='<a href=\"".$settings['siteurl']."".seoname($data['news_subject'])."-rn".$news_info['news_id'].".html>".$data['news_subject']."</a>' class='textbox' style='font-size:11px;width:100%' onClick='javascript:this.select();' /></td>\n</tr>\n";
echo "</table>\n";
closetable();
// bookmark end BY J8UR //http://www.phpfusion-ar.com
4-news_cats.php yi açın:
şu kodu bulun:
Kod echo THEME_BULLET." <a href='news.php?readmore=".$data2['news_id']."'>".$data2['news_subject']."</a><br />\n";
şununla değiştirin:
Kod echo THEME_BULLET." <a href='".seoname($data2['news_subject'])."-rn".$data2['news_id'].".html'>".$data2['news_subject']."</a><br />\n";
şu kodu bulun:
Kod if ($rows > 10) { echo "<div style='text-align:right'>".THEME_BULLET." <a href='".FUSION_SELF."?cat_id=".$data['news_cat_id']."'>".$locale['405']."</a></div>\n"; }
şununla değiştirin:
Kod if ($rows > 10) { echo "<div style='text-align:right'>".THEME_BULLET." <a href='".seoname($data['news_cat_name'])."-nc".($data['news_cat_id']).".html'>".$locale['405']."</a></div>\n"; }
şu kodu bulun:
Kod echo THEME_BULLET." <a href='news.php?readmore=".$data['news_id']."'>".$data['news_subject']."</a><br />\n";
şununla değiştirin:
Kod echo THEME_BULLET." <a href='".seoname($data['news_subject'])."-rn".$data['news_id'].".html'>".$data['news_subject']."</a><br />\n";
5-includes/theme_functions_include.php açın
şu kodu bulun:
Kod function newsopts($info, $sep, $class = "") {
global $locale; $res = "";
$link_class = $class ? " class='$class' " : "";
if (!isset($_GET['readmore']) && $info['news_ext'] == "y") $res = "<a href='news.php?readmore=".$info['news_id']."'".$link_class.">".$locale['global_072']."</a> ".$sep." ";
if ($info['news_allow_comments']) $res .= "<a href='news.php?readmore=".$info['news_id']."#comments'".$link_class.">".$info['news_comments'].($info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a> ".$sep." ";
if ($info['news_ext'] == "y" || $info['news_allow_comments']) $res .= $info['news_reads'].$locale['global_074']."\n";
$res .= $sep." <a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".get_image("printer")."' alt='".$locale['global_075']."' style='vertical-align:middle;border:0;' /></a>\n";
return "<!--news_opts-->".$res;
}
şununla değiştirin:
Kod function newsopts($info, $sep, $class = "") {
global $locale; $res = "";
$link_class = $class ? " class='$class' " : "";
if (!isset($_GET['readmore']) && $info['news_ext'] == "y") $res = "<a href='".seoname($info['news_subject'])."-rn".$info['news_id'].".html'".$link_class.">".$locale['global_072']."</a> ".$sep." ";
if ($info['news_allow_comments']) $res .= "<a href='".seoname($info['news_subject'])."-rn".$info['news_id'].".html#comments'".$link_class.">".$info['news_comments'].($info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a> ".$sep." ";
if ($info['news_ext'] == "y" || $info['news_allow_comments'])"\n";
$res .= $sep." <a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".get_image("printer")."' alt='".$locale['global_075']."' style='vertical-align:middle;border:0;' /></a>\n";
$res .= $info['news_reads'].$locale['global_074']."\n";
return "<!--news_opts-->".$res;
}
6-mert25 abimizin paylaştığı Manşet haber sistemi kullananlar için:
manset_haber_panel.php yi aç:
şu kodu bulun 38 .satırda:
Kod echo "<div id='titt".$data['news_id']."-sptt' style='display:block; padding:0px 0px 5px 4px; font-size:22px'><b><a href='news.php?readmore=".$data['news_id']."' title='".$data['news_subject']."' class='unnamed2' target='_blank'><font color='061a7d'>".trimlink($data['news_subject'], 36)."</font></b></a></div>";
şununla değiştir:
Kod echo "<div id='titt".$data['news_id']."-sptt' style='display:block; padding:0px 0px 5px 4px; font-size:22px'><b><a href='".seoname($data['news_subject'])."-rn".$data['news_id'].".html' title='".$data['news_subject']."' class='unnamed2' target='_self'><font color='061a7d'>".trimlink($data['news_subject'], 50)."</font></b></a></div>";
şu kodu bulun 70. satırda:
Kod echo "<div id='tits".$data['news_id']."-spot' style='display:block; text-align:left; padding:4px 4px 0px 4px; font-size:10px'><a href='news.php?readmore=".$data['news_id']."' class='side' target='blank'>".trimlink(stripslashes($data['news_news']), 90)."</a></div>";
şununla değiştirin:
Kod echo "<div id='tits".$data['news_id']."-spot' style='display:block; text-align:left; padding:4px 4px 0px 4px; font-size:10px'><a href='".seoname($data['news_subject'])."-rn".$data['news_id'].".html' class='side' target='_self'>".trimlink(stripslashes($data['news_news']), 90)."</a></div>";
şu kodu bulun 85. satırda:
Kod echo "<tr><td background='".INFUSIONS."manset_haber_panel/images/satir.png' height=22> <a href='news.php?readmore=".$data['news_id']."' onmouseover=displayDiv(".$data['news_id'].") title='".$data['news_subject']."' class='side' target='blank'>".trimlink($data['news_subject'], 36)."</a></td></tr>";
şununla değiştirin:
Kod echo "<tr><td background='".INFUSIONS."manset_haber_panel/images/satir.png' height=22> <a href='".seoname($data['news_subject'])."-rn".$data['news_id'].".html' onmouseover=displayDiv(".$data['news_id'].") title='".$data['news_subject']."' class='side' target='_self'>".trimlink($data['news_subject'], 50)."</a></td></tr><p>";
7-@mavimelek abmizin paylaştığın Kategoriye göre haber panelini kullananlar için:
kategoriye_gore_alt_orta_haber_panel.php yi açın:
şu kodu bulun (bu koddan 2 tane 2 kere uygulayın):
Kod echo "<tr><td>
<a href='".BASEDIR."news.php?readmore=$n_id' target='_blank' title=$title><img src='".IMAGES_N."".$data['news_image']."' width='100' height='80' border='1' align='left'/></a>
<a href='".BASEDIR."news.php?readmore=$n_id' target='_blank' title=$title>".trimlink($data['news_subject'], 36)."</a><br>
<a href='".BASEDIR."news.php?readmore=$n_id' target='_blank'>$news_1</a>
</td></tr>";
}
şununla değiştirin:
Kod echo "<tr><td>
<a href='".seoname($data['news_subject'])."-rn".$data['news_id'].".html'><img src='".IMAGES_N."".$data['news_image']."' width='100' height='80' border='1' align='left'/></a>
<a href='".seoname($data['news_subject'])."-rn".$data['news_id'].".html'><b> ".trimlink($data['news_subject'], 36)."</b></a><br><br>
<a href='".seoname($data['news_subject'])."-rn".$data['news_id'].".html'>$news_1</a>
</td></tr>";
}
şu kodu bulun (bu koddan 2 tane 2 kere uygulayın):
Kod <a href='".BASEDIR."news.php?readmore=$n_id' target='_blank' title=$title>".trimlink($data['news_subject'], 36)."</a></div></td></tr>";
şununla değiştirin:
Kod <a href='".seoname($data['news_subject'])."-rn".$data['news_id'].".html'>".trimlink($data['news_subject'], 36)."</a></div></td></tr>";
kategoriye göre haber panelinde kategori id sini kendimiz verdiğimiz için burayıda kendimiz düzelteceğiz. şu kısmı bulun:
Kod <a href='".BASEDIR."news_cats.php?cat_id=21'>Tümü</a></div></table>";// **bu satırdaki kategori id sini kontrol edin.
burdaki
<a href='".BASEDIR."news_cats.php?cat_id=21'>Tümü</a>
yerini aşağıda kırmızı ile gösterdiğim şekilde kendize göre düzenleyin.
<a href='".BASEDIR."haber-kategori-adi-nckategori idsi.html'>Tümü</a>
örneğin haber kategorisinin adı "Güncel Haberler" olsun id si de 11 olsun.bu kısım şu şekilde olacak:
<a href='".BASEDIR."guncel-haberler-nc11.html'>Tümü</a>
Düzenleyen sean-paul38 Düzenleme Tarihi: 19-01-2010 01:53
Arda
Mesaj Tarihi 06-01-2010 20:54
Super Yönetici
Mesaj Sayısı: 3511
Katılım Tarihi: 30.12.09
Hoş Geldin sean-paul38, paylaşım için teşekkürler
Sevgi ve Saygının anlamını bilenlere
sean-paul38
Mesaj Tarihi 06-01-2010 20:59
Yeni Gelen
Mesaj Sayısı: 29
Katılım Tarihi: 02.01.10
hoşbulduk soul yeni site hayırlı olsun vakit buldukça ordan buraya taşıma yapıyoruz kolay gelsin herkese.
karan57
Mesaj Tarihi 17-01-2010 01:44
Acemi Üye
Mesaj Sayısı: 62
Katılım Tarihi: 03.01.10
Sean-paul38 ellerine sağlık güzel bir çalışma olmustu uzun zamandır kullanıyorum fark ettiğim birşey çıktı haberlerde okunma sayısı ve yorumlar kayboldu.Tema değiştirdim yine aynı orjinal news.php attım görüntülendi.Unuttuğunuz şey haberlerde okunma ve yorum sayısını yok etmiş olmanız.
Reklamlar
Mesaj Tarihi: 09-09-2010 08:46
Reklamlar
Mesaj Sayisi: 0
Katilim Tarihi: 01/01/10
Reklamlar
moker
Mesaj Tarihi 17-01-2010 04:02
Üye
Mesaj Sayısı: 154
Katılım Tarihi: 02.01.10
haberin başlığı linkli oluyor ama devamı butonunun linkinde değişiklik olmuyor neden acaba
sean-paul38
Mesaj Tarihi 19-01-2010 01:55
Yeni Gelen
Mesaj Sayısı: 29
Katılım Tarihi: 02.01.10
@karan57 evet bende farkettim ama ne zamandır uğraşamadım.Son yaptığım değişiklik ile Okunma sayısı gösteriliyor fakat yorum sayısını getiremedim onada müsait bir anda bakacam. includes/theme_functions_include.php değişikliği tekrar yapınız.
@morker baştan sona eksiksiz yaptıysan sorun yaşamaman lazım.devamı butonu sorununu çözdük bende şuan sorun yok tekrar yapmayı dene.
chatlaq
Mesaj Tarihi 11-05-2010 22:10
Yönetici
Mesaj Sayısı: 1139
Katılım Tarihi: 31.12.09
arkadaşlar aşağıdaki modifikasyon ile sef olmuş linklerimizi googlenin daha kolay indexlemesi için xml dosyasına yazdıracağız. soulsmasher in hazırladığı xml sitemapa yapacağız modifikasyonu
öncelikle /infusions/sitemapxml/sitemap_functions.php yi açıyoruz
75. satırda bunu buluyoruz
Kod $result=dbquery("SELECT news_id, news_datestamp FROM ".DB_NEWS." WHERE ".groupxmlaccess('news_visibility')." AND (news_start='0'||news_start<=".time().") AND (news_end='0'||news_end>=".time().") AND news_draft='0' ORDER BY news_id DESC");
bununla değiştiriyoruz
Kod $result=dbquery("SELECT news_id, news_subject, news_datestamp FROM ".DB_NEWS." WHERE ".groupxmlaccess('news_visibility')." AND (news_start='0'||news_start<=".time().") AND (news_end='0'||news_end>=".time().") AND news_draft='0' ORDER BY news_id DESC");
80.satırda bunu buluyoruz
Kod $content.= "\t\t<loc>".XMLSITEURL."news.php?readmore=".$data['news_id']."</loc>\n";
bununla değiştiriyoruz
Kod $content.= "\t\t<loc>".XMLSITEURL."".seoname($data['news_subject'])."-rn".$data['news_id'].".html</loc>\n";
96.satırda bunu buluyoruz
Kod $content.= "\t\t<loc>".XMLSITEURL."news_cats.php?cat_id=".$data['news_cat_id']."</loc>\n";
şununla değiştiriyoruz
Kod $content.= "\t\t<loc>".XMLSITEURL."".seoname($data['news_cat_name'])."-nc".($data['news_cat_id']).".html</loc>\n";
modifikasyonumuz bu kadar artık sitemap.xml oluşturunca sitemap.xml de sefli url lerimiz sorunsuz dizilecektir
okeania
Mesaj Tarihi 12-05-2010 02:37
Yeni Gelen
Mesaj Sayısı: 23
Katılım Tarihi: 20.03.10
Hele şükür.. işte günlerdir sorduğum soruya yanıt.... sağ olun var olun.... savul google geliyorummmmmmmm
matraksss
Mesaj Tarihi 30-05-2010 00:05
Üye
Mesaj Sayısı: 153
Katılım Tarihi: 15.05.10
bu olayı nasıl yaparız benim news.php modifasyonlu yani haber resimlerini kendim ekliyorum o yüzden bunu bende yapabilirmiyim
Arda
Mesaj Tarihi 30-05-2010 00:15
Super Yönetici
Mesaj Sayısı: 3511
Katılım Tarihi: 30.12.09
matraksss tarafından yazılan metin:
bu olayı nasıl yaparız benim news.php modifasyonlu yani haber resimlerini kendim ekliyorum o yüzden bunu bende yapabilirmiyim
yaparsınız sorun olmaz
Sevgi ve Saygının anlamını bilenlere
matraksss
Mesaj Tarihi 30-05-2010 00:34
Üye
Mesaj Sayısı: 153
Katılım Tarihi: 15.05.10
ya bunları denedim olmadı siteyi açmadı yedeklediğim dosyarlı geri attım site ağırlaştı benim şimmdi açılmıyo 2 saat
Arda
Mesaj Tarihi 30-05-2010 00:40
Super Yönetici
Mesaj Sayısı: 3511
Katılım Tarihi: 30.12.09
modifikasyonda ekle değiştir yerlerinde hata yaparsanız bozuk kodlar sitenize girişinizi engelleyebilir.
ayrıca siteniz açılıyor: http://www.kirkag...m/news.php
Sevgi ve Saygının anlamını bilenlere
matraksss
Mesaj Tarihi 30-05-2010 00:47
Üye
Mesaj Sayısı: 153
Katılım Tarihi: 15.05.10
düzeldi şimdi sanırım normle döndü
MetaList
Mesaj Tarihi 20-07-2010 21:48
Acemi Üye
Mesaj Sayısı: 67
Katılım Tarihi: 13.01.10
Şu hatayı alıyorum haberlerin en altında..
Notice: Undefined index: news_allow_comments in /var/www/vhosts/doom-metal.org/httpdocs/includes/theme_functions_include.php on line 116
Notice: Undefined index: news_allow_comments in /var/www/vhosts/doom-metal.org/httpdocs/includes/theme_functions_include.php on line 124
Notice: Undefined index: news_allow_comments in /var/www/vhosts/doom-metal.org/httpdocs/includes/theme_functions_include.php on line 125
yardım edebilirmisiniz ?
theme_functions_include.php mevcut kodları..
Kod <?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: theme_functions_include.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
function check_panel_status($side) {
global $settings;
$exclude_list = "";
if ($side == "left") {
if ($settings['exclude_left'] != "") {
$exclude_list = explode("\r\n", $settings['exclude_left']);
}
} elseif ($side == "upper") {
if ($settings['exclude_upper'] != "") {
$exclude_list = explode("\r\n", $settings['exclude_upper']);
}
} elseif ($side == "lower") {
if ($settings['exclude_lower'] != "") {
$exclude_list = explode("\r\n", $settings['exclude_lower']);
}
} elseif ($side == "right") {
if ($settings['exclude_right'] != "") {
$exclude_list = explode("\r\n", $settings['exclude_right']);
}
}
if (is_array($exclude_list)) {
$script_url = explode("/", $_SERVER['PHP_SELF']);
$url_count = count($script_url);
$base_url_count = substr_count(BASEDIR, "/")+1;
$match_url = "";
while ($base_url_count != 0) {
$current = $url_count - $base_url_count;
$match_url .= "/".$script_url[$current];
$base_url_count--;
}
if (!in_array($match_url, $exclude_list) && !in_array($match_url.(FUSION_QUERY ? "?".FUSION_QUERY : ""), $exclude_list)) {
return true;
} else {
return false;
}
} else {
return true;
}
}
function showbanners() {
global $settings;
ob_start();
if ($settings['sitebanner2']) {
eval("?><div style='float: right;'>".stripslashes($settings['sitebanner2'])."</div>\n<?php ");
}
if ($settings['sitebanner1']) {
eval("?>".stripslashes($settings['sitebanner1'])."\n<?php ");
} elseif ($settings['sitebanner']) {
echo "<a href='".$settings['siteurl']."'><img src='".BASEDIR.$settings['sitebanner']."' alt='".$settings['sitename']."' style='border: 0;' /></a>\n";
} else {
echo "<a href='".$settings['siteurl']."'>".$settings['sitename']."</a>\n";
}
$output = ob_get_contents();
ob_end_clean();
return $output;
}
function showsublinks($sep = "·", $class = "") {
$sres = dbquery(
"SELECT link_window, link_visibility, link_url, link_name FROM ".DB_SITE_LINKS."
WHERE ".groupaccess('link_visibility')." AND link_position>='2' AND link_url!='---' ORDER BY link_order ASC"
);
if(dbrows($sres)) {
$i = 0;
$res = "<ul>\n";
while ($sdata = dbarray($sres)) {
$link_target = $sdata['link_window'] == "1" ? " target='_blank'" : "";
$li_class = ($i == 0 ? " class='first-link".($class ? " $class" : "")."'" : ($class ? " class='$class'" : ""));
if (strstr($sdata['link_url'], "http://") || strstr($sdata['link_url'], "https://")) {
$res .= "<li".$li_class.">".$sep."<a href='".$sdata['link_url']."'$link_target><span>".$sdata['link_name']."</span></a></li>\n";
} else {
$res .= "<li".$li_class.">".$sep."<a href='".BASEDIR.$sdata['link_url']."'$link_target><span>".$sdata['link_name']."</span></a></li>\n";
}
$i++;
}
$res .= "</ul>\n";
return $res;
}
}
function showsubdate() {
global $settings;
return ucwords(showdate($settings['subheaderdate'], time()));
}
function newsposter($info,$sep = "",$class = "") {
global $locale;
$res = "";
$link_class = $class ? " class='$class' " : "";
$res = THEME_BULLET." <a href='profile.php?lookup=".$info['user_id']."'".$link_class.">".$info['user_name']."</a> ";
$res .= $locale['global_071'].showdate("longdate", $info['news_date']);
$res .= $info['news_ext'] == "y" || $info['news_allow_comments'] ? $sep."\n" : "\n";
return "<!--news_poster-->".$res;
}
function newsopts($info, $sep, $class = "") {
global $locale; $res = "";
$link_class = $class ? " class='$class' " : "";
if (!isset($_GET['readmore']) && $info['news_ext'] == "y") $res = "<a href='".seoname($info['news_subject'])."-rn".$info['news_id'].".html'".$link_class.">".$locale['global_072']."</a> ".$sep." ";
if ($info['news_allow_comments']) $res .= "<a href='".seoname($info['news_subject'])."-rn".$info['news_id'].".html#comments'".$link_class.">".$info['news_comments'].($info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a> ".$sep." ";
if ($info['news_ext'] == "y" || $info['news_allow_comments'])"\n";
$res .= $sep." <a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".get_image("printer")."' alt='".$locale['global_075']."' style='vertical-align:middle;border:0;' /></a>\n";
$res .= $info['news_reads'].$locale['global_074']."\n";
return "<!--news_opts-->".$res;
}
function articleposter($info, $sep = "", $class = "") {
global $locale; $res = "";
$link_class = $class ? " class='$class' " : "";
$res = THEME_BULLET." ".$locale['global_070']."<a href='profile.php?lookup=".$info['user_id']."'".$link_class.">".$info['user_name']."</a>\n";
$res .= $locale['global_071'].showdate("longdate", $info['article_date']);
$res .= $info['article_allow_comments'] ? $sep."\n" : "\n";
return "<!--article_poster-->".$res;
}
function articleopts($info, $sep, $subject) {
global $locale; $res = "";
if ($info['article_allow_comments']) { $res = "<a href='".seoname($subject)."-a".$info['article_id'].".html#comments'>".$info['article_comments'].($info['article_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a> ".$sep."\n"; }
$res .= $info['article_reads'].$locale['global_074']." ".$sep."\n";
$res .= "<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".get_image("printer")."' alt='".$locale['global_075']."' style='vertical-align:middle;border:0;' /></a>\n";
return "<!--article_opts-->".$res;
}
function itemoptions($item_type, $item_id) {
global $locale, $aidlink; $res = "";
if ($item_type == "N") {
if (iADMIN && checkrights($item_type)) { $res .= "<!--article_news_opts--> · <a href='".ADMIN."news.php".$aidlink."&action=edit&news_id=".$item_id."'><img src='".get_image("edit")."' alt='".$locale['global_076']."' title='".$locale['global_076']."' style='vertical-align:middle;border:0;' /></a>\n"; }
} elseif ($item_type == "A") {
if (iADMIN && checkrights($item_type)) { $res .= "<!--article_admin_opts--> · <a href='".ADMIN."articles.php".$aidlink."&action=edit&article_id=".$item_id."'><img src='".get_image("edit")."' alt='".$locale['global_076']."' title='".$locale['global_076']."' style='vertical-align:middle;border:0;' /></a>\n"; }
}
return $res;
}
function showcopyright($class = "") {
$link_class = $class ? " class='$class' " : "";
$res = "<a href='http://www.pcturk.org' title='PHP-Fusion v7 SEO'>SEO</a><br>Powered by <a href='http://www.php-fusion.co.uk'".$link_class.">PHP-Fusion</a> copyright © 2002 - ".date("Y")." by Nick Jones.<br />\n";
$res .= "Released as free software without warranties under <a href='http://www.fsf.org/licensing/licenses/agpl-3.0.html'".$link_class.">GNU Affero GPL</a> v3.\n";
return $res;
}
function showcounter() {
global $locale,$settings;
return "<!--counter-->".number_format($settings['counter'])." ".($settings['counter'] == 1 ? $locale['global_170'] : $locale['global_171']);
}
function panelbutton($state, $bname) {
if (isset($_COOKIE["fusion_box_".$bname])) {
if ($_COOKIE["fusion_box_".$bname] == "none") {
$state = "off";
} else {
$state = "on";
}
}
return "<img src='".get_image("panel_".($state == "on" ? "off" : "on"))."' id='b_$bname' class='panelbutton' alt='' onclick=\"javascript:flipBox('$bname')\" />";
}
function panelstate($state, $bname) {
if (isset($_COOKIE["fusion_box_".$bname])) {
if ($_COOKIE["fusion_box_".$bname] == "none") {
$state = "off";
} else {
$state = "on";
}
}
return "<div id='box_$bname'".($state == "off" ? " style='display:none'" : "").">\n";
}
// v6 compatibility
function opensidex($title, $state = "on") {
openside($title, true, $state);
}
function closesidex() {
closeside();
}
function tablebreak() {
return true;
}
?>
Düzenleyen MetaList Düzenleme Tarihi: 20-07-2010 22:18
Atlanilacak Forum:
Yeniden Hoş Geldiniz
Öneriler ve İstekler
Siteleriniz
Ayıplı Siteler
Konu Dışı
Duyurular ve Forum Kuralları
Resimli Dersler
Video Dersleri
Temel Sorular, Sorunlar
Güvenlik ve Güncelleme
Temalar
Modlar, Modüller ve Bloklar
Diğer Sorunlar
Tema Dosyaları ve Modifikasyonları
Mod-Blok Modifikasyonları ve Dosyaları
Forum Modifikasyonları ve Dosyaları
SEO Modifikasyonları
Çeşitli Modifikasyonlar
Temel Sorular, Sorunları (v6)
Güvenlik, Güncellemeler ve Yükseltmeler (v6)
Temalar (v6)
Modlar, modüller ve bloklar (v6)
Diğer Sorunlar (v6)
Tema Dosyaları ve Modifikasyonları (v6)
Mod-Blok Modifikasyonları ve Dosyaları (v6)
Forum Modifikasyonları ve Dosyaları (v6)
Çeşitli Modifikasyonlar (v6)
SEO Modifikasyonları (v6)
MySQL
HTML, CSS
PHP
Mustafa Kemal Köşesi