[RC] Similar Topics 1.0.2

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Get Involved
Locked
User avatar
tas2580
Registered User
Posts: 295
Joined: Wed May 30, 2007 1:56 am
Location: Stuttgart, Germany
Contact:

[RC] Similar Topics 1.0.2

Post by tas2580 »

Mod Name: Similar Topics
Mod Description: Shows a list with similar topics at the end of a topic.
Mod Version: [RC] 1.0.2
phpBB Version: phpBB 3.0.x
Format: ModX

This Mod needs mysql > 4.0.1 to work.

Mod Download: Download
Last edited by tas2580 on Sat Oct 03, 2015 12:45 pm, edited 13 times in total.
User avatar
IPB_Refugee
Registered User
Posts: 1290
Joined: Fri Jul 07, 2006 2:25 pm
Location: Austria
Name: Wolfgang Weber

Re: [BETA] Similar topics

Post by IPB_Refugee »

Great, Tobi, thanks! :)

How many additional queries does your MOD "cost" on the viewtopic pages?

Regards
Wolfgang
User avatar
tas2580
Registered User
Posts: 295
Joined: Wed May 30, 2007 1:56 am
Location: Stuttgart, Germany
Contact:

Re: [BETA] Similar topics

Post by tas2580 »

Only one :)
User avatar
Mav
Former Team Member
Posts: 2261
Joined: Wed May 15, 2002 9:19 am
Location: England
Contact:

Re: [BETA] Similar topics

Post by Mav »

How do you define a 'similar' topic? are you comparing topic titles? or post content - if so, only the first post or all posts in the topic?
User avatar
ylcncn
Registered User
Posts: 32
Joined: Tue May 29, 2007 7:59 am

Re: [BETA] Similar topics

Post by ylcncn »

your mods rock !
User avatar
tas2580
Registered User
Posts: 295
Joined: Wed May 30, 2007 1:56 am
Location: Stuttgart, Germany
Contact:

Re: [BETA] Similar topics

Post by tas2580 »

How do you define a 'similar' topic? are you comparing topic titles?
Yes I do. The mod search Topics with a same word used in topic title.
Kharon
Registered User
Posts: 235
Joined: Thu Oct 26, 2006 5:27 pm

Re: [BETA] Similar topics

Post by Kharon »

exclude forums ? exclude forums ID ?
User avatar
IPB_Refugee
Registered User
Posts: 1290
Joined: Fri Jul 07, 2006 2:25 pm
Location: Austria
Name: Wolfgang Weber

Re: [BETA] Similar topics

Post by IPB_Refugee »

Kharon wrote:exclude forums ? exclude forums ID ?
Or simply using the auth system of Olympus. Then people see just similar topics which they are allowed to read.

Don´t know if it´s integrated yet.

@Tobi: Just one query? Cool !

Regards
Wolfgang
User avatar
tas2580
Registered User
Posts: 295
Joined: Wed May 30, 2007 1:56 am
Location: Stuttgart, Germany
Contact:

Re: [BETA] Similar topics

Post by tas2580 »

Or simply using the auth system of Olympus. Then people see just similar topics which they are allowed to read.
Cool idea I have done it so, and updated the mod to 0.1.1

If you whant to exclude additional forums
search

Code: Select all

AND f.forum_id = t.forum_id
after add

Code: Select all

AND t.forum_id NOT IN (1,2,3,4,5)
(1,2,3,4,5 are the excluded forum IDs)
User avatar
ylcncn
Registered User
Posts: 32
Joined: Tue May 29, 2007 7:59 am

Re: [BETA] Similar topics

Post by ylcncn »

i think there is a problem with

Code: Select all

     '      
this? ha. i get sql errors which contains

Code: Select all

      '     
User avatar
tas2580
Registered User
Posts: 295
Joined: Wed May 30, 2007 1:56 am
Location: Stuttgart, Germany
Contact:

Re: [BETA] Similar topics

Post by tas2580 »

Sure you have correctly installed?
User avatar
ylcncn
Registered User
Posts: 32
Joined: Tue May 29, 2007 7:59 am

Re: [BETA] Similar topics

Post by ylcncn »

updated
Last edited by ylcncn on Sun Dec 19, 2010 11:03 am, edited 1 time in total.
User avatar
tas2580
Registered User
Posts: 295
Joined: Wed May 30, 2007 1:56 am
Location: Stuttgart, Germany
Contact:

Re: [BETA] Similar topics

Post by tas2580 »

I have now tryed the code from the mod in 3 forums with no Problems.
I don't think there is a ' to mutch the error seems more that your MySQL don't know IN BOOLEAN MODE witch Version do you use?
User avatar
ylcncn
Registered User
Posts: 32
Joined: Tue May 29, 2007 7:59 am

Re: [BETA] Similar topics

Post by ylcncn »

mysql version is ==>> 5.0.18
User avatar
Trinity
Registered User
Posts: 474
Joined: Wed Dec 11, 2002 10:06 pm
Location: Hollywood, CA

Re: [BETA] Similar topics

Post by Trinity »

I get this error:

Code: Select all

Fatal error: Call to undefined function: title_to_url() in /public_html/phpBB3/viewtopic.php on line 1550
That line is this:

Code: Select all

		$similar_forum_url = append_sid("{$phpbb_root_path}" . title_to_url($similar['forum_name']). '-f' . $similar['forum_id'].'/');
Shop smart, shop S-mart.
Locked

Return to “[3.0.x] MODs in Development”