From 439c3a8320c6e710fc328066e63d40e3b5b4d9ec Mon Sep 17 00:00:00 2001 From: Matthew Barbour Date: Mon, 26 Oct 2020 10:12:54 -0500 Subject: [PATCH] Image to Post - Index --- ext/index/info.php | 86 ++++++++++++++++++++++----------------------- ext/index/theme.php | 6 ++-- 2 files changed, 46 insertions(+), 46 deletions(-) diff --git a/ext/index/info.php b/ext/index/info.php index 67e453a3..9c7377fe 100644 --- a/ext/index/info.php +++ b/ext/index/info.php @@ -5,11 +5,11 @@ class IndexInfo extends ExtensionInfo public const KEY = "index"; public $key = self::KEY; - public $name = "Image List"; + public $name = "Post List"; public $url = self::SHIMMIE_URL; public $authors = self::SHISH_AUTHOR; public $license = self::LICENSE_GPLV2; - public $description = "Show a list of uploaded images"; + public $description = "Show a list of uploaded posts"; public $core = true; public $documentation = "Here is a list of the search methods available out of the box; Shimmie extensions may provide other filters: @@ -24,40 +24,40 @@ Shimmie extensions may provide other filters:
  • size (=, <, >, <=, >=) width x height, eg
  • width (=, <, >, <=, >=) width, eg
  • height (=, <, >, <=, >=) height, eg
  • ratio (=, <, >, <=, >=) width : height, eg
  • filesize (=, <, >, <=, >=) size, eg
  • id (=, <, >, <=, >=) number, eg
  • user=Username & poster=Username, eg @@ -74,48 +74,48 @@ Shimmie extensions may provide other filters:
  • hash=md5sum & md5=md5sum, eg
  • filename=blah & name=blah, eg
  • posted (=, <, >, <=, >=) date, eg
  • tags (=, <, >, <=, >=) count, eg
  • source=(URL, any, none) eg
  • order=(id, width, height, filesize, filename)_(ASC, DESC), eg
  • order=random_####, eg
  • -

    Search items can be combined to search for images which match both, +

    Search items can be combined to search for posts which match both, or you can stick \"-\" in front of an item to search for things that don't match it.

    Metatags can be followed by \":\" rather than \"=\" if you prefer. @@ -129,43 +129,43 @@ match it.

  • downvoted_by=Username -- search for a user's dislikes
  • upvoted_by_id=UserID -- search for a user's likes by user ID
  • downvoted_by_id=UserID -- search for a user's dislikes by user ID -
  • order=score_(ASC, DESC) -- find all images sorted from by score +
  • order=score_(ASC, DESC) -- find all posts sorted from by score -
  • Image Rating +
  • Post Rating
  • Favorites
  • Notes
  • Artists -
  • Image Comments +
  • Post Comments
  • Pools
  • Post Relationships "; diff --git a/ext/index/theme.php b/ext/index/theme.php index 6fc3352b..31d344b7 100644 --- a/ext/index/theme.php +++ b/ext/index/theme.php @@ -171,10 +171,10 @@ and of course start organising your images :-) $page->add_html_header(''); } $query = url_escape(Tag::caret(Tag::implode($this->search_terms))); - $page->add_block(new Block("Images", $this->build_table($images, "#search=$query"), "main", 10, "image-list")); + $page->add_block(new Block("Posts", $this->build_table($images, "#search=$query"), "main", 10, "image-list")); $this->display_paginator($page, "post/list/$query", null, $this->page_number, $this->total_pages, true); } else { - $page->add_block(new Block("Images", $this->build_table($images, null), "main", 10, "image-list")); + $page->add_block(new Block("Posts", $this->build_table($images, null), "main", 10, "image-list")); $this->display_paginator($page, "post/list", null, $this->page_number, $this->total_pages, true); } } @@ -272,7 +272,7 @@ and of course start organising your images :-)
    hash=0D3512CAA964B2BA5D7851AF5951F33B
    -

    Returns image with an MD5 hash 0D3512CAA964B2BA5D7851AF5951F33B.

    +

    Returns post with an MD5 hash 0D3512CAA964B2BA5D7851AF5951F33B.