Similar Topics

Modifications for phpBB3. Try the Mods here and share Your own Mods
There is no support here! Only Read Access!
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Similar Topics

Post by cisco007 »

I think this has already been answered a few posts above!
viewtopic.php?f=8&t=451&p=1855#p1680
heredia21
BBCoder IV
BBCoder IV
Posts: 179
Joined: 07 Apr 2010, 20:42
Contact:

Re: Similar Topics

Post by heredia21 »

I installed the support kit. Put ALTER TABLE `phpbb_topics` ADD FULLTEXT (`topic_title`); after i clicked on Run SQL query and I got an error msg.
#1 BlackBerry News site - BlackBerry Empire. Come visit us!
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Similar Topics

Post by cisco007 »

you mind telling us what that error read!?
heredia21
BBCoder IV
BBCoder IV
Posts: 179
Joined: 07 Apr 2010, 20:42
Contact:

Re: Similar Topics

Post by heredia21 »

where do we put this? if ($result = $db->sql_query_limit($sql, 5))
#1 BlackBerry News site - BlackBerry Empire. Come visit us!
heredia21
BBCoder IV
BBCoder IV
Posts: 179
Joined: 07 Apr 2010, 20:42
Contact:

Re: Similar Topics

Post by heredia21 »

This is what im inserting
inserting.png

This is what im getting
getting.png
Last edited by heredia21 on 10 Apr 2010, 17:37, edited 1 time in total.
#1 BlackBerry News site - BlackBerry Empire. Come visit us!
User avatar
Stitch
BBCoder II
BBCoder II
Posts: 28
Joined: 06 Mar 2010, 06:08

Re: Similar Topics

Post by Stitch »

Great mod and I have added it to my board but I have a problem...The mod lists topics that have been moved to the recycle bin forums and private forums. It also brings up topics from the welcome forums. I know there is something i can add to the query to only search for similar topics in certain areas but I have no idea how write such code. Does anyone here know?

Thanks!!
Image
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: Similar Topics

Post by Stoker »

Not exactly exclude, but you can define which forums should be included. (code taken from the original phpbb.com topic)
Find:

Code: Select all

AND t.topic_time > (UNIX_TIMESTAMP() - 60*60*24*365)
add after:

Code: Select all

AND f.forum_id IN (X, X, X, X)
This is off course not good if you have 100 forums :(
So you could remove the read rights from this bin forum.
Board rules! No PM support
heredia21
BBCoder IV
BBCoder IV
Posts: 179
Joined: 07 Apr 2010, 20:42
Contact:

Re: Similar Topics

Post by heredia21 »

heredia21 » 09 Apr 2010, 22:05 wrote:This is what im inserting
inserting.png

This is what im getting
getting.png
Any fix for this?
#1 BlackBerry News site - BlackBerry Empire. Come visit us!
User avatar
Stitch
BBCoder II
BBCoder II
Posts: 28
Joined: 06 Mar 2010, 06:08

Re: Similar Topics

Post by Stitch »

That works very well Stoker. Thanks!!!
Image
Stark
BBCoder II
BBCoder II
Posts: 18
Joined: 06 Mar 2010, 05:25

Re: Similar Topics

Post by Stark »

This mod is very nice, I have installed this on my board.

But Search is not working after doing this MOD

What ever I search it showing 0 results showing the following msg

Image

So can some one let me know the solution for this ? Please guys
Locked