mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-15 05:24:41 +01:00
Fix bug #49525 - Search for unreads should require login
Authorised by: AcydBurn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10004 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
300f6868af
commit
b4297abf2a
@ -223,6 +223,7 @@
|
||||
<li>[Change] Introduce new parameter to page_header() for forum specific who is online listings.</li>
|
||||
<li>[Change] Lifted minimum requirement for Firebird DBMS from 2.0+ to 2.1+.</li>
|
||||
<li>[Change] Unapproved topics can no longer be replied to (Bug #44005)</li>
|
||||
<li>[Change] Require user to be registered and logged in to search for unread posts if topic read tracking is disabled for guests (Bug #49525)</li>
|
||||
<li>[Change] Allow three-digit hex notation in Color BBcode. (Bug #39965 - Patch by m0rpha)</li>
|
||||
<li>[Feature] Add language selection on the registration terms page (Bug #15085 - Patch by leviatan21)</li>
|
||||
<li>[Feature] Backported 3.2 captcha plugins.
|
||||
|
@ -53,6 +53,7 @@ $lang = array_merge($lang, array(
|
||||
'JUMP_TO_POST' => 'Jump to post',
|
||||
|
||||
'LOGIN_EXPLAIN_EGOSEARCH' => 'The board requires you to be registered and logged in to view your own posts.',
|
||||
'LOGIN_EXPLAIN_UNREADSEARCH'=> 'The board requires you to be registered and logged in to view your unread posts.',
|
||||
|
||||
'MAX_NUM_SEARCH_KEYWORDS_REFINE' => 'You specified too many words to search for. Please do not enter more than %1$d words.',
|
||||
|
||||
|
@ -95,6 +95,13 @@ if ($keywords || $author || $author_id || $search_id || $submit)
|
||||
}
|
||||
}
|
||||
|
||||
// search for unread posts needs user to be logged in
|
||||
// if topics tracking for guests is disabled
|
||||
if ($search_id == 'unreadposts' && !$config['load_anon_lastread'] && !$user->data['is_registered'])
|
||||
{
|
||||
login_box('', $user->lang['LOGIN_EXPLAIN_UNREADSEARCH']);
|
||||
}
|
||||
|
||||
// If we are looking for authors get their ids
|
||||
$author_id_ary = array();
|
||||
$sql_author_match = '';
|
||||
|
Loading…
x
Reference in New Issue
Block a user