You are currently browsing the FRP weblog archives for February, 2008.

Preventing WordPress authors from editing menu buttons

You setup a WordPress based website for someone, create some pages as a part of the site structure and design a menu to accommodate those pages. Having done all of this work you ideally want to protect the client from ballsing the menu and the look of the site up.

The Plan

Setup the top level pages with the admin account. Setup an author level account then download and install the Role Manager plugin. Enable the following for the client login:

  • Delete Others Posts
  • Delete Pages
  • Delete Posts
  • Delete Private Pages
  • Delete Private Posts
  • Delete Published Pages
  • Delete Published Posts
  • Edit Others Pages
  • Edit Others Posts
  • Edit Pages
  • Edit Posts
  • Edit Private Pages
  • Edit Private Posts
  • Edit Published Pages
  • Edit Published Posts
  • Manage Categories
  • Moderate Comments
  • Publish Pages
  • Publish Posts
  • Read
  • Read Private Pages
  • Read Private Posts
  • Upload Files

Download and install my Protect Title plugin. Now when the client edits a page created by admin they won’t be able to edit the title, keeping the menu looking nice.

My first iPhone/iPod web app

FRP Shop List screenshotI love my new iPod Touch but one thing it’s missing is a simple list I can write my shopping list in. Editing a note whilst juggling a basket would not be ideal.

Due to both the iPhone and iPod Touch’s shortcomings; you can’t save web pages for reading offline and saving a page as a data URL means you can’t have that page write cookies. I had to come up with a way to save the list without relying on a wifi connection.

FRP Shop List is a simple javascript page that is saved as a data URL, it has the ability to regenerate itself and insert the list you enter inside the page code so you can rebookmark the list.

You can try the app here.

Online code snippet manager

Snipplr.com is a website where you can store all of your frequently used code snippets. I find it’s useful to have certain bits of code accessible from wherever I find myself working. A killer feature for me however is the TextMate bundle. This allows your snippets to be pasted straight into whatever file is being worked on simply by using a keystroke. Snippets can also be saved back to the site via the bundle.

As everyone can view everyone else’s snippets I’m finding it a good place to start when trying to figure stuff out.