Difference between revisions of "Custom Counters Mod"

From TNG_Wiki
Jump to: navigation, search
(TNG User sites using this mod)
Line 3: Line 3:
 
| mod_summary    = Displays a selectable range of counters on the horizontal menu bar.
 
| mod_summary    = Displays a selectable range of counters on the horizontal menu bar.
 
| mod_validation  = The mod is XHTML compliant.[[Image:Valid-xhtml10.png|44px]]
 
| mod_validation  = The mod is XHTML compliant.[[Image:Valid-xhtml10.png|44px]]
| download_link  = [http://mfo.me.uk/ccount/click.php?id=2 Custom Counter Mod v10.0.0.1] {{Tv100}}
+
| download_link  = [http://mfo.me.uk/ccount/click.php?id=2 Counters Mod v10.0.0.1] {{Tv100}}<hr><br />
 +
[http://mfo.me.uk/ccount/click.php?id=8 Counters Mod v10.1.0.0] {{Tv1010}}
 
| download_stats  = [http://mfo.me.uk/ccount/index.php?action=stats&groupid=1 See download statistics]
 
| download_stats  = [http://mfo.me.uk/ccount/index.php?action=stats&groupid=1 See download statistics]
 
| mod_author      = [[User:HiTowerUK|Roger Mitchell]]
 
| mod_author      = [[User:HiTowerUK|Roger Mitchell]]
Line 9: Line 10:
 
| mod_support    = [http://mfo.me.uk/ccount/click.php?id=3 My Mod Support]
 
| mod_support    = [http://mfo.me.uk/ccount/click.php?id=3 My Mod Support]
 
| mod_contact    = [http://mfo.me.uk/ccount/click.php?id=3 My Mod Support]
 
| mod_contact    = [http://mfo.me.uk/ccount/click.php?id=3 My Mod Support]
| mod_version    = 10.0.0.1 for TNG V10
+
| mod_version    = 10.1.0.0 for TNG V10.1
 
| min_TNG_ver    = Not tested on pre 10 versions of TNG
 
| min_TNG_ver    = Not tested on pre 10 versions of TNG
 
| max_TNG_ver    = 10+
 
| max_TNG_ver    = 10+
Line 90: Line 91:
 
* Added the ability to select a single page script to NOT show counters on.
 
* Added the ability to select a single page script to NOT show counters on.
 
* Minor simplification of SQL queries.
 
* Minor simplification of SQL queries.
 +
|
 +
|-
 +
| v10.1.0.0
 +
| 12 January 2015
 +
|
 +
Upgraded for use with TNG 10.1.
 
|
 
|
 
|-
 
|-
Line 109: Line 116:
 
| [[User:HiTowerUK|Roger Mitchell]]
 
| [[User:HiTowerUK|Roger Mitchell]]
 
| Mod developer
 
| Mod developer
| V10.0.0.1
+
| V10.0.0.1 & 10.1.0.0
| 10.0.2
+
| 10.0.3 & 10.1.0 beta 3
 
| EN
 
| EN
 
|-
 
|-

Revision as of 16:30, 12 January 2015

Custom Counters Mod
Summary Displays a selectable range of counters on the horizontal menu bar.
Validation The mod is XHTML compliant.Valid-xhtml10.png
Mod Updated {{{mod_last_update}}}
Download link Counters Mod v10.0.0.1
TNG 10.0


Counters Mod v10.1.0.0

TNG 10.1.0
Download stats See download statistics
Author(s) Roger Mitchell
Homepage Mitchell Families Online
Mod Support My Mod Support
Contact Developer My Mod Support
Latest Mod 10.1.0.0 for TNG V10.1
Min TNG V Not tested on pre 10 versions of TNG
Max TNG V 10+
Files modified
genlib.php
Related Mods
None
Notes
None


Introduction

This mod was developed to enable the display of a selectable set of counters on the horizontal menu row (see clip below). They include:

  • Total number of individuals in your database.
  • Date of latest update to a person in your database.
  • Total number of photos available on your site.
  • Total number of media items available on your site.
  • A link to 'Bookmarks' and a counter if Bart's Persistent Bookmarks mod is installed.


Visualisation

This is how the installed mod looks with all the available counters enabled. (Customised template 12.)

Counters Mod

To see this mod live, go to my website.

Features

  • If your site visitor is logged in and has an entry in the database, clicking on the people group icon will take the user directly to their own page. If they are not logged in, they will be taken to your 'surnames' page.
  • Hovering over any of the counters shows a tool-tip of what the counter is displaying.
  • Clicking on the calender icon will take the visitor directly to your 'What's New' page.
  • Clicking on the camera icon will take the visitor directly to your 'photos' page.
  • Clicking on the folder icon will take the visitor directly to the 'all media' page.
  • Clicking on the star icon will take the visitor to your 'bookmarks' page, but if you have installed the Persistent Bookmarks mod, a counter will indicate how many bookmarks have been saved by the currently logged-in user. If the visitor is not logged in, the counter will not be shown.

How to use

To enable or disable any counter, go to Admin | Mods and use the "Edit" facility in the Mod Manager.


Developer

Roger Mitchell with some coding help from Ulf Klinteberg

Requirements

  • A working TNG installation.
  • An installed current version of the Mod Manager

Automated Installation

  1. Download the zip file from the download links in the mod summary area in the upper right.
  2. Extract the contents of the zip file into your mods folder and upload to your site.
  3. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the chosen cfg file.
  4. Use the mod "Edit" function to enable or disable the counters you want to use. All available counters are enabled by default.

Custom Text Additions

Only English and English-UTF8 text variables are supplied with the mod. To use other languages, it will be necessary for your own translations to be added to the relevant language folders in your cust_text.php files.

In the event of a problem with your TNG site

  1. Try using the Mod Manager Remove capability, or
  2. Restore backup copies of: genlib.php; genstyle.css; languages/English/cust_text.php; languages/English-UTF8/cust_text.php. Delete counters.php from your extensions folder and delete the mods/counters folder.

Revision History

Version Date Contents
v10.0.0.0 29 May 2014 Initial release
v10.0.0.1 01 June 2014
  • Fixed a problem with paths reported by some users.
  • Added the ability to select a single page script to NOT show counters on.
  • Minor simplification of SQL queries.
v10.1.0.0 12 January 2015

Upgraded for use with TNG 10.1.

TNG User sites using this mod

If you download and install this mod, please add your TNG sites to the table below

URL User Note Mod-Version TNG-Version User-language
Mitchell Families Online Roger Mitchell Mod developer V10.0.0.1 & 10.1.0.0 10.0.3 & 10.1.0 beta 3 EN
Hooley Family Links Rick Hooley login: guest pwd: guest V10.0.0.1 10.0.3 EN
My family Oname.gif monochrome version see here D,(NL),(GB)
... ... ... ... ... ...