Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged c



1 ... 81 82 83 84 85 ... 147
Place into fucntions.php
0 1216 posted 15 years ago by jamiebrwr
This code will list all children pages from a parent page. This method is useful when you don\\\'t want to list all parent pages when you are on a parent page that have no children pages.
0 1214 posted 15 years ago by simonbouchard
Place into fucntions.php
0 1288 posted 15 years ago by jamiebrwr
Place into fucntions.php
1 1105 posted 15 years ago by jamiebrwr
Place into fucntions.php
0 1299 posted 15 years ago by jamiebrwr
This custom loop will list all sub pages from a parent page including grand childrens. Example use: Car models listing
1 1121 posted 15 years ago by simonbouchard
Place into fucntions.php
1 1160 posted 15 years ago by jamiebrwr
Place into fucntions.php
0 1416 posted 15 years ago by jamiebrwr
This is what I wanted:\r\nI had a structure like this:\r\n-Artist\r\n --Peter Miller\r\n ---Pictures\r\n ---Press\r\n ---Videos\r\n\r\nand wanted to have the sub-sub-Menu when located on the \"Peter Miller\"-Page. \r\nSo that on \"Peter...
0 1400 posted 15 years ago by zartgesotten
Customize as needed using user roles.
0 1938 posted 15 years ago by vagrantradio
A simple wrapper class for MySql around PDO. Also an example on how to use this wrapper for SQLite.
1 1222 posted 15 years ago by Knarf
This is the PHP code to debug any variable ..
1 1548 posted 15 years ago by xkeshav
The code to call the normal Thesis Thumb is at http://snipplr.com/view/38971/thesis-thumbnail/\r\n\r\nTo test whether there is a thumbnail, and if not use another one, use this code in custom_functions.php.\r\n\r\nYou can change the class alignleft t...
0 1121 posted 15 years ago by kristarella
Needs to be used within the loop.
0 1121 posted 15 years ago by kristarella
0 1445 posted 15 years ago by DesignByWilliam
I wrote this code for when I need to get files from other servers and put them on my own server. I wanted to simplify it as much as possible.
1 9819 posted 15 years ago by BrunoDeBarros
Little code snippet for automatically adding a custom field for a page or post when they are published.
0 1357 posted 15 years ago by baires
0 1276 posted 15 years ago by trepmal
0 1133 posted 15 years ago by javierav
If you want to get all the TV from a specific document
1 2046 posted 15 years ago by thiswayup
1 1246 posted 15 years ago by james0rion
0 1262 posted 15 years ago by lolindirfaelivrin
Working on creating a 'days ago' script. I know some already exist, but I just want to know how to do it myself. I'm also incorporating leap year functionality and some utility functions that could be used on other projects.
2 2809 posted 15 years ago by alvincrespo
Loops through all files of a certain extension in the specified directory. Can be used to list all images in a given directory.
0 1645 posted 15 years ago by sandman7OR
processes contact form input and produces an auto reply
0 1277 posted 15 years ago by sandman7OR
Originally written by Jason Lengstorf, rewritten by Drew Douglass, packaged into the EnnuiCMS (link above), can be used as standalone class. Be sure to change or define your constants for PAGE_OBJ_WIDTH and PAGE_OBJ_HEIGHT when using the YouTube m...
1 1459 posted 15 years ago by DrewDouglass
Substitute new_ placeholder in the second line with your new prefix. Run it: http://www.yoursite.com/rename.php and wait until it responds with an OK, usually after a couple of seconds. Delete the rename.php script. Edit the configuration.php file...
0 2626 posted 15 years ago by beneberle
When working in PHP I sometimes want to know exactly what is in a variable. This is easy enough to find out, but having this function around it is even easier, as it includes the HTML pre tag making it easier to read, and it allows you to choose how...
1 1683 posted 15 years ago by Sverri
Función para obtener el tamaño de un directorio:
0 1638 posted 15 years ago by jrobinsonc
1 ... 81 82 83 84 85 ... 147