Is there a way to check if there is a next or previous topic?
Subsilver2 has a next and a previous link in viewtopic, but it displays even if there isnt any next or previous topics.
Code: Select all
'U_VIEW_OLDER_TOPIC' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&t=$topic_id&view=previous"),
'U_VIEW_NEWER_TOPIC' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&t=$topic_id&view=next"),
Code: Select all
else if($view == 'next' || $view == 'previous')