Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Simply uncomment the appropriate line for some common, useful Administration SQL statements for MySQL. (Uncomment and run 1 line at a time)
0
835
posted 15 years ago by zonetrooperex
Add the PHP to custom_functions.php and the following CSS to custom.css
.custom ul.menu li.search {float:right;}
.custom ul.menu li.search form {padding:0.3em;}
.custom ul.menu li.search form input {padding:0.4em;}
0
1050
posted 15 years ago by kristarella
This is designed to show 10 posts on each of the pages after the home/blog page when the home page only shows 5 (because if you just use posts_per_page=10 without the offset you will lose the most recent posts numbered 6-10 in between the first and...
0
807
posted 15 years ago by kristarella
Currenty getImagInfo() also call getImageXMP() so you only need the first function to get your infos.
0
1239
posted 15 years ago by frankyfish
Annoyed by the "username's blog" links on your single-author Drupal blog? Don't reach for "display:none;"! Don't remove the $links variable from your node template!
Just paste this code into your theme's template.php file. Be sure to replace...
1
1007
posted 15 years ago by sheena_d
I've been trying to figure out a way to make ComboBox items selectable by the keyboard, much like how any ComboBox, ListBox, Selection box is in any other language like HTML, Windows Forms, etc.
Most of the solutions I've seen online weren't parti...
0
1150
posted 15 years ago by alishahnovin