shepline creative

Using WordPress lightbox gallery

Posted here for my own reference because the instructions for the WordPress Lightbox Gallery plugin are in Japanese:

How to use
How to use the Lightbox Gallery, WordPress 2.5 has essentially been built since the galleries are the same. Register for more photos, simply insert the tag below post. Photo captions, mouse over the image coming tooltip (tooltip) appears as a description of the photograph that appears when Lightbox is displayed.

Advanced Settings option is available to all short codes. For more options, WordPress 2.5 image using the list of new features galleries want to see. Here, in addition to the standard option, Lightbox Gallery added in explaining the options.

  • lightboxsize
    Lightbox lightboxsize specified by size is displayed. By default, the medium has become, full can also be specified.

    [Gallery lightboxsize = "full"]
  • meta
    meta specifies whether to display information about the accompanying photo. Has become false by default, does not appear. If you want to specify is true. Information accompanying the photos, the camera model, aperture, focal length, ISO, shutter speed, the time taken to display in Lightbox.

    [Gallery meta = "true"]
  • class
    To add an attribute class is the class gallery. Gallery1 is a default.

    [Gallery class = "gallery2"]
  • nofollow
    rel = “nofollow” to add. The default is a false.

    [Gallery nofollow = "true"]
  • from, num
    To view images from the position, num is the number of images to be displayed. The following example displays the images from the image’s third five.

    [Gallery from = "2" num = "5"]
  • pagenavi
    num navigation image is displayed depending upon the number of images used. pagenavi set to 0, and not showing navigation. For navigation, wp_link_pages same options are available.

    [Gallery num = "10" pagenavi = "0"]

Removing the <li> display from the Site Admin/Register links

The problem with the default WordPress Site Admin/Register code:

<?php wp_register(); ?>

is that the resulting html displays these links as list items. To stop it from making these list items and just only display the link as regular text is actually frustratingly, annoyingly simple.

What you can do, is to call wp_register() with an argument like this:

<?php wp_register('',''); ?>

This will get rid of the li tags. However you can also surround the links with any tags/text of your liking:

<?php wp_register('<div>','</div>'); ?>

See the original answer here: http://wordpress.org/support/topic/removing-list-item-from-wp-loginout-and-wp-register

Setting permalinks in WordPress

For my sins, I use a webhost which works on Windows servers. For the most part, it makes not a jot of difference to me but does cause a few headaches when setting up sites using a wordpress install at the base of it. In particular setting nice pretty permalinks when I don’t have access to IIS mod rewrite rules…

I did manage it on this very site eventually, but it wasn’t straight forward particularly as I needed a separate 404 redirect for the subdomain (which I didn’t have access to). Setting up the new BVToday.net website is more straight forward, but I thought I would post the solution here, partly for my own future benefit:

Requirements and Install instructions:

  • IIS for Windows
  • WordPress
  • Ability to change your 404 error page with your web host.

To install, copy and paste this text into a file named wp-404-handler.php:

<?php
$qs = $_SERVER['QUERY_STRING'];
$_SERVER['REQUEST_URI'] = substr($qs, strpos($qs, ':80')+3);
$_SERVER['PATH_INFO'] = $_SERVER['REQUEST_URI'];
include('index.php');
?>

Next set the 404 error page to /wp-404-handler.php. If it gives you a choice between file and url, choose url.

Lastly, make sure you enable permalinks in the WordPress control panel under Options > Permalinks.

This solution supercedes the ASP solution.