Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged c



1 ... 69 70 71 72 73 ... 147
Simple function to store an array in a cookie. Uses JSON. To pull data out of cookie use 'json_decode()'. It can then be looped etc.
1 1859 posted 14 years ago by liamchapman
This strips out any html tags (like paragraph tags) from the excerpt in WordPress.
0 984 posted 14 years ago by nonsalant
0 1081 posted 14 years ago by G470
put this code above the loop
0 784 posted 14 years ago by Token
Quick and simple script to make clean urls. Works in combination with Apache mod_rewrites :-)
1 996 posted 14 years ago by liamchapman
For instance when you want to leverage the JElements in a admin view form...
0 1209 posted 14 years ago by harikaram
From CSS-Tricks: Shortcodes in WordPress are bits of text you can use in the content area to invoke some kind of function to accomplish certain tasks. For example, video embedding in WP 2.9+ uses the [video] [/video] shortcode. You can write your own...
2 1329 posted 14 years ago by cwulff
this is a very basic client for rumpetroll. Very messy, still needs to be turned into a class
0 1133 posted 14 years ago by michaelphipps
0 1136 posted 14 years ago by YourListing
0 989 posted 14 years ago by zreedeecom
2 etapas: .htaccess e config.php
0 938 posted 14 years ago by joaobarbosa
Basta mudar a linha correspondente no arquivo de configuração do CI
0 847 posted 14 years ago by joaobarbosa
0 1084 posted 14 years ago by hamsterbacke82
Drupal 6 Do this after $view->execute() has already been called
0 1120 posted 14 years ago by jonathanpglick
Count commetns and return value into the post
0 2610 posted 14 years ago by howardpanton
Can now use the class as a styler
0 3315 posted 14 years ago by chendrix
Wordpress creates an anchor with a class .post-edit-link for styling
0 874 posted 14 years ago by chendrix
Brings single or multiple results from a mediawiki search back as an easy to use array
0 1005 posted 14 years ago by adamzwakk
1 2233 posted 14 years ago by danwhite85
The "design/header/logo_src" matches the path column in the core_config_data table in the database. You can use the path value to load the value of any config row.
0 1012 posted 14 years ago by TioSolid
This function will return the correct url for the timthumb php script (wordpress 3.0 or higher required!) Usage: just call the function in your theme with the post id as parameter, it will return a value so store this into a variable (must be ins...
0 994 posted 14 years ago by krike
This is to call up Javascript alert through PHP. I hate switching between echoing Javascript while writing PHP so I wrote one in PHP.
0 1316 posted 14 years ago by chopbust
0 1071 posted 14 years ago by hamsterbacke82
I wrote this little bit of code myself so if you see where you can improve on it, let me know. This is great for making complex menu's and also for making sure your POST data gets saved and reselected when the screen refreshes. I use it in all my pro...
0 1626 posted 14 years ago by geilt
Returns an array of files that match a search term in a certain directory.
1 1089 posted 14 years ago by mattkenefick
0 1458 posted 14 years ago by zoranmk
0 886 posted 14 years ago by dmertl
1 ... 69 70 71 72 73 ... 147