From 7a60e6fae56db18021e4808a4c991e3c4ca3d765 Mon Sep 17 00:00:00 2001 From: Shish Date: Tue, 5 Jan 2010 10:11:53 +0000 Subject: [PATCH] lots of extension docs --- ext/admin/main.php | 26 ++++++++++++++++++++++++++ ext/alias_editor/main.php | 10 ++++++++++ ext/bbcode/main.php | 23 +++++++++++++++++++++++ ext/ext_manager/main.php | 4 ++++ ext/ext_manager/theme.php | 3 +++ ext/handle_404/main.php | 7 +++++++ ext/image/main.php | 6 ++++++ ext/setup/main.php | 5 +++++ ext/tag_edit/main.php | 6 ++++++ ext/tag_list/main.php | 5 +++++ ext/upgrade/main.php | 5 +++++ ext/upload/main.php | 6 ++++++ ext/user/main.php | 6 ++++++ ext/view/main.php | 6 ++++++ 14 files changed, 118 insertions(+) diff --git a/ext/admin/main.php b/ext/admin/main.php index 83779d98..7a035a39 100644 --- a/ext/admin/main.php +++ b/ext/admin/main.php @@ -1,4 +1,30 @@ + * Link: http://code.shishnet.org/shimmie2/ + * License: GPLv2 + * Description: Various things to make admins' lives easier + * Documentation: + *

Lowercase all tags: + *
Set all tags to lowercase for consistency + *

Recount tag use: + *
If the counts of images per tag get messed up somehow, this will reset them + *

Purge unused tags: + *
Get rid of all the tags that don't have any images associated with + * them (normally they were created as typos or spam); this is mostly for + * neatness, the performance gain is tiny... + *

Convert to InnoDB: + *
Convert your database tables to InnoDB, thus allowing shimmie to + * take advantage of useful InnoDB-only features (this should be done + * automatically, this button only exists as a backup). This only applies + * to MySQL -- all other databases come with useful features enabled + * as standard. + *

Database dump: + *
Download the contents of the database in plain text format, useful + * for backups. + */ + /** * Sent when the admin page is ready to be added to */ diff --git a/ext/alias_editor/main.php b/ext/alias_editor/main.php index cbc6e6b5..fb9135c4 100644 --- a/ext/alias_editor/main.php +++ b/ext/alias_editor/main.php @@ -1,4 +1,14 @@ + * Link: http://code.shishnet.org/shimmie2/ + * License: GPLv2 + * Description: Edit the alias list + * Documentation: + * The list is visible at $site/alias/list; only site admins can edit it, + * other people can view and download it + */ class AddAliasEvent extends Event { var $oldtag; diff --git a/ext/bbcode/main.php b/ext/bbcode/main.php index c00c7332..bddda8c5 100644 --- a/ext/bbcode/main.php +++ b/ext/bbcode/main.php @@ -1,4 +1,27 @@ + * Link: http://code.shishnet.org/shimmie2/ + * License: GPLv2 + * Description: Turns BBCode into HTML + * Documentation: + * Supported tags: + *

+ */ class BBCode extends FormatterExtension { public function format($text) { diff --git a/ext/ext_manager/main.php b/ext/ext_manager/main.php index 47a10d80..a7d11017 100644 --- a/ext/ext_manager/main.php +++ b/ext/ext_manager/main.php @@ -5,6 +5,10 @@ * Link: http://code.shishnet.org/shimmie2/ * License: GPLv2 * Description: A thing for point & click extension management + * Documentation: + * Allows the admin to view a list of all extensions and enable or + * disable them; also allows users to view the list of activated + * extensions and read their documentation */ /** @private */ diff --git a/ext/ext_manager/theme.php b/ext/ext_manager/theme.php index ea17c74d..27ae0846 100644 --- a/ext/ext_manager/theme.php +++ b/ext/ext_manager/theme.php @@ -121,7 +121,10 @@ class ExtManagerTheme extends Themelet {
$author $version + $link

$doc +


+

Back to the list

"; $page->set_title("Documentation for ".html_escape($info->name)); diff --git a/ext/handle_404/main.php b/ext/handle_404/main.php index cffab0e6..4830ff3d 100644 --- a/ext/handle_404/main.php +++ b/ext/handle_404/main.php @@ -1,4 +1,11 @@ + * Link: http://code.shishnet.org/shimmie2/ + * License: GPLv2 + * Description: Shows an error message when the user views a page with no content + */ class Handle404 implements Extension { public function receive_event(Event $event) { diff --git a/ext/image/main.php b/ext/image/main.php index 213c0ca2..f7628ba3 100644 --- a/ext/image/main.php +++ b/ext/image/main.php @@ -1,4 +1,10 @@