PHP-Fusion Türkiye Resmi Destek Sitesi - Türkçe Yardım, Tema, Modül, Eklenti, Kurulum
 
scapbottom
 
Ana Menü
scapbottom
 
Modül Veritabanı

Yeni Dosyalar

· Habber-tema (Ha...
· Foruma Alt Kate...
· Forum Yeni Gele...
· Haber Navigasyo...
· Ajax Forum Mesa...

En Çok İndirilen 5 Dosya

· Fusionboard (Fb... [447]
· Video Galeri Mo... [438]
· Hayaletsevgili ... [395]
· The Kroax - Vid... [361]
· Güvenlik Sistemi [338]
scapbottom
 
En Son İncelemeler
· Sayfalarda müzik çal...
· CSS Açıklamaları
· Veritabanı Önekini (...
· Css'te mouse ( fare ...
· Google'a uygun bir U...
scapbottom
 
Anket
Cep Telefonunuzun Markası?

Nokia
Nokia
56% [41 Oy]

Apple (iPhone)
Apple (iPhone)
3% [2 Oy]

HTC
HTC
1% [1 Oy]

Samsung
Samsung
21% [15 Oy]

Motorola
Motorola
1% [1 Oy]

LG
LG
7% [5 Oy]

Siemens
Siemens
0% [0 Oy]

Diğer
Diğer
7% [5 Oy]

Blackberry
Blackberry
3% [2 Oy]

Cep Telefonu Kullanmıyorum
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
scapbottom
 
Çevrimiçi Kullanıcılar
· Çevrimiçi Ziyaretçiler: 5

· Çevrimiçi Üyeler: 0

· Toplam Üye Sayısı: 1,109
· En Yeni Üye: dont
scapbottom
 
Sitemize Destek Olun
paypal
scapbottom
 
En Son Ziyaret
ismet 00:46:54
chatlaq 03:17:44
maholi 05:53:52
ender50 06:16:58
UniCoRN 06:26:12
9nh5k5 06:31:45
heroercan 06:45:52
Msy 07:25:05
jetli715 07:31:48
HalilBicakci 07:59:47

scapbottom
 
Sitemizi Ekleyin
Aşağıdaki kod ile sitemizin linkini kendi sitenize ekleyebilirsiniz. Kodu alıp sitenize eklemeniz yeterlidir.
scapbottom
 
Beslemeler
Haber RSS Beslemesi
Modül Veritabanı RSS Beslemesi
Makeleler RSS Beslemesi
twitter
Haber Beslememizi Google Hesabınıza Ekleyin
Makale Google Hesabınıza Ekleyin
Modül Veritabanı Beslememizi Google Hesabınıza Ekleyin
scapbottom
 
Bot Şaplak Panel
· Son Kontrol: 09/09/2010 08:43
· Spam sayısı: 0
· Son Kontrol Eden: 1110
scapbottom
 
Google Reklamlar
   
Başlığı Görüntüle
Burada Olan Üyeler: 1 ziyaretçi
 Başlığı Yazdır
Haberler bölümü için URL modifikasyonu (V7)
sean-paul38
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:

Kaynağı İndir  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:

Kaynağı İndir  Kod
?>




şu kodu üstüne ekleyin:

Kaynağı İndir  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.

Kaynağı İndir  Kod
"news_ext" => $data['news_extended'] ? "y" : "n",




şu kodu altına ekleyin:

Kaynağı İndir  Kod
"news_subject" => $data['news_subject'],




şu kodu bulun:153. satırda başlıyor

Kaynağı İndir  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:

Kaynağı İndir  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

Kaynağı İndir  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:

Kaynağı İndir  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:

Kaynağı İndir  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> &middot;\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> &middot;\n" : "";
                  $news_[0] .= $news_info['news_reads'].$locale['global_074']." &middot;\n";
               }




şununla değiştirin:

Kaynağı İndir  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> &middot;\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> &middot;\n" : "";
                  $news_[0] .= $news_info['news_reads'].$locale['global_074']." &middot;\n";
               }




şu kodu bulun 87. satırda başlıyor.

Kaynağı İndir  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> &middot;\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> &middot;\n" : "";
$news_[$ncolumn] .= $news_info['news_reads'].$locale['global_074']." &middot;\n";






şununla değiştirin:

Kaynağı İndir  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> &middot;\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> &middot;\n" : "";
$news_[$ncolumn] .= $news_info['news_reads'].$locale['global_074']." &middot;\n";





şu kodu bulun 146. satırda:

Kaynağı İndir  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:

Kaynağı İndir  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

Kaynağı İndir  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:

Kaynağı İndir  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:

Kaynağı İndir  Kod
echo THEME_BULLET." <a href='news.php?readmore=".$data2['news_id']."'>".$data2['news_subject']."</a><br />\n";





şununla değiştirin:

Kaynağı İndir  Kod
echo THEME_BULLET." <a href='".seoname($data2['news_subject'])."-rn".$data2['news_id'].".html'>".$data2['news_subject']."</a><br />\n";





şu kodu bulun:

Kaynağı İndir  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:

Kaynağı İndir  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:

Kaynağı İndir  Kod
         echo THEME_BULLET." <a href='news.php?readmore=".$data['news_id']."'>".$data['news_subject']."</a><br />\n";





şununla değiştirin:

Kaynağı İndir  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:

Kaynağı İndir  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&amp;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:

Kaynağı İndir  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&amp;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:

Kaynağı İndir  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:

Kaynağı İndir  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:

Kaynağı İndir  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:

Kaynağı İndir  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:

Kaynağı İndir  Kod
      echo "<tr><td background='".INFUSIONS."manset_haber_panel/images/satir.png' height=22>&nbsp;&nbsp; <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:

Kaynağı İndir  Kod
      echo "<tr><td background='".INFUSIONS."manset_haber_panel/images/satir.png' height=22>&nbsp;&nbsp; <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):

Kaynağı İndir  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:

Kaynağı İndir  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>&nbsp;".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):

Kaynağı İndir  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:

Kaynağı İndir  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:

Kaynağı İndir  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
Hoş Geldin sean-paul38, paylaşım için teşekkürler Wink
Sevgi ve Saygının anlamını bilenlere Wink
 
http://www.soulsmasher.net
sean-paul38
hoşbulduk soul yeni site hayırlı olsunSmile vakit buldukça ordan buraya taşıma yapıyoruzSmile kolay gelsin herkese.
 
karan57
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.
 
www.sinop57.net
Reklamlar
Mesaj Tarihi: 09-09-2010 08:46
Reklamlar

Mesaj Sayisi: 0
Katilim Tarihi: 01/01/10

Reklamlar
moker
haberin başlığı linkli oluyor ama devamı butonunun linkinde değişiklik olmuyor neden acaba
 
www.mobhizmet.com
sean-paul38
@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
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
Kaynağı İndir  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
Kaynağı İndir  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
Kaynağı İndir  Kod
 $content.= "\t\t<loc>".XMLSITEURL."news.php?readmore=".$data['news_id']."</loc>\n";





bununla değiştiriyoruz
Kaynağı İndir  Kod
 $content.= "\t\t<loc>".XMLSITEURL."".seoname($data['news_subject'])."-rn".$data['news_id'].".html</loc>\n";
     





96.satırda bunu buluyoruz
Kaynağı İndir  Kod
$content.= "\t\t<loc>".XMLSITEURL."news_cats.php?cat_id=".$data['news_cat_id']."</loc>\n";
               




şununla değiştiriyoruz
Kaynağı İndir  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



www.phpfusionturkiye.com/userbar/userbar-9.png
 
www.istder.com
okeania
Hele şükür.. işte günlerdir sorduğum soruya yanıt.... sağ olun var olun.... savul google geliyorummmmmmmm
 
www.pinkfloydturk.net
matraksss
bu olayı nasıl yaparız benim news.php modifasyonlu yani haber resimlerini kendim ekliyorum o yüzden bunu bende yapabilirmiyim
 
www.kirkagacmedya.com
Arda
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 Wink
 
http://www.soulsmasher.net
matraksss
ya bunları denedim olmadı siteyi açmadı yedeklediğim dosyarlı geri attım site ağırlaştı benim şimmdi açılmıyo 2 saat
 
www.kirkagacmedya.com
Arda
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 Wink
 
http://www.soulsmasher.net
matraksss
düzeldi şimdi sanırım normle döndü
 
www.kirkagacmedya.com
MetaList
Ş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ı..
Kaynağı İndir  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 = "&middot;", $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&amp;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&amp;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--> &middot; <a href='".ADMIN."news.php".$aidlink."&amp;action=edit&amp;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--> &middot; <a href='".ADMIN."articles.php".$aidlink."&amp;action=edit&amp;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 &copy; 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
 
www.doom-metal.org
Başlığı Paylaş
AddThis:
Link:
BB Kodu:
HTML:
Facebook Like:


Atlanilacak Forum:
   
Benzer Başlıklar
Başlık Forum Cevaplar En Son Mesaj
gelişmiş haberler bloğunu nasıl kaldırırım? Temel Sorular, Sorunlar 4 08-09-2010 03:40
Spy Scroller Haber Panel (Orta ve yan blok için) Modlar, Modüller ve Bloklar 61 07-09-2010 23:16
Haberler Sorunu Diğer Sorunlar 7 06-09-2010 22:36
Anasayfadaki haberler Diğer Sorunlar 3 05-09-2010 17:44
Admin Onaylı Yorumlar (PHP Fusion 7.01 için) Çeşitli Modifikasyonlar 9 02-09-2010 01:53