Comment Pagination
January 2nd, 2015Access comments individually. Originally I wanted the most recent first but I haven't hacked a way to reorder the numbers last to first so I couldn't link to a comment by place
[/skins/my_skin/_item.feedback.inc.php]
around line 175
added new variable $mrf (most frequent first) and set it to empty if there is no title or technically no comment.
Code
if( empty($disp_title) ) | |
{ // Still no title | |
$disp_title[] = T_('No feedback yet'); | |
$mrl = ""; | |
} | |
else $mrl = "<em> Most Recent Last</em>"; | |
| |
if( $params['disp_section_title'] ) | |
{ // Display title | |
echo $params['before_section_title'].' '; | |
echo implode( ', ', $disp_title); | |
echo $mrl; | |
echo $params['after_section_title']; | |
} |
_item_feedback.inc.php
December 29th, 2014Changes.
- Removed some comments at beginning so code begins at line 7
- Line 126 commented out as it creates unwanted vertical space
- Lines 128 to 164 Commented out to remove links to pings and trackback
- Line 184 Insert new line
echo "<em> Most Recent First</em>"; - Line 227 Insert but unused code
//echo "<div class='center'>Page " . $CommentList->page . " of " . implode( ', ', $disp_title) . ": <em>Latest First</em></div>"; - Line 270 Check out comment
Code
'userpage' or 'userurl' or 'userurl>userpage' or 'userpage>userurl' - Lines 321 and 322 Insert
Code
if (!isset($current_User) )unset($params['disp_comment_form']);







