Code

Discussion on LiveSearch - Searchengine for your Website

themac does not currently provide support for this item.

254 comments found.

hi, just purchased and it looks like everytime a search is done it recaches and this results in a server 500 error – what am I doing wrong?

hi,

have you any useful lines in your webserver’s error_log

have you used the lsManager Tool too?

thx
mac

Hi, I have fixed the initial issue, but have run in to another…basically there is a menu on my website (common, im sure!), the file(menu.php) is included on every page and the menu includes some of the most common search terms – as a for instance if you visit flipconnect.co.uk and search for “Avaya” you will see the issue, lots of pages returning the same result over and over. I have tried excluding the menu.php file with:

var $excl = array(”/includes/menu.php”);

and then clearing the cache and reindexing, but this has made no difference. Can you think of anythIng that would help?

Thanks

hi,

the exclude array is URL-path based – used to exclude output paths
livesearch is acting as client and the client won’t access menue.php itself
you have to differentiate the ouput (HTML/URL) and the files itself

but your issue can be solved by using the LSHIDE-Tags (you’ll find it in the manual)

best wishes
mac

Hi, I already purchased but I am not a coder so I really don’t know how to … The hoster won’t supply pdftotext binary. But they said there are phpclasses in the internet to achieve the search within pdf files. One address they suggested is https://www.phpclasses.org/package/9732-PHP-Extract-text-contents-from-PDF-files.html. Will this work with your scripts? And how can I implement it?

Thanks beachi

would work, but you have to modify (you or someone you’re hired) the livesearch class to work with other technologies

and if you really just like to search within pdf files inside a defined path enviromment you should think about a solution just for the pdf files (i.e. in combination with the class you mentioned)

best wishes
mac

Hello, how can we connect it with wordpress ? and can i include 2 sub-domains in this search page and put the search button on both sub-domains ?

hey,

should be possible, but it’s not a wordpress plugin you have to upload the required files and the search page results page won’t be a wordpress page

I suggest to use header and footer of your wordpress site like described here: https://www.green-box.co.uk/wordpress-create-non-wordpress-page-with-header-and-footer/

you have to add the other site to the additionalHosts array and if they resources are not linked I would create a (sitmap) list of resources on the other site which should be included to the search

if you are planning two install it on two sites you have to do it on the other site too inversely or use the same cache files
and you need one license per installation

best wishes
mac

Can it search by only one extension i.e. *.txt? Can search results be categorised depending source where they were found? Can it search by RSS?

Hello,

Can it search by only one extension i.e. *.txt?
you can set extensions to txt in the settings
you need at least one HTML-Output file where your txt files are linked with anchor tags (<a>) – this could be a sitemap, directory browsing …

Can search results be categorised depending source
depending on the categories and where are they comming from – you’ll get an assoc array with a lot of information found during the indexing process, so this could be used to generate your categorized output

Can it search by RSS?
search by, or in? if you link to rss from a page which would be indexed the content of the rss will be taken like a HTML-Output file
you can use XML-Sitemaps as well

best wishes
mac

Is it possible to make it search only for .STL (3d files)? Thanks

hi,

livesearch searches for content inside files – if you are able to build (or already running) a website with a helpful structure like one info document (i.e. PHP, HTML) for each file on which you are link to the 3d file you could use live search.

if you have all your files inside a single directory or directory structure and you like to search for file name another approach would be more suitable – such as grab all documents inside the structure and display and link just the ones with the search query in its names

I hope I could help so far
mac

Having trouble with indexing. Looking at tmpContentUrls.php, the URLs are appending on top of each other. Meaning.

https://www.mydomain.com/products/something/products/something2/products/something3.. etc. This should simply be https://www.mydomain.com/products/something/ https://www.mydomain.com/products/something2/ https://www.mydomain.com/products/something3/

Thanks

Okay.. I figured it out. I had some relative paths in the content, and when it was hit with cURL went screwy. Adjust to be all absolute and it finished pulling URLs correctly. I’ll post another question next.

fine – best wishes
mac

Hello, sometimes I’m getting PHP Warnings like Warning: count(): Parameter must be an array or an object that implements Countable in /ls/livesearch.class.php on line 852 What can I do about that?

hi,

seems there not always images in the search results

please find some lines above

      include($session_file);
      $this->searchresults = $searchresults;
      $this->searchresults_img = $searchresults_img;
and replace block with
      include($session_file);
      $this->searchresults = is_array($searchresults) ? $searchresults : array();
      $this->searchresults_img = is_array($searchresults_img) ? $searchresults_img : array();

untested, I think it should work for your

best wishes
mac

Thanks a lot! This worked for us. Best regards.

Is there a way to output the search query terms on the results page in different places OUTSIDE of the loop? I want to put the query in the Page Title and an h2 header. That possible without much hassle?

hey,

should be possible, if I got ya correctly – you didn’t mean the loop through the search results in the drawSearchresults() method, right?

anyway – if you take the search.php (where I didn’t see any loop) of the bootstrap-example folder you could move
$search_results = $LiveSearch->search($_REQUEST["q"],$_REQUEST["p"]); directly below defining the class
$LiveSearch = new LiveSearch(); and the search query can be used in title and anywhere you like
<title>Search Results for <?php echo $_REQUEST["q"]; ?></title>

hope I could help so far
mac

btw. if you really just like to display the search query there are no modifications needed – you can use $_REQUEST["q"] anywhere whenever you want – it’s independent from LiveSearch

Hi, A pre purchase question. Does it matter if I implement the script in a Ajaxify website www.4nf.org ? Regards & Thanks David

hey,

interesting question – I’ve just setup an environment using a demo site listed on www.4nf.org – studio alpenglow – and it seems that indexing happens how it should

you can try out the demo here; http://ls.envato.homac.at/demo/search.alpenglow.php

hope I could help so far

best wishes
amc

Thanks very much! David

Hi. Just purchased it. I get this when trying to run it locally first to check things out.: Warning: count(): Parameter must be an array or an object that implements Countable in C:\xampp\htdocs\scripts\marketing templates\digimark-free-lite\digimark-free-lite\ls\livesearch.class.php on line 407

hey – first of all, the item isn’t supported

then you have posted the array which is exactly what the script should do and don’t tell me what’s the issue – I thought it’s the character encoding

it’s a script which gives you an array and sample HTML outputs – you have to modify the outputs to fit your needs

Solve it for me
feel free to initiiate a refund here – I don’t wanna steal your time and make you angry

rgds

So give me directions on hos to modify the outputs and problem is solved…..................................

first your server should be able to handle those get_meta_tags issue by enabling allow_url_fopen for the server

so we would get rid of the errors – but these would only occur on caching, so if not possible we could disable get_meta_tags OR live with it during caching, which should not be used on every search (see $cachetime)

then we should clearify what code you are using on sok.php because you are displaying the array and it seems you like to display already formatted search results, so instead of just printing out the array you should use
echo $LiveSearch->drawSearchresults();
adanny1

adanny1 Purchased

I bought a copy, have read the documentation a few times. Reason I bought it was we have two domains that deal with similar but different markets. Expected to buy another copy but have not had success using it from just one domain to search both domains. Both domains are confirmed to have the two php requirements (curl, etc.). Have added the one other domain in the defined array, set it to auto, also have setup to use ls.xml with combination of the local sitemap and the external sitemap. No matter what I do it only shows the local domain not the remote one Can I pay you to sort this out? Was I wrong in understanding that if the Live Search was on one site it would be able to find results for both domains on that one domain?

hi,

could you send me your URLs and your copy of the settings in you’ve defined in your class file through my profile page?

rgds
mac

adanny1

adanny1 Purchased

The main domain is bekinsworldwide.com (i.e. it uses this toold for search) and the second domain it reaches to (i.e. is searched by while using its own software to search itself) is bekins.world. Glad to send you the setup config… please fill in a contact form on the bekins.world domain with an email address to send it to or email based on email address codecanyon has on file..

Hello, do you have any plans to update the script or implement new features?

Hi,

what kind of features or needed updates are you thinking about?

Hi, can I add this website for searching https://www.opensubtitles.org/en/search/subs and when someone search for the subtitle the results of the subtitles will show up in the search?

hi,

after made some tests:

for this size and structure of web project I suggest to build a custom solution, either based on your database or (if given) file/directory structure

rgds
mac

I got my same url written more than 1000 times in tmpContentUrls.php file on every search. Baseurl and login only in whole file

Hi,

Please send me the url to your installation to check what’s going on through my profile page

Rgds

btw. you could try to enable the $performance_fix in the class

rgds
mac

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey