recent topics mod + seo mod

Discussions and support about the different URL Rewriting techniques for phpBB.

Moderator: Moderators

recent topics mod + seo mod

Postby msi_333 » Tue Sep 15, 2009 11:34 am

Am using recent topic nav1.5 mod with latest seo mod 1.6 with no duplicate and am ( phpbb3.5) . i have a problem you can see the the following link java forums , the first topic is ok , but the others topic#.html .

any help please
msi_333
 
Posts: 11
Joined: Thu Jun 14, 2007 3:23 pm

Advertisement

Re: recent topics mod + seo mod

Postby msi_333 » Thu Sep 17, 2009 2:24 am

this is my recent topic file called "functions_recenttopics.php"
Code: Select all


the problem also appears in similar topics mod ,
with this code in viewtopic.php :
Code: Select all
// Begin similar topics
$sql_array = array(
    'SELECT'    => 'f.forum_id, f.forum_name, t.topic_id, t.topic_title, u.user_id, u.username, u.user_colour, t.topic_replies',

    'FROM'        => array(
        TOPICS_TABLE    => 't',
    ),

    'LEFT_JOIN'    => array(
        array(
            'FROM'    =>    array(USERS_TABLE    => 'u'),
            'ON'    => 'u.user_id = t.topic_poster'
    ),
        array(
            'FROM'    =>    array(FORUMS_TABLE    => 'f'),
            'ON'    => 'f.forum_id = t.forum_id'
        ),
    ),

    'WHERE'        => "MATCH (t.topic_title) AGAINST ('" . $db->sql_escape($topic_data['topic_title']) . "' ) >= 0.5
        AND t.topic_status <> "
 . ITEM_MOVED . '
        AND t.topic_id <> '
 . (int) $topic_data['topic_id'],

    'GROUP_BY'    => 't.topic_id',

    'ORDER_BY'    => 't.topic_last_post_time DESC',
);
$sql = $db->sql_build_query('SELECT', $sql_array);
if ($result = $db->sql_query_limit($sql, 5))
{
    while($similar = $db->sql_fetchrow($result))
    {
        if ($auth->acl_get('f_read', $similar['forum_id']))
        {
            $similar_forum_url    = append_sid("{$phpbb_root_path}viewforum.$phpEx", "f=" . $similar['forum_id']);
            $similar_topic_url    = append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=" . $similar['forum_id'] . '&amp;t=' . $similar['topic_id']);
            $similar_user        = get_username_string('full', $similar['user_id'], $similar['username'], $similar['user_colour'], $similar['username']);

            $template->assign_block_vars('similar', array(
                'TOPIC_TITLE'            => $similar['topic_title'],
                'U_TOPIC'                => $similar_topic_url,
                'REPLIES'                => $similar['topic_replies'],
                'USER'                    => $similar_user,
                'U_FORUM'                => $similar_forum_url,
                'FORUM'                    => $similar['forum_name'])
            );
        }
    }
}
// End Similar Topics

 


So . please help me .
msi_333
 
Posts: 11
Joined: Thu Jun 14, 2007 3:23 pm

Re: recent topics mod + seo mod

Postby dcz » Sat Sep 19, 2009 8:41 am

For the similar URL mod, had you seen this thread : [SEO URL] Similar topic

About the recent topic block, your topic links now seems ok, but not the latest post one (your-first-forum/organisations-to-employ-freelances-t15.html&p=18#p18).

Have you tried to search a bit for the nv recent topic mod here ?

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Re: recent topics mod + seo mod

Postby msi_333 » Sat Sep 19, 2009 9:59 pm

thanks for reply sir , yes , i have and this leads me to fix some issues before i achive my current status which is :
Code: Select all
http://www.javaxforums.com/your-first-forum/adf-sadf-sdf-sdf-t17.html&p=21#p21

ends with & and # as you mentioned already.
i have attached my recent topic php .
msi_333
 
Posts: 11
Joined: Thu Jun 14, 2007 3:23 pm

Re: recent topics mod + seo mod

Postby msi_333 » Sun Sep 20, 2009 9:25 am

solved :
in recent topics.php replace

Code: Select all
            'U_LAST_POST'            => $view_topic_url . '&amp;p=' . $row['topic_last_post_id'] . '#p' . $row['topic_last_post_id'], 


with :
Code: Select all
        'U_LAST_POST'            => $view_topic_url . '#p' . $row['topic_last_post_id'], 
msi_333
 
Posts: 11
Joined: Thu Jun 14, 2007 3:23 pm

Re: recent topics mod + seo mod

Postby jojork » Fri Mar 05, 2010 11:37 pm

msi_333 wrote:solved :
in recent topics.php replace

Code: Select all
            'U_LAST_POST'            => $view_topic_url . '&amp;p=' . $row['topic_last_post_id'] . '#p' . $row['topic_last_post_id'], 


with :
Code: Select all
        'U_LAST_POST'            => $view_topic_url . '#p' . $row['topic_last_post_id'], 


Thank you :D :D
jojork
 
Posts: 4
Joined: Thu Jan 15, 2009 2:49 am


Return to phpBB mod Rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 4 guests