Code: Select all
case 'unread':
$show_results = 'posts';
$sql = unread_list_sql($l_search_title,[...]
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
Code: Select all
case 'unread':
$show_results = 'posts';
$sql = unread_list_sql($l_search_title,[...]
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:vindex wrote:...this had no effect.
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';
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,
Code: Select all
<!-- IF U_MCP --> <a href="{U_SEARCH_UNREAD_POSTS}">(posts)</a><!-- ENDIF -->
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.
In the templates folder.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?