
now its work good. thanks.Porutchik wrote:ttuu.. Try to it:Code: Select all
ALTER TABLE `phpbb_topics` ENGINE = MYISAM; ALTER TABLE `phpbb_topics` ADD FULLTEXT (`topic_title`);
Thank you very much for this fantaaastic mod. it works perfectly just exactly as I wantPorutchik wrote: -------
Mod is updated to 1.0.3
[+] - control in number of words in the topic title to appear in the similar topics (for viewtopic and posting form)
[+] - control in minimum relevance in the topic title to appear in the similar topics.
The instructions for update you can find at folder contrib.
See first post for download link.
Try to it:ttuu wrote:u can fix this?
Code: Select all
#
#------- [OPEN] ---------------
#
includes/similar_topics.php
#
#------- [FIND] ---------------
#
$phpbb_root_path = './../';
#
#------- [REPLACE WITH] ---------------
#
$phpbb_root_path = '../';
#
#------- [FIND] ---------------
#
$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 . '&t=' . $similar_topic_id);
#
#------- [REPLACE WITH] ---------------
#
$similar_forum_url = append_sid('viewforum.' . $phpEx, 'f=' . $similar_forum_id);
$similar_topic_url = append_sid('viewtopic.' . $phpEx, 'f=' . $similar_forum_id . '&t=' . $similar_topic_id);
#
#------- [FIND] ---------------
#
'U_LAST_POST' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'p=' . $similar['topic_last_post_id'] . '#p' . $similar['topic_last_post_id']),
#
#------- [REPLACE WITH] ---------------
#
'U_LAST_POST' => append_sid('viewtopic.' . $phpEx, 'p=' . $similar['topic_last_post_id'] . '#p' . $similar['topic_last_post_id']),
Well. I updated this MOD.u can set the link is open in new page?
Thanks for update the mod, I just updated it to 1.0.4 and everything works fine .. but may some people don't like to open the link in new window, so can we choose if we want to open the link in the same page or new page.Porutchik wrote: Well. I updated this MOD.
Copy: root/includes/acp/info/acp_similar_topics.php To: includes/acp/info/acp_similar_topics.php
Copy: root/includes/similar_topics.php To: includes/similar_topics.php
Copy: root/styles/prosilver/template/similar_viewtopic.html To: styles/prosilver/template/similar_viewtopic.html
Copy: templates/root/styles/subsilver2/template/similar_viewtopic.html To: styles/subsilver2/template/similar_viewtopic.html
See first post for download link.
Well. I have made ADD-ON for this purpose. You can find at folder contrib.eman80 wrote:if we want to open the link in the same page or new page.
Great works fine .. thank u very muchPorutchik wrote:Well. I have made ADD-ON for this purpose. You can find at folder contrib.eman80 wrote:if we want to open the link in the same page or new page.
Code: Select all
#
# ------ [OPEN] ------------
#
includes/acp/acp_similar_topics.php
#
# ------ [FIND] ------------
#
$user->add_lang($lang_path);
#
# ------ [REPLACE WITH] ------------
#
$user->add_lang($lang_info_path);
Code: Select all
#
# ------ [OPEN] ------------
#
includes/similar_topics.php
#
# ------ [FIND] ------------
#
if (empty($phpbb_seo->set_user_url($similar['username'], $similar['user_id'])))
{
$phpbb_seo->set_user_url($similar['username'], $similar['user_id']);
}
if (empty($phpbb_seo->set_user_url($similar['topic_last_poster_name'], $similar['topic_last_poster_id'])))
{
$phpbb_seo->set_user_url($similar['topic_last_poster_name'], $similar['topic_last_poster_id']);
}
#
# ------ [REPLACE WITH] ------------
#
$phpbb_seo->set_user_url($similar['username'], $similar['user_id']);
$phpbb_seo->set_user_url($similar['topic_last_poster_name'], $similar['topic_last_poster_id']);
thanks.Porutchik wrote:Well. I updated this MOD.u can set the link is open in new page?
Copy: root/includes/acp/info/acp_similar_topics.php To: includes/acp/info/acp_similar_topics.php
Copy: root/includes/similar_topics.php To: includes/similar_topics.php
Copy: root/styles/prosilver/template/similar_viewtopic.html To: styles/prosilver/template/similar_viewtopic.html
Copy: templates/root/styles/subsilver2/template/similar_viewtopic.html To: styles/subsilver2/template/similar_viewtopic.html
See first post for download link.