Pagebar adds a nice page bar to your blog posts, multipaged posts and paged comments:
- Make sure you have PHP 5 installed, which is required for this plugin!!!
- Copy files
Unpack the archive and copy the files into a directory called "pagebar" in
your plugin directory (usually .../wp-content-plugins/). Copy the file "pagebar.css"
into your themes directory or copy the content to the theme's "style.css" file.
- Adding postbar to your blog posts
There are two ways of inserting postbar into you blog:
- automatic
-
manual
-
Automatic installation
If you have a simple blog (e.g. the default theme) you can easily add postbar by selecting �Automagic insertion� in the options page. Then you can select where you want the postbar to appear:
- Front of postings
- Behind postings
- Footer
+Manual installation
If the automatic insertion is not suitable for your blog because your theme has more than one posting loop you can add postbar manually to your blog by editing some of your themes files. Simply add the following code directly behind The Loop in your index.php and search.php:
if (function_exists('postbar'))
postbar();
Of course you may want to configure postbar to your needs using the option page and by editing the pagebar.css style file.
- Adding pagebar to your multipaged posts
This pagebar can not be displayed automatically so you have to edit the file "page.php". If your theme contains the standard navigation for multipaged posts you first have to delete the following code:
wp_link_pages(array('before' => '<p><strong>' . __('Pages:', 'kubrick') . '</strong> ', 'after' => '</p>', 'next_or_number' => 'number'));
(The code does not have to look necessarily exactly the same, this example is from the WordPress default theme.) Then you can add the multipagebar to your pages:
if (function_exists('multipagebar'))
multipagebar();
You can customize the display of your multipagebar by editing the settings in the Multipagebar tab on the pagebar option page.
* Adding pagebar to your paged comments
This pagebar can not be added automatically (there is no action indicating the end of the comment loop) so you have to edit the file "comments.php". If your theme contains the standard navigation for paged comments you first have to delete the following code:
(The code does not have to look necessarily exactly the same, this example is from the WordPress default theme.) Then you can add the commentbar to your pages:
if (function_exists('commentbar'))
commentbar();
- Upgrading from earlier versions
Important: the old "pagebar()" function has been renamed to "postbar()" since this seems to describe its function better. Nevertheless the old "pagebar()" function is and will be an alias.
pagebar v2.5+ introduces a new database structure for its settings. Formerly there was only one entry in "wp_options" called "pagebar". Since there are now three different pagebars ("postbar", "commentbar" and "multipagebar"), the options are splitted into three entries ("postbar", "commentbar" and "multipagebar" respectively).
After installation (either through WordPress update or manually per FTP) pagebar copies the settings stored in "pagebar" to the new "postbar" entry and sets "commentbar" and "multipagebar" to inherit the settings so everything should look fine without manual interference. The "commentbar" and "multipagebar" have to be installed manually though.
2.61
- Fixed: tab code in settings pages
- Fixed: remove standard navigation in twenty-eleven
- Fixed: detection of main loop
- Added: Automagic styling of page in Automattic's twenty-(ten, eleven, twelve, thirteen) themes
2.60.1
- Fixed: Problem with manual insertion of pagebar and parameter error
2.60
- Added: some actions (_before, _after)
- Added: Romaian language file. Thanks Web Geek Science (webhostinggeeks.com)
- Changed: default pagebar design
- Fixed: replaced deprecated function clean_url()
- Fixed: Automagic insert of pagebar only in main loop (Thanks to @toscho, @herrllama and @bueltge)
2.59.1
- Fixed: enabling/disabling of positioning options
- Fixed: Replaced "add_contextual_help()" with "$screen->add_help_tab()" for WP >= v3.3
2.59
2.58
- Fixed: Problems with custom taxonomies in WP3.0
2.57
- Fixed: Name collisions with other plugins (added 'pagebar_' to all global functions).
2.56
- Fixed: Theme editor problem in WordPress v2.9
2.55
- Fixed: function name collision with YARPP.
- Fixed: $_POST parameter collision with FireStat.
- Added: contextual help
2.54
- Removed "display all comments" feature. "Break comments into pages" can be de-selected again.
- Fixed: settings where not correctly inherited by multipagebar and commentbar.
- Fixed: commentbar was displayed if only one page was present.
2.53
- Fixed: commentbar/multipagebar "all" link was not working correctly
- Fixed: Now compatible with PHP4
2.52
*fixed: non administrators could change settings
2.51
- Fixed: Function wp_remove_nav was missing.
2.50
- Total rewrite of code (introcduced classes)
- Added pagebar for paged comments (commentbar)
- Added pagebar for multipaged posts (multipagebar)
- Prevention of updates if WP < v2.7 or PHP < v5.0
= 2.22 = Added Belarussian translation. Thanks to Ilya of www.fatcow.com
2.21
2.20
- Added: French language pack (Thanks to Lise of http://liseweb.fr/)
- Fixed: The label "Postitioning" could not be i18n-ized
2.19
- Fixed: own stylesheet textfield accessibilty restored
2.18
- Fixed: a debugging output was displaying
- Fixed: WP's new "auto update" feature created a directory called "pagebar". The
plugin should now work with both directory names ("pagebar2" and "pagebar").
2.17
- Fixed: options are displayed correctly with short_open_tag turned off.
2.16
- Added: Detects installation directory
2.15
- Added: Support for internationalisation (i18n)
- Added: German language files
- Fixed: Hopefully last validation error in tooltips (Thanks again to mike of www.trash-wissen.de)
2.01
- Fixed: Standard navigation was not displayed on single post pages (thanks to Joern of diekretschmars.de)
- Fixed: Removed surplus double quote from title tags (thanks again to Joern)
2p4
- Fixed: previous and next links didn't display tooltips
- Fixed: custom stylesheet wasn't found in theme directory (thanks to Ufuk of www.ufukeskici.com)
2p3
- Fixed: Now works (again) with non-US-ASCII characters
- Fixed: Pagebar no longer appears in feeds (thanks to Mike of www.trash-wissen.de)
2p2
- Fixed: Unneccessary semicolon caused pagebar to be displayed on top of the postings every time
- Fixed: Missing type declaration in declaration
- Fixed: Option page will no longer be available for non-admin users
- Thanks to Monika TS, A. Berger
2p1
- Total rewrite of code.
- Added GUI option page
- automatic insertion of pagebar instead of manuualy insertion
- much more options to modify pagebar
- much more...
1.3.2
1.3.1a
1.3.1
- Fixed: Works again with category pages
- Fixed: Wrong homepage URL
1.3
- Fixed: Compatibility with Wordpress v2.1
- Fixed: Corrected README (thanks to Alexander Geschonneck)
1.2
- Added: Previous and next strings definable
- Added: Ability to suppress direction links
1.1.1
- Fixed: some minor HTML bugs
- Fixed: should now be XHTML compliant (thanks to R. Borges for the error report)
1.1
- Added: direction arrows
- Added: tooltips
- Attention: parameter calls changed!
1.0