Reply To: Google Books API Function triggers unwanted topic submission
My apologies for not being accurate; you are correct, it is the exact error you mention: “ERROR: Your topic needs a title.”
I could be wrong, but I believe it is my function that is causing this to happen. Not being very good at php, my thought is that the submit input for my google book search function is triggering a new topic submission somehow.
I am calling the google book search function within form-topic.php (book_search_google ()). You are correct when you mention a plugin might be creating this. My google book search function is indeed a plugin I created.
Perhaps I need an “if” statement in form_topic.php, something that tells bbp_new_topic to wait for book_search_google to return a result? Can you point me in the right direction on how to write such an “if” statement?
Thanks,
Jerry