Change Zero Dublicate link

Support for the phpBB3 SEO mods released in the phpBB3 SEO Toolikt forum.

Moderator: Moderators

Change Zero Dublicate link

Postby Stokerpiller » Thu Apr 24, 2008 7:04 am

Hello

I have just installed the SEO premod 3.0.1 by overwriting existing files.
I works just fine.

I have one question, I think it is about the Zero Dublicate.
In forumlist_body.html I have this code:
Code: Select all
<!-- IF forumrow.LAST_POST_LINK --><i>{forumrow.LAST_POST_LINK}</i><br/><!-- ENDIF -->


Is it possible to have it to lead to the last post instead?
Like this:
Code: Select all
{forumrow.U_LAST_POST}


I know this will break the Zero Dublicate mod, but if it is made for registered user only?
Code: Select all
<!-- IF S_REGISTERED_USER -->content google and guests doesn't need to see<!-- ENDIF -->
Kind Regards
Stokerpiller
Stokerpiller
PR1
PR1
 
Posts: 125
Joined: Thu May 24, 2007 6:46 pm

Advertisement

Re: Change Zero Dublicate link

Postby dcz » Thu Apr 24, 2008 8:44 am

Stokerpiller wrote:I have just installed the SEO premod 3.0.1 by overwriting existing files.
I works just fine.


Have you additonally performed the SQL query to add an index in the topic table as mentioned here : http://www.phpbb-seo.com/boards/phpbb-s ... t1962.html

Code: Select all
ALTER TABLE `phpbb_topics` ADD INDEX ( `topic_last_post_id` );


Have you noticed that the original last post link is kept and does lead to the last page ?

What do you want, use it instead for the topic link ?
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: 21428
Joined: Fri Apr 28, 2006 9:03 pm

Postby Stokerpiller » Thu Apr 24, 2008 8:52 am

Sorry if I didn't explain my selv good enough.

Have you noticed that the original last post link is kept and does lead to the last page ?

Yes, that one is added.

In the top there is the link to the latest topic in the forum - That is the one added by the Zero Dublicate.
Next line shows the last posters username AND a small image which links to the last post.

I want the toplink to redirect to the latest post and not the start of the latest topic.
Kind Regards
Stokerpiller
Stokerpiller
PR1
PR1
 
Posts: 125
Joined: Thu May 24, 2007 6:46 pm

Postby dcz » Thu Apr 24, 2008 9:05 am

All right, so in includes/functions_display.php, replace :

Code: Select all
            $last_post_link = '<a href="' . append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id_last_post'] . '&amp;t=' . $row['topic_id']) . '" title="' . $phpbb_seo->seo_censored[$row['topic_id']] . ' : ' . $phpbb_seo->seo_opt['topic_forum_name'][$row['topic_id']] . '">' . $topic_text_lilnk . '</a>';


With :

Code: Select all
            $last_post_link = '<a href="' . $last_post_url . '" title="' . $phpbb_seo->seo_censored[$row['topic_id']] . ' : ' . $phpbb_seo->seo_opt['topic_forum_name'][$row['topic_id']] . '">' . $topic_text_lilnk . '</a>';


;)
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: 21428
Joined: Fri Apr 28, 2006 9:03 pm

Postby Stokerpiller » Thu Apr 24, 2008 9:17 am

Very nice dcz :D
Thank You very mucho 8)
Kind Regards
Stokerpiller
Stokerpiller
PR1
PR1
 
Posts: 125
Joined: Thu May 24, 2007 6:46 pm


Return to phpBB SEO MODS

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 4 guests