This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Integrating ASP results with BuddyBoss Search Component's Results Template

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Integrating ASP results with BuddyBoss Search Component's Results Template Reply To: Integrating ASP results with BuddyBoss Search Component's Results Template

#35100
nickchomey18nickchomey18
Participant

Actually, I foresee various issues with this.

If I initiate the new ASP_Query from within the BB code, that would require me to leave the search form as the BB search form, rather than change it to an ASP search form with a shortcode. This means that I would lose the ajax live search functionality, asp settings etc…

So, I was hoping to replace the BB search form with an ASP shortcode, which would allow me to leverage all of ASP’s front-end functionality, and then pass the results to the BB search component, stripping out BB’s query and leaving the rest of the HTML generation intact.

At best, it seems like if I use the code you’ve provided while also using an ASP search form, ASP will generate two (or perhaps even 3) queries, wouldn’t it? One for the ajax live search, perhaps another one when pressing enter/clicking the search button, and certainly one more when a new ASP_Query is initiated in the bb do_search function (presumably without the use of any front-end filter settings).

Am I wrong about any of this? It seems like it would be ideal if the existing ASP search could use an ASP action or filter to pass its arguments/results to one of the 3 functions I attached in the previous comment. Or, perhaps the results are stored in one of the PHP Sueprglobal variables (e.g. $_POST), from where they can be grabbed by BB’s do_action?

Perhaps another way to look at this is more generally – how does ASP typically pass results to our custom search.php html template file? Shouldn’t I be able to use that mechanism?

  • This reply was modified 4 years, 7 months ago by nickchomey18nickchomey18.