From a8c39085cb343e77c5ab912c9f2fe9a02730d499 Mon Sep 17 00:00:00 2001 From: Matthew Barbour Date: Mon, 26 Oct 2020 10:13:28 -0500 Subject: [PATCH] Image to Post - view counter --- ext/image_view_counter/info.php | 6 +++--- ext/image_view_counter/main.php | 2 +- ext/image_view_counter/theme.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ext/image_view_counter/info.php b/ext/image_view_counter/info.php index 10bcae92..ad043076 100644 --- a/ext/image_view_counter/info.php +++ b/ext/image_view_counter/info.php @@ -5,13 +5,13 @@ class ImageViewCounterInfo extends ExtensionInfo public const KEY = "image_view_counter"; public $key = self::KEY; - public $name = "Image View Counter"; + public $name = "Post View Counter"; public $url = "http://www.drudexsoftware.com/"; public $authors = ["Drudex Software"=>"support@drudexsoftware.com"]; public $license = self::LICENSE_GPLV2; - public $description = "Tracks & displays how many times an image is viewed"; + public $description = "Tracks & displays how many times a post is viewed"; public $documentation = -"Whenever anyone views an image, a view will be added to that image. +"Whenever anyone views a post, a view will be added to that image. This extension will also track any username & the IP address. This is done to prevent duplicate views. A person can only count as a view again 1 hour after viewing the image initially."; diff --git a/ext/image_view_counter/main.php b/ext/image_view_counter/main.php index 5e7fca1e..77f67f94 100644 --- a/ext/image_view_counter/main.php +++ b/ext/image_view_counter/main.php @@ -102,7 +102,7 @@ class ImageViewCounter extends Extension public function onPageSubNavBuilding(PageSubNavBuildingEvent $event) { if ($event->parent=="posts") { - $event->add_nav_link("sort_by_visits", new Link('popular_images'), "Popular Images"); + $event->add_nav_link("sort_by_visits", new Link('popular_images'), "Popular Posts"); } } } diff --git a/ext/image_view_counter/theme.php b/ext/image_view_counter/theme.php index 782a2a6b..98bc2d6e 100644 --- a/ext/image_view_counter/theme.php +++ b/ext/image_view_counter/theme.php @@ -19,6 +19,6 @@ class ImageViewCounterTheme extends Themelet public function get_help_html() { - return '

Search for images that have received views by users.

'; + return '

Search for posts that have received views by users.

'; } }