Responsive Page Index 1.0by Antechinus
Warning for inexperienced admins:This modification for SMF 2.0.x completely replaces the standard SMF page index function.
Installation requires editing several files which are critical to the operation of your forum.
Although the installation code is specifically written to minimise the chance of problems,
as a precaution it is highly recommended that you back up your files before installation.
The new page index installed by this mod is not actually responsive in itself,
but due to its compact and accessible nature will be ideal for responsive sites.
The default list of
page links is replaced by a select (or "dropdown" if you call it that).
This allows easy selection of any page on desktop or touchscreen, without using much space.
The new format includes previous page and
next page links, sized for use on touchscreen.
These are generally handy, and give a backup for page selection if javascript is disabled.
This modification gives full support for RTL languages and screenreader accessibility.
Styling of all elements can be easily changed via edits to index.css and/or rtl.css.
This mod also fixes the behaviour of the
previous/next topic links in Display.template.php.
See
this post at SMF (for a description of the original problem),
and
in this post (shows the final debugged version of the code).
These fixes were incorporated in SMF 2.1 and Elkarte, so have been backported to SMF 2.0.
No changes are made to the
default styling of these links.
This modification is licensed under the
ISC license.
Copyright (c) 2015),
AntechinusPermission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Note for coders: I've added error="ignore" to all template operations.
This is just so any customised templates won't stop the mod installing.
The critical edits are in Subs.php. Template edits only tidy up presentation.
If anything looks funny after installation, check for skipped template edits.