Password Protecting WordPress


I found a great tutorial on how to password protect WordPress at this site. Just folow the steps below:

  1. Go to Users ? Authors & Users sub-panel.
  2. Add a new user in the Add New User section. This login will be used to access your WordPress by other user. Or go to Settings ? General ? Membership and check “Anyone can register”.
  3. Add the following lines to your Theme’s template functions.php file (For example, functions.php file for a Theme named “default” would probably reside in the directory wp-content/themes/default/functions.php) or create it as a Plugin by filling the additional Standard Plugin Information:
    function password_protected() {
    	if ( !is_user_logged_in() ) {
    add_action('template_redirect', 'password_protected');
    add_action('do_feed', 'password_protected');
  4. Go to Settings ? Discussion sub-panel. Under Default article settings, uncheck “Attempt to notify any blogs linked to from the article (slows down posting.)”.
  5. Finally, go to Settings ? Privacy and set “Blog Visibility to I would like to block search engines, but allow normal visitors”. Click Save Changes.

Now visitors will be asked to log in using WordPress login form to view your WordPress blog / site. This is very suitable for someone that wanted privacy or owned a private WordPress blog / site.


Adding multiple episode dvds to Boxee


I love Boxee.  I have a vast collection of dvds that I ripped to iso’s and just recently began ripping my television series collection (Highlander, Twin Peaks, Buffy, Fringe, etc).  My biggest frustration in this process is that Boxee doesn’t provide an easy way (yet) for multiple episodes to be recognized from one dvd.

The answer is symbolic links. If you create a symbolic link for each season and point it to the iso file that contains that episode Boxee recognizes the episodes and adds them to your database.
The format is as follows:

ln -s path_to_iso name_of_episode

ln -s /tvshows/”24 Season 1 Disc 1.iso” “24.S01.E01.iso”
ln -s /tvshows/”24 Season 1 Disc 1.iso” “24.S01.E02.iso”
ln -s /tvshows/”24 Season 1 Disc 1.iso” “24.S01.E03.iso”
ln -s /tvshows/”24 Season 1 Disc 1.iso” “24.S01.E04.iso”

Obviously, you do this from command line.  If you don’t want to mess with pathways, just navigate to the folder where you keep your iso’s and have at it!    Hope this helps.

Stuck in Maintenance Mode


So this has happened to me a few times when updating WordPress. Basically, my folder permissions weren’t set up correctly and my WordPress upgrade fails for one reason or another. I fix the permissions and then try to upgrade again, only I’m greeted with a white screen with the message ‘Briefly unavailable for scheduled maintenance. Check back in a minute.’ Not too much of an issue except there’s no way out of it. After a quick Google search I found a few helpful posts stating that all I had to do was ftp into the account, navigate to the root folder of my web directory and delete a file called: .maintenance

Also fairly simple to do….except, I could never find the damn file! After some more Googling, I came across another helpful post stating that the file was hidden.

Depending on the mood I’m either on a Windows machine or my iMac. This time I was on my iMac, using CyberDuck. In order to see hidden files on CyberDuck you have to click on View up on the menu bar and then choose Show Hidden Files.  Voila….the .maintenance file showed it’s ugle head.   Once deleted, everything worked perfectly.

Go to Top