Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 129 130 131 132 133 ... 147
Insert into your phptemplate theme's template.php file to override the original View theme code.
0 895 posted 16 years ago by shrop
This will print every number from 0000-9999. Each number is comma separated. The goal was not pretty / readable code, but to get all code on a single line.
0 600 posted 16 years ago by tgpo
0 608 posted 16 years ago by jtkendall
0 588 posted 16 years ago by jtkendall
1 967 posted 16 years ago by plasticated
1 675 posted 16 years ago by iTony
Gravatar link generator class
0 628 posted 16 years ago by xuanyan
The following code lets us designate "menu links" that will not actually link anywhere.
0 760 posted 16 years ago by aleprieto
If you want to use a specific node.tpl.php for a node, paste or merge this code into your template.php
1 812 posted 16 years ago by aleprieto
prints and punctuates multiple cck values
1 677 posted 16 years ago by robotoverlord
write this in your .htaccess links are going to look like this yourpage.de/yourVariableValue1/yourVariableValue2/ [NC] will remove the case sensitivity of your static words like "admin" its going to work, even if you type yourpage.de/a...
2 883 posted 16 years ago by antpaw
0 840 posted 16 years ago by iTony
0 668 posted 16 years ago by goo
0 770 posted 16 years ago by goo
Allows to customize the search results page.
0 646 posted 16 years ago by aleprieto
Makes Drupal Advanced Search form non collapsible and expanded by default.
0 691 posted 16 years ago by aleprieto
1 758 posted 16 years ago by goo
This is a simple function that will take a folder path and remove all of its contents including files and directories.
0 901 posted 16 years ago by aristoworks
2 920 posted 16 years ago by mikegreen
Here is a simpler list format without the Term name, sorted by date, filtered for published and images, and is rendered correctly by the theme.
1 825 posted 16 years ago by aleprieto
Use the code below to build a custom block that shows the related nodes to the current node by taxonomy term. For example: If the current node in display has a taxonomy term "fish", a bunch of links that link to nodes that have the "fish" term is to...
1 861 posted 16 years ago by aleprieto
This is a simple little block that displays a list of terms in a vocabulary as a list of links to /taxonomy/term/tid pages. Items are listed in the order set for the vocabulary. You could probably use the php sort() function to change that if desired...
0 1323 posted 16 years ago by aleprieto
1 ... 129 130 131 132 133 ... 147