• Welcome to WooUSEFUL by PHPVIBE . Please log in.

[ Video Sharing CMS v4 ] search suggestion

Started by krejcis,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

krejcisTopic starter

Hi all,
I have a problem in goprotube.com with search bar.
Steps:
- start typing: "sexy"
- click to one of the suggested result

Problem:
Sorry but there are no results.

Can somebody tell me form here this suggestion comes from? How to fix it. thanks a lot

Jan
  •  

Marius

Hi,
in Ultima the suggestions are 'typing suggestions' and they are pulled from Youtube's api.
If this helped, consider buying me a coffee.
20 years coding, tweaking, building in PHP. Still creating!
  •  

krejcisTopic starter

Oh...O.k. now I am understand.. How to change it to normal search suggestion from my database?
  •  

Bob.Weston

Quote from: @Mario on
Hi,
in Ultima the suggestions are 'typing suggestions' and they are pulled from Youtube's api.

Wow, I thought the search was based on the video tags on each video :(
  •  

krejcisTopic starter

based on the tags shold be also O.K maybe... please Mario send some solution for this, becose suggestion based on Youtube is for me nonsence.
  •  

Marius

I don't have a solution for this at the moment, is pretty hard to work with the PHPVibe tags in queries since it saves them as 'tag1, tag2, tag2', this is good for performance, but limits it when it comes to this sort of queries, will try to change the tag system in this upgrade.
If this helped, consider buying me a coffee.
20 years coding, tweaking, building in PHP. Still creating!
  •  

krejcisTopic starter

It is possible to make quick change into suggestion for my database name suggestion only?
  •  

Marius

You can use any autosuggest for that and query the title of the video in vibe_videos.
If this helped, consider buying me a coffee.
20 years coding, tweaking, building in PHP. Still creating!
  •  

krejcisTopic starter

Pleasee Mario give me shortly steps how to do it. In which file is what necessary to modify? when I want to autosuggest by title.
Thanks
Jan
  •  

Marius

Jan, you are asking tips for something I didn't do yet (never built an auto-suggest, I saw several but haven't tested any).
Depending on the integration, either on tpl.globals.php or and js file.
If this helped, consider buying me a coffee.
20 years coding, tweaking, building in PHP. Still creating!
  •  

krejcisTopic starter

Ok Mario, so how it is possible to deactivate the autosuggestion from youtube and have only search field active?
  •  

Marius

Remove this

 
$('#suggest-videos').keyup(function(){
   jQTubeUtil.suggest($(this).val(), function(response){
      var html = "<ul>";
      for(s in response.suggestions){
         var sug = response.suggestions;
         html += "<li><a href='" + site_url + "show/" + sug.replace(/\s/g,'-') + "/'>" + sug + " [/url]</li>";
      }
      html += "</ul>";
      $("#suggest-results").html(html).append("<a class='rsg' href='javascript:void(0)'><i class='icon-minus-sign'>[/url]").show();
      $(".rsg").click(function(){        $("#suggest-results").removeAttr( "style" ).hide();   });
   });
});


from
tpl/UltimaTube/js/phpvibe_app.js
If this helped, consider buying me a coffee.
20 years coding, tweaking, building in PHP. Still creating!
  •  

krejcisTopic starter

  •  

mihai

#13
vibe.style.css  line 1226 change display:none; to display:none!important;
  •  

ericsmith

Hi how do I configure the homepage? It is not letting me.
  •  

mihai

How do i configure my homepage?
-----------------------------------------
Be more specific please!
  •  

Marius

If this helped, consider buying me a coffee.
20 years coding, tweaking, building in PHP. Still creating!
  •  

Similar topics (7)