PHP Search Engine
-
Is it possible to hide parts of the page from getting indexed in search results?
add this to about line 630 just before “remove contents of javascript”
// remove custom are between <!-- hidesearch start --> and <!-- hidesearch end --> from html code $url_data['data'] = preg_replace('#<!--\s*hidesearch start\s*-->.*<!--\s*hidesearch end\s*-->#ismU','',$url_data['data']);then add<!-- hidesearch start -->
and<!-- hidesearch end -->
html comments around the part you wish to hide. -
Create an iframe php search window on your website.
Use this code:
<form method="post" action="search.php?iframe=true" id="searchform" target="iframesearch"> My Website: <input name="search" id="searchbox" value="test" type="text" /> <input name="go" value="Search" type="submit" /> </form> <iframe name="iframesearch" scrolling="auto" src="about:blank" id="iframesearch" frameborder="0" style="width:100%; height:500px;"></iframe>
change search.php to point to wherever your search.php is located. style as necessary.

51comments