Difference between revisions of "User Sorting"

From TNG_Wiki
Jump to navigation Jump to search
(→‎Sites using this mod: no longer use this mod)
 
(37 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{TNGmod
+
{{SupportNeeded}}{{V12_cust_text}}{{TNGmod
 
| mod_name        = [[User Sorting]]
 
| mod_name        = [[User Sorting]]
 
| mod_summary    = This mod adds the ability to sort the user list in Admin using various fields.
 
| mod_summary    = This mod adds the ability to sort the user list in Admin using various fields.
 
| mod_validation  = This mod is XHTML compliant.[[Image:Valid-xhtml10.png|44px]]
 
| mod_validation  = This mod is XHTML compliant.[[Image:Valid-xhtml10.png|44px]]
| download_link  = <br/>{{Tv1010}}[http://daj.website/files/clickcount/click.php?id=2 user_sorting_v10.1.0.1.zip]
+
| mod_last_update = 23 Nov 2020
| download_stats =     [http://www.daj.website/files/clickcount/index.php?action=stats&id=2 See download statistics]
+
| download_link  = For{{Tv140}}{{Tv130}}<br />[[Media:User_sorting_v13.0.0.0.zip|User_sorting_v13.0.0.0.zip]]<!-- <hr style="clear: both;"/>[http://justdaj.uk/files/clickcount/click.php?id=2 user_sorting_v10.1.0.1.zip] -->
| mod_author      = David A Jamieson
+
| download_stats = <!-- [http://www.justdaj.uk/files/clickcount/index.php?action=stats&id=2 See download statistics] -->
| mod_url        = [https://www.jamiesontree.uk/ Jamieson Genealogy]
+
| mod_author      = [[User:Daj|David A Jamieson]]
| mod_support    = TNG Forums or [http://daj.website DAJ]
+
| mod_url        = '''{{PAGENAME}}''' (This page)<!-- [https://www.jamiesontree.uk/ Jamieson Genealogy] -->
| mod_contact    = [http://daj.website daj.website]
+
| mod_support    = [https://tng.community/index.php?/forums/forum/21-addons/ TNG Community Forums]<!-- [http://justdaj.uk DAJ] -->
| mod_version    = 10.1.0.1
+
| mod_contact    = [https://tng.community/index.php?/forums/forum/21-addons/ TNG Community Forums] <!-- [http://justdaj.uk justdaj.uk] -->
 +
| mod_version    = 13.0.0.0
 
| min_TNG_ver    = 10.1
 
| min_TNG_ver    = 10.1
| max_TNG_ver    = 10.1
+
| max_TNG_ver    = 14
| TNG_file_list  = admin_users.php<br/>cust_text.php
+
| TNG_file_list  = admin_users.php<br />languages/English/cust_text.php<br />languages/English-UTF8/cust_text.php
| related_mods   = [[Sort User List]]
+
| related_mods   = [[Sort User List]]
| notes   =  
+
| notes           =  
}}
+
}}{| style="margin-right:0.5 em;" align="right"
 
+
| __TOC__
{|align=right
 
|__TOC__
 
 
|}
 
|}
 
 
== Purpose of the mod ==
 
== Purpose of the mod ==
 +
This TNG modification adds two new buttons below the search text area within User Admin. These allow you to order the results based on eight different fields, in ascending or descending order.
  
The mode will add two new buttons below the search text area within User Admin. These allow you to order the results based on eight different fields, in ascending or descending order
+
== Developer ==
 +
This mod was developed by [[User:Daj|David A Jamieson]]. Updated for TNG13 by [[User:Rgstrong|Russ Strong]].
  
 +
==Requirements==
 +
* A working TNG installation.
 +
* A backup of all affected files (see the list in the summary to the right)
 +
* An installed current version of the [[Mod Manager]].
 +
* Both '''English''' and '''English-UTF8''' folders be on your site
  
[[Image:User-sorting-mod-screenshot.png|650px|Example screen shot of mod in use]]
+
== Revision History ==
 +
{| border="0" cellspacing="1" cellpadding="2" class="wikitable"
 +
|-
 +
! Mod Version
 +
! TNG Version
 +
! Date
 +
! Contents
  
 +
|- style="vertical-align:top;"
 +
| 13.0.0.0
 +
| 13.0
 +
| style="white-space: nowrap;"|23 Nov 2020
 +
| Updated for TNG v13.0.0
  
== Developer ==
+
|- style="vertical-align:top;"
 +
| 10.1.0.1
 +
| 10.1
 +
| style="white-space: nowrap;"|
 +
| New for TNG v10.1
 +
|}
  
This mod was developed by David A Jamieson (daj)
+
== Conflicts and Issues ==
 +
Conflict with [[Admin Users Menu]].
  
 +
== Installation ==
 +
# Uninstall and delete previous version of this mod (if installed)
 +
# Download the appropriate zip file as shown in the mod summary in the upper right corner of the page.
 +
# Extract the file from the downloaded zip file into the '''mods''' folder or FTP the extracted file to your mods folder.
 +
# Follow the normal automated installation for Mod Manager, as shown in  the example [[Mod Manager - Installing Config Files]] to install the mod.
  
==Requirements==
+
== In the event of a problem ==
 +
* Try using the [[Mod_Manager_-_Installing_Config_Files#Remove_Mod_Steps|Mod Manager Remove]] capability.
 +
* Copy the backup of the affected files back to your TNG  directory.
 +
* Retry installing mod.
 +
* Contact us through the [https://tng.community/index.php?/forums/forum/21-addons/ TNG Community Forums].
  
* A working TNG V10 installation.
+
== Uninstalling the mod ==
* An installed current version of the [[Mod Manager]].
+
If  you want to completely '''Remove''' (uninstall) this mod and all its tables, you should
 +
# click the '''Uninstall''' button to uninstall the mod
 +
# click the '''Delete''' button to delete the config file from the mods folder.
  
 +
== Upgrade ==
 +
*Uninstall and eventually Delete the current Mod.
 +
*Proceed as for an installation with the new Mod.
  
==Automated Installation==
+
== Visualization ==
# Download the zip
+
The following screen captures show the changes made by the mod:
# Extract the file and upload the .cfg file to the mods folder on your tng webserver.
 
# Login to the TNG Admin
 
# Click on Mod Manager
 
# You should see the mod listed as 'OK to install'.  Click this and then the Install Button
 
  
== Custom Text ==
+
[[Image:User-sorting-mod-screenshot.png|650px|Example screen shot of mod in use]]
 
 
This MOD adds custom text in the cust_text.php file in the English / English-UTF8 folders. 
 
 
 
=== cust_text.php ===
 
  
If you are not using English as the language in Admin, you need to add the following to [[Setup_-_Language#Cust_Text|cust_text.php]] for your language
+
==Languages==
 +
This MOD adds custom text in the cust_text.php file in the English / English-UTF8 folders.
 +
If you want to use it with a different language, add the correct text (between double quotes) in the code below and add to your cust_text.php file in the appropriate language folder.
  
<syntaxhighlight lang="php" enclose="div">
+
<syntaxhighlight lang="php">
 
// Added for TNG Admin Mod - User Sorting
 
// Added for TNG Admin Mod - User Sorting
 
$admtext['uso_orderby'] = 'Order by: ';
 
$admtext['uso_orderby'] = 'Order by: ';
Line 69: Line 99:
 
$admtext['uso_descending'] = 'Descending';
 
$admtext['uso_descending'] = 'Descending';
 
</syntaxhighlight>
 
</syntaxhighlight>
 
 
== In the event of a problem ==
 
 
* Try using the [[Mod_Manager_-_Installing_Config_Files#Remove_Mod_Steps|Mod Manager Remove]] capability
 
* Contact me through the forum (username daj) or email me.
 
 
  
 
== Sites using this mod ==
 
== Sites using this mod ==
 +
If you download and install this mod, please add your TNG site to the table below:
  
If you download and use this mod, please add your TNG site to the table below. If you are not sure how to add your details please email me (see box top right) and I will update.
+
{| border="0" cellspacing="1" cellpadding="2" class="wikitable" width="100%"
 
 
{| border="0" cellspacing="1" cellpadding="2" class="wikitable"
 
 
|-
 
|-
 
! URL
 
! URL
Line 89: Line 111:
 
! TNG-Version
 
! TNG-Version
 
! User-language
 
! User-language
 +
 
|-
 
|-
| [http://www.royandboucher.com/tng/index.php Our Roy and Boucher Family]
+
| [https://www.bradyfamilytree.org/ Brady Family Tree in Western Australia]
| [[User:Ken Roy|Ken Roy]]
+
| style="white-space: nowrap;"|[[User:bradyfamilytree|Darryl Brady]]
| A better mod than the [[Sort User List]]
+
| Public site
 
| 10.1.0.1
 
| 10.1.0.1
| 10.1
+
| 10.1.1
| French, English
+
| style="white-space: nowrap;"|EN,DE
 +
|-
 +
| [https://www.rgstrong-genes.com R G Strong Family Genealogy]
 +
| style="white-space: nowrap;"|[[User:Rgstrong|Russ Strong]]
 +
| Public
 +
| 13.0.0.0
 +
| {{Tv1404}}
 +
| style="white-space: nowrap;"|EN,FR,DE,NL
 +
|-
 +
| [http://www.genealogie.mkirsch.be Racines Luxos-hennuyères]
 +
| style="white-space: nowrap;"|[[User:MichelKirsch|Michel Kirsch]]
 +
| Pleasant Mod !
 +
| 13.0.0.0
 +
| 13.0.3
 +
| style="white-space: nowrap;"|FR,EN,DE,DU,ES
 +
|-
 +
| [https://www.duttongenealogy.com The Duttons of New England]
 +
| style="white-space: nowrap;"|[[User:Darrin65|Darrin Dutton]]
 +
| Public/Private
 +
| 13.0.0.0
 +
| 14.0.1
 +
| style="white-space: nowrap;"|EN
 
|}
 
|}
  
 +
[[Category:Mods for TNG v14]]
 +
[[Category:Mods for TNG v13]]
 +
[[Category:Mods for TNG v12]]
 +
[[Category:Mods for TNG v11]]
 
[[Category:Mods for TNG v10]]
 
[[Category:Mods for TNG v10]]
 +
 
[[Category:admin_users.php mods]]
 
[[Category:admin_users.php mods]]
 +
 +
[[Category:Cust text.php English mods]]

Latest revision as of 05:19, 10 April 2024

NeedSupport The mod User Sorting needs a new support person since the original mod developer or subsequent developers are no longer available to support the mod NeedSupport


Ambox notice.png The latest version of this mod uses the guidelines for TNG v12+ cust_text.php files. If you are using TNGv12+, and any cust_text.php file in this mod is marked with a Bad Target error, you need to update your cust_text.php files before you can install this mod. [Show instructions]

If you upgraded to TNGv12+, and did not update your cust_text.php files as instructed in the upgrade readme script, then you must use the TNG Mod Manager to update them. To do so:

  1. Go to Mod Manager, and select its "Recommended Updates" tab.
    (If the "Recommended Updates" tab is not visible, then go to the Mod Manager Options tab, select "Display Settings", and turn on the "Recommended Updates" tab.)
  2. Click the "Update" button in the "Recommended Updates" tab.
    Installed mods do not interfere with the update, and if you already have (or think you may have) run this update, it will not hurt for you to run it again.

[See details in the TNGv12 Change Impacts Article][Hide the instructions]

TNG 14.0
TNG 13.0
TNG 12.0


User Sorting
Summary This mod adds the ability to sort the user list in Admin using various fields.
Validation This mod is XHTML compliant.Valid-xhtml10.png
Mod Updated 23 Nov 2020
Download link For
TNG 14.0
TNG 13.0

User_sorting_v13.0.0.0.zip
Download stats
Author(s) David A Jamieson
Homepage User Sorting (This page)
Mod Support TNG Community Forums
Contact Developer TNG Community Forums
Latest Mod 13.0.0.0
Min TNG V 10.1
Max TNG V 14
Files modified
admin_users.php
languages/English/cust_text.php
languages/English-UTF8/cust_text.php
Related Mods
Notes

Purpose of the mod

This TNG modification adds two new buttons below the search text area within User Admin. These allow you to order the results based on eight different fields, in ascending or descending order.

Developer

This mod was developed by David A Jamieson. Updated for TNG13 by Russ Strong.

Requirements

  • A working TNG installation.
  • A backup of all affected files (see the list in the summary to the right)
  • An installed current version of the Mod Manager.
  • Both English and English-UTF8 folders be on your site

Revision History

Mod Version TNG Version Date Contents
13.0.0.0 13.0 23 Nov 2020 Updated for TNG v13.0.0
10.1.0.1 10.1 New for TNG v10.1

Conflicts and Issues

Conflict with Admin Users Menu.

Installation

  1. Uninstall and delete previous version of this mod (if installed)
  2. Download the appropriate zip file as shown in the mod summary in the upper right corner of the page.
  3. Extract the file from the downloaded zip file into the mods folder or FTP the extracted file to your mods folder.
  4. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the mod.

In the event of a problem

Uninstalling the mod

If you want to completely Remove (uninstall) this mod and all its tables, you should

  1. click the Uninstall button to uninstall the mod
  2. click the Delete button to delete the config file from the mods folder.

Upgrade

  • Uninstall and eventually Delete the current Mod.
  • Proceed as for an installation with the new Mod.

Visualization

The following screen captures show the changes made by the mod:

Example screen shot of mod in use

Languages

This MOD adds custom text in the cust_text.php file in the English / English-UTF8 folders. If you want to use it with a different language, add the correct text (between double quotes) in the code below and add to your cust_text.php file in the appropriate language folder.

// Added for TNG Admin Mod - User Sorting
$admtext['uso_orderby'] = 'Order by: ';
$admtext['uso_username'] = 'Username';
$admtext['uso_realname'] = 'Real name';
$admtext['uso_description'] = 'Description';
$admtext['uso_personid'] = 'Person ID';
$admtext['uso_role'] = 'Role';
$admtext['uso_tree'] = 'Tree';
$admtext['uso_branch'] = 'Branch';
$admtext['uso_lastlogin'] = 'Last Login';
$admtext['uso_ascending'] = 'Ascending';
$admtext['uso_descending'] = 'Descending';

Sites using this mod

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

URL User Note Mod-Version TNG-Version User-language
Brady Family Tree in Western Australia Darryl Brady Public site 10.1.0.1 10.1.1 EN,DE
R G Strong Family Genealogy Russ Strong Public 13.0.0.0
TNG 14.0.4
EN,FR,DE,NL
Racines Luxos-hennuyères Michel Kirsch Pleasant Mod ! 13.0.0.0 13.0.3 FR,EN,DE,DU,ES
The Duttons of New England Darrin Dutton Public/Private 13.0.0.0 14.0.1 EN