I do not use EZportal, but this should work, and can be tested with no risk as long as you backup the files involved first.
So I assume you installed the recent topic block :
- Code: Select all
#
#-----[ OPEN ]-------------------------------------------------------
#
portal.php
#
#-----[ FIND ]---------------------------------------------
#
//
// End session management
//
#
#-----[ AFTER ADD ]---------------------------------------
#This for filtering topic titles with the phpBB censoring system, as
# anywhere else in the forum.
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
// Define censored word matches
$orig_word = array();
$replacement_word = array();
// www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ FIND ]---------------------------------------------
#
for ($i = 0; $i < $number_recent_topics; $i++)
{
#
#-----[ AFTER ADD ]---------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$seo_topic_name = ( count($orig_word) ) ? preg_replace($orig_word, $replacement_word, $recent_topic_row[$i]['topic_title']) : $recent_topic_row[$i]['topic_title'];
#
#-----[ FIND ]---------------------------------------------
#
'U_TITLE' => append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $recent_topic_row[$i]['post_id']) . '#' .$recent_topic_row[$i]['post_id'],
'L_TITLE' => $recent_topic_row[$i]['topic_title'],
#
#-----[ REPLACE WITH ]---------------------------------------------
#
/*'U_TITLE' => append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $recent_topic_row[$i]['post_id']) . '#' .$recent_topic_row[$i]['post_id'],
'L_TITLE' => $recent_topic_row[$i]['topic_title'],*/
'U_TITLE' => append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . '=' . $recent_topic_row[$i]['topic_id']),
'L_TITLE' => $seo_topic_name,
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
Then, it won't link to the last page of the topic, but to the topic itself. User will just have to follow the last page link and bots will fell on really interesting URLs
++

English |
French

