Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
You can simply put it in your reset stylesheet. It visualizes the classic rotating gif while the document's images are coming from the server at page load.
3
2043
posted 15 years ago by claudiowebdesign
quick snippet to select all the check boxes on a drupal permissions page. helpful when setting up a role for Admin
0
1807
posted 15 years ago by cwd
Just a bit of essential code lines to start everytime from. // I don't use it :P
5
3115
posted 15 years ago by claudiowebdesign
Transform a color given in hex to RGB. An optional opacity argument also enables RBGA.
0
1863
posted 15 years ago by madr
If you're importing nodes from a file and have pathauto setup, the existing paths for the nodes will be rewritten with pathauto. To avoid this, simply add the following to the node export array for each node:
0
1610
posted 15 years ago by jonathanpglick
Sale Price/Variation custom
this code just work if all variation price is a same as product price
0
1120
posted 15 years ago by haftim
Sale Price/Variation custom
this code just work if all variation price is a same as product price
0
1068
posted 15 years ago by haftim
Counts the number of times that a file has been downloaded, using PHP and mySQL
0
1567
posted 15 years ago by eme_dlr
Combines .ics files from OS X Server iCal Server into a single merged ics which can then be subscribed to.
I set this up specifically so I could display ical server calendars inside of Zap Calendar on a joomla site. This script could be called from...
0
1600
posted 15 years ago by uptimejeff
I set up an $isHome boolean variable at the beginning of a template's index.php file so I can easily test the condition throughout the file. To me, the semantic variable name makes the logic more readable.
0
1647
posted 15 years ago by beneberle
**Important: this snipplet has moved to Github.**
- [Programmatically log out the user in Drupal](https://gist.github.com/1973079)
0
1683
posted 15 years ago by wildpeaks
Im pretty new to oop php i have tried to create a php search function but im sure this needs alot of improvement. So add on :D
0
1364
posted 15 years ago by JonnySnip3r
You may want to create navigation where the children are displayed only when the parent page is the current page. Place the code in your functions.php file
0
1499
posted 15 years ago by awesomewordpressthemes