Keep unread flags mod

Hulp nodig bij een modificaties of op zoek naar een MOD? Bekijk ons archief. Support wordt helaas niet meer verleend.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gesloten
PaulusB
Berichten: 605
Lid geworden op: 18 mei 2006, 09:26

Keep unread flags mod

Bericht door PaulusB » 21 jun 2006, 00:29

Is het mogelijk aangezien ik de keep unread flags mod op het forum heb staan om deze mod hieronder er voor tezetten gaat dat samen werken?
##############################################################
## 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.0
##
## Installation Level: (Easy)
## Installation Time: 1 Minute
## Files To Edit: search.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:
##
## 2001-08-20 - Version 1.1.0
## - Fixed a major issue,Fix the problem where the mod was not working,this mod now works
##
## 2001-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
alvast dank

Gebruikersavatar
Paul
Beheerder
Beheerder
Berichten: 20316
Lid geworden op: 23 okt 2003, 11:38
Locatie: Utrecht
Contacteer:

Bericht door Paul » 21 jun 2006, 10:04

Probeer het zou ik zeggen ;)

PaulusB
Berichten: 605
Lid geworden op: 18 mei 2006, 09:26

Bericht door PaulusB » 21 jun 2006, 17:45

Ik heb het geprobeerd maar hij werkt niet als je op de aangegeven plekt plaatst na // End session management en daarna volgt de de keep unread flags mod maar wil niet werken.

dus denk dat het niet samen kan.

Gesloten