Similar topics

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

Moderator: Moderators

Re: Similar topics

Postby lizard78 » Tue Jun 09, 2009 11:49 am

Where is the [mod]bad speaking removed[/mod] Mod? :D
lizard78
PR0
PR0
 
Posts: 51
Joined: Thu Apr 09, 2009 10:16 am

Advertisement

Re: Similar topics

Postby dcz » Thu Jun 11, 2009 3:05 pm

Please behave, phpBB SEO is addressed to a general audience and we, the people who spend so much of their free time to provide with all these mods, deserve more respect than that.
You may did not noticed that yesterday two mods where released, and today, two others, how do you expect us to go faster than that ?
Beside, I just checked my bank account, and I could not find you million dollar transfer so ...
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: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Re: Similar topics

Postby pnenquiry » Wed Jun 17, 2009 5:10 pm

Hello dcz, this one is going one of the most used mods, I believe. Do you have any updates on when this is going to be released please?
pnenquiry
 
Posts: 28
Joined: Tue Jun 09, 2009 1:38 pm

Re: Similar topics

Postby Goroman » Wed Jul 08, 2009 11:31 pm

dcz, please tell as when you will release this mod :wink:
User avatar
Goroman
PR1
PR1
 
Posts: 139
Joined: Fri Mar 28, 2008 2:58 pm
Location: Poland

Re: Similar topics

Postby dcz » Sat Jul 11, 2009 2:11 pm

You can already use this one : [SEO URL] Similar topic

++
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: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Re: Similar topics

Postby Goroman » Thu Jul 30, 2009 11:53 am

but this isn't your (phpbb-seo crew) mod ?
User avatar
Goroman
PR1
PR1
 
Posts: 139
Joined: Fri Mar 28, 2008 2:58 pm
Location: Poland

Re: Similar topics

Postby dcz » Mon Aug 03, 2009 12:09 pm

Noe, but there is a patch to make it work with our Ultimate SEO URL mod in that thread.
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: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Re: Similar topics

Postby Goroman » Mon Aug 03, 2009 6:35 pm

So if I have Advanced Seo urls i must uinstall it and install Ultimate ?

or update to Ultimate ?
User avatar
Goroman
PR1
PR1
 
Posts: 139
Joined: Fri Mar 28, 2008 2:58 pm
Location: Poland

Re: Similar topics

Postby Typo » Mon Aug 03, 2009 10:47 pm

Goroman wrote:So if I have Advanced Seo urls i must uinstall it and install Ultimate ?

or update to Ultimate ?


Update.

You will find instructions in the contrib folder for updating. If you had the latest release of Advanced than you will need to follow the instructions in "/contrib/0.4.8_0.6.0_Ultimate_Update.txt" and if you were using an older version, the update instructions will be in "/contrib/old/".

Typo
User avatar
Typo
phpBB SEO Team
phpBB SEO Team
 
Posts: 346
Joined: Sun Jan 18, 2009 11:33 am

Re: Similar topics

Postby lukasamd » Sun Sep 06, 2009 8:21 am

Hello,
I have question about this modification.

I added this on my forum, but without forum link: I added topic and last post link so it looks like:

Code: Select all
<?php
// Begin similar topics
$sql_array = array(
   'SELECT'   => 'forum_id, topic_id, topic_title, topic_type ' . (!empty($phpbb_seo->seo_opt['sql_rewrite']) ? ', topic_url' : '') . ', topic_views, topic_replies, topic_last_post_id, topic_last_post_time',

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

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

   'GROUP_BY'   => 'topic_id',
   'ORDER_BY'   => '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))
   {
    $similar['topic_title'] = censor_text($similar['topic_title']);
    $phpbb_seo->prepare_iurl($similar, 'topic', $similar['topic_type'] == POST_GLOBAL ? $phpbb_seo->seo_static['global_announce'] : $phpbb_seo->seo_url['forum'][$similar['forum_id']]);
   
      $similar_topic_url   = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 't=' . $similar['topic_id'] . '&amp;f=' . $similar['forum_id']);
      $similar_last_url = $similar_topic_url . '#p' . $similar['topic_last_post_id'];
      $similar_topic_time = $user->format_date($similar['topic_last_post_time']);
      
      $template->assign_block_vars('similar', array(
         'TOPIC_TITLE'      => $similar['topic_title'],
         'U_TOPIC'            => $similar_topic_url,
         'U_LAST'        => $similar_last_url,
         'REPLIES'            => $similar['topic_replies'],
         'VIEWS'               => $similar['topic_views'],
         'POST_DATE'         => $similar_topic_time,
      ));
   }
}
// End Similar Topics
?>


Unfortunately, I have problem: how can I add pagination on last post link?
This code doesn't add pagination information in link:

Code: Select all
      $similar_topic_url   = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 't=' . $similar['topic_id'] . '&amp;f=' . $similar['forum_id']);


So, links are like:

TOPIC: site_url.com/my-category/my-topic-t500.html
LAST: site_url.com/my-category/my-topic-t500.html#p5123


And should look:

TOPIC: site_url.com/my-category/my-topic-t500.html
LAST: site_url.com/my-category/my-topic-t500-15.html.html#p5123



How can I add pagination with seo class's methods?
lukasamd
 
Posts: 16
Joined: Wed Jun 03, 2009 7:37 pm
Location: Poland

Re: Similar topics

Postby dcz » Sat Sep 12, 2009 1:17 pm

To start with, have you had a look at this thread : [SEO URL] Similar topic

?

Then, about changing the last post link to a topic one with pagination, if you know a bit how to code, you could inspire from the way the no dupe mod handle these in viewforum.php.

++
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: 21238
Joined: Fri Apr 28, 2006 9:03 pm

Re: Similar topics

Postby lukasamd » Sat Sep 12, 2009 2:41 pm

Thank you very much, I copy last post link with pagination from viewforum.php.
I use zero dupe, so I delete unnecessary elements, and it looks like:

Code: Select all
   while($similar = $db->sql_fetchrow($result))
   {
   
    $phpbb_seo->set_url('', $similar['forum_id'], $phpbb_seo->seo_static['forum']);
    $phpbb_seo->prepare_iurl($similar, 'topic', $similar['topic_type'] == POST_GLOBAL ? $phpbb_seo->seo_static['global_announce'] : $phpbb_seo->seo_url['forum'][$similar['forum_id']]);
      $similar_topic_url   = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 't=' . $similar['topic_id'] . '&amp;f=' . $similar['forum_id']);
      $similar_topic_time = $user->format_date($similar['topic_last_post_time']);
      $topic_id = $similar['topic_id'];
      $phpbb_seo->seo_opt['topic_last_page'][$topic_id] = floor($similar['topic_replies'] / $phpbb_seo->seo_opt['topic_per_page']) * $phpbb_seo->seo_opt['topic_per_page'];
      
      $template->assign_block_vars('similar', array(
         'TOPIC_TITLE'      => $similar['topic_title'],
         'U_TOPIC'            => $similar_topic_url,
         'U_LAST'         => append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $similar['forum_id']. '&amp;t=' . $similar['topic_id'] . '&amp;start=' . @intval($phpbb_seo->seo_opt['topic_last_page'][$topic_id])) . '#p' . $similar['topic_last_post_id'],
         'REPLIES'            => $similar['topic_replies'],
         'VIEWS'               => $similar['topic_views'],
         'POST_DATE'         => $similar_topic_time,
      ));
   }
lukasamd
 
Posts: 16
Joined: Wed Jun 03, 2009 7:37 pm
Location: Poland

Re: Similar topics

Postby dcz » Fri Nov 27, 2009 8:52 am

phpBB SEO Related Topics has been released, you may want to use it in favor to this mod since it has many more options and abilities than this one.

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

Previous

Return to phpBB SEO MODS

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 5 guests