Jump to content


These Forums Are Now Read-Only


For TubePress support, please post a question here or open a support ticket and we will be glad to assist.


Photo

Tubepress Search No Longer Working

wordpress youtube

Best Answer dj zero, 16 September 2014 - 01:26 PM

Yes, this worked. I can't believe that is all that it was. Thanks Eric & Brandon!

Go to the full post


  • Please log in to reply
8 replies to this topic

#1 dj zero

dj zero

    Member

  • Members
  • PipPip
  • 15 posts

Posted 04 August 2014 - 10:59 AM

Tubepress youtube search is no longer showing up on my client's site. It was working for at least 2 years and I tried dumping the cache last week and now no more search field. So I went in and upgraded the plugin to the latest version, but that didn't fix the situation.

 

Here is the shortcode I am using: [tubepress output="searchInput"][tubepress output="searchResults" searchProvider="youtube" mode="user" userValue="smallfactorynj" searchResultsOnly="false" searchResultsRestrictedToUser="smallfactorynj"]

 

website: http://mysmallfactor...ry-kids/movies/

 

Any help is massively appreciated!

 

 



#2 brandon

brandon

    Advanced Member

  • TubePress Staff
  • 1989 posts

Posted 04 August 2014 - 06:38 PM

Hi DJ Zero,

 

As a test/verification, please disable all plugins and see if TubePress search functions as expected.  If so, slowly turn on one plugin at a time (testing TubePress after enabling each one) until it stops working.

 

Let us know the results.

Thanks!


Want a faster, more personalized support experience? Open a ticket with us! We will be gradually phasing out forum-based support in favor of a proper ticketing system. Please help us help you!


#3 dj zero

dj zero

    Member

  • Members
  • PipPip
  • 15 posts

Posted 10 August 2014 - 10:19 PM

Hi Brandon,

 

Thanks for the reply. No luck on the search function working. It is very weird that the search worked for so long and then it stop working after I tried to clear the cache. I have debugging enabled.



#4 brandon

brandon

    Advanced Member

  • TubePress Staff
  • 1989 posts

Posted 11 August 2014 - 08:42 PM

Hi djzero,

 

In looking at the source code of your website, I'm not seeing where the search bar is actually coded into the page.  Have you verified that it is still there?

 

Thanks!


Want a faster, more personalized support experience? Open a ticket with us! We will be gradually phasing out forum-based support in favor of a proper ticketing system. Please help us help you!


#5 dj zero

dj zero

    Member

  • Members
  • PipPip
  • 15 posts

Posted 11 September 2014 - 01:29 PM

Hi Brandon,

 

The search bar isn't in the source code, but I don't understand why it isn't there. Shouldn't this shortcode output a search bar?
[tubepress output="searchInput"][tubepress output="searchResults" searchProvider="youtube" mode="user" userValue="smallfactorynj" searchResultsOnly="false" searchResultsRestrictedToUser="smallfactorynj"]



#6 brandon

brandon

    Advanced Member

  • TubePress Staff
  • 1989 posts

Posted 11 September 2014 - 07:27 PM

DJ Zero,

 

Try the following:

<form accept-charset="utf-8">
<fieldset class="tubepress_search">
<input id="tubepress_search_777" name="tubepress_search_777" class="tubepress_text_input" type="text">
<button class="tubepress_button" title="Submit Search">Search</button>
</fieldset>
</form>
[tubepress output="searchOutput" searchProvider="youtube" mode="user" userValue="smallfactorynj" searchResultsOnly="false" searchResultsRestrictedToUser="smallfactorynj" searchResultsDomID="#resultsDiv" galleryID="777"]
<div id="resultsDiv">

Thanks!


Want a faster, more personalized support experience? Open a ticket with us! We will be gradually phasing out forum-based support in favor of a proper ticketing system. Please help us help you!


#7 dj zero

dj zero

    Member

  • Members
  • PipPip
  • 15 posts

Posted 12 September 2014 - 12:11 PM

Hi Brandon,

 

I do get the search bar when I add that code in. However, when I search, it doesn't pull in the search results, it only repopulates the page with the same videos. It is passing the search string in the url though. I pulled the code out of the page because I didn't want people to get confused when the search didn't work. I did have a pro account before, but we don't have pro right now. If I upgrade the license will the search work? Thanks for everything!



#8 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 16 September 2014 - 11:41 AM

I think the solution here might be very simple: split the two shortcodes onto two lines. i.e. change

[tubepress output="searchInput"][tubepress output="searchResults" searchProvider="youtube" mode="user" userValue="smallfactorynj" searchResultsOnly="false" searchResultsRestrictedToUser="smallfactorynj"] 

to

[tubepress output="searchInput"]
[tubepress output="searchResults" searchProvider="youtube" mode="user" userValue="smallfactorynj" searchResultsOnly="false" searchResultsRestrictedToUser="smallfactorynj"] 

This won't affect your HTML at all, and TubePress doesn't really like it when multiple shortcodes are on a single line. I think this will solve the issue for you. Give it a try? Thanks!



#9 dj zero

dj zero

    Member

  • Members
  • PipPip
  • 15 posts

Posted 16 September 2014 - 01:26 PM   Best Answer

Yes, this worked. I can't believe that is all that it was. Thanks Eric & Brandon!