Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
In a Project i had to save serialized arrays in a MYSQL Database, when i used that i got a Error Message for no reason (Error at offset XX of XX bytes in...). I wrote this little functions to fix that issue. (I dont recommend to save serialized Arra...
0
979
posted 14 years ago by FreaKzero
Customises the \"who\'s online\" block to show what role type the user has + the links now point to private message instead of profiles.
1
899
posted 14 years ago by daipratt
Used this on the vox site to find a custom post type and then assign a variable to get different classes for the output.
0
1238
posted 14 years ago by dallasbpeters
To rename a bunch of files from "*.foo" to "*.bar" (like windows' REN *.foo *.bar) in unix.
Looking at the solution, it is easy to adapt it to more powerful character substitutions on a 1 to 1 basis.
If you want to test what will be executed b...
0
866
posted 14 years ago by jarnaldich
This snippet can be called in every controller, all you need to do is to specify the form name, the model name and the data.
1
704
posted 14 years ago by stolkchris
GET_HASH_VALUE Function
This function computes a hash value for the given string.
Syntax
DBMS_UTILITY.GET_HASH_VALUE (
name VARCHAR2,
base NUMBER,
hash_size NUMBER)
RETURN NUMBER;
1
956
posted 14 years ago by mprabhuram
used on: ezpl theme, header.php
just be sure to enqueue for any such scripts BEFORE wp_head(). Otherwise they don't get loaded. That is to say, it's probably best to have wp_head() rigth before </head>.
0
675
posted 14 years ago by mjsiemer