diff --git a/sections/inbox/inbox.php b/sections/inbox/inbox.php index ec481fbd..dc386708 100644 --- a/sections/inbox/inbox.php +++ b/sections/inbox/inbox.php @@ -3,7 +3,10 @@ $UserID = $LoggedUser['ID']; - +//deal with users who have yet to configure this in their profile page +if(!isset($LoggedUser['PrivateMessagesPerPage'])) { + $LoggedUser['PrivateMessagesPerPage'] = 25; //problem solbed +} if (empty($_GET['action'])) { $Section = 'inbox'; @@ -14,7 +17,7 @@ error(404); } -list($Page, $Limit) = Format::page_limit(MESSAGES_PER_PAGE); +list($Page, $Limit) = Format::page_limit($LoggedUser['PrivateMessagesPerPage']); View::show_header('Inbox'); ?> @@ -79,7 +82,7 @@ $DB->set_query_id($Results); $Count = $DB->record_count(); -$Pages = Format::get_pages($Page, $NumResults, MESSAGES_PER_PAGE, 9); +$Pages = Format::get_pages($Page, $NumResults, $LoggedUser['PrivateMessagesPerPage'], 9); echo "\t\t$Pages\n"; ?> diff --git a/sections/user/edit.php b/sections/user/edit.php index 3be8dc49..e522a1ff 100644 --- a/sections/user/edit.php +++ b/sections/user/edit.php @@ -381,6 +381,17 @@ function checked($Checked) { posts per page + + Private messages per page (inbox) + + + private messages per page + + Inbox sorting