Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
this goes under src/main/resource/META-INF/persistence.xml
0
1249
posted 18 years ago by thebugslayer
Removes the core, and node styles from the $style variable.
You most morbably already defined _phptemplate_variables($hook, $vars), in that case just add the two lines there.
_sympal_theme.. is the name of the theme where we use this.
3
1556
posted 18 years ago by berkes
This allows you to replace the bog standard browser button (form buttons) with any image you wish.
9
2532
posted 18 years ago by 1man
Ej:
$ziper = new zipfile();
$filename1 = 'images/imagen1.jpg';
$filename2 = 'images/imagen2.jpg';
$fileZip = 'images/imagen.zip';
$ziper->addFile(file_get_contents($filename1),$filename1);
$ziper->addFile(file_get_contents($filename2),$filename...
22
9599
posted 18 years ago by lmcdougall
A quick and simple way to search a MySQL database. Example: mysql_search('items', 'title tags', isset($_GET['q'])?$_GET['q']:'', Array('columns'=>'*', 'method'=>'OR', 'extra_sql'=>'AND active = "true" ORDER BY id DESC'));
5
1531
posted 18 years ago by lmcdougall
Script takes links that are not on your domain and opens them in a new window. This code allows for XHTML strict validation and meets Accessibility criteria on opening new windows.
5
1858
posted 18 years ago by skatan