SimplePortal

Support => English Support => Topic started by: cjack on July 29, 2018, 11:17:44 PM

Title: Created page to be included in SMF search
Post by: cjack on July 29, 2018, 11:17:44 PM
Is there a way to have any pages I create with Simple Portal to be included in the default SMF search box?

Thanks in advance :)
Title: Re: Created page to be included in SMF search
Post by: emanuele on July 30, 2018, 12:08:20 PM
I don't think there is one, bit don't quote me on that because search is one of those things I don't really understand (even though I almost completely overhauled xD=).
Title: Re: Created page to be included in SMF search
Post by: Mick. on August 03, 2018, 12:21:30 AM
Nope, i dont think SP is included in SMF searches.
Title: Re: Created page to be included in SMF search
Post by: Chen Zhen on August 04, 2018, 12:00:40 PM
I made a small plug-in to do what you requested.
I did not spend a lot of time on it and there are currently limitations.

It will add a toggle link to your search title bar for pages or posts/topics.
When a user does a search they can toggle pages which will search simple portal pages for the words.
It will only work for HTML and BBC pages and ignores other types.

It will take a lot more work to intermix it with post/topic results and have the page selection work properly.
I opted for the toggle because this made it a lot easier for me to develop for now.
Also I opted only BBC & HTML pages because I would have to work on a complicated regex to get it to work with echoed text on PHP pages.
It does heed permission group settings for the requested pages.

Try it out & let me know if it functions and displays properly.

Download SP-Pages Search v1.0 (https://web-develop.ca/index.php?action=downloads;area=stable_simple_portal_plugins;file=63)
Title: Re: Created page to be included in SMF search
Post by: ♦ Ninja ZX-10RR ♦ on August 05, 2018, 01:37:10 AM
I made a small plug-in to do what you requested.
I did not spend a lot of time on it and there are currently limitations.

It will add a toggle link to your search title bar for pages or posts/topics.
When a user does a search they can toggle pages which will search simple portal pages for the words.
It will only work for HTML and BBC pages and ignores other types.

It will take a lot more work to intermix it with post/topic results and have the page selection work properly.
I opted for the toggle because this made it a lot easier for me to develop for now.
Also I opted only BBC & HTML pages because I would have to work on a complicated regex to get it to work with echoed text on PHP pages.
It does heed permission group settings for the requested pages.

Try it out & let me know if it functions and displays properly.

Download SP-Pages Search v1.0 (https://web-develop.ca/index.php?action=downloads;area=stable_simple_portal_plugins;file=63)
Nice! Please make a thread in here as well https://simpleportal.net/index.php?board=55.0 :)
SimplePortal 2.3.8 © 2008-2024, SimplePortal