Pagify
Plugin Description:
This plugin splits a page into parts of x bytes and provides links for the other parts. It expects a reasonable valid page content and splits only between paragraphs.
To use it, specify a tag/keyword
_pagify x
(x = size of parts in bytes) on your page (1.1+: do not specify x to split on hr) or call
pagify_set_size(x)
from your template.
x can contain a unit, e.g. '1000' or '1000b' (1000 bytes), '20w' (20 words), 100c (100 characters), 3p (3 paragraphs = top level tags)
To set the number of pages to display in the navigation, call
pagify_set_size(null, 9)
from your template (here for 9 pages, use odd numbers).
- Version 1.0 has fancy URLs, multilanguage support, first/last page links and can be used by other plugins.
- Version 1.1 allows splitting on hr, if you don't specify a size.
- Version 1.4 does omit the page parameter on the first page
- Version 1.4.1 supports php8
Install Instructions:
Unpack into plugins directory.
For fancy URLs, put the following line into gsconfig.php
define('PAGIFY_SEPARATOR',';');
and add a rule like the following to the root .htaccess
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9_-]+);(d+)/?$ index.php?id=$1&page=$2 [QSA,L]
Archived Versions:
These are old versions of this file. Please use with caution as they are probably out of date and no longer supported. ShowHide