Monthly Archives: March 2011

Background Image to the bottom of a page

html { min-height: 100%; height: auto; } body { background:url(/images/bg-image.jpg) right bottom no-repeat; }

Posted in CSS | Tagged | Comments Off

Browsers View for Sites

http://browsersize.googlelabs.com/

Posted in CSS | Tagged , , | Comments Off

css pipe seperated menu

<ul id=”footer-navigation”> <li><a href=”#”>Top</a></li> <li><a href=”#”>Valid XHTML</a></li> <li><a href=”#”>Valid CSS</a></li> <li><a href=”#”>Get Firefox</a></li> </ul> #footer-navigation { margin-left: 0; padding-left: 0; list-style-type: none; } #footer-navigation li { display: inline; } #footer-navigation li:after { content: ” | “; } #footer-navigation li:last-child:after { … Continue reading

Posted in CSS | Tagged , , | Comments Off

XML over POST with php

$ch = curl_init(); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_URL, “http://websiteURL”); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, “XML=”.$xmlcontent.”&password=”.$password.”&etc=etc”); $content=curl_exec($ch);

Posted in PHP | Tagged , , , | Comments Off

List all hooked functions

10. List All Hooked Functions The problem. When things go wrong, listing all hooked functions can be very useful for debugging. The solution. As with the others, this code has to be pasted in your functions.php file. When you have … Continue reading

Posted in plugins, Wordpress | Tagged , | Comments Off

MySQL Remove whitespace

update your_table set your_field = trim(your_field)

Posted in MySQL | Tagged , | Comments Off

Create joomla 1.5 admin

This is something I do often enough to not want to google it .. Step 1 Create the new Joomla! User REPLACE INTO `jos_users` (`id`, `name`, `username`, `email`, `password`, `usertype`, `block`, `sendEmail`, `gid`, `registerDate`, `lastvisitDate`, `activation`, `params`) VALUES (’60′, ‘Admin2′, … Continue reading

Posted in Joomla | Tagged , , , | Comments Off