Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 4    Views: 54

peterj
Apple Fan
Profile
Posts: 113
Reg: Jun 19, 2011
location unknow...
6,630
02/20/13 07:08 AM (12 years ago)

Search Plug-in: hide launch native app screens from search results?

Hello, I'm integrating the search plug-in into my app. I'm very pleased with the ability to quickly search through the many PDFs in my app. I also like that I can "hide" many of the screens from the search results. I use the "launch native app" plug-in quite a lot in my app too - to show YouTube videos. I'd like to hide these videos from the search results, but there doesn't seem to be an option to in the "launch native app" screen properties in the BT control panel. Is there a way to hide "launch native app" screens from the search results?
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
11/10/13 09:56 PM (11 years ago)
There is! Modify your launch native app plugin index.php file and include the hide from search code your other plugins have, that should do it. David https://buzztouchmods.com/market
 
peterj
Apple Fan
Profile
Posts: 113
Reg: Jun 19, 2011
location unknow...
6,630
like
11/11/13 08:38 AM (11 years ago)
Thank you sir! I didn't actually fully understand your comment - I can't find an index.php file, or even a launch native app plug-in folder in my iOS project...but your comment did cause me to dig around in some files, and in the BTM_search.m file, around line 200, there are a couple of "if" statements that are "if this is a splash screen, ignore, if this is a search menu, ignore", etc. I tried creating one of those for the launchNativeApp screen type. It worked!
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
11/11/13 08:54 AM (11 years ago)
Bahaha I would have never thought of that little hack. Great job finding it and finding your solution in a creative way... so awesome. I'll have to make sure to elaborate next time, I sometimes forget to do that! David https://buzztouchmods.com/market
 
JimmySaver
Aspiring developer
Profile
Posts: 187
Reg: Apr 09, 2012
location unknow...
5,870
like
08/14/14 08:53 AM (10 years ago)
Still awesome - saved a world of work editing the JSON for each screen. Cheers, guys.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.