Habe noch eine Frage, und zwar habe ich diesen Mod installiert:
Leider ist der nicht "based on permission", er zeigt mir also bei manchen Usern mehr Beiträge an, da er auch die neuen Beiträge mitzählt in den Foren, zu denen der User keine Berechtigung hat. Wäre es denn möglich, das auch "based on permission" zu machen?##############################################################
## MOD Title: Number of Posts Since Last Visit
## MOD Author: mitsubishi <mitsubishiuk@aol.com> (Adam Ismay) http://www.boardz.tk/
## MOD Author, Secondary: N/A <mac@kingoftheserver.com> (Iain Staffell) http://mb.kingoftheserver.com
## MOD Author, Secondary: AbelaJohnB <abela@phpbb.com> (John B. Abela) http://www.JohnAbela.Com/
## MOD Description: This MOD will add the number of new posts on the index page to view new posts.
## Total number of posts remains until your session expires or you log-out.
## MOD Version: 1.0.2
##
## Installation Level: Easy
## Installation Time: ~1 Minute
## Files To Edit: index.php
## Included Files: none
##############################################################
## 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:
##
## The number in brackets is posts. When you click it and search,
## the results are given as topics.
##
##############################################################
## MOD History:
##
## 2003-9-19 - Version 1.0.2
## Updated For phpBB 2.0.6 <abela@phpbb.com>
##
## 2003-05-24 - Version 1.0.1
## - your own posts are no longer counted <mac@kingoftheserver.com>
##
## 2002-04-08 - Version 1.0.0
## - original for phpBB 2.03 <mitsubishiuk@aol.com>
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]-------------------------------------
#
index.php
#
#-----[ FIND ]-------------------------------------
#
//
// End session management
//
#
#-----[ AFTER, ADD ]-------------------------------------
#
if( $userdata['session_logged_in'] )
{
$sql = "SELECT COUNT(post_id) as total
FROM " . POSTS_TABLE . "
WHERE post_time >= " . $userdata['user_lastvisit'] . "
AND poster_id != " . $userdata['user_id'];
$result = $db->sql_query($sql);
if( $result )
{
$row = $db->sql_fetchrow($result);
$lang['Search_new'] = $lang['Search_new'] . " (" . $row['total'] . ")";
}
}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Gruß,
Gerhard