I want to use a script similar to this:
http://wiki.phpbb.com/Practical.Display ... rnal_pages
To show my latest topics somewhere else.
How can I make sure they use the correct URLs?
I'm using the Advanced mode.
Thanks
Nathan
Moderator: Moderators
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if (!empty($topics_row['topic_url'])) {
$phpbb_seo->prepare_iurl($topics_row, 'topic', '');
} else {
if ($phpbb_seo->modrtype > 2) {
$topics_row['topic_title'] = censor_text($topics_row['topic_title']);
}
$cur_forum_id = (int) $topics_row['forum_id'];
$parent_forum = $topics_row['topic_type'] == POST_GLOBAL ? $phpbb_seo->seo_static['global_announce'] : (!empty($phpbb_seo->seo_url['forum'][$cur_forum_id]) ? $phpbb_seo->seo_url['forum'][$cur_forum_id] : false);
if ($parent_forum) {
$phpbb_seo->prepare_iurl($topics_row, 'topic', $parent_forum);
}
}
// www.phpBB-SEO.com SEO TOOLKIT END while( $topics_row = $db->sql_fetchrow($topics_result) )
{ // www.phpBB-SEO.com SEO TOOLKIT BEGIN
if (!empty($posts_row['topic_url'])) {
$phpbb_seo->prepare_iurl($posts_row, 'topic', '');
} else {
if ($phpbb_seo->modrtype > 2) {
$posts_row['topic_title'] = censor_text($posts_row['topic_title']);
}
$cur_forum_id = (int) $posts_row['forum_id'];
$parent_forum = $posts_row['topic_type'] == POST_GLOBAL ? $phpbb_seo->seo_static['global_announce'] : (!empty($phpbb_seo->seo_url['forum'][$cur_forum_id]) ? $phpbb_seo->seo_url['forum'][$cur_forum_id] : false);
if ($parent_forum) {
$phpbb_seo->prepare_iurl($posts_row, 'topic', $parent_forum);
}
}
// www.phpBB-SEO.com SEO TOOLKIT END while( $posts_row = $db->sql_fetchrow($posts_result) )
{ 
if (!empty($last_topics_row['topic_url'])) {
$phpbb_seo->prepare_iurl($last_topics_row, 'topic', '');
global $phpbb_seo;
Users browsing this forum: No registered users and 4 guests