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 791 posted 14 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 1378 posted 14 years ago by liamchapman
0 712 posted 14 years ago by G470
put this code above the loop
0 489 posted 14 years ago by Token
Quick and simple script to make clean urls. Works in combination with Apache mod_rewrites :-)
1 651 posted 14 years ago by liamchapman
this is a very basic client for rumpetroll. Very messy, still needs to be turned into a class
0 747 posted 14 years ago by michaelphipps
0 690 posted 14 years ago by zreedeecom
Brings single or multiple results from a mediawiki search back as an easy to use array
0 695 posted 14 years ago by adamzwakk
1 1030 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 705 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 897 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 1124 posted 14 years ago by geilt
0 627 posted 14 years ago by dmertl
Will help convert string to number OR get number in a selected string.
0 838 posted 14 years ago by carbonr
1 990 posted 14 years ago by mloberg
Useful for displaying copyright notices on a website.
0 889 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 1012 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 844 posted 14 years ago by mloberg
Script to send mails with Swift Mailer
0 767 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 757 posted 14 years ago by mloberg
2 868 posted 14 years ago by mloberg
1 801 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 1270 posted 14 years ago by ginoplusio
Drupal snippet
0 866 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 1004 posted 14 years ago by Cory
use: <?=validarAbusoMayusculas('HOLA>
0 655 posted 14 years ago by nicolaspar
1 ... 28 29 30 31 32 ... 64