How to link back to an album in a NextGen Gallery

When you use the amazing plugin NextGen Gallery for WordPress you can organise your photos into ‘Galleries’ and you can sort these into ‘Albums’ to create a folder hierarchy like you might have on your computer.

When these galleries and albums are viewed on your website they give the visitor a great way to see your pictures, but there’s one feature missing; links back to the album you just came from. I searched the internet for a solution to this but didn’t find a way I liked, so I created my own breadcrumb trail to insert. Continue reading “How to link back to an album in a NextGen Gallery”

NextGen Gallery

Single Picture

[singlepic id=x w=width h=height mode=web20|watermark float=left|right|center]

The singepic shortcode displays a single picture from any gallery.  Clicking on the image displays the image as you have specified on the Effects options page.  With the default Thickbox effect, the background goes gray and a larger version of the image (if available) is displayed. Continue reading “NextGen Gallery”

My Favourite WordPress Plugins

I’m using the most up-to-date versions of each of the plugins below (as of 22-09-11) and I’m using WP v.3.2.1.

AddThis Social Bookmarking Widget

Get it here.

Help your visitor promote your site! The AddThis Social Bookmarking Widget allows any visitor to bookmark your site easily with many popular services. Sign up for an account to see how your visitors are sharing your content–which services they’re using for sharing, which content is shared the most, and more. It’s all free–even the pretty charts and graphs.

I really recommend this. Sign up for an add this account and it displays your shares and clicks on your wp dashboard, very useful.
Continue reading “My Favourite WordPress Plugins”

Regular Expression for A Number

I’ve recently had to delete pages numbers out of some of the novels I’ve saved on this site. A handy way of stripping out these numbers quickly is by using Dreamweaver’s search function, which can take a regular expression as a search term.

To get rid of numbers in the format [1]… [10]… [100] I just searched for;


When I needed to get rid of the page line links (<a name=”Page_12″ id=”Page_12″></a>) I searched for;

<a name=”Page_[0-9]+” id=”Page_[0-9]+”></a>


You can use the .htaccess file to redirect visitors to different files, either on the same website, or on a different site.

Redirect rules are written as below, starting with Redirect, then the location you are directing away from, then the location you are redirecting to.

Redirect /oldindex.php /newindex.php

You can redirect whole directories as well.

Redirect /olddirectory /newdirectory

And you can redirect to a different site.

Redirect /index.php

Error Pages

Instead of allowing a generic error page to be shown when a visitor has a problem on your website, you can create custom error pages.

These can be more user friendly than the normal pages, and you can try offering your visitors different ways to recover from whatever error they may have encountered.

The pages listed below are the most common ones that will need to be dealt with, but you can create custom pages for many other errors.

Each line must start with ErrorDocument, followed by the code for the error you want to provide a page for, finished with the address of the custom page.

ErrorDocument 401 /errors/unauthorized.php
ErrorDocument 403 /errors/forbidden.php
ErrorDocument 404 /errors/notfound.php
ErrorDocument 408 /errors/timeout.php
ErrorDocument 500 /errors/internalerror.php