Per Søderlind

I code for fun

Upgraded to WordPress 3.2 and nothing worked (internal error ...)

Luckily I log all PHP errors and the error log told me where the error was (an old plugin I've forgotten to remove) .. phew To log errors, I have the following statement at the top of my wp-config.php: @ini_set('log_errors','On');<br /> @ini_set('display_errors','Off');<br /> @ini_set('error_log','/PATH/log/php_errors.'.date('Y-m-d').'.log');

Fade away and hide the WordPress 3.1 Admin Bar

Instead of disabling the WordPress 3.1 Admin Bar, use this plugin, based on Codrops Fixed Fade Out Menu, to fade away the WordPress Admin Bar when you scroll down the page. The plugin is availeable in the WordPress Plugin Directory Changelog: 1.0.1 - Thanks to @TheFrosty, added is_admin_bar_showing() 1.0.0 -...

SimpleModal Janrain Engage

Images: Login Register Welcome back SI Captcha SimpleModal Janrain Engage adds Janrain Engage (aka rpx) to your SimpleModal Login Download the plugin from the WordPress Plugin Directory If you like and use the plugin, please rate it (if you feel it deserves less than 5 stars, please tell me why in the comment...

[lorem] shortcode

Images: Shortcode, Nested shortcode, Example, Lightbox I needed dummy text for a blog I'm working on, and since I like to code I wrote a simple plugin I'd like to share, you'll find it  in the WordPress Plugin Directory   Plugin: You’ll find the plugin at http://wordpress.org/extend/plugins/lorem-shortcode/ Installation: Download the plugin and save...

The Team Portal iPhone/iPad App

I guess I'm at bit biased since we made this app, but I really like the Team Portal iPhone app. Give it a try yourself together with your free SharePoint 2010 account. Some of the current features: View and open your collaboration sites and sub sites Manage your favorite sites...

Upload to SharePoint 2010

  [caption id="attachment_1072" align="aligncenter" width="300" caption="SharePoint 2010 upload - screenshot from TeamPortal.com"][/caption]   Besides the built-in upload to SharePoint 2010, I've looked at other methods to do uploads to SharePoint 2010. Here are my findings: Differential uploader, by @einaros Traffic reduction with annotation changes made to 11MB pdf, and re-uploaded...

Node.js

If you haven't looked at Node.js, you should. Node.js is “evented I/O for V8 javascript”.  With Node.js (and its well documented api) you can write extremely high performance non-blocking event driven network servers in JavaScript. Here's a simple chat server and client I wrote using Node.js, Faye and the Connect...

SharePoint 2010: Customize out of the box Application Pages (AccessDenied, Confirmation, Error, Login, RequestAccess, Signout, WebDeleted )

In SharePoint 2010, for security reasons, master pages are not applied to the application pages AccessDenied, Confirmation, Error, Login, RequestAccess, Signout and WebDeleted, instead you’ll have to create a new custom application page and run the power shell command Set-SPCustomLayoutsPage.(source http://live.visitmix.com/MIX10/Sessions/PR02 - a must-see): In WSS3.0 and MOSS2007 it was...

radial navigation in html5

Sorry no IE  (might work in IE9 platform preview), so open these in a modern browser: DONUT™ - Radial Navigator ASK KEN™Visual Knowledge Browser

WordPress plugin template

UPDATE: As of WordPress 3.3, you shouldn't use the wp_print_styles hook, I've updated the Adding JavaScript section below to reflect this change. You can create a personalized plugin template by using my WordPress Plugin Template Creator When I  rewrote my WP-DenyHost plugin, I wanted to do it as fast as...