[ MOD ] Uitgebreide Paginatie Mod
Geplaatst: 20 okt 2004, 12:01
Een mod van mezelf, demo op etncrew.com/forum. Het past de paginatelling onder de topictitels aan. Het
icoontje wordt verwijderd, evenals het stukje tekst "
ga naar pagina".
Screenshot (van de Engelse versie):

[ edit ] Aangepast naar versie 1.0.1
[ edit ] Aangepast naar versie 1.0.2
Screenshot (van de Engelse versie):
Code: Selecteer alles
##############################################################
## MOD Title: Extended Pagination Mod
## MOD Author: etncrew < spambots@hotmail.com > (Oker) http://www.etncrew.com/forum
## MOD Description: Removes the "view newest post" image and "goto page" line, and puts two
## text links under the topic title; "first new" (if there are new posts) and "last". No
## templates have to be edited, the mod works immediatly on all styles. Screenshot:
## https://imageproxy-io.herokuapp.com/e8e8c9b95b62e2aaa814f5bfe58e9dc44849188c/687474703a2f2f696d6734312e6578732e63782f696d6734312f363931302f70726e747363726e2e676966
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: 3 Minutes
## Files To Edit: viewforum.php, language/lang_english/lang_main.php
## Included Files: n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
##############################################################
## MOD History:
##
## 2004-10-20 - Version 1.0.2
## - Fixed two little typos
##
## 2004-10-20 - Version 1.0.1
## - Added language support
##
## 2004-10-20 - Version 1.0.0
## - Initial mod
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
viewforum.php
#
#-----[ FIND ]------------------------------------------
#
$newest_post_img = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=newest") . '"><img src="' . $images['icon_newest_reply'] . '" alt="' . $lang['View_newest_post'] . '" title="' . $lang['View_newest_post'] . '" border="0" /></a> ';
#
#-----[ REPLACE WITH ]------------------------------------------
#
//Start - Extended pagination mod
//REMOVE:
//$newest_post_img = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=newest") . '"><img src="' . $images['icon_newest_reply'] . '" alt="' . $lang['View_newest_post'] . '" title="' . $lang['View_newest_post'] . '" border="0" /></a> ';
//ADD:
$newest_post_img = '';
$newest_post_link = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=newest") . '">' . $lang['first_new'] . '</a> | ';
//End - Extended pagination mod
#
#-----[ FIND ]------------------------------------------
#
$newest_post_img = '';
#
#-----[ AFTER, ADD ]------------------------------------------
#
//Start - Extended pagination mod
//ADD:
$newest_post_link = '';
//End - Extended pagination mod
#
#-----[ FIND ]------------------------------------------
#
$newest_post_img = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=newest") . '"><img src="' . $images['icon_newest_reply'] . '" alt="' . $lang['View_newest_post'] . '" title="' . $lang['View_newest_post'] . '" border="0" /></a> ';
#
#-----[ REPLACE WITH ]------------------------------------------
#
//Start - Extended pagination mod
//REMOVE:
//$newest_post_img = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=newest") . '"><img src="' . $images['icon_newest_reply'] . '" alt="' . $lang['View_newest_post'] . '" title="' . $lang['View_newest_post'] . '" border="0" /></a> ';
//ADD:
$newest_post_img = '';
$newest_post_link = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=newest") . '">' . $lang['first_new'] . '</a> | ';
//End - Extended pagination mod
#
#-----[ FIND ]------------------------------------------
#
$newest_post_img = '';
#
#-----[ AFTER, ADD ]------------------------------------------
#
//Start - Extended pagination mod
//ADD:
$newest_post_link = '';
//End - Extended pagination mod
#
#-----[ FIND ]------------------------------------------
#
$newest_post_img = '';
#
#-----[ AFTER, ADD ]------------------------------------------
#
//Start - Extended pagination mod
//ADD:
$newest_post_link = '';
//End - Extended pagination mod
#
#-----[ FIND ]------------------------------------------
#
$goto_page = ' [ <img src="' . $images['icon_gotopost'] . '" alt="' . $lang['Goto_page'] . '" title="' . $lang['Goto_page'] . '" />' . $lang['Goto_page'] . ': ';
#
#-----[ REPLACE WITH ]------------------------------------------
#
//Start - Extended pagination mod
//REMOVE:
//$goto_page = ' [ <img src="' . $images['icon_gotopost'] . '" alt="' . $lang['Goto_page'] . '" title="' . $lang['Goto_page'] . '" />' . $lang['Goto_page'] . ': ';
//ADD:
$goto_page = ' [ ';
//End - Extended pagination mod
#
#-----[ FIND ]------------------------------------------
#
$goto_page .= ' ] ';
#
#-----[ REPLACE WITH ]------------------------------------------
#
//Start - Extended pagination mod
//REMOVE:
//$goto_page .= ' ] ';
//ADD:
$goto_page .= ' | ' . $newest_post_link . '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $topic_rowset[$i]['topic_last_post_id']) . '#' . $topic_rowset[$i]['topic_last_post_id'] . '">' . $lang['last'] . '</a> ]';
//End - Extended pagination mod
#
#-----[ FIND ]------------------------------------------
#
$goto_page = '';
#
#-----[ REPLACE WITH ]------------------------------------------
#
//Start - Extended pagination mod
//REMOVE:
//$goto_page = '';
//ADD:
$goto_page = '[ ' . $newest_post_link . '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $topic_rowset[$i]['topic_last_post_id']) . '#' . $topic_rowset[$i]['topic_last_post_id'] . '">' . $lang['last'] . '</a> ]';
//End - Extended pagination mod
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
//
// That's all, Folks!
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//Start - Extended pagination mod
//ADD:
$lang['first_new'] = 'first new';
$lang['last'] = 'last';
//End - Extended pagination mod
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
[ edit ] Aangepast naar versie 1.0.2