Forumdaki mesaj sayısı

Eklentiler ile ilgili soru, sorun ve tartışmalar.

Forumdaki mesaj sayısı

İleti BeeLZeBuL 18.01.2006, 19:00

forumda herhangi bi başlığın içindeki her mesajın üstüne 1-2-3 diye sırayla rakamlar gidio ve bu rakama tıklandığı zaman o mesajın tam olarak adresi çıkıyor.. bu modu bulmam gerekiyor yardım ederömisiniz ? aradım ama bulamadım..
BeeLZeBuL
Üye
Üye
 
İleti: 7
Kayıt: 09.11.2005, 09:02

Cvp: Forumdaki mesaj sayısı

İleti Diyalektik 18.01.2006, 19:21

Kod: Tümünü seç
##############################################################
## MOD Title: multi-page topics, forums or searchs in one page
## MOD Author: emrag < emrah987@hotmail.com > (Emrah Türkmen)  www.canver.net  (TURKEY)
## MOD Description: This hack allows users to read multi-page topics, forums or
##          searchs without switching between pages.
##
## MOD Version: 1.0.5
##
## Installation Level: Easy
## Installation Time : ~10 minutes
## Files to Edit: 3
##   viewtopic.php
##   viewforum.php
##   search.php
##   language/lang_english/lang_main.php   
##
## Included Files: None!
##############################################################
##
## Author Notes : This is my first phpBB MOD :)
##
##############################################################
##
## History: 01.09.2004 - 1.0.0
##       - Initial version
##
##        08.09.2004 - 1.0.1
##       - viewforum.php compitable
##       - search.php compitable
##
##        25.11.2004 - 1.0.2
##       - fixed many bugs :)
##       - added a view all link to viewforum.php
##
##       [ Pages: 1, 2, 3 | all ]
##
##        05.02.2005 - 1.0.3
##       - fixed bug in viewforum.php
##
##        11.02.2005 - 1.0.4
##       - fixed a bug (when you highlight any word view all link wasn't display)
##       - fixed loosing highlight word
##
##        02.03.2005 - 1.0.5
##       - fixed a few bugs
##       - changed a few lines of codes for phpBB coding standarts
##       - added a view all link in search.php
##
##       [ Pages: 1, 2, 3 | all ]
##
##############################################################
##
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##
##############################################################
#
#-----[ OPEN ]------------------------------------------
#

language/lang_english/lang_main.php

#
#----[ FIND ]------------------------------------------
#

?>

#
#-----[ BEFORE, ADD ]------------------------------------------
#

$lang['Show_pages'] = 'Pages';
$lang['View_all'] = 'View all';

#
#-----[ OPEN ]------------------------------------------
#

viewtopic.php

#
#-----[ FIND ]------------------------------------------
#

$start = ( isset($HTTP_GET_VARS['start']) ) ? intval($HTTP_GET_VARS['start']) : 0;

#
#-----[ AFTER, ADD ]------------------------------------------
#

$viewall = ( isset($HTTP_GET_VARS['viewall']) ) ? intval($HTTP_GET_VARS['viewall']) : 0;

#
#----[ FIND ]------------------------------------------
#

//
// Go ahead and pull all data for this topic
//

#
#-----[ BEFORE, ADD ]------------------------------------------
#

$board_config['posts_per_page'] = ( $viewall == 1 ) ? $total_replies : $board_config['posts_per_page'];

#
#-----[ FIND ]------------------------------------------
#

$pagination = ( $highlight != '' ) ? generate_pagination("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&amp;postdays=$post_days&amp;postorder=$post_order&amp;highlight=$highlight", $total_replies, $board_config['posts_per_page'], $start) : generate_pagination("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&amp;postdays=$post_days&amp;postorder=$post_order", $total_replies, $board_config['posts_per_page'], $start);

#
#-----[ REPLACE WITH ]------------------------------------------
#

if ( $viewall == 1 )
{
   $pagination = ( $highlight != '' ) ? '<a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&amp;highlight=$highlight") . '">' . $lang['Show_pages'] . '</a>' : '<a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id") . '">' . $lang['Show_pages'] . '</a>';
}
else if ( $total_replies > $board_config['posts_per_page'] )
{
   $pagination = ( $highlight != '' ) ? generate_pagination("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&amp;postdays=$post_days&amp;postorder=$post_order&amp;highlight=$highlight", $total_replies, $board_config['posts_per_page'], $start) . ' | ' . '<a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&amp;highlight=$highlight&amp;viewall=1") . '">' . $lang['View_all'] . '</a>' : generate_pagination("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&amp;postdays=$post_days&amp;postorder=$post_order", $total_replies, $board_config['posts_per_page'], $start). ' | ' . '<a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&amp;viewall=1") . '">' . $lang['View_all'] . '</a>';
}
else
{
   $pagination = ( $highlight != '' ) ? generate_pagination("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&amp;postdays=$post_days&amp;postorder=$post_order&amp;highlight=$highlight", $total_replies, $board_config['posts_per_page'], $start) : generate_pagination("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&amp;postdays=$post_days&amp;postorder=$post_order", $total_replies, $board_config['posts_per_page'], $start);
}

#
#-----[ OPEN ]------------------------------------------
#

viewforum.php

#
#-----[ FIND ]------------------------------------------
#

$start = ( isset($HTTP_GET_VARS['start']) ) ? intval($HTTP_GET_VARS['start']) : 0;

#
#-----[ AFTER, ADD ]------------------------------------------
#

$viewall = ( isset($HTTP_GET_VARS['viewall']) ) ? intval($HTTP_GET_VARS['viewall']) : 0;

#
#-----[ FIND ]------------------------------------------
#

//
// Grab all the basic data (all topics except announcements)
// for this forum
//

#
#-----[ BEFORE, ADD ]------------------------------------------
#

$board_config['topics_per_page'] = ( $viewall == 1 ) ? $topics_count : $board_config['topics_per_page'];

#
#-----[ FIND ]------------------------------------------
#

         $goto_page .= ' ] ';

#
#-----[ REPLACE WITH ]------------------------------------------
#

         $goto_page .= ' | <a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=" . $topic_id . "&amp;viewall=1") . '">' . $lang[All] . '</a>' . ' ] ';

#
#-----[ FIND ]------------------------------------------
#

   $template->assign_vars(array(
      'PAGINATION' => generate_pagination("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id&amp;topicdays=$topic_days", $topics_count, $board_config['topics_per_page'], $start),
      'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $board_config['topics_per_page'] ) + 1 ), ceil( $topics_count / $board_config['topics_per_page'] )),

      'L_GOTO_PAGE' => $lang['Goto_page'])
   );

#
#-----[ REPLACE WITH ]------------------------------------------
#

$page_number = sprintf($lang['Page_of'], ( floor( $start / $board_config['topics_per_page'] ) + 1 ), ceil( $topics_count / $board_config['topics_per_page'] ));
$l_goto_page = $lang['Goto_page'];

if ( $viewall == 1 )
{
   $pagination = '<a href="' . append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=" . $forum_id) . '">' . $lang['Show_pages'] . '</a>';
   $page_number = '';
   $l_goto_page = '';
}
else if ( $topics_count > $board_config['topics_per_page'] )
{
   $pagination = generate_pagination("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id&amp;topicdays=$topic_days", $topics_count, $board_config['topics_per_page'], $start) . ' | ' . '<a href="' . append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=" . "$forum_id&amp;viewall=1") . '">' . $lang['View_all'] . '</a>';
}
else
{
   $pagination = generate_pagination("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id&amp;topicdays=$topic_days", $topics_count, $board_config['topics_per_page'], $start);
}

   $template->assign_vars(array(
      'PAGINATION' => $pagination,
      'PAGE_NUMBER' => $page_number,
      'L_GOTO_PAGE' => $l_goto_page)
   );

#
#-----[ OPEN ]------------------------------------------
#
search.php

#
#-----[ FIND ]------------------------------------------
#

$start = ( isset($HTTP_GET_VARS['start']) ) ? intval($HTTP_GET_VARS['start']) : 0;

#
#-----[ AFTER, ADD ]------------------------------------------
#

$viewall = ( isset($HTTP_GET_VARS['viewall']) ) ? intval($HTTP_GET_VARS['viewall']) : 0;

#
#----[ FIND ]------------------------------------------
#

      $sql .= " $sort_dir LIMIT $start, " . $per_page;

#
#-----[ BEFORE, ADD ]------------------------------------------
#

      $per_page = ( $viewall == 1) ? $total_match_count : $per_page;

#
#-----[ FIND ]------------------------------------------
#

               $goto_page .= ' ] ';

#
#-----[ REPLACE WITH ]------------------------------------------
#

               $goto_page .= ' | <a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=" . $topic_id . "&amp;viewall=1") . '">' . $lang[All] . '</a>' . ' ] ';

#
#----[ FIND ]------------------------------------------
#

      $template->assign_vars(array(

         'PAGINATION' => generate_pagination($base_url, $total_match_count, $per_page, $start),
         'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $per_page ) + 1 ), ceil( $total_match_count / $per_page )),

         'L_AUTHOR' => $lang['Author'],
         'L_MESSAGE' => $lang['Message'],
         'L_FORUM' => $lang['Forum'],
         'L_TOPICS' => $lang['Topics'],
         'L_REPLIES' => $lang['Replies'],
         'L_VIEWS' => $lang['Views'],
         'L_POSTS' => $lang['Posts'],
         'L_LASTPOST' => $lang['Last_Post'],
         'L_POSTED' => $lang['Posted'],
         'L_SUBJECT' => $lang['Subject'],

         'L_GOTO_PAGE' => $lang['Goto_page'])
      );

#
#-----[ REPLACE WITH ]------------------------------------------
#

      if ( $viewall == 1 )
      {
         $pagination = '<a href="' . append_sid("search.$phpEx?&amp;search_id=$search_id") . '">' . $lang['Show_pages'] . '</a>';
      }
      else if ( $per_page < $total_match_count )
      {
         $pagination = generate_pagination($base_url, $total_match_count, $per_page, $start). ' | ' . '<a href="' . append_sid("search.$phpEx?&amp;search_id=$search_id&amp;viewall=1") . '">' . $lang['View_all'] . '</a>';
      }
      else
      {
         $pagination = generate_pagination($base_url, $total_match_count, $per_page, $start);
      }

      $template->assign_vars(array(

         'PAGINATION' => $pagination,
         'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $per_page ) + 1 ), ceil( $total_match_count / $per_page )),

         'L_AUTHOR' => $lang['Author'],
         'L_MESSAGE' => $lang['Message'],
         'L_FORUM' => $lang['Forum'],
         'L_TOPICS' => $lang['Topics'],
         'L_REPLIES' => $lang['Replies'],
         'L_VIEWS' => $lang['Views'],
         'L_POSTS' => $lang['Posts'],
         'L_LASTPOST' => $lang['Last_Post'],
         'L_POSTED' => $lang['Posted'],
         'L_SUBJECT' => $lang['Subject'],

         'L_GOTO_PAGE' => $lang['Goto_page'])
      );

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Kullanıcı avatarı
Diyalektik
Kıdemli Üye
Kıdemli Üye
 
İleti: 263
Kayıt: 14.11.2005, 13:12
Konum: İstanbul

İleti BeeLZeBuL 18.01.2006, 19:47

istediğim bu değil sanırım...
BeeLZeBuL
Üye
Üye
 
İleti: 7
Kayıt: 09.11.2005, 09:02

İleti Curtis 18.01.2006, 21:26

Kullanıcı avatarı
Curtis
Üye
Üye
 
İleti: 686
Kayıt: 06.10.2005, 06:22
Konum: İstanbul


Soru(n)lar & Tartışmalar



Kimler çevrimiçi

Bu forumu görüntüleyenler: Kayıtlı kullanıcı yok ve 0 misafir