Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
I use this code to place in blocks or pages to show a link to the user registration page if the user is not currently logged in. An example is a block I have setup on the home page of http://www.lightentheload.net. If the user is logged in, the block...
0
1039
posted 17 years ago by shrop
Recursively SVN rename (move) all thtml-files to ctp-files . Fires this up in CakePHPs /views path.
0
1288
posted 17 years ago by zingo
This can be used as a general function to get the value stored in any of the possible input sources.
use
0
1093
posted 17 years ago by luizlopes
Find deprecated elements and attributes using CSS. Simply add the CSS below to the end of your style sheet and it will highlight bad code.
5
1121
posted 17 years ago by visuallyspun
I wrote this very quickly for a form I parse that allows a user to send a page to up to 5 friends. The script adds a click event to an image of a + sign beside an input box. When clicked if the user hasn't already added 5 friends to email, additional...
9
1414
posted 17 years ago by dmosher
This is a stipped-down version of the original page.tpl.php from Drupal 5.x's Bluemarine theme. Just add your own DIVs.
2
927
posted 17 years ago by panatlantica
Good for when you did a checkout when you meant to do an export or what-have-you.
2
1126
posted 17 years ago by trey