Welcome To Snipplr


Everyone's Recent Snippets Tagged php



1 ... 28 29 30 31 32 ... 64
How to enable Custom Navigation Menus in WordPress 3.0 Like the custom background, header image, and post thumbnails, the custom navigation menus also needs to be enabled through your theme’s functions.php file.
0 773 posted 13 years ago by johnnyrokkit
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 1357 posted 13 years ago by liamchapman
0 697 posted 13 years ago by G470
put this code above the loop
0 474 posted 13 years ago by Token
Quick and simple script to make clean urls. Works in combination with Apache mod_rewrites :-)
1 645 posted 13 years ago by liamchapman
this is a very basic client for rumpetroll. Very messy, still needs to be turned into a class
0 728 posted 14 years ago by michaelphipps
0 673 posted 14 years ago by zreedeecom
Brings single or multiple results from a mediawiki search back as an easy to use array
0 678 posted 14 years ago by adamzwakk
1 1010 posted 14 years ago by danwhite85
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 689 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 883 posted 14 years ago by chopbust
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 1108 posted 14 years ago by geilt
0 609 posted 14 years ago by dmertl
Will help convert string to number OR get number in a selected string.
0 824 posted 14 years ago by carbonr
1 968 posted 14 years ago by mloberg
Useful for displaying copyright notices on a website.
0 851 posted 14 years ago by f6design
A Twitter pull-in that I coded using PHP. Uses the JSON user_timeline Twitter API call. It displays the tweet with links to any urls, users, or hashtags, the time ago, and if it was in reply to anyone.
2 997 posted 14 years ago by mloberg
This is a two file video player. I use JSON to get the list of videos from a user, then when a thumbnail is clicked, an AJAX request is sent with the id of the video, and an oEmbed response is sent back.
4 829 posted 14 years ago by mloberg
Script to send mails with Swift Mailer
0 750 posted 14 years ago by juanchifc
This is a very simple use of the Vimeo API. All it does is list the video title, a thumbnail of the video, and the description. More advance script coming later.
0 740 posted 14 years ago by mloberg
2 844 posted 14 years ago by mloberg
1 785 posted 14 years ago by MrFjords
I’ve made this function that receive the input $video string that contains the dirty embed code as it is from youtube. The second parameter $new_width (if specified) permits to resize the embed code proportionally to the width you need for your tem...
0 1239 posted 14 years ago by ginoplusio
Drupal snippet
0 852 posted 14 years ago by apro2000
This is my fairly easy to use MySQL database class, I use this on my Experiment framework BlahFramework, anyways I thought someone else may find this useful or just study the code to get an awesome idea of there own. Enjoy.
3 987 posted 14 years ago by Cory
use: <?=validarAbusoMayusculas('HOLA>
0 635 posted 14 years ago by nicolaspar
1 ... 28 29 30 31 32 ... 64