Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: New Comments and comment pagination  (Read 2165 times)

philmoz

  • High flyer
  • ULTIMATE member
  • ******
  • Karma: 161
  • Posts: 1988
    • fiddle 'n fly
New Comments and comment pagination
« on: November 02, 2008, 11:33:54 AM »

Comment pagination.
To rectify an issue where article naming system deployed by site owner was numerical, we introduced a comments page pagination. However, we missed the relevant part of the new_comments() function
To rectify, find in
// NEW COMMENTS
function new_comments
the following line. (1284)
Code: [Select]
$paging = $page > 1 ? '/'.$page : '';replace with
Code: [Select]
$paging = $page > 1 ? '/'.l('comment_pages').$page : '';
----------------------------------------------------------------------------------------------

If an article has had comments made, then admin turns those comments off, the comments are still selected by the new_comments() function, and displayed. If one of these links is selected, it will fail to display.

To rectify, find in
// NEW COMMENTS
function new_comments
the following line. (1255)
Code: [Select]
WHERE a.published = 1and replace with
Code: [Select]
WHERE a.published = 1 AND (a.commentable = \'YES\' || a.commentable = \'FREEZ\' )
02 November 2008, 21:20:53
« Last Edit: November 02, 2008, 12:06:35 PM by philmoz »
Logged
Of all the things I have lost, it is my mind that I miss the most.