Difference between revisions of "Restrict Access mod"
(63 intermediate revisions by 18 users not shown) | |||
Line 1: | Line 1: | ||
− | {{TNGmod | + | {{SupportNeeded}}{{TNGmod |
| mod_name = Restrict Access Mod | | mod_name = Restrict Access Mod | ||
| mod_summary = Blocks access to files ('''except PDFs''') unless user is logged in | | mod_summary = Blocks access to files ('''except PDFs''') unless user is logged in | ||
| 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 = [ | + | | mod_last_update = 17 June 2018 |
+ | | download_link = <!-- [https://www.katiandgraham.com/genealogy/ccount/click.php?id=71&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} restrict_access_V12.0.1.6.zip] -->For{{Tv1201}}{{Tv130}}{{Tv140}}[[Media:restrict_access_V12.0.1.6a.zip|restrict_access_V12.0.1.6a.zip]]<hr style="clear: both;"/>For{{Tv90}}{{Tv100}}{{Tv110}}{{Tv120}}[https://www.katiandgraham.com/genealogy/ccount/click.php?id=9&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} restrict_access_V9.0.0.5.zip] | ||
| download_stats = [http://www.katiandgraham.com/genealogy/ccount/index.php?action=stats&groupid=5 See download statistics] | | download_stats = [http://www.katiandgraham.com/genealogy/ccount/index.php?action=stats&groupid=5 See download statistics] | ||
− | | mod_author = Graham Chamberlain | + | | mod_author = [[User:hiraeth|Graham Chamberlain]] |
| mod_url = [[Restrict Access mod]] (This page) | | mod_url = [[Restrict Access mod]] (This page) | ||
− | | mod_support = [ | + | | mod_support = [https://tng.community/index.php?/forums/forum/21-addons/ TNG Community Forums] |
− | | mod_contact = | + | | mod_contact = Support Person Needed |
− | | mod_version = | + | | mod_version = 12.0.1.6a |
− | | min_TNG_ver = 9.0.0 | + | | min_TNG_ver = 9.0.0 |
− | | max_TNG_ver = | + | | max_TNG_ver = 14 |
− | | | + | | TNG_file_list = showlog.php, ajx_logxml.php, anniversaries.php, showsource.php, browsenotes.php, browsemedia.php, browsealbums.php, showmedia.php, languages/English/cust_text.php, languages/English-UTF8/cust_text.php |
− | | related_mods = [[Media Privacy Mod]]<br/>[[Restrict Image Preview]] | + | | related_mods = [[Media Privacy Mod]]<br/>[[Restrict Image Preview]]<br/>[[Public Access Control]] |
| notes = | | notes = | ||
− | }} | + | }}{|align=right |
− | {|align=right | ||
|__TOC__ | |__TOC__ | ||
|} | |} | ||
== Purpose of Mod == | == Purpose of Mod == | ||
− | + | This mod is intended for those with open access to their TNG site but who wish to disable access to media and other selected files for non-registered users. It allows access to the selected files only for logged-in users. If a non-logged-in user tries to access the relevant file they will see a template-formatted page that informs them they are not authorised to view that file and a links to the Home page and Previous page. | |
− | This mod is intended for those with open access to their TNG site but who wish to disable access to media and other selected files for non-registered users. It | ||
'''NOTE:''' | '''NOTE:''' | ||
Line 27: | Line 26: | ||
* '''This mod is not required if your site is 'closed' and requires log-in''' | * '''This mod is not required if your site is 'closed' and requires log-in''' | ||
+ | == Mod Developer == | ||
+ | The Mod Developer is [[User:hiraeth|Graham Chamberlain]]. | ||
+ | |||
+ | ==Requirements== | ||
+ | * A working TNG installation. | ||
+ | * A backup of all affected files (see the list in the summary in the upper right corner of the page) | ||
+ | * An installed current version of the [[Mod Manager]]. | ||
+ | * Both '''English''' and '''English-UTF8''' folders be on your site | ||
+ | |||
+ | ==Revision History== | ||
+ | {| border="0" cellspacing="1" cellpadding="2" class="wikitable" | ||
+ | |- | ||
+ | ! Mod Version | ||
+ | ! TNG Version | ||
+ | ! Date | ||
+ | ! Contents | ||
− | == | + | |- style="vertical-align:top;" |
+ | | 12.0.1.6a | ||
+ | | 12.0.1 | ||
+ | | style="white-space: nowrap;"|24 Feb 2024 | ||
+ | | Corrected two variable syntax errors -- Ron Krzmarzick | ||
+ | |||
+ | |- style="vertical-align:top;" | ||
+ | | 12.0.1.6 | ||
+ | | 12.0.1 | ||
+ | | style="white-space: nowrap;"|22 May 2018 | ||
+ | | Updated to comply with showsource.php in TNG v12.0.1 | ||
+ | |||
+ | |- style="vertical-align:top;" | ||
+ | | 9.0.0.5 | ||
+ | | 9.0 | ||
+ | | style="white-space: nowrap;"|25 May 2016 | ||
+ | | Correct wikipage link and adds text (UTF-8) variable for Danish | ||
+ | |||
+ | |- style="vertical-align:top;" | ||
+ | | 9.0.0.4 | ||
+ | | 9.0 | ||
+ | | style="white-space: nowrap;"|04 February 2016 | ||
+ | | Adds text variable 'regfam' missing from v9.0.0.3 and text (UTF-8) variables for Dutch, French, German and Spanish | ||
+ | |||
+ | |- style="vertical-align:top;" | ||
+ | | 9.0.0.3 | ||
+ | | 9.0 | ||
+ | | style="white-space: nowrap;"|22 Apr 2012 | ||
+ | | Adds text variable 'goback' missing from v9.0.0.2 | ||
+ | |||
+ | |- style="vertical-align:top;" | ||
+ | | 9.0.0.2 | ||
+ | | 9.0 | ||
+ | | style="white-space: nowrap;"|05 Apr 2012 | ||
+ | | New | ||
+ | |} | ||
− | + | == Conflicts and Issues== | |
+ | No known conflicts. | ||
+ | }} | ||
− | Mod Manager | + | ==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. | ||
+ | == 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 | ||
+ | * Contact us through the [https://tng.community/index.php?/forums/forum/21-addons/ TNG Community Forums]. | ||
− | == | + | == Uninstalling the mod == |
+ | 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. | |
== Manual Customisation == | == Manual Customisation == | ||
− | |||
If you wish to allow browsing of media but still disallow viewing the individual media items, you should remove the directive for browsemedia.php. Alternatively, you could limit the media restriction to browsing specific collections. The following example would only block the browsing of 'histories' for non-logged-in users: | If you wish to allow browsing of media but still disallow viewing the individual media items, you should remove the directive for browsemedia.php. Alternatively, you could limit the media restriction to browsing specific collections. The following example would only block the browsing of 'histories' for non-logged-in users: | ||
Line 59: | Line 121: | ||
} | } | ||
'''NOTE''': It is not possible to use the above method to limit the viewing of individual images (showmedia.php) to a specific collection | '''NOTE''': It is not possible to use the above method to limit the viewing of individual images (showmedia.php) to a specific collection | ||
− | |||
== Further Application / Customisation == | == Further Application / Customisation == | ||
− | |||
The principles used in the directives of this mod to limit access also can be applied to other files. | The principles used in the directives of this mod to limit access also can be applied to other files. | ||
Line 74: | Line 134: | ||
== Visualisation == | == Visualisation == | ||
− | + | This is how the standard Restriction Warning appears in Template 8:<br /> | |
− | This is how the standard Restriction Warning appears in | ||
[[File:noaccess.png]] | [[File:noaccess.png]] | ||
− | == | + | ==Sites using this mod== |
+ | If you download and install this mod, please add your TNG site to the table below: | ||
− | {| border=" | + | {| border="0" cellspacing="1" cellpadding="2" class="wikitable" width="100%" |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
! URL | ! URL | ||
! User | ! User | ||
! Note | ! Note | ||
− | ! Mod-Version | + | ! Mod-Version |
+ | ! TNG-Version | ||
! User-language | ! User-language | ||
− | |- | + | |
+ | |- style="vertical-align:top;" | ||
| [http://www.katiandgraham.com/genealogy/ Chamberlain & Eidenbenz Genealogy] | | [http://www.katiandgraham.com/genealogy/ Chamberlain & Eidenbenz Genealogy] | ||
− | | [[User:hiraeth|Graham Chamberlain]] | + | | style="white-space: nowrap;"|[[User:hiraeth|Graham Chamberlain]] |
− | | ... | + | | Mod developer |
− | | | + | | 12.0.1.6 |
− | | | + | | 12.0.1 |
− | |- | + | | EN,FR,DE,ES,NL |
+ | |||
+ | |- style="vertical-align:top;" | ||
+ | | [https://www.treichel-familie.de Treichel-Familie.de] | ||
+ | | style="white-space: nowrap;"|[[User:EAndy|Andreas Treichel]] | ||
+ | | Public & Private | ||
+ | | 12.0.1.6 | ||
+ | | 14.0.3 | ||
+ | | DE,EN,FR,ES,PL | ||
+ | |||
+ | |- style="vertical-align:top;" | ||
| [http://www.kempfamilyhistory.com Kemp(e) Family History] | | [http://www.kempfamilyhistory.com Kemp(e) Family History] | ||
− | | [[User:Kempons|Andrew Kemp]] | + | | style="white-space: nowrap;"|[[User:Kempons|Andrew Kemp]] |
| | | | ||
+ | | see [[User:Kempons]] | ||
| see [[User:Kempons]] | | see [[User:Kempons]] | ||
| EN | | EN | ||
− | |- | + | |
− | | [http://www.duttongenealogy.com The Dutton's of Vermont] | + | |- style="vertical-align:top;" |
− | | [[User: | + | | [http://www.duttongenealogy.com The Dutton's of Vermont Genealogy & History] |
− | | | + | | style="white-space: nowrap;"|[[User:darrin65|Darrin Dutton]] |
− | | 9.0.0. | + | | Public Site |
+ | | 9.0.0.5 | ||
+ | | 11.1.1 | ||
| EN | | EN | ||
− | |- | + | |
+ | |- style="vertical-align:top;" | ||
| [http://www.kleinmanngenealogy.com Kleinmann Genealogy] | | [http://www.kleinmanngenealogy.com Kleinmann Genealogy] | ||
| [[User:laxref93|John Kleinmann]] | | [[User:laxref93|John Kleinmann]] | ||
| | | | ||
− | | | + | | 12.0.1.6 |
+ | | 14.0 | ||
| EN | | EN | ||
− | |- | + | |
+ | |- style="vertical-align:top;" | ||
| [http://www.turnermob.com Turner Mob Genealogy] | | [http://www.turnermob.com Turner Mob Genealogy] | ||
− | | [[User:Mgrogan|Margaret Grogan Turner]] | + | | style="white-space: nowrap;"|[[User:Mgrogan|Margaret Grogan Turner]] |
| | | | ||
− | | 9.0.0.3 | + | | 9.0.0.3 |
+ | | 10.1.1 | ||
| EN | | EN | ||
− | |- | + | |
+ | |- style="vertical-align:top;" | ||
| [http://www.groganmob.com Grogan Mob Genealogy] | | [http://www.groganmob.com Grogan Mob Genealogy] | ||
| [[User:Mgrogan|Margaret Grogan Turner]] | | [[User:Mgrogan|Margaret Grogan Turner]] | ||
| | | | ||
− | | 9.0.0.3 | + | | 9.0.0.3 |
+ | | 10.1.1 | ||
| EN | | EN | ||
− | |- | + | |
+ | |- style="vertical-align:top;" | ||
| [https://www.kmtrees.com Roots & Relatives Remembered] | | [https://www.kmtrees.com Roots & Relatives Remembered] | ||
| [[User:tngrlkrz| Ron Krzmarzick]] | | [[User:tngrlkrz| Ron Krzmarzick]] | ||
| Public & Private | | Public & Private | ||
− | | | + | | [https://www.kmtrees.com/mods-installed See Here] |
− | | EN,DE,CS | + | | [https://www.kmtrees.com/mods-installed See Here] |
− | |- | + | | EN,DE,CS |
+ | |||
+ | |- style="vertical-align:top;" | ||
| [https://www.craxford-family.co.uk/ The Extended Craxford Family Magazine] | | [https://www.craxford-family.co.uk/ The Extended Craxford Family Magazine] | ||
| [[User:Newfloridan| Alan Craxford]] | | [[User:Newfloridan| Alan Craxford]] | ||
| | | | ||
− | | 9.0.0.5 | + | | 9.0.0.5 |
+ | | 10.1.3 | ||
| EN | | EN | ||
− | |- | + | |
+ | |- style="vertical-align:top;" | ||
| [https://www.ccggpa.org/cemeteries/index.php/ Crawford County Genealogy Gateway] | | [https://www.ccggpa.org/cemeteries/index.php/ Crawford County Genealogy Gateway] | ||
| [[User:Fraber| Frank Bernosky]] | | [[User:Fraber| Frank Bernosky]] | ||
| | | | ||
− | | 9.0.0.5 | + | | 9.0.0.5 |
+ | | 11.1 | ||
| EN | | EN | ||
− | |- | + | |
− | | [ | + | |- style="vertical-align:top;" |
+ | | [https://www.rintoulbowman.com/ Rintoul/Bowman Family] | ||
| [[User:Adrintoul|Andrew Rintoul]] | | [[User:Adrintoul|Andrew Rintoul]] | ||
| Public/Private | | Public/Private | ||
− | | 9.0.0.5 / 11.1. | + | | 12.0.1.6 |
− | | EN, DE, | + | | 12.3 |
+ | | EN,DE,ES,FR | ||
+ | |||
+ | |- style="vertical-align:top;" | ||
+ | | [http://racine-ad.fr/TNG/index.php Racine d'Alsace] | ||
+ | | J-Louis Valory | ||
+ | | Public-Private - Template 17 | ||
+ | | 12.0.1.6 | ||
+ | | 12.0.1 | ||
+ | | FR | ||
+ | |||
+ | |- style="vertical-align:top;" | ||
+ | | [https://www.gambrillfamilytree.com Gambrill Family Tree] | ||
+ | | [[User:bobbyfamilytree| Bobby Gambrill]] | ||
+ | | Public | ||
+ | | 9.0.0.5 | ||
+ | | 11.1.2 | ||
+ | | EN | ||
+ | |||
+ | |- style="vertical-align:top;" | ||
+ | | [https://acadianfamily.com Our Acadian Family] | ||
+ | | [[User:Randal Suire| Randal Suire]] | ||
+ | | Public/Private Media | ||
+ | | 9.0.0.5 | ||
+ | | 11.1.2 | ||
+ | | EN,FR | ||
+ | |||
+ | |- style="vertical-align:top;" | ||
+ | | [https://www.martius-familie.de/ Martius family] | ||
+ | | [[User:Hemar|Hendrik Martius]] | ||
+ | | Half public | ||
+ | | 12.0.0.6 | ||
+ | | 12.0.3 | ||
+ | | DE,EN,FR,NL | ||
+ | |||
+ | |- style="vertical-align:top;" | ||
+ | | [https://lloyd-lucas.kiwi.nz Lloyd & Lucas - A Merging of Interests] | ||
+ | | [[User:ChrisLnz|Chris Lloyd]] | ||
+ | | Public site | ||
+ | | 12.0.1.6 | ||
+ | | 12.0.1 | ||
+ | | EN | ||
+ | |||
+ | |- style="vertical-align:top;" | ||
+ | | [https://www.severijns.family/Severijns The Severijns / Timmer Familytree] | ||
+ | | Rob Severijns | ||
+ | | Public / Private | ||
+ | | 12.0.1.6a | ||
+ | | 14.0.4 | ||
+ | | NL, EN | ||
+ | |||
+ | |- style="vertical-align:top;" | ||
+ | | [https://slekt.solem.info Solem Genealogy] | ||
+ | | [[User:JTS|Jan-Thore Solem]] | ||
+ | | Private | ||
+ | | 12.0.1.6 | ||
+ | | 14.0.2 | ||
+ | | EN,NO | ||
|} | |} | ||
+ | [[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 v9]] | [[Category: Mods for TNG v9]] | ||
− | + | ||
− | |||
[[Category:showlog.php mods]] | [[Category:showlog.php mods]] | ||
[[Category:ajx_logxml.php mods]] | [[Category:ajx_logxml.php mods]] | ||
Line 186: | Line 309: | ||
[[Category:browsealbums.php mods]] | [[Category:browsealbums.php mods]] | ||
[[Category:showmedia.php mods]] | [[Category:showmedia.php mods]] | ||
+ | |||
[[Category:Cust text.php English mods]] | [[Category:Cust text.php English mods]] | ||
+ | [[Category:Cust text.php French mods]] | ||
+ | [[Category:Cust text.php Dutch mods]] | ||
+ | [[Category:Cust text.php Spanish mods]] | ||
+ | [[Category:Cust text.php German mods]] |
Latest revision as of 14:30, 3 March 2024
The mod Restrict Access mod needs a new support person since the original mod developer or subsequent developers are no longer available to support the mod |
Restrict Access Mod | ||||||||
---|---|---|---|---|---|---|---|---|
Summary | Blocks access to files (except PDFs) unless user is logged in | |||||||
Validation | The mod is XHTML compliant. | |||||||
Mod Updated | 17 June 2018 | |||||||
Download link | For
For
| |||||||
Download stats | See download statistics | |||||||
Author(s) | Graham Chamberlain | |||||||
Homepage | Restrict Access mod (This page) | |||||||
Mod Support | TNG Community Forums | |||||||
Contact Developer | Support Person Needed | |||||||
Latest Mod | 12.0.1.6a | |||||||
Min TNG V | 9.0.0 | |||||||
Max TNG V | 14 | |||||||
Files modified | showlog.php, ajx_logxml.php, anniversaries.php, showsource.php, browsenotes.php, browsemedia.php, browsealbums.php, showmedia.php, languages/English/cust_text.php, languages/English-UTF8/cust_text.php | |||||||
Related Mods | ||||||||
Notes |
Purpose of Mod
This mod is intended for those with open access to their TNG site but who wish to disable access to media and other selected files for non-registered users. It allows access to the selected files only for logged-in users. If a non-logged-in user tries to access the relevant file they will see a template-formatted page that informs them they are not authorised to view that file and a links to the Home page and Previous page.
NOTE:
- The mod does not currently inhibit access to PDF media
- This mod is not required if your site is 'closed' and requires log-in
Mod Developer
The Mod Developer is Graham Chamberlain.
Requirements
- A working TNG installation.
- A backup of all affected files (see the list in the summary in the upper right corner of the page)
- 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 |
---|---|---|---|
12.0.1.6a | 12.0.1 | 24 Feb 2024 | Corrected two variable syntax errors -- Ron Krzmarzick |
12.0.1.6 | 12.0.1 | 22 May 2018 | Updated to comply with showsource.php in TNG v12.0.1 |
9.0.0.5 | 9.0 | 25 May 2016 | Correct wikipage link and adds text (UTF-8) variable for Danish |
9.0.0.4 | 9.0 | 04 February 2016 | Adds text variable 'regfam' missing from v9.0.0.3 and text (UTF-8) variables for Dutch, French, German and Spanish |
9.0.0.3 | 9.0 | 22 Apr 2012 | Adds text variable 'goback' missing from v9.0.0.2 |
9.0.0.2 | 9.0 | 05 Apr 2012 | New |
Conflicts and Issues
No known conflicts. }}
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.
In the event of a problem
- Try using the Mod Manager Remove capability
- Copy the backup of the affected files back to your TNG directory
- Contact us through the TNG Community Forums.
Uninstalling the mod
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.
Manual Customisation
If you wish to allow browsing of media but still disallow viewing the individual media items, you should remove the directive for browsemedia.php. Alternatively, you could limit the media restriction to browsing specific collections. The following example would only block the browsing of 'histories' for non-logged-in users:
if(( ! $currentuser )&&($mediatypeID=="histories")) { $showguest=1; include("extensions/noaccess.php"); exit; }
and to limit the restriction to 'histories' and 'photos':
if(( ! $currentuser )&&($mediatypeID=="histories" || $mediatypeID=="photos")) { $showguest=1; include("extensions/noaccess.php"); exit; }
NOTE: It is not possible to use the above method to limit the viewing of individual images (showmedia.php) to a specific collection
Further Application / Customisation
The principles used in the directives of this mod to limit access also can be applied to other files.
Additional links can be provided for the Restriction Warning page by appropriately editing mods/restrict_access/noaccess.php and then reinstalling the mod.
The cfg file can be edited to suit the user's requirements:
- add or remove directives for affected files: Access Log, All Media, Anniversaries & Dates, Calendar, Notes and Sources
- change the text variables
$text['authorise'] = "You are not authorised to view this page";
and/or
$text['regfam'] = "To view this resource you must be a family member and register for a user-account";
to suit your preferred description - add appropriate language directives for your site (do not change the default English language directives other than to give a different text definition as described in the previous point.
Visualisation
This is how the standard Restriction Warning appears in Template 8:
Sites using this mod
If you download and install this mod, please add your TNG site to the table below:
- Mod Support Needed
- Mods for TNG v14
- Mods for TNG v13
- Mods for TNG v12
- Mods for TNG v11
- Mods for TNG v10
- Mods for TNG v9
- Showlog.php mods
- Ajx logxml.php mods
- Anniversaries.php mods
- Showsource.php mods
- Browsenotes.php mods
- Browsemedia.php mods
- Browsealbums.php mods
- Showmedia.php mods
- Cust text.php English mods
- Cust text.php French mods
- Cust text.php Dutch mods
- Cust text.php Spanish mods
- Cust text.php German mods