TrakGPS wrote: I would like to know if it's normal with this mod that users can see keep unread flags without connect or login .... or someone can telling me the patch for that.
TrakGPS wrote: Thanks for reply...
I know about the database and cookies. But maybe someone have something done to force the user to login to see unread flags like the mailbox ?
Thank you !
angelp1ay wrote: I have installed on my board View new topics since last visit v1_0_2 which still allows users to search for topics posted since last visit as well as those marked unread.
...
The view topics since last visit link successfully displays a search page with a list of all new topics. Is it possible to still get a search page with a list of all new posts? From what I understand of the mod it seems to overwrite the "view posts since last visit" code with "view all unread posts" - can you get both?
...
It would be nice to get to:
Code: Select all
View topics since last visit (3 topics) View posts since last visit (5 posts) View all unread posts (2 topics) View all unanswered posts View all of your posts View all posts in last: - time period -
angelp1ay wrote: ...I found the link to the mod:
http://www.phpbb.com/phpBB/viewtopic.php?t=222168
I presume if I run through this again substituting "newtopics" for say "postssincevisit" (so as not to clash with the keep unread mod) and if I tweak the SQL to dig out posts instead of topics...
Anyway I guess this might help some other people - I'll post an update once I try going through this.
View posts since last visit (4 posts)
View topics since last visit (3 topics)
View all unread posts (2 topics)
View all of your posts
View all unanswered posts
View all posts in last: - time period -
Code: Select all
// Start Mod - restore newposts since last visit
else if ( $search_id == 'newposts' )
{
if ( $userdata['session_logged_in'] )
{
$sql = "SELECT post_id
FROM " . POSTS_TABLE . "
WHERE post_time >= " . $userdata['user_lastvisit'];
}
else
{
redirect(append_sid("login.$phpEx?redirect=search.$phpEx&search_id=newposts", true));
}
$show_results = 'topics';
$sort_by = 0;
$sort_dir = 'DESC';
}
// End Mod - restore newposts since last visit
moodgard wrote: Hope you can help me here. I have scanned through the last 8 pages and also triple-checked the changes I have made.
The "view unread posts" is still giving me the "view posts since last visit" results.
Merlin Sythove wrote:moodgard wrote:Hope you can help me here. I have scanned through the last 8 pages and also triple-checked the changes I have made.
The "view unread posts" is still giving me the "view posts since last visit" results.
Numeric total of new posts since last visit?
That is correct. There is no numeric total of all unread posts in this mod. That would take too much time to compute. There IS a numeric total of the number of TOPICS with unread posts in them (but the number of unread posts is unspecified).
Does this answer your question?
_RAAF_Furball wrote: Has anyone tested this MOD with 2.0.21?[/color]