"Beiträge seit dem letzten Besuch anzeigen" modifi
Verfasst: 27.02.2003 18:19
Wie kann ich denn ungeachtet der Benutzer und dessen Besuch(e) die letzten z.B. 30 Beiträge, die geschrieben wurden, anzeigen lassen?
phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
Code: Alles auswählen
##############################################################
## Mod Title: Last xx hours of posts
## Mod Version: 1.0.0
## Author: rmang <rob@mangiafico.net>
## Description: Put an easy link to view the last 24 hours,
## 48 hours, 72 hours, etc...
## Installation Level: (easy)
## Installation Time: 2 Minutes
## Files To Edit: /phpBB2/templates/subSilver/index_body.tpl
## /languages/lang_english/lang_main.php
## Included Files: (n/a)
##############################################################
##############################################################
## For Security Purposes, This MOD Cannot Be Posted Or Added At Any Non-Official phpBB Site
##############################################################
##############################################################
## Author Note: This simple MOD just has you put a link that can actually go anywhere in
## any template file that will allow your users to click on a link to view the last xx hours
## of posts. It only works with whole day entries (ie last 1,2,3 days, etc...) To switch
## the time period of searching, just change the "search_time=1" code to how many days you
## want searched (ie search_time=2 for 2 days, search_time=7 for 7 days, etc...)
##
##############################################################
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
/phpBB2/templates/subSilver/index_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<!-- END switch_user_logged_in -->
#
#-----[ AFTER, ADD ]------------------------------------------
#
<a href="search.php?search_author=*&sort_by=0&sort_dir=DESC&search_time=1">{L_VIEW_LAST_24_HOURS}</a>
#
#-----[ OPEN ]------------------------------------------
#
/phpBB2/language/lang_xx/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
$lang['Search_unanswered'] = "View unanswered posts";
#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['View_last_24_hours'] = "View last 24 hours";
#
#-----[ OPEN ]------------------------------------------
#
/phpBB2/includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
'L_SEARCH_UNANSWERED' => $lang['Search_unanswered'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_VIEW_LAST_24_HOURS' => $lang['View_last_24_hours'],
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM