•  
     

NV recent topics + phpBB SEO

Open: includes/functions_recenttopics.php

Find
Code: Select all

Código: Selecionar todos

function display_recent_topics($topics_per_page, $num_pages, $excluded_topics, $tpl_loopname = 'recenttopicrow', $spec_forum_id = 0, $include_subforums = true, $display_parent_forums = true)
{
   global $auth, $cache, $config, $db, $template, $user;
   global $phpbb_root_path, $phpEx;


Add after
Code: Select all

Código: Selecionar todos

// http://www.phpBB-SEO.com SEO TOOLKIT BEGIN
   global $phpbb_seo;
// http://www.phpBB-SEO.com SEO TOOLKIT END



Find

Código: Selecionar todos

Code: Select all
      $topic_id = $row['topic_id'];
      $forum_id = $row['forum_id'];


Add after
Code: Select all

Código: Selecionar todos

// http://www.phpBB-SEO.com SEO TOOLKIT BEGIN
      $phpbb_seo->set_url($row['forum_name'], $forum_id, 'forum');
      $phpbb_seo->prepare_iurl($row, 'topic', $row['topic_type'] == POST_GLOBAL ? $phpbb_seo->seo_static['global_announce'] : $phpbb_seo->seo_url['forum'][$forum_id]);
// http://www.phpBB-SEO.com SEO TOOLKIT END



Find
Code: Select all

Código: Selecionar todos

         'U_NEWEST_POST'         => $view_topic_url . '&view=unread#unread',
         'U_LAST_POST'         => $view_topic_url . '&p=' . $row['topic_last_post_id'] . '#p' . $row['topic_last_post_id'],


Replace with
Code: Select all

Código: Selecionar todos

         // http://www.phpBB-SEO.com SEO TOOLKIT BEGIN
         'U_NEWEST_POST'         => append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $forum_id . '&t=' . $topic_id . '&view=unread') . '#unread',
         // http://www.phpBB-SEO.com SEO TOOLKIT BEGIN -> no dupe
         'U_LAST_POST'         => !empty($phpbb_seo->seo_opt['no_dupe']['on']) ? append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $forum_id . '&t=' . $topic_id . '&start=' . @intval($phpbb_seo->seo_opt['topic_last_page'][$topic_id])) . '#p' . $row['topic_last_post_id'] : append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $forum_id . '&t=' . $topic_id . '&p=' . $row['topic_last_post_id']) . '#p' . $row['topic_last_post_id'],
         // http://www.phpBB-SEO.com SEO TOOLKIT BEGIN -> no dupe
         // http://www.phpBB-SEO.com SEO TOOLKIT END