Page 2 of 10

Re: [BETA] Advanced Similar Topics

Posted: Wed Nov 19, 2008 5:19 pm
by darkonia
runs perfect and absolutly without any probs, thx for this fine addon :D

Re: [BETA] Advanced Similar Topics

Posted: Wed Nov 19, 2008 9:18 pm
by ttuu
Porutchik wrote:ttuu.. Try to it:

Code: Select all

ALTER TABLE `phpbb_topics` ENGINE = MYISAM;
ALTER TABLE `phpbb_topics` ADD FULLTEXT (`topic_title`);
now its work good. thanks.
and now 1 new problam.

On "posting" page when he shows me the "Similar Topics" if I click on one of the Results I'm getting error "The page cannot be found".
This is due to a broken link.
Correct Web address is:
http://www.enativ.com/forum/viewtopic.php?f=3&t=507
but the address create mod is:
http://www.enativ.com/viewtopic.php?f=3&t=507

u can fix this?

Re: [BETA] Advanced Similar Topics

Posted: Thu Nov 20, 2008 3:06 am
by eman80
Porutchik 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.
Thank you very much for this fantaaastic mod. it works perfectly just exactly as I want :D

Thank u again

Regards
Eman

Re: [BETA] Advanced Similar Topics

Posted: Thu Nov 20, 2008 5:52 am
by shahinavthal
Works perfectly but a request please..can you please mention the version number on your topic so that we can know if we have an update?? :oops:

Re: [BETA] Advanced Similar Topics

Posted: Thu Nov 20, 2008 10:03 am
by Porutchik
ttuu wrote:u can fix this?
Try to it:

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']),
Probably, I'll include it in the following version.

Re: [BETA] Advanced Similar Topics 1.0.3

Posted: Thu Nov 20, 2008 11:59 am
by ttuu
o.k. god work.
u can set the link is open in new page?

Re: [BETA] Advanced Similar Topics 1.0.4

Posted: Thu Nov 20, 2008 2:19 pm
by Porutchik
u can set the link is open in new page?
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.

Re: [BETA] Advanced Similar Topics 1.0.4

Posted: Thu Nov 20, 2008 11:48 pm
by eman80
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.
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.

Thanks again for this great mod.

Regards
Eman.

Re: [BETA] Advanced Similar Topics 1.0.4

Posted: Fri Nov 21, 2008 2:37 pm
by Porutchik
eman80 wrote:if we want to open the link in the same page or new page.
Well. I have made ADD-ON for this purpose. You can find at folder contrib.

Re: [BETA] Advanced Similar Topics 1.0.4

Posted: Sat Nov 22, 2008 1:20 am
by eman80
Porutchik wrote:
eman80 wrote:if we want to open the link in the same page or new page.
Well. I have made ADD-ON for this purpose. You can find at folder contrib.
Great works fine .. thank u very much

Regards :)
Eman

Re: [BETA] Advanced Similar Topics 1.0.4

Posted: Wed Nov 26, 2008 3:13 pm
by Porutchik
Found a bug
Fix:

Code: Select all

#
# ------ [OPEN] ------------
#
includes/acp/acp_similar_topics.php

#
# ------ [FIND] ------------
#
		$user->add_lang($lang_path);

#
# ------ [REPLACE WITH] ------------
#
		$user->add_lang($lang_info_path);

If you have add-on for phpBB3 SEO mod Rewrite by dcz

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']); 
Mod is updated.

Re: [BETA] Advanced Similar Topics 1.0.4

Posted: Wed Nov 26, 2008 8:22 pm
by ttuu
Porutchik wrote:
u can set the link is open in new page?
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.
thanks.
its work perfect.

Re: [RC] Advanced Similar Topics 1.0.4

Posted: Thu Dec 11, 2008 12:37 am
by Akbaio
What's the effect of "Minimum relevance" (in ACP)? I don't understand.

Re: [RC] Advanced Similar Topics 1.0.4

Posted: Tue Dec 30, 2008 12:10 pm
by zamri
Any workaround for MySQL 4.0.x ?

Re: [RC] Advanced Similar Topics 1.0.4

Posted: Wed Dec 31, 2008 7:18 am
by Porutchik
I tested on MySQL 4.1.25.