trying to add the search feature to this simple page just to learn how (for now)
http://www.bigisland...m/bil/test2.php
I read the documentation and tried my best but I'm not seeing the search box pop up at all???
I feel like I was missing something in the code, I had to remove the "s and put ' instead cause I was getting errors if not.
any advise
Need help adding the search feature to my gallery
Started by sorion 808, Jan 03 2012 09:45 PM
7 replies to this topic
#1
Posted 03 January 2012 - 09:45 PM
#2
Posted 03 January 2012 - 10:09 PM
Aloha,
I'll be happy to help you set up your search feature. I'm assuming that you read the documentation at http://tubepress.com...g..._searching. I can provide guidance on either but I'll need to know which setup you're after. Thanks!
I'll be happy to help you set up your search feature. I'm assuming that you read the documentation at http://tubepress.com...g..._searching. I can provide guidance on either but I'll need to know which setup you're after. Thanks!
#3
Posted 03 January 2012 - 10:28 PM
thanks for reply Eric
any chance an example of each to get my head around it?
any chance an example of each to get my head around it?
#4
Posted 03 January 2012 - 11:09 PM
Here is a live example of Ajax search. I don't have a live example of the regular search, but it works the same way except that there's a whole page refresh when the user clicks "Search", and that you have to use two shortcodes on your page (one for the search input and one for the search output) as opposed to just one with Ajax search.
#5
Posted 04 January 2012 - 01:56 AM
Ajax is sounding good to me.
Was hoping I could put a search box to the right of the page buttons (of my already existing normal gallery) 1,2,3 next buttons etc...
then when the users type in a search the results would take over the normal gallery.
Was hoping I could put a search box to the right of the page buttons (of my already existing normal gallery) 1,2,3 next buttons etc...
then when the users type in a search the results would take over the normal gallery.
#6
Posted 04 January 2012 - 09:32 PM
OK, great - this is fairly straightforward.
To display the search input, you'll want to use the following shortcode:
Does that make sense or did I manage to make things more confusing?
To display the search input, you'll want to use the following shortcode:
[tubepress output="ajaxSearchInput" searchResultsDomId="#somediv" searchProvider="youtube"]So if you're using TubePress in a standalone PHP environment (which I believe you are?), your code will look something like this:
<?php print TubePressPro::getHtmlForShortcode(output="ajaxSearchInput" searchResultsDomId="#somediv" searchProvider="youtube"); ?>In this example "#somediv" is a jQuery selector that identifies the DOM element where you want the search results to be displayed. In your case, you'll want to set this to the div that holds your main gallery.
Does that make sense or did I manage to make things more confusing?
#7
Posted 11 January 2012 - 01:26 PM
thanks I'll give her a go
ps did you get my email?
ps did you get my email?
#8
Posted 21 January 2012 - 02:48 PM
Thanks for the guide, I followed it and worked partially like a charm.
I do how ever have a few issues.
1) Our youtube video tags are in russian language and when i try to enter a russian query in the search box the search button does nothing.
2) when i enter a random tag, (.i.e test, iphone) or press submit without anything inside the search box. I get videos from all over youtube not necessarily the videos to my playlist.
2) Right now that search box is at the top, of the page what would i need to do in order to place it under the main video player but above the video thumbnails. Any advice?
Any help would be greatly appreciated.
I do how ever have a few issues.
1) Our youtube video tags are in russian language and when i try to enter a russian query in the search box the search button does nothing.
2) when i enter a random tag, (.i.e test, iphone) or press submit without anything inside the search box. I get videos from all over youtube not necessarily the videos to my playlist.
2) Right now that search box is at the top, of the page what would i need to do in order to place it under the main video player but above the video thumbnails. Any advice?
Any help would be greatly appreciated.