pagebar v1.3

This is an obsolete version of pagebar. Please refer to the current version! This page is maintained for historical reasons only.

Pagebar needs heavy recoding to work completely correct with Wordpress 2.1. Currently I’m writing a tool to ease the development of plugins like Pagebar, so it may take some time for a new version. Stay tuned.

Purpose

Adds a nice page bar for selecting indivual pages instead of just the previous or next page.

Examples

Standard Colors

Modified colors

Installation

Copy the file pagebar.php to your plugins directory and add the CSS code contained in pagebar.css
to your style.css.
Then add the following code directly behind The Loop in your index.php and search.php:

	<?php wp_pagebar(array('before'=>'Pages:&nbsp;'))?>




(In standard themes this means to replace then code from “

” with the code above.)

There are several parameters you can set:

name function default
before what’s displayed in front of the bar ‘ ’
after what’s displayed behind the bar ‘ ’
tooltip shall the tooltips be displayed? true
tooltip_text text to be display in tooltip before the page number ‘Page: ’
prev text for previous page link ‘◄’
next text for next page link ‘►’
directions display the direction boxes (prev/next)? true;

Here’s a function call with some parameters:


Download

FAQ

Known problems

  • Does not work on pages other than the index and the archives pages.
  • Does not work if Show at most is set to days.

History

15 OCT 2007  -  v1.3.3  -  Added: support for Wordpress internal tagging

Added: support for Simple Tags (http://www.herewithme.fr/wordpress-plugins/simple-tags)

10 MAY 2007  -  v1.3.2  -  Added: Support for Simple Tagging Plugin
(Thanks to CodeOne [http://coderone.de] and J.P. Jarolim)
19 APR 2007  -  v1.3.1a  -  Fixed: Security problem concenring XSS
22 JAN 2007  -  v1.3.1  -  Fixed: Works again with category pages
Fixed: Wrong homepage URL
16 JAN 2007  -  v1.3  -  Fixed: Compatibility with Wordpress v2.1
Fixed: Corrected README (thanks to Alexander Geschonneck)
22 MAY 2006  -  v1.2  -  Added: Previous and next strings definable
Added: Ability to suppress direction links
28 APR 2006  -  v1.1.1  -  Fixed: some minor HTML bugs
Fixed: should now be XHTML compliant (thanks to R. Borges for the error report)
24 APR 2006  -  v1.1  -  Added: direction arrows
Added: tooltips
Attention: parameter calls changed!
17 APR 2006  -  v1.0  -  Initial version.