View or mark unread posts

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Locked
User avatar
vindex
Registered User
Posts: 38
Joined: Tue Feb 12, 2008 1:56 pm

Re: View or mark unread posts

Post by vindex »

Code: Select all

case 'unread':
				$show_results = 'posts';
				$sql = unread_list_sql($l_search_title,[...]
this had no effect.

In case you find a solution for this option, will the posts in the search-result trigger the shown posts as "read" ?

Best wishes

vin :)
asinshesq
Registered User
Posts: 6266
Joined: Sun Feb 22, 2004 9:34 pm
Location: NYC
Name: Alan

Re: View or mark unread posts

Post by asinshesq »

vindex wrote:...this had no effect.
Oh, right, I forgot I had already coded for this. So undo what you just did since it's irrelevant. I have the code set up so that if you add to the end of the search link &sr=posts than it will list unread posts and if you add to the end of the search link &sr=topics it will list by topic with unread posts, and if you don't add any &sr= term at the end of the link it will default to listing by topic with unread posts. If you want the default to be a listing by unread post, do the following:

Code: Select all

OPEN
includes/functions_view_or_mark_unread_posts.php

FIND
	$show_results = (request_var('sr', 'topics') == 'posts') ? 'posts' : 'topics';

REPLACE WITH
	$show_results = (request_var('sr', 'posts') == 'posts') ? 'posts' : 'topics';
But I think that will not be very user friendly for your other uses, so you may want to leave the default to topics (not make this change at all) but give admins and moderators another link to list by posts.

TO be clear in case you don't know what I mean by adding sr=posts to the end of the link, I mean the search link that will list by unread posts would look like this:

www.[regular_forum_address]/search.php?search_id=unread&sr=posts

Again, let me know how it goes.
User avatar
vindex
Registered User
Posts: 38
Joined: Tue Feb 12, 2008 1:56 pm

Re: View or mark unread posts

Post by vindex »

oh this is so great!! thanks so much!

added in function.php:

Code: Select all

$u_search_unread_posts = append_sid("{$phpbb_root_path}search.$phpEx", 'sr=posts&ch=2000&search_id=unread');

and

'U_SEARCH_UNREAD_POSTS'	=> $u_search_unread_posts,
and added in index_body.html right after the normal view unread-link:

Code: Select all

<!-- IF U_MCP --> <a href="{U_SEARCH_UNREAD_POSTS}">(posts)</a><!-- ENDIF -->

best regards

vindex
User avatar
vindex
Registered User
Posts: 38
Joined: Tue Feb 12, 2008 1:56 pm

Re: View or mark unread posts

Post by vindex »

ah sorry, just one thing: the listing in the search result does not make the post marked as read.

how hard would it be to have maybe checkboxes beside the searched posts to mark them as read? =)
asinshesq
Registered User
Posts: 6266
Joined: Sun Feb 22, 2004 9:34 pm
Location: NYC
Name: Alan

Re: View or mark unread posts

Post by asinshesq »

vindex wrote:added in function.php:

Code: Select all

$u_search_unread_posts = append_sid("{$phpbb_root_path}search.$phpEx", 'sr=posts&ch=2000&search_id=unread');[/quote]
What is the ch=2000 for?

[quote]how hard would it be to have maybe checkboxes beside the searched posts to mark them as read? =)
ah sorry, just one thing: the listing in the search result does not make the post marked as read.[/quote]
Probably not that hard, but I don't need that for my board so I don't imagine i will be adding that myself.  Maybe you can figure it out (or maybe someone else will want that feature and will figure it out).  Sorry.
User avatar
vindex
Registered User
Posts: 38
Joined: Tue Feb 12, 2008 1:56 pm

Re: View or mark unread posts

Post by vindex »

okay no problem :)

i guess i will have to go with the "mark forums read" link then, though it will maybe mark posts as read that where posted between my search for unread posts and the click on the link :?

if i find out a solution, i will let you know!! :)

vin
User avatar
vindex
Registered User
Posts: 38
Joined: Tue Feb 12, 2008 1:56 pm

Re: View or mark unread posts

Post by vindex »

ah sorry.. forgot: ch=2000 is the length of the shown posts :)

i wondered, would it be possible to mark the posts read the same moment they are being searched as unread?

i'm not so into the search-engine
alienbabeltech
Registered User
Posts: 415
Joined: Mon Sep 17, 2007 12:54 pm

Re: View or mark unread posts

Post by alienbabeltech »

will this work on 3.0.2 ?
This is the best and most helpful community I have been on. You are some of the best people I have met. GOD Bless You ALL !
My Forum - http://alienbabeltech.com/abt/index.php
User avatar
IPB_Refugee
Registered User
Posts: 1290
Joined: Fri Jul 07, 2006 2:25 pm
Location: Austria
Name: Wolfgang Weber

Re: View or mark unread posts

Post by IPB_Refugee »

Yes, it will.
beddie
Registered User
Posts: 11
Joined: Thu Oct 02, 2008 1:46 pm
Location: Germany

Re: View or mark unread posts

Post by beddie »

Hi there

I just downloaded the mod and changed all the files except of the theme's html pages.

In the directions the author only refers to the prosilver theme. But at the start of the installing instruction there is also a mention of the subsilver2 theme. Where can I find the modifications for the subsilver2 html-pages?

thx
Bettina
asinshesq
Registered User
Posts: 6266
Joined: Sun Feb 22, 2004 9:34 pm
Location: NYC
Name: Alan

Re: View or mark unread posts

Post by asinshesq »

beddie wrote:In the directions the author only refers to the prosilver theme. But at the start of the installing instruction there is also a mention of the subsilver2 theme. Where can I find the modifications for the subsilver2 html-pages?
In the templates folder.
beddie
Registered User
Posts: 11
Joined: Thu Oct 02, 2008 1:46 pm
Location: Germany

Re: View or mark unread posts

Post by beddie »

oooops....thank you very much;) didn't look there - and I'm really new to this - it's my first forum to build and especially modify....

I'll go and have a look - wish me luck

Bettina
beddie
Registered User
Posts: 11
Joined: Thu Oct 02, 2008 1:46 pm
Location: Germany

Re: View or mark unread posts

Post by beddie »

whew - it worked!!!
I'll be back if there occur any bugs ;)
User avatar
zenrei
Registered User
Posts: 172
Joined: Fri Oct 06, 2006 1:34 pm

Re: View or mark unread posts

Post by zenrei »

I'm so happy you made this mod.

I have a dumb question for anyone... if i wanted the Unread Posts link up where it says "view your posts", where would I go to add it? (instead of having it on the main page)
User avatar
MartectX
Registered User
Posts: 1324
Joined: Wed Dec 19, 2007 8:05 pm
Location: Marienplatz

Re: View or mark unread posts

Post by MartectX »

That's in overall_header.html!
Locked

Return to “[3.0.x] MOD Database Releases”