Hi there,
first of all I'd like to say thank you for this nice script.
I have implemented your script into my website:
haushalts-geld.de
and it looks good so far. I have two issues, though.
1.) I get double search results for some pages. For example, if I search for "login" on:
haushalts-geld.de/ssep/index.php
I get two search results, which are identical in size and when I hover over them they show the same links - only difference is the prefix "www" and "http://www", respectively.
Is there something I can do to only have one search result?
2.)If I enter any two characters into the search field I get something as search result which looks like a copy of the current page - this only seems to be the case if I enter exactly two characters. Is there something I am missing?
Thank you very much in advance for any help you can offer.
Regards
SSEP - double search results, copy of current page as search result
-
- Posts:7
SSEP - double search results, copy of current page as search result
Admin
Posts:805
Hello,
1. I saw the double search results for login page, one is with 'http' and the other has 'https'.
When you use the script to crawl and index the pages (in admin.php), you must add the URL with 'https' if your site has that protocol
But i noticed in your site that you it has links with 'http' (in footer), so, the crawler has indexed adresses with 'http'. You must check in database, in the ssep_url_1 table to see if there are registers with duplicate url.
2. I fixed the issue regarding to two characters into the search field.
You can download again the script from coursesweb.net/php-mysql/ssep-site-search-engine-php-ajax_s2
Or, make yourself the following changes:
- In 'ssep/index.php' replace this line of code:
With this:
- In 'ssep/templ/search.htm', in the input search field replace: pattern="[A-z0-9_ \-]{2,45}"
With:
1. I saw the double search results for login page, one is with 'http' and the other has 'https'.
When you use the script to crawl and index the pages (in admin.php), you must add the URL with 'https' if your site has that protocol
But i noticed in your site that you it has links with 'http' (in footer), so, the crawler has indexed adresses with 'http'. You must check in database, in the ssep_url_1 table to see if there are registers with duplicate url.
2. I fixed the issue regarding to two characters into the search field.
You can download again the script from coursesweb.net/php-mysql/ssep-site-search-engine-php-ajax_s2
Or, make yourself the following changes:
- In 'ssep/index.php' replace this line of code:
Code: Select all
echo template(file_get_contents(SSEP_TEMPL .'search.htm'), $tpl);
Code: Select all
if(isset($_POST['isajax']) && $_POST['isajax'] == 1) echo $tpl['search_results'];
else echo template(file_get_contents(SSEP_TEMPL .'search.htm'), $tpl);
With:
Code: Select all
pattern="[A-z0-9_ \-]{3,45}"
joe
Posts:7
Wow!
Thank's for your quick reply. It seems to work perfectly now.
Also thank you for pointing out to me the issue with the http links in my footer.
Both problems solved. Thank you.
Thank's for your quick reply. It seems to work perfectly now.
Also thank you for pointing out to me the issue with the http links in my footer.
Both problems solved. Thank you.
joe
Posts:7
Dear Admin,
sorry to bother you again. Another problem has surfaced.
For me the suggestion field is not working.
If I enter a search term into the search field on my search page: haushalts-geld.de/ssep/index.php
the suggestions pop up alright. When I click on one of those suggestions I seem to get search results, but the initially overlaying loading GIF won't disappear. The same appears to be the case when I click on one of the links in the "Last Searches" and "Top Searches" Menu.
The Loading GIF only disappears when I click into the search field again and enter something.
Any ideas what I might be doing wrong?
Thank you very much for your help in advance. This is much appreciated.
sorry to bother you again. Another problem has surfaced.
For me the suggestion field is not working.
If I enter a search term into the search field on my search page: haushalts-geld.de/ssep/index.php
the suggestions pop up alright. When I click on one of those suggestions I seem to get search results, but the initially overlaying loading GIF won't disappear. The same appears to be the case when I click on one of the links in the "Last Searches" and "Top Searches" Menu.
The Loading GIF only disappears when I click into the search field again and enter something.
Any ideas what I might be doing wrong?
Thank you very much for your help in advance. This is much appreciated.
Admin
Posts:805
I tested the search suggestions and the links from Last /Top Searches on your page, and it is working fine, the loading image disappears automatically.
I tested the page with google chrome and mozilla firefox browsers.
Try with other browser, maybe it is something from the browser you use.
I tested the page with google chrome and mozilla firefox browsers.
Try with other browser, maybe it is something from the browser you use.
joe
Posts:7
Thank's for your reply. You're right. I don't know what I did wrong, but now it works.
If you don't mind, I have another question:
I tried to switch to classic pagination with pagination links at the bottom of page. In the admin section I changed "search results rows" to "3" and "pagination type" to "standard".
If I have a search result with 5 rows, for example with the search term: "login", then I get a total of 5 results. However, all the results are still displayed in one page, without any pagination links. Is there anything else I have to do in order to get pagination links?
Thank you for your time and efforts.
Regards
If you don't mind, I have another question:
I tried to switch to classic pagination with pagination links at the bottom of page. In the admin section I changed "search results rows" to "3" and "pagination type" to "standard".
If I have a search result with 5 rows, for example with the search term: "login", then I get a total of 5 results. However, all the results are still displayed in one page, without any pagination links. Is there anything else I have to do in order to get pagination links?
Thank you for your time and efforts.
Regards
Admin
Posts:805
After you make changes in Advanced Settings delete the cache files by clicking on the 'Delete Cache Files' button.
joe
Posts:7
Thank you! You seem to have an answer to every question, amazing
Admin
Posts:805
My answers are limited, I'm glad it is finished.
joe
Posts:7
Hope you don't mind me asking again.
I noticed that entering words containing umlaute (ÄÜÖäöü) into the search field yield an error.
Is there anything I can do to make this work with umlaute as part of the search phrase without any errors?
Again, thank's a lot for this great script and for answering all these questions.
I noticed that entering words containing umlaute (ÄÜÖäöü) into the search field yield an error.
Is there anything I can do to make this work with umlaute as part of the search phrase without any errors?
Again, thank's a lot for this great script and for answering all these questions.
Admin
Posts:805
I made some changes in the ssep script to can use characters with diacritics.
Download again the script from: coursesweb.net/php-mysql/ssep-site-search-engine-php-ajax_s2
You can use the new version, or just replace these files with the new ones: 'ssep/php/sitesearch.php' and 'ssep/templ/search.htm'.
Download again the script from: coursesweb.net/php-mysql/ssep-site-search-engine-php-ajax_s2
You can use the new version, or just replace these files with the new ones: 'ssep/php/sitesearch.php' and 'ssep/templ/search.htm'.
joe
Posts:7
Thank you. And you do all that in your free time, amazing. You're awesome.