Description: Adds a last post link to take you to the last post in the topic,could be handy.
Open viewtopic.php
find:
Code: Select all
// Replace naughty words in title
$topic_data['topic_title'] = censor_text($topic_data['topic_title']);
Code: Select all
$view_topic_url_params = 't=' . '&t=' . $topic_id;
Code: Select all
'U_EMAIL_TOPIC' => ($auth->acl_get('f_email', $forum_id) && $config['email_enable']) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", "mode=email&t=$topic_id") : '',
Code: Select all
// begin last post
'U_LAST_POST' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", $view_topic_url_params . '&p=' . $topic_data['topic_last_post_id']) . '#p' . $topic_data['topic_last_post_id'],
'LASTPOST_IMG' => $user->img('button_last_post', 'LAST_POST'),
// end last post
find:
Code: Select all
'LINKAGE_FORBIDDEN' => 'You are not authorised to view, download or link from/to this site.',
Code: Select all
'LAST_POST' => 'Last post',
find:
Code: Select all
<!-- IF PAGE_NUMBER --><!-- IF PAGINATION -->
Code: Select all
• <a href="{U_LAST_POST}">{L_LAST_POST}</a>
Code: Select all
<!-- IF PAGE_NUMBER --><!-- IF PAGINATION -->
Code: Select all
• <a href="{U_LAST_POST}">{L_LAST_POST}</a>
find:
Code: Select all
<td class="gensmall" width="100%" align="{S_CONTENT_FLOW_END}" nowrap="nowrap"><!-- INCLUDE pagination.html --></td>
Code: Select all
<td class="gensmall" width="100%" align="{S_CONTENT_FLOW_END}" nowrap="nowrap"><!-- IF not S_IS_BOT && PAGINATION --><b> | <a href="{U_LAST_POST}">{L_LAST_POST}</a> |</b><!-- ENDIF --><!-- INCLUDE pagination.html --></td>
Code: Select all
<td class="gensmall" width="100%" align="{S_CONTENT_FLOW_END}" nowrap="nowrap"><!-- INCLUDE pagination.html --></td>
Code: Select all
<td class="gensmall" width="100%" align="{S_CONTENT_FLOW_END}" nowrap="nowrap"><!-- IF not S_IS_BOT && PAGINATION --><b> | <a href="{U_LAST_POST}">{L_LAST_POST}</a> |</b><!-- ENDIF --><!-- INCLUDE pagination.html --></td>
pics: