Welcome To Snipplr
Everyone's Recent PHP Snippets Tagged search
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Simple PHP search with whole word extract and highlighted search word
0
1022
posted 9 years ago by flatearthcomms
Product Instant Search is a free Magento search extension that enables automatically searching right after typing a character and shows the first search result with an “add to cart†form.
<p>_ Show other search results in product’s thumbnail i...
0
979
posted 10 years ago by magestore
Function to check existence of value in multidimensional array.
0
927
posted 10 years ago by Sadeveloper
PrestaShop Advance SEO module is offered by FME. This module is used to configure On Page SEO components of Product pages. The Meta title, keywords and descriptions can be utilized by using this module. Due to its intelligent formula this module is a...
0
975
posted 11 years ago by AlastairBrian
This function searches the current working directory (or any other directory path that you specify with parameter $p) for a file, named $f, and returns the full path and filename of the first occurrence, or false if it is either not found or the maxi...
0
805
posted 12 years ago by VisionHive
I thought this was pretty elegant code and wanted to share it with anyone who found it useful.
0
784
posted 13 years ago by mattneary
I use the following code to prevent a user from getting a "webpage expired" message when hitting the back button on a page where the search results are also on the page with the form.
0
875
posted 13 years ago by bradless
A blank search in wordpress returns all the posts, which could be taken as duplicate content if that got indexed.
0
758
posted 13 years ago by baires
Im pretty new to oop php i have tried to create a php search function but im sure this needs alot of improvement. So add on :D
0
558
posted 14 years ago by JonnySnip3r
The total number of search results can be added in a hook_preprocess_search_results() function from the following variable:
0
801
posted 14 years ago by jonathanpglick
Open your search.php file and find the the_title() function. Replace it with the following:
1.echo $title;
Save the search.php file and open style.css. Append the following line to it:
strong.search-excerpt { background: yellow; }
0
738
posted 14 years ago by newsok
example I used to create a auto suggest search from that pulls from a database. The example pulls from a single db table containing categories. Using jQueryUI made this pretty painless but by default the autocomplete feature uses GET variables and...
4
1001
posted 14 years ago by myke
To exclude pages from wordpress search results include the following in your theme's functions.php
0
668
posted 14 years ago by myke
like array_search but compares against a specific key in each element of the array
2
898
posted 14 years ago by iloveitaly
Wizzlern, a Dutch Drupal trainer, has a Dutch article online on how to remove the "search this site" label in the Drupal search-block.
2
925
posted 14 years ago by berkes
Searches all array elements for a given substring. Returns an array of found key=>value pairs or false if not found.
0
782
posted 14 years ago by lancemonotone