Posted on Tue 11th May 2010 · Real Life · 2 Comments
I went to the dentist this morning to get a tooth taken out, at the sametime i got a little filling in another tooth and the dentist descaled and polished all my teeth. Great job!
Twitter feed for Vanilla Forums
Posted on Mon 10th May 2010 · Development · 2 Comments
/* Extension Name: Twitter Feed Extension Url: http://lussumo.com/addons/ Description: Show the most recent 5 tweets of your users. Version: v2 Author: Paul Fraser Author Url: http://www.paulOr.net */ global $Context, $Head;Just over a year ago, i created a an addon for @VanillaForums - The very simple & open source community forum software. Its had quite alot of good feed back and also been downloaded nearly 1000 times, which is pretty good for my first attempt at a Vanilla addon.
Posted on Sun 9th May 2010 · Development · 1 Comments
I hated the days of old when i use to just leave old unused files that had been uploaded lying around the FTP. This really nice bit of code will allow you to delete a file from your FTP. I use it along side deleting the records from the database.
$ftp_con = ftp_connect('ftp.hostname.com');
ftp_login($ftp_con,'username','password');
ftp_delete($ftp_con,'/path/to/file.extension');
ftp_close($ftp_con);
Posted on Sat 8th May 2010 · Development · 0 Comments
The @anywhere callback on Twitters API can be slightly temperamental depending on whether or not you have defined www. in your application settings. For this reason, its best to ensure your users always get to the correct callback url using .htaccess.
## FORCE NON-WWW
RewriteCond %{HTTP_HOST} ^www\.paulor\.net [NC]
RewriteRule (.*) http://paulor.net/$1 [R=301,L]
## FORCE WWW
RewriteCond %{HTTP_HOST} !^www\.paulor\.net
RewriteRule (.*) http://www.paulor.net/$1 [R=301,L]
Remembering to switch on the RewriteEngine of course :)