walnotes

Archive for December, 2008

How to use Role Scoper plugin for WordPress

In howto on December 31, 2008 at 4:03 pm

The Task at Hand:

I want to restrict and allow various people to do various things with my WordPress blog. To do this I want to use the existing WordPress roles and supplement it with Role Scoper, a WordPress plugin.

A Little Background:

WordPress.com allows you to have a blog for free, hosted by them.
WordPress.org allows you to have a blog for free, hosted on your own servers (or other desired host).

WordPress has five roles in their codex.

Administrator – Somebody who has access to all the administration features
Editor – Somebody who can publish posts, manage posts as well as manage other people’s posts, etc.
Author – Somebody who can publish and manage their own posts
Contributor – Somebody who can write and manage their posts but not publish posts
Subscriber – Somebody who can read comments/comment/receive news letters, etc.

Now what happens if you want to add more people to your publishing process, while maintaining control over what goes out the door? It’s actually pretty easy if you do it right.

Doing It Right:

The first step to do it right is to host your WordPress files yourself by going to WordPress.org and following their instructions.

After that you can start using plugins. Plugins? Yeah, plugins. These are applications people have written for everyone to use. Usually they are available for free and you can donate to the programmer as you wish.

So what plugins will we need? I am going to use Role Scoper, by Kevin Behrens.

Role Scoper supplements the existing WordPress roles by including the following:
Post Reader
Private Post Reader
Post Contributor
Post Author
Post Editor
Category Manager

And once you’ve figured what each role is you can start learning about how to restrict people from doing things. Here’s the helpful guide from Role Scoper for your reading and learning enjoyment.

The Ins and Outs:

Role Scoper uses two main menu items to control things – Restrictions, and Roles. Firstly, you’ll want to click on Restrictions to select which categories, posts, and pages that you want to restrict. Each of your existing categories, posts and pages can be restricted by role. Secondly, you’ll want to click on Roles to select which roles and which people to give specific access to.

Huh?
Yeah, it takes a little while to figure out.

As an example. I have two accounts set up for my WordPress blog. One is for me, and one is for my freelance writer. By default I will be using a WordPress administrator account. This gives me superpowers to do everything. I will give my freelance writer less power. They will have author level status.

I’ll first use my admin powers and set my freelancer’s status using WordPress’ existing account types. Then I’ll use Role Scoper.

So far so good. Now how do I use Role Scoper?

Well you’ll need to click on Restrictions > Categories.
Select the category you want to restrict. I have one called “Other News”.
I want to prevent my freelancer from posting their blog posts without my review. So I restrict Author, Editor and Category Manager for the “Other News” category.

Good times.

Now I want to give my freelancer specific privileges with Role Scoper.
Click on Roles > Categories.
Select the person or group that you want to give privileges.
Then select the role you want that person to have.
In this case I want my freelancer to have contributor status. This will allow her to write blog posts.
When she clicks on Publish it will end up Pending Review by someone with Author, Editor, Admin or Category Manager status.
As an admin I will review it and publish it to the live blog.

Yessah!

You can go to Restrictions and restrict access for as many Categories, Posts and Pages as you have.
Then you can go to Roles and give as many users or groups whatever access you want for each specific Category, Post or Page.

Conclusion:

Use WordPress roles if it serves your purposes.
Use Role Scoper to add additional restrictions and roles to Categories, Posts and Pages.

-walter[at]bottledwalter[.]com

Adding Video, using Plugins, to a WordPress Blog

In howto on December 31, 2008 at 2:52 pm

The Task:

Posting a video to your blog without using a third party like YouTube
Something that seems so simple can be so hard. The goal is to post a non-YouTube video to my WordPress blog.

A Little Background:

WordPress.com allows you to have a blog for free, hosted by them.
WordPress.org allows you to have a blog for free, hosted on your own servers (or other desired host).

When you start a new post there’s a little button to Upload/Insert media. When you mouse over the button it says “Add Video”. This is the easy way. This is the way you do it if you know that once you try to add a video you will need to pay for an upgraded WordPress account with more storage.

Now what happens if you want to add a video without this little pay-extra process? It’s actually pretty easy if you do it right.

Doing It Right:

The first step to do it right is to host your WordPress files yourself by going to WordPress.org and following their instructions.

After that you can start using plugins. Plugins? Yeah, plugins. These are applications people have written for everyone to use. Usually they are available for free and you can donate to the programmer as you wish.

So what plugins will we need? That depends on what type of video you want to support. In my case I want to support Flash files (also called SWF files). I also want to support QuickTime movies (also called MOV files). I want to be able to add these videos pretty easily without uploading the files anywhere new.

One option is to use the plugins available by Yaosan Yeo. Available here.
http://www.channel-ai.com/blog/plugins/

Specifically, I want to use FLV Embed for the Flash videos. And I’ll use Quicktime Embed for the Quicktime videos.

Each of these have their own code to download so click on each of the two links separately and follow the steps they provide. Basically, the process is to click on the Download link. This will download a zip file to your computer. Unzip this file and you will have a folder with the name of the plugin. Put this folder into your WordPress Plugins folder.

That last part requires inside knowledge of your self-hosted WordPress code. Once you figure it out you’ll see that your folder structure has /yourWordPressFolderName/wp-content/plugins/. Put the entire plugin folder into this plugins folder and you’re set.

Once you’ve done this for each of your two plugins (FLV Embed and Quicktime Embed) you can login to your WordPress account to activate these plugins. The Plugins menu item is at the top of the page. It’s a link. Click on it. Scroll down the page to the Inactive Plugsins section. Select the two you’ve just added to the plugins folder and click on Activate!

They are now activated and ready for customization, or use them immediately.

To use them immediately you need to know the html to use. It’s not scary. Don’t be scared. No, really. Don’t be scared.

To embed a flash (.swf) movie using FLV Embed:
Create a new blog post.
Click on the HTML tab.
Type this code.
[flv: http://www/path/to/your/file.swf 480 360]

To embed a quicktime (.mov) movie using Quicktime Embed:
Create a new blog post.
Click on the HTML tab.
Type this code.
[qt: http://www/path/to/your/file.mov 480 360]

All this means is you need to know the width and height you want to use for the video. Oh, and you need to know the path to your file. And you need to type qt: or flv: and put braces around these things.

It’s not so scary. Is it?

Customizing FLV Embed:

So you want to customize FLV Embed. You’ll want to know the semantics of video publication. Once you’re ready to change things you can do it by clicking on Settings > FLV Embed from the menu at the top of the page when you’re logged in.

Briefly, a “Poster” is the image that will appear before your audience clicks on the video to start watching it.

What About QuickTime Embed:

You’re using Quicktime movies and want to show a movie poster. Well that’s easy. You need to have a poster first. Once you have it you need to put the file somewhere and have the plugin know where to find it. Whoa! Whoa! Whoa! Slow down.

OK.

[qt: /path/to/movie.mov /path/to/movie_poster.mov 480 360]

What I’m trying to say is. You use the same HTML syntax as you did before but now you add the path to the movie poster you made too.

There’s a way to add the same movie poster to all of your videos. That requires setting a global variable named qt_globalposter to the path to your poster. This variable can be set in the quicktime-embed.php file in /wp-content/plugins/quicktime-embed/quicktime-embed.php.

$qt_globalposter: path to global poster (e.g. “/poster.mov”), this overrides everything. Leave it blank to disable it.

Since this plugin is still in its early stage, setting options via the WordPress admin panel is not supported yet. For now, you will need to open up the php file using either your favourite text editor or WordPress built-in plugin editor to change some of the variables you can find near the top of the code.

There are other variables you can set also. Go to the Options sections of the plugin documentation page.

Conclusion:

Adding a video to your WordPress blog can be simple if you embed code from a third party, like YouTube. And once you’ve added the FLV Embed or QuickTime Embed plugin to your self-hosted /wp-content/plugins/ folder it’s also easy.

-walter[at]bottledwalter[.]com

Mia and Jonah – Rooz Cafe show review

In muni shirts, music, music trail, myspace, myspace music trail, review, walnotes on December 2, 2008 at 6:12 pm

December 2, 2008
Walter Koning
[http://walnotes.wordpress.com]

The long awaited review of Mia and Jonah’s 2nd Rooz Cafe show in Oakland, California.
http://www.myspace.com/roozcafe

It was June 14th of 2008 and I was at Rooz Cafe again.  A year after the Rooz Cafe Grand Opening show and Mia and Jonah were back for Rooz’s One Year Anniversary show.  I was invited for the entertainment and decided to write notes for a  Walnotes musical review.  It’s December 2nd and I’m finally sitting in Cafe Abir in San Francisco putting fingers to keyboard.

My apologies.
Not to Mia and Jonah.  They’ve heard me rave on about how much I like their music before.  No No.  My apologies to you, the reader.  There’s a good chance this is your first time hearing about the rising tide that is Mia and Jonah.  I’m sorry it’s taken you so long.

For a little musical context let me reiterate that I think Mia’s vocals and delivery matched with Jonah’s steady guitar hand and equally moving vocals rival that of Damien Rice and Lisa Hannigan.  When it comes to powerful original music a comparison must be started.  Yet it doesn’t finish there.  Mia and Jonah are the sunnier, loving, hopeful, Americana version.  They are their own in every way.  And you should listen to them to see for yourself.

June 14, 2008
Rooz Cafe
Opener:  Joni Davis
http://www.myspace.com/jonidavismusic

Joni took the stage with her piano and vocals and did pretty well for herself.  There were few people there yet.  Those there were not there for her, excepting a young (male)friend of hers.  And when I spoke with her after the show she sounded intimidated by the crowd of strangers as she walked around trying to give out fliers for future shows.  I gave her a boost of confidence.  ”Just tell them, ‘Hi I’m Joni.  I opened tonight and I’ll be playing ____.’ and they’ll be glad to meet you.”  She came back later and thanked me with one of her recorded cd’s. 

Here’s the kicker of all of this… Joni Davis is holy moly powerful in recorded form.  After a month or more I finally put her disc in with low expectations and now it’s on good rotation.  It’s on the darker, heavier side so don’t go listening when you need a pick me up.  But do listen.  Ears should hear Ms. Joni Davis.

Headliner:  Mia and Jonah (with accompaniment from their regular support, John and Myles)
http://www.myspace.com/miaandjonah

http://web.mac.com/mandj3/iWeb/Site/Blog/Blog.html 

This review will be a mixture of their lyrics, my thoughts while listening, and a steady stream of consciousness delivery on my part.  Enjoy.

Walter:  ”Mia, could you write in my little book how you feel right now?”
Mia (writes, in cursive): “Blessed to be here listening to good music – this is hard because feelings are so complete.”

They went on shortly thereafter.  As they began I started to write.

It feels like Christmas
A reunion of friends
With hugs for hello’s
And how are you
How’veyoubeens
Anticipation
What will Santa bring
It feels like Christmas

When trouble has your heart
Just let me
Be with you

A crowd has filled the room
Standing room only
Boys in costume
Accepting, tolerant, creative friends
Homemade clothes
Home-schooled child

Whoa oh oh oh
I wish your lips to touch my face
Follow me down to the old wishing well

Everything beautiful
Everything oh oh oh
Downtown San Francisco in the rain

The duel is teamwork
And Mia and Jonah are killing it
Gold drips from the skyline like ice
Mia’s delivery accompanied by the band
Jonah’s guitar acoustically accompanies
His baritone voice

Mia has learned to play bass since a show
in Tucson.  ”If you make a mistake on
bass it just sounds like everyone else is off.”

Working on the rooms in my mind
We’re all struggling to get by
We’re all in our own place in this struggle

The stories are perfected
A little here, a little there
Between the songs
You can see that Mia feels
She feels the music
She feels the love from the crowd
She feels blessed to be here

I’m here alone
Surrounded by strangers
In a room full of love
Where I’ll never be alone

Troubled Mind Blues? or is it Troubled Mind?
Mmmm hmah hmah hm hm
And these are originals, amazing

Jonah is singing a fresh new version of
Coalminer tonight.  It touches me a
different way this time.  Almost personally.

The interludes are poignant, succinct, potent
Sometimes when you’re having sex
With someone they want to have sex
With lots of other people.  And that sucks.
Right now I’m into things that suck.

Mia leads a beautiful tragedy love song
With Jonah adding an essence of harmonica
On Water in a Teapot, the most Damien
Rice song, lyrically, they sing

You with whom I feel this love
Wrap yourself around me and fill me up
You can show me what you know
Somehow opening the door
Sunset in your soul

[intermission]

And I’m just standing here
With a guitar in my hand
I wonder if this ocean will ever

Maybe I could make you smile
That about sums it up

The trouble with equal parts
And two talented vocalists
Is you can’t keep one-upping each other
Forever.  So Mia and Jonah don’t
Compete with each other.  They rise
Up to the top together.

Dance Dance
Coldness is sneaking in
There is nothing to touch
There is nothing at all 

I’ve never known more humble musical artists
With so much talent

Even though I’ve heard Bird on the Wind
Every time I’ve seen them play
They still play it with a casual
Newness, adding nuances only a
Good winery would understand

Jonah before singing Wave, one of the most moving songs ever
“I wrote this song when I met Mia.
I was overwhelmed.  I still get overwhelmed.”

Troubled Mind Blues is Mia’s remake of
Jonah’s Troubled Mind.  How often does
Your own musical partner write an
Equally impressive remake of your song?
Impressive enough that you play both in
The same night, albeit different sets

Last time, a year ago at Rooz, the Bay
Bridge was closing.  Tonight wasn’t quite so dire
This time the fog soaked the city, while
Oakland was sunshiney and nice

We set sail tonight
[I left sitting on a warm wind.]
I was sitting on a warm wind.

-review by Walter Koning

http://walnotes.wordpress.com

http://bottledwalter.wordpress.com

http://cafepress.com/walnotes