BU SİTE PHP-NUKE SONLANINCA KAPANDI. İÇİNDE EMEK OLDUĞUNDAN AÇIK TUTULMAKTADIR.
GÜNCEL İÇERİK BLOG SAYFASINDADIR!
Anasayfa FORUMLAR Üye Girişi Dosyalar Dersler İpuçları Yardımcı Araçlar Hakkımızda
KİMLER BAĞLI
Toplam Üye: 32638
Aktif Üye: 0
Aktif Ziyaretçi: 612
Üye Adı
Şifre
Beni Hatırla
          Yeni Üye KayıtYeni Üye Kayıt
          Şifremi UnuttumŞifremi Unuttum
FORUMLAR
 Blok yapiminda nasil incl..
(8580 okuma, 3 yanıt)
 Orta Block Resim Ekleme..
(9963 okuma, 3 yanıt)
 yeni flashmanset haber bl..
(17235 okuma, 9 yanıt)
 Ramazan Yaklaştı Block,Mo..
(8802 okuma, 2 yanıt)
 php Nuke Jquery Accessibl..
(12630 okuma, 6 yanıt)
 Dernek Modulü için Block..
(6540 okuma, 1 yanıt)
 Adtech Reklam Bloku..
(7500 okuma, 2 yanıt)
 Manşet Blok..
(7770 okuma, 2 yanıt)
 Flash Atatürk Vecizeleri ..
(7682 okuma, 2 yanıt)
 TRT Haber orta bloğu..
(13331 okuma, 9 yanıt)
 Yeni Manşet Haber Bloklar..
(26670 okuma, 23 yanıt)
 New haber flash band news..
(10119 okuma, 3 yanıt)
 new flash nsn news block..
(23945 okuma, 23 yanıt)
 ATS haber blogu kurdum am..
(10601 okuma, 6 yanıt)
 Akordiyon Blok hatası..
(7937 okuma, 2 yanıt)
 Youtube videolari site de..
(8714 okuma, 3 yanıt)
 bugun girenler blogu..
(13109 okuma, 8 yanıt)
 3 haber yeni block..
(15107 okuma, 13 yanıt)
 nice manset haber block..
(12301 okuma, 8 yanıt)
 Bytasarım Slide Kayan Hab..
(33067 okuma, 30 yanıt)
 need help to make this ha..
(4852 okuma, 0 yanıt)
 new flash block preheadli..
(7339 okuma, 2 yanıt)
 Facebookta Paylaşım....
(11678 okuma, 7 yanıt)
 Blok nasıl eklenir Yardım..
(12399 okuma, 7 yanıt)
 Super mansetler flash blo..
(6329 okuma, 2 yanıt)
 yeni block flash haberler..
(6709 okuma, 2 yanıt)
 yeni block flash accordio..
(4794 okuma, 0 yanıt)
 block flash haber accordi..
(6202 okuma, 2 yanıt)
 İstediğiniz bir bloğu baş..
(5508 okuma, 0 yanıt)
 Bugün Doğan Üyeler Bloğu..
(10140 okuma, 6 yanıt)
 Bizim Yazarlar Modülüne b..
(5473 okuma, 0 yanıt)
 Sonvideostream flash blco..
(10881 okuma, 8 yanıt)
 Yenilikler Orta Blok ist..
(10443 okuma, 6 yanıt)
 Akordiyon Flash Blok+Xml..
(9707 okuma, 5 yanıt)
 blocks nsn news flash cu..
(5067 okuma, 0 yanıt)
 new flash bizim yazarlar ..
(5507 okuma, 1 yanıt)
 haber flash block send al..
(7554 okuma, 4 yanıt)
 userinfo bloğu çalışmıyor..
(6861 okuma, 2 yanıt)
 Total hits block..
(5521 okuma, 1 yanıt)
 katagorili haber blogu..
(15539 okuma, 13 yanıt)
 Dolar-Tl Dönüştürücü Blok..
(9822 okuma, 5 yanıt)
 Flash Haber Sistemi Çok ..
(13661 okuma, 9 yanıt)
 Video Stream Orta Blok..
(8454 okuma, 4 yanıt)
 new flash block..
(7218 okuma, 3 yanıt)
 flash haber blogu..
(8325 okuma, 4 yanıt)
 Döviz ve Haber Durumu Blo..
(14096 okuma, 10 yanıt)
 Blokta karakter sınırlama..
(7521 okuma, 2 yanıt)
 Yeni Hava Durumu Block'u..
(5076 okuma, 0 yanıt)
 yeni flash haber block..
(6197 okuma, 2 yanıt)
 yeni haber flash block..
(8590 okuma, 5 yanıt)
Netopsiyon Online: Forums
Netopsiyon Online :: Başlık görüntüleniyor - forumda son konular hakkında bir problem?
 AramaArama   RütbelerRütbeliler   ProfilProfil   GirişGiriş 


forumda son konular hakkında bir problem?

 
Bu forum kilitlendi: mesaj gönderemez, cevap yazamaz ya da başlıkları değiştiremezsiniz   Bu başlık kilitlendi: mesajları değiştiremez ya da cevap yazamazsınız    Netopsiyon Online Forum Ana Sayfa -> Php-Nuke -> Php Nuke Blocklar
Önceki başlık :: Sonraki başlık  
Yazar Mesaj
Kafein
Mesaj: 300+
Mesaj: 300+





Kayıt: Nov 24, 2007
Mesajlar: 364
Konum: İstanbul

MesajTarih: 2009-12-23, 00:39:27    Mesaj konusu: forumda son konular hakkında bir problem? Alıntıyla Cevap Gönder

merhaba arkadaşlar forumda son konuların linkleri o konunun son sayfasına yada son yazılan mesaja gidior. ancak her mesaj yazıldığında konu urlsi değişior.
örnek: umit-yasar-oguzcan-bekleyenler-icin-fp150635.html bir daha yazılınca umit-yasar-oguzcan-bekleyenler-icin-fp150642.html.
benim istediğim forum kategorisinin içindeki orjinal linkini alması her zamn için. çok kez denedim olmadı fikri olan varmı acaba

Kod:
<?php

/************************************************************************************/
/*                                                                                  */
/* CENTER BLOCK: block-Forums-Center.php                                            */
/* For PHP-Nuke 6.5                                                                 */
/* By iPenang.com ( webmaster@ipenang.com ), Sept 2003                              */
/* http://www.iPenang.com                                                           */
/*                                                                                  */
/* Modified From :                                                                  */
/* CENTER BLOCK: block-phpBB_Forums.php                                             */
/* For PHP-Nuke 6.5                                                                 */
/* v1.5  06-04-2003                                                                 */
/*                                                                                  */
/* by: Maty Scripts (webmaster@matyscripts.com)                                     */
/* http://www.matyscripts.com                                                       */
/*                                                                                  */
/* This program is free software. You can redistribute it and/or modify             */
/* it under the terms of the GNU General Public License as published by             */
/* the Free Software Foundation; either version 2 of the License.                   */
/*                                                                                  */
/************************************************************************************/

// Define Language
// Add following definitions to your /language/lang-english.php file:
// Or leave it here.
// Center block-phpBB_Forums.php
define("_BBFORUM_NEWTOPICS","Konu Baþlýklarý");
define("_BBFORUM_POSTER","Konu sahibi");
define("_BBFORUM_VIEWS","Okunma");
define("_BBFORUM_REPLIES","Yanýt");
define("_BBFORUM_LASTPOSTER","Son Gönderen");
define("_BBFORUM_TOTTOPICS","Konu: ");
define("_BBFORUM_TOTPOSTS","Mesaj: ");
define("_BBFORUM_TOTVIEWS","Toplam Okunma: ");
define("_BBFORUM_TOTREPLIES","Toplam Cevap: ");
define("_BBFORUM_TOTMEMBERS","Kayýtlý Üye:");
define("_BBFORUM_FORUM","Forumlar Anasayfa");
define("_BBFORUM_SEARCH","Forum Arama");


if( eregi( "block-Forums_Center.php", $_SERVER['PHP_SELF'])) {
   Header("Location: index.php");
   die();
}
global $prefix, $user_prefix, $db, $dbi, $sitename, $bgcolor1, $bgcolor2, $bgcolor3, $ThemeSel;

function CheckUsernameColor($color, $username)
      {
      if(strlen($color) < 6)
         {
      $username = $username;
         }
      elseif(strlen($color) == 6)
         {
      $username = "<font><b>". $username ."</b></font>";   
         }
      else
         {
      $username = $username;
         }
      return $username;      
      }


/* Get darker color for $bgcolor1 */
$bgcolor5 = str_replace('#', '', $bgcolor1);
$bgcolor5 =  sprintf("#%02X%02X%02X", (hexdec(substr($bgcolor5, 0, 2))* .95 ),(hexdec(substr($bgcolor5, 2, 2))* .95 ) , (hexdec(substr($bgcolor5, 4, 2))* .95 ));

/**********************************/
/*                                */
/* Configuration parameters       */
/*                                */
/**********************************/
// When set to 1 then Forums permissions which View and/or Read are NOT set to 'ALL' will NOT be displayed in the center block
$HideViewReadOnly = 0;
// Show only 5 last new topics
$Last_New_Topics  = 10;
// Icon that is displayed in Center Block in front of Topic

/*************************************/
/*                                   */
/* You Can Add More Themes Here      */
/*                                   */
/*************************************/

   $table_bottom = '';
   $table_top    = '';
   $IconPath = "modules/Forums/templates/subSilver/images/icon_mini_message.gif";



/**********************************/
/*                                */
/* Don't Edit Below !             */
/*                                */
/**********************************/
$border           = 0;
$cellspacing      = 0;
//$cellstyle        = "style=\"border-left-width: 1; border-right-width: 1; border-top-width: 1; border-bottom-style: dotted; border-bottom-width: 1\"";

/* Total Amount of Topics */
$result = $db->sql_query( "SELECT * FROM ".$prefix."_bbtopics" );
$Amount_Of_Topics = $db->sql_numrows( $result );

/* Total Amount of Posts */
$result = $db->sql_query( "SELECT * FROM ".$prefix."_bbposts" );
$Amount_Of_Posts = $db->sql_numrows( $result );

/* Total Amount of Topic Views */
$Amount_Of_Topic_Views = 0;
$result = $db->sql_query( "SELECT topic_views FROM ".$prefix."_bbtopics" );
while( list( $topic_views ) = $db->sql_fetchrow( $result ) )
{
   $Amount_Of_Topic_Views = $Amount_Of_Topic_Views + $topic_views;
}

/* Total Amount of Topic Replies */
$Amount_Of_Topic_Replies = 0;
$result = $db->sql_query( "SELECT topic_replies FROM ".$prefix."_bbtopics" );
while( list( $topic_replies ) = $db->sql_fetchrow( $result ) )
{
   $Amount_Of_Topic_Replies = $Amount_Of_Topic_Replies + $topic_replies;
}

/* Total Amount of Members */
$result = $db->sql_query( "SELECT * FROM ".$user_prefix."_users" );
$Amount_Of_Members = $db->sql_numrows( $result ) - 1;

/* Last X New Topics */
$Count_Topics = 0;
$Topic_Buffer = "";
$result1 = $db->sql_query( "SELECT topic_id, forum_id, topic_last_post_id, topic_title, topic_poster, topic_views, topic_replies, topic_moved_id FROM ".$prefix."_bbtopics ORDER BY topic_last_post_id DESC" );
while( list( $topic_id, $forum_id, $topic_last_post_id, $topic_title, $topic_poster, $topic_views, $topic_replies, $topic_moved_id ) = sql_fetch_row( $result1, $dbi ) )
{
   $skip_display = 0;
   if( $HideViewReadOnly == 1 )
   {
      $result5 = $db->sql_query( "SELECT auth_view, auth_read FROM ".$prefix."_bbforums where forum_id = '$forum_id'" );
      list( $auth_view, $auth_read ) = $db->sql_fetchrow( $result5 );
      if( ( $auth_view != 0 ) or ( $auth_read != 0 ) ) { $skip_display = 1; }
   }

   if( $topic_moved_id != 0 )
   {
      // Shadow Topic !!
      $skip_display = 0;
   }

   if( $skip_display == 0 )
   {
      $Count_Topics += 1;
      $result2 = $db->sql_query( "SELECT topic_id, poster_id, FROM_UNIXTIME( post_time,'%b %d, %Y at %T') as post_time FROM ".$prefix."_bbposts where post_id = '$topic_last_post_id'" );
      list( $topic_id, $poster_id,  ) = $db->sql_fetchrow( $result2 );

      $result3 = $db->sql_query( "SELECT username, user_id FROM ".$user_prefix."_users where user_id='$poster_id'" );
      list( $uname, $uid, $user_color_gc ) = $db->sql_fetchrow( $result3 );
      $uname = CheckUsernameColor($user_color_gc, $uname);
      $LastPoster = "<b>$uname</b>";

      $result4 = $db->sql_query( "SELECT username, user_id FROM ".$user_prefix."_users where user_id='$topic_poster'" );
      list( $uname, $uid ) = $db->sql_fetchrow( $result4 );
      $OrigPoster = "<b>$uname</b>";

      $TopicImage = "<img src=\"$IconPath\" border=\"0\" alt=\"\">";
      $TopicTitleShow = "<a href="modules.php?name=Forums&file=viewtopic&p=$topic_last_post_id#$topic_last_post_id\">$topic_title</a>";

      $Topic_Buffer .= "<tr><td>$TopicImage&nbsp;&nbsp;</td><td>$TopicTitleShow</td><td><div>$OrigPoster</div></td><td><div><b>$topic_views</b></div></td><td><div><b>$topic_replies</b></div></td><td>$LastPoster<br><font><i>$post_time</i></font></td></tr>";
   }

   if( $Last_New_Topics == $Count_Topics ) { break 1; }

}
//*/
/* Write Table to Screen */
$content  = "<table>";


$content .= "<tr><td>&nbsp;&nbsp;</td><td>"._BBFORUM_NEWTOPICS."</td><td>"._BBFORUM_POSTER."</td><td>"._BBFORUM_VIEWS."</td><td>"._BBFORUM_REPLIES."</td><td>"._BBFORUM_LASTPOSTER."</td></tr>";
$content .= "$Topic_Buffer";
$content .= "<tr><td>"._BBFORUM_TOTTOPICS."<b>$Amount_Of_Topics</b>&nbsp;<b>|</b>&nbsp;"._BBFORUM_TOTPOSTS."<b>$Amount_Of_Posts</b>&nbsp;<b>|</b>&nbsp;"._BBFORUM_TOTVIEWS."<b>$Amount_Of_Topic_Views</b>&nbsp;<b>|</b>&nbsp;"._BBFORUM_TOTREPLIES."<b>$Amount_Of_Topic_Replies</b>&nbsp;<b>|</b>&nbsp;<a href="modules.php?name=Members_List\">"._BBFORUM_TOTMEMBERS."</a>&nbsp;<b>$Amount_Of_Members</b></center></td></tr>";
$content .= "<tr><td></center></td></tr>";
$content .= $table_bottom;
$content .= "</table>";

?>
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et
Bu Site Google Adsense ile Gelir Elde Ediyor









Tarih: 2026-07-17, 01:22:57    Mesaj konusu: Forum Arası Reklamlar

Başa dön
mersoy
Mesaj: 1000+
Mesaj: 1000+





Kayıt: Dec 08, 2007
Mesajlar: 2316

MesajTarih: 2009-12-23, 09:12:55    Mesaj konusu: Alıntıyla Cevap Gönder

Bul

Kod:

$TopicTitleShow = "<a href="modules.php?name=Forums&file=viewtopic&p=$topic_last_post_id#$topic_last_post_id\">$topic_title</a>";


Değiştir
Kod:

$TopicTitleShow = "<a href="modules.php?name=Forums&file=viewtopic&p=$topic_last_post_id\">$topic_title</a>";


denemedim ama kesinlikle bu satırla ilgiliydi. Daha önce yapmıştım. Ya da $topic_last_post_id yerine direkt forum kodu id si geliyordu ama şimdi bulamadım.
sen biraz karıştır olmadı yine bakarım ben. :)
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et
Kafein
Mesaj: 300+
Mesaj: 300+





Kayıt: Nov 24, 2007
Mesajlar: 364
Konum: İstanbul

MesajTarih: 2009-12-23, 11:50:29    Mesaj konusu: Alıntıyla Cevap Gönder

eyw abi ama bu şekilde bende düşündüm olmadı.
"$topic_last_post_id" last komutundanda anlaşılacağı gibi sona git. veritabanında bbtopic tablosunda $topic_first_post_id var onu denediğimde ise son sayfaya gidiyor problem yok ancak url yine mesaj yazıldığında değişiyor. google bi konuyu 100 kere indexlio. çok gıcık bi durum gerçekten.
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder Yazarın web sitesini ziyaret et
Önceki mesajları göster:   
Bu forum kilitlendi: mesaj gönderemez, cevap yazamaz ya da başlıkları değiştiremezsiniz   Bu başlık kilitlendi: mesajları değiştiremez ya da cevap yazamazsınız    Netopsiyon Online Forum Ana Sayfa -> Php-Nuke -> Php Nuke Blocklar Tüm zamanlar GMT + 3 Saat
1. sayfa (Toplam 1 sayfa)

 
Geçiş Yap:  
Bu forumda yeni başlıklar açamazsınız
Bu forumdaki başlıklara cevap veremezsiniz
Bu forumdaki mesajlarınızı değiştiremezsiniz
Bu forumdaki mesajlarınızı silemezsiniz
Bu forumdaki anketlerde oy kullanamazsınız

Benzer Konular

Başlık Yazar Forum Cevaplar Tarih
Yeni mesaj yok emlak sitesi hakkında Miralay33 Php Nuke Sorunlarınız 7 2010-06-28, 14:31:26 Son Mesajı Görüntüle
Yeni mesaj yok tema hakkında yardım temhem Php Nuke Tema Paylaşımları 5 2010-06-24, 21:34:21 Son Mesajı Görüntüle
Yeni mesaj yok üyeyi sildim forumda izi kaldı rootcr4ck Php Nuke Sorunlarınız 3 2010-06-22, 00:32:55 Son Mesajı Görüntüle
Yeni mesaj yok Forumda [img] Taglarina class ekleme Diverman phpBB 2.x Sürümleri 3 2010-06-20, 13:25:37 Son Mesajı Görüntüle
Yeni mesaj yok Forumda Video Değerleri 550 -- 380 Olsun alidehmen Eklentiler 9 2010-06-07, 21:08:02 Son Mesajı Görüntüle

Copyright © 2002-2026 Ali Osman KAHRAMAN - Bütün hakları saklıdır!
Bu site Netopsiyon.com.tr Sunucularında Barındırılmaktadır.
netopsiyon®, Ali Osman KAHRAMAN' a ait tescilli bir markadır. İzinsiz kullanılamaz!
Netopsiyon Bilişim Teknolojileri San. Tic. Ltd.Şti. Netopsiyon Copyright