Welcome To Snipplr


Everyone's Recent Snippets Tagged search



The total number of search results can be added in a hook_preprocess_search_results() function from the following variable:
0 1708 posted 15 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 1630 posted 15 years ago by newsok
0 1896 posted 15 years ago by newsok
5 1693 posted 15 years ago by hungheroic
2 1949 posted 15 years ago by adkatrit
I use this bash oneliner all the time to recursively search for a string in large codebases. I use it when searching for mentions of tables, databases, function definitions, function calls etcetera.\r\n\r\nIt searches through a number of file types (...
1 2211 posted 15 years ago by niels_bom
1 1775 posted 15 years ago by crs
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 2129 posted 15 years ago by myke
2 1824 posted 15 years ago by rwczippy
So if the ID contains the word Spouse, do x.
1 1844 posted 15 years ago by housecor
If on do nothing. If on make off. If off make on. Alter external value and focus.
0 1571 posted 15 years ago by davebowker
A recent update to either Google's search results page or Firefox's Tab Mix Plus add-on has prevented a locked tab from opening links in a new tab. This Greasemonkey script removes the tracking code on the Google links that causes the problem. I don'...
0 1853 posted 15 years ago by wizard04
To exclude pages from wordpress search results include the following in your theme's functions.php
0 1475 posted 16 years ago by myke
Display a default value in a text field that disappears on focus and reappears on blur **if** the field is blank.
0 1345 posted 16 years ago by prsjohnny
$search_string - переменная для поиска
0 1575 posted 16 years ago by stancox
like array_search but compares against a specific key in each element of the array
2 1912 posted 16 years ago by iloveitaly
Stored Procedure for search and replace a string in all fields of all tables of one DataBase
2 2337 posted 16 years ago by Eloi
Stored Procedure for search a string in all fields of all tables of one DataBase
1 2080 posted 16 years ago by Eloi
0 1620 posted 16 years ago by marzsman
You can use this SP like that; Exec CleanInjection 'INFECTED WORD','CLEAN WORD' (in use : Exec CleanInjection '<script></script>','')
2 2163 posted 16 years ago by emregulcan
search for anything in-between two <TAG>'s and then replace the found string into the PHP if/else staement. $1 is wher TextMate stores the found string. (see http://screenflicker.com/mike/code/textmate-regex-replace/)
3 2653 posted 16 years ago by rwczippy
SQL to alter field contents. linked article is in german.
1 1932 posted 16 years ago by iroybot
by: Narayana Vyas Kondreddi
1 1670 posted 16 years ago by keidash
grep through all history from within a Subversion working directory, like: $ svngrep SecItemCopyMatching *
0 1847 posted 16 years ago by zingo