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

How Can I Restrict The Search To Only My Youtube Channel?

wordpress youtube

Best Answer 1TARGET, 14 August 2014 - 09:25 AM

Great, awsome. It's working!

Thanks for all the support, it's greatly appreciated.

 

Thank you.

Go to the full post


  • Please log in to reply
10 replies to this topic

#1 1TARGET

1TARGET

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 06 August 2014 - 05:50 PM

Do I need the activate the Pro-Account?

I noticed on the Ajax Search sample it shows results for everything on YouTube, I need a Search Box that only searches my Youtube channel and restrict other videos from showing on the results.

 

http://tubepress.com...ive_search_ajax



#2 brandon

brandon

    Advanced Member

  • TubePress Staff
  • 1989 posts

Posted 06 August 2014 - 09:36 PM

Hello,

 

You would use the following shortcode: [tubepress searchResultsRestrictedToUser="3hough"]

 

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 1TARGET

1TARGET

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 07 August 2014 - 09:07 AM

I added the code "[tubepress searchResultsRestrictedToUser="3hough"]" to the page, and I see our video list from Youtube.

 

See my page below:

http://mlc.1-target.com/video/

 

I'm trying to add a Search Box, so the user can search for a keyword or the name of a video to be searched only from our Youtube channel... not all channels in Youtube.

 

How can I add a Search Box like this that will restrict searching only in my youtube channel?



#4 brandon

brandon

    Advanced Member

  • TubePress Staff
  • 1989 posts

Posted 07 August 2014 - 09:56 PM

Hello 1Target,

 

The RestricedToUser only works for users, not for channels.

 

Sorry for the confusion.

 

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 1TARGET

1TARGET

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 08 August 2014 - 11:50 AM

So can I restict the Search for content that only my User has posted? If so, this will work for us.

 

How do we restrict for User?



#6 brandon

brandon

    Advanced Member

  • TubePress Staff
  • 1989 posts

Posted 11 August 2014 - 08:40 PM

Hello 1Target,

 

You would use the following shortcode:

 

[tubepress searchResultsRestrictedToUser="YourUserNameHere"]

 

and then take a look here: http://tubepress.com..._search_youtube

 

To get an idea of how to complete the rest of the setup for your search.

 

If you wish to use the Ajax search feature, you will be required to purchase TubePress Pro.

 

 

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 1TARGET

1TARGET

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 12 August 2014 - 11:16 AM

I added the code, but it does the same thing as if I only have [tubepress], and it display the latest videos.

 

We are trying to do a Search by inserting a keyword, similar to Ajax.... But we are not sure if the Ajax Search feature will be able to only search for videos posted by our User.  We don't want to search for everything in YouTube, only what our users has posted.

 

Is this possible with the Ajax Search feature with TubePress Pro?



#8 brandon

brandon

    Advanced Member

  • TubePress Staff
  • 1989 posts

Posted 12 August 2014 - 09:29 PM

Hello 1Target,

 

Yes, keyword search restricted to a single user is possible with TubePress Pro.

 

Here is an example code from a working page in my demo/dev environment:

[tubepress output="ajaxSearchInput" searchResultsDomId="#resultsDiv" searchProvider="youtube" playerLocation="popup" galleryId="9999" searchResultsRestrictedToUser="3hough"]

<div id="resultsDiv">results go here</div>

Once you have Pro, you can simply copy/paste the above code, change the searchResultsRestrcitedToUser=value and you're all set.

 

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!


#9 1TARGET

1TARGET

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 13 August 2014 - 11:01 AM

I upgrade to TubePress Pro, and added the code above.

I still having trouble getting the Search Box working.

 

Here is a link for your preview: http://mlc.1-target.com/video/

 

 

Thanks!



#10 brandon

brandon

    Advanced Member

  • TubePress Staff
  • 1989 posts

Posted 14 August 2014 - 12:31 AM

Hi 1Target,

 

I just used the exact shortcode that you are using on your site (based on debug output) and it worked perfectly including the search function.

 

When reviewing your debug output I see the following message:

[2014-08-14 05:25:25] [WARNING] Memory Execution Context: Ignoring invalid value for "searchResultsDomId" (No option with name "searchResultsDomId".) 

However in my dev environment, it does not give this error.

 

Please uninstall, completely, TubePress from your site.  Then download the newest version available from the "Marketplace" above (make sure to download TubePress Pro) and then re-install on your website.

 

Let me know how that goes, please.


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!


#11 1TARGET

1TARGET

    Newbie

  • Members
  • Pip
  • 9 posts

Posted 14 August 2014 - 09:25 AM   Best Answer

Great, awsome. It's working!

Thanks for all the support, it's greatly appreciated.

 

Thank you.