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

Get my search page to only search videos on my channel?


  • Please log in to reply
8 replies to this topic

#1 Jason Bryant

Jason Bryant

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 24 May 2011 - 06:40 PM

I'm new to TP and couldn't find any real answer within the forum.

I'm adding a search page to search our videos, yet can't find the right shortcode. I don't want it to pull anything that's outside of our channel.

TP Pro User.

#2 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 27 May 2011 - 02:23 PM

Hi,

I'm assuming that you're using TubePress's interactive search feature? If so, then this is pretty easy to do.

Here's how to do it using "regular" (non-ajax) searching. For the search input box, you'll use

[tubepress output="searchInput"]
and for the search results you'll use something like:

[tubepress output="searchResults" searchProvider="youtube" searchResultsOnly="true" searchResultsRestrictedToUser="youryoutubeusername"]
Assuming you want to use ajax-enabled interactice search, you'll use something like this instead:

[tubepress output="ajaxSearchInput" searchResultsDomId="#somediv" searchProvider="youtube" searchResultsRestrictedToUser="youryoutubeusername"]

So as you can see the key in both situations is to add the "searchResultsRestrictedToUser" shortcode option. Give that a whirl and let us know how it works for you. Thanks!

#3 Jason Bryant

Jason Bryant

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 29 May 2011 - 04:57 PM

That seems to be working, but since my default is for displaying 10 thumbnails, that's all that shows up. When I click to the next page, only one video stays and the rest of the search is blank.

www.themat.tv
Search "Spenser Mango"
10 results returned.

A search of "usawrestling2008" will show 38 videos.

Is there a way to force an expanded thumbnail display on the search page without changing the rest of the pages I've used the tubepress shortcode with?

The search will be the most important part of the page.

We love the product and it's enabled us to really get ready to launch our video portal. Tube Press Pro is awesome, but just need some customization help. I'll continue to search the forum.

#4 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 31 May 2011 - 11:23 PM

I think a few things are happening here - one of which appears to be a bug in TubePress that we'll have to workaround.

First, if you'd like to show more than just 10 videos, you can add "resultsPerPage" to your shortcode like this:

[tubepress output="searchResults" searchProvider="youtube" searchResultsOnly="true" searchResultsRestrictedToUser="usawrestling2008" resultsPerPage="50"]
Note that 50 videos is the maximum dictated by YouTube. You can also change this globally at WP Admin > Settings > TubePress > Appearance.

The other issue (the blank page after clicking pagination) appears to be a bug. I should be able to issue a fix for version 2.2.5 (for which a release candidate is available for the free version), but for the meantime you can simply disable ajax pagination to get your site working properly.

Let me know how the resultsPerPage works out, and in the meantime I'll work on a fix for the pagination bug.

#5 Jason Bryant

Jason Bryant

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 03 June 2011 - 10:21 AM

Working better, I'm sure that will quell the complains we're getting from the new page and the "search" being funky.

What I am noticing with the 50 output is it pulls things after the initial 38 or so that are unrelate to the video. It's like it pulls 12 more videos just to pull them.

#6 Cam Merton

Cam Merton

    Member

  • Members
  • PipPip
  • 21 posts

Posted 05 June 2011 - 10:06 PM

Is it also possible to limit search results using "searchResultsRestrictedToUser" to more than one Youtube channel? We have one main channel and one other side project channel that we cherry pick videos from via a playlist.


Thanks for any help,

Cam

#7 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 06 June 2011 - 12:54 AM

Is it also possible to limit search results using "searchResultsRestrictedToUser" to more than one Youtube channel?


At the moment, no. This is only because both YouTube and Vimeo offer the feature for a single user. I think in theory TubePress could, under the hood, search multiple users. But the functionality isn't there at the moment. Feature requests are always welcome!

#8 paulus macaulus

paulus macaulus

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 25 August 2011 - 01:22 AM

wondering what im doing wrong and would love any help on the matter.

Cant get the instant search to actually work using the shortcodes trying to assess only my youtube user, the shortcode i have is

[tubepress output="searchInput"]

[tubepress output="searchResults" searchProvider="youtube" searchResultsOnly="true" searchResultsRestrictedToUser="thingsyouhavetose"]

as im aware, my username is correct, and the search works if i remove searchResultsRestrictedToUser="thingsyouhavetose"

if i leave as above however, it displays

No matching videos

I am using 2.2.0 as every release from here on out doesnt work with the thumbnails not being clickable, as im aware this is a bug to do with Wordpress and the plugin ?, figure its not me as it works 2.2.0 and below.

Is this functionality not possible with the version of the plugin to only search my user on youtube ?

#9 paulus macaulus

paulus macaulus

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 25 August 2011 - 07:41 AM

am i right in saying that the search by user will only return uploaded videos and not playlists ?

Can it return results from playlists within a channel ?

If not does the PRO version allow for search of playlists within a youtube user and not just uploaded vids ?