diese Mod scheint nicht wirklich die korrekte Anzahl an Post wiederzugeben.
Ich weiss nicht ob es mit dem Simple Sub Forum Mod zusammenhängen könnte oder ob es sich um ein Kompatibilitätsproblem mit der neuesten Forumsversion handelt.
Vielleicht weiss ja jemand wie man die SQL Abfrage modifizieren muss damit das passt.
Ein Ansatz wäre auch, die Posts die in Hidden und Private Forums gemacht werden rechtespezifisch anzuzeigen. Demnach dürfte die Anzeige bei Admins, Privates und Regulären Membern immer differieren.
Code: Alles auswählen
##############################################################
## MOD Title: View posts since last visit Number
## MOD Author: Shof515 < shof515@gmail.com > (Shaun) http://shof515.com
## MOD Description: Shows how many new posts were made since lasts,and shows them on the
## View posts since last visit link on the index page
## MOD Version: 1.1.1
##
## 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:
## This mod replaces the View posts since last visit with this: View posts since last visit(X)
## where X is the number of posts were made since last vist
##
##############################################################
## MOD History:
## 2004-08-21 - Verison 1.1.1
## - Fixed a mod template problem
## 2004-08-20 - Version 1.1.0
## - Fixed a major issue,Fix the problem where the mod was not working,this mod now works
## 2004-08-19 - Version 1.0.0
## - First Verison made
##
##############################################################
## 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 ich bin grad auf eine andere Mod aufmerksam geworden die evtl. exakt das beschreibt was erforderlich ist um die neuen Beiträge anzuzeigen.
Wen es interessiert, hier die Beschreibung
Code: Alles auswählen
##############################################################
## MOD Title: View number of new posts since last visit
## MOD Author: Ramon Fincken < forumsoftware@creativepulses.nl > (Ramon Fincken) http://www.CreativePulses.nl
## MOD Description: Show number of newposts like: "View posts since last visit (13)"
## -counts every unseen post
## -does not count YOUR posts
## -- every post in newtopic
## -- every reply since the last visit
## -decreases count when you visited a topic
## -decreases count when you hit the mark all forums read
## ( and increases for every post after that ... )
## -decreases count when you hit the mark all topics read
## ( and increases for every post after that ... )
## -only counts posts in forum you have READ access to...
##
## MOD Version: 1.0.7
##
## Installation Level: easy
## Installation Time: 1 Minute
## Files To Edit: (1) includes/page_header.php
## Included Files: (1) MOD_newposts_number.php
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
## Check
## http://phpbb2italia.za.net/phpbb2/viewforum.php?f=12
## for updates, update manuals, support and screenshots
##
## Tested on: PhpBB 2.0.17/18
## Should be phpBB version independent, if not let me know
##
## This mod will install with Easymod.
##
## If you like this mod add your phpbb forum url to: www.rfn-online.tk
##
##
## Thanks to:
## 3Di >> http://phpbb2italia.za.net/phpbb2
## JimDandy >> http://www.phpbb.com/phpBB/profile.php?mode=viewprofile&u=130509
## ycl6 and TerraFrost for finding the topics bug >> www.phpbb.com
##############################################################
## MOD History:
##
## 2006-01-09 - Version 1.0.7
## - Fixed the each() topics2 bug
## 2006-01-02 - Version 1.0.6
## - Fixed some code for MODDB, fixed the topics bug ( if you immediately hit the 'mark all topics read' )
## 2006-01-01 - Version 1.0.5
## - Fixed some code for MODDB
## 2005-12-31 - Version 1.0.4
## - Fixed some code for MODDB, added the 'mark all topics read' ( This is the full version )
## 2005-11-21 - Version 1.0.3
## - Minor update, allmost the real thing :)
## 2005-11-05 - Version 1.0.2
## - Minor update
## 2005-11-05 - Version 1.0.1
## - Minor update
## 2005-06-31 - Version 1.0.0
## - First version/release
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ COPY ]------------------------------------------
#
copy MOD_newposts_number.php to MOD_newposts_number.php
#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
$template->assign_vars(array(
'SITENAME' => $board_config['sitename'],
#
#-----[ BEFORE, ADD ]-----------------------------------
#
// MOD START MOD_view_number_of_posts_since_last_visit
include('MOD_newposts_number.'.$phpEx);
// MOD END MOD_view_number_of_posts_since_last_visit
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------
#
# EoM