Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 70 71 72 73 74 ... 147
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 639 posted 13 years ago by cwulff
this is a very basic client for rumpetroll. Very messy, still needs to be turned into a class
0 631 posted 13 years ago by michaelphipps
0 555 posted 13 years ago by zreedeecom
2 etapas: .htaccess e config.php
0 485 posted 13 years ago by joaobarbosa
Basta mudar a linha correspondente no arquivo de configuração do CI
0 442 posted 13 years ago by joaobarbosa
0 583 posted 13 years ago by hamsterbacke82
Drupal 6 Do this after $view->execute() has already been called
0 605 posted 13 years ago by jonathanpglick
Count commetns and return value into the post
0 553 posted 13 years ago by howardpanton
Can now use the class as a styler
0 1245 posted 13 years ago by chendrix
Wordpress creates an anchor with a class .post-edit-link for styling
0 438 posted 13 years ago by chendrix
Brings single or multiple results from a mediawiki search back as an easy to use array
0 566 posted 13 years ago by adamzwakk
1 859 posted 13 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 556 posted 13 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 558 posted 13 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 737 posted 13 years ago by chopbust
0 560 posted 13 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 908 posted 13 years ago by geilt
Returns an array of files that match a search term in a certain directory.
1 549 posted 13 years ago by mattkenefick
0 940 posted 13 years ago by zoranmk
0 490 posted 13 years ago by dmertl
cause i'm so lazy
0 557 posted 13 years ago by Savio
0 611 posted 13 years ago by Savio
For several reasons, including portability, reducing download size, and general code neatness, I like to make all links within a website root relative.
0 516 posted 13 years ago by weboholic
Will help convert string to number OR get number in a selected string.
0 685 posted 13 years ago by carbonr
Turns /n to <br> and /n/n to </p><p> Usage: echo stripslashes(nl2br(nls2p($text)));
0 630 posted 13 years ago by jmiller
1 ... 70 71 72 73 74 ... 147