This site is READ ONLY!! No support will be given! Everything in here is just for archiving purposes!

Mark topics read whilst viewing new posts

Support for all Snippets will go here!
Forum rules
PLEASE USE THE [HSIMG][/HSIMG] TAGS WHEN POSTING LARGE IMAGES!
IF YOU DO NOT PROVIDE A LINK TO YOUR FORUM, YOUR TOPIC COULD BE IGNORED!
CANNOT REALLY HELP YOU OUT IF WE CANNOT SEE THE PROBLEM!
Post Reply
Owned67
Stars
Stars
Posts: 9
Joined: Sun Mar 03 2013 8:53 am
Country Flag: Europe

Mark topics read whilst viewing new posts

Post by Owned67 »

Hello,
Open includes/functions_display.php

find:

Code: Select all

markread('all');
$message = sprintf($user->lang['RETURN_INDEX'], '<a href="' . $redirect . '">', '</a>');

add after:

Code: Select all

$message .= '<br /><br />' . sprintf($user->lang['RETURN_NEW_POST'], '<a href="' . append_sid("{$phpbb_root_path}search.$phpEx", 'search_id=newposts') . '">', '</a>');
but in includes/functions_display.php file :

Code: Select all

		if (check_link_hash(request_var('hash', ''), 'global'))
		{
			markread('all');

			trigger_error(
				$user->lang['FORUMS_MARKED'] . '<br /><br />' .
				sprintf($user->lang['RETURN_INDEX'], '<a href="' . $redirect . '">', '</a>')
			);
		}
$message = sprintf($user->lang['RETURN_INDEX'], '<a href="' . $redirect . '">', '</a>'); not found (Premod Seo phpbb 3.0.11)

Thanks
User avatar
cisco007
Ciscox
Ciscox
Posts: 2843
Joined: Thu Sep 16 2010 3:25 pm
Country Flag: Mexico

Re: Mark topics read whilst viewing new posts

Post by cisco007 »

well i've never used premod SEO so i wouldn't know, but if you have this line:

Code: Select all

sprintf($user->lang['RETURN_INDEX'], '<a href="' . $redirect . '">', '</a>')
try adding this after it

Code: Select all

'<br /><br />' . sprintf($user->lang['RETURN_NEW_POST'], '<a href="' . append_sid("{$phpbb_root_path}search.$phpEx", 'search_id=newposts') . '">', '</a>')
and let me know what happens
Image
Owned67
Stars
Stars
Posts: 9
Joined: Sun Mar 03 2013 8:53 am
Country Flag: Europe

Re: Mark topics read whilst viewing new posts

Post by Owned67 »

Thanks ! :)
Post Reply