Adding links into search results

Discussion forum for MOD Writers regarding MOD Development.
Locked
User avatar
AntiThesis
Registered User
Posts: 26
Joined: Fri Jan 04, 2008 6:34 am

Adding links into search results

Post by AntiThesis »

Hiya all you clever people :)

Hoping you'll be able to assist me - I'm wanting to essentially "inject" some results into my phpbb search results.
Basically, I have two forums running on the same server and it'd be great to search those threads within the usual phpBB search function on my main forum,

I can get the list of topics from the old board no problem using SQL but how can I effectively mix it with my current results?

So for example, if I search for "cat" on the main forum, I would like it to display:

First result: Cats are cool (Main forum)
Second result: Cats suck! (second forum)

Obviously it would be great to still have it sorted by date or relevance but that's not really the end of the world.
Any hints would be swell! :)
Happiness is a state of mind.
Dementia Community
PhpBB > VB
User avatar
Dog Cow
Registered User
Posts: 2498
Joined: Fri Jan 28, 2005 12:14 am
Contact:

Re: Adding links into search results

Post by Dog Cow »

If you're using the phpBB native search index, then one solution would be to add a column to the word matches table to indicate in which forum the word appears.
Last edited by Dog Cow on Sat Sep 04, 2010 5:00 pm, edited 1 time in total.
Moof!
Mac GUI Vault: Retro Apple II & Macintosh computing archive.
Inside Allerton bookMac GUIMac 512K Blog
User avatar
AntiThesis
Registered User
Posts: 26
Joined: Fri Jan 04, 2008 6:34 am

Re: Adding links into search results

Post by AntiThesis »

Dog Cow wrote:If you're using the phpBB native search index, then you one solution would be to add a column to the word matches table to indicate in which forum the word appears.
You what? :D

Sorry - you'll have to explain that a little more :D
Happiness is a state of mind.
Dementia Community
PhpBB > VB
User avatar
Dog Cow
Registered User
Posts: 2498
Joined: Fri Jan 28, 2005 12:14 am
Contact:

Re: Adding links into search results

Post by Dog Cow »

I made a typing mistake.
Moof!
Mac GUI Vault: Retro Apple II & Macintosh computing archive.
Inside Allerton bookMac GUIMac 512K Blog
Locked

Return to “[3.0.x] MOD Writers Discussion”