[ Video Sharing CMS v4 ] Search results

Started by max18121980,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

max18121980Topic starter

How to realize that the search results gave only those materials that are on the site.

Now he produces results in Google, that is something that is not on my site.
  •  

PHPVibe A.

Hi,

this are fast type suggestions, not search results, and they come from Youtube.

To remove them:

file: /tpl/main/js/phpvibe_app.js

remove:

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


To add your own search results, for now this is not in PHPVibe, but you can use an jquery plugin, depends on its documentation.

oryhutch

I removed this line of code, the suggestions did go away. But it made the side tab permanently open and messed up the homepage. Any ideas why this happened?
  •  

Similar topics (7)