Difference between revisions of "Restrict Access mod"

From TNG_Wiki
Jump to navigation Jump to search
 
(38 intermediate revisions by 15 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]]
| mod_updated    = 17 June 2018
+
| 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]{{Tv1201}}<br/>[https://www.katiandgraham.com/genealogy/ccount/click.php?id=9&user={{#replace:{{CURRENTLOGGEDUSER}}}}&page={{PAGENAMEE}} restrict_access_V9.0.0.5.zip]<br/> {{Tv90}}{{Tv100}}{{Tv110}}{{Tv120}}
+
| 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<br />Config file by Graham Chamberlain
+
| mod_author      = [[User:hiraeth|Graham Chamberlain]]
 
| mod_url        = [[Restrict Access mod]] (This page)
 
| mod_url        = [[Restrict Access mod]] (This page)
| mod_support    = [http://www.katiandgraham.com/genealogy/mod_support.php My Mod Support]
+
| mod_support    = [https://tng.community/index.php?/forums/forum/21-addons/ TNG Community Forums]
| mod_contact    = [http://www.katiandgraham.com/genealogy/mod_support.php Contact Developer]
+
| mod_contact    = Support Person Needed
| mod_version    = V12.0.1.6 for TNG V12.0.1+
+
| mod_version    = 12.0.1.6a
| min_TNG_ver    = 9.0.0 using integrated Mod Manager
+
| min_TNG_ver    = 9.0.0
| max_TNG_ver    = 12+
+
| 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
+
| 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]]<br/>[[Public Access Control]]
 
| 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 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:'''
 
'''NOTE:'''
Line 28: 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
  
== Mod Developer ==
+
|- style="vertical-align:top;"
 +
| 9.0.0.2
 +
| 9.0
 +
| style="white-space: nowrap;"|05 Apr 2012
 +
| New
 +
|}
  
The Mod Developer is Graham Chamberlain.
+
== Conflicts and Issues==
 +
No known conflicts.
 +
}}
  
Mod Manager config files provided by Graham Chamberlain.
+
==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].
  
== Automated Installation ==
+
== 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.
  
# Download the appropriate file for your TNG version from the download links in the mod summary area in the upper right.
+
== Upgrade ==
# Extract the downloaded zip file to your ''''mods''' folder.  
+
*Uninstall and eventually Delete the current Mod.
#  Follow the normal automated installation for Mod Manager, as shown in  the example [[Mod Manager - Installing Config Files]] to install the  appropriate '''source_title_display.cfg''' file.
+
*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 60: 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 75: 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 template8:
 
 
[[File:noaccess.png]]
 
[[File:noaccess.png]]
  
==Revision History==
+
==Sites using this mod==
 
+
If you download and install this mod, please add your TNG site to the table below:
{| border="1" cellspacing="5" cellpadding="2" width="100%" class="wikitable"
 
|-
 
! Version
 
! Date
 
! Contents
 
|-
 
| v12.0.1.6
 
| 22 May 2018
 
| made change to comply with showsource.php in TNG v12.0.1
 
|-
 
| v9.0.0.5
 
| 25 May 2016
 
| correct wikipage link and adds text (UTF-8) variable for Danish
 
|-
 
| v9.0.0.4
 
| 4 February 2016
 
| adds text variable 'regfam' missing from v9.0.0.3 and text (UTF-8) variables for Dutch, French, German and Spanish
 
|-
 
| v9.0.0.3
 
| 22 April 2012
 
| adds text variable 'goback' missing from v9.0.0.2
 
|-
 
| v9.0.0.2
 
| 5 April 2012
 
|
 
|}
 
 
 
== TNG User sites using this mod ==
 
If you download and install this mod, please add your TNG site to the table below
 
  
{| border="0" cellspacing="1" cellpadding="2" class="wikitable"
+
{| border="0" cellspacing="1" cellpadding="2" class="wikitable" width="100%"
 
|-
 
|-
 
! URL
 
! URL
 
! User
 
! User
 
! Note
 
! Note
! Mod-Version/TNG-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
+
| 12.0.1.6
| English, French, German, Spanish, Dutch
+
| 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
|-
+
 
 +
|- style="vertical-align:top;"
 
| [http://www.duttongenealogy.com The Dutton's of Vermont Genealogy & History]
 
| [http://www.duttongenealogy.com The Dutton's of Vermont Genealogy & History]
| [[User:darrin65|Darrin Dutton]]
+
| style="white-space: nowrap;"|[[User:darrin65|Darrin Dutton]]
 
| Public Site
 
| Public Site
| 9.0.0.5/11.1.1
+
| 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]]
 
|
 
|
| 9.0.0.5 / 12.0
+
| 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/10.1.1
+
| 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/10.1.1
+
| 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
| 9.0.0.5/11.1.2
+
| [https://www.kmtrees.com/mods-installed See Here]
| EN,DE,CS,ES
+
| [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/10.1.3
+
| 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/11.1
+
| 9.0.0.5
 +
| 11.1
 
| EN
 
| EN
|-
+
 
 +
|- style="vertical-align:top;"
 
| [https://www.rintoulbowman.com/ Rintoul/Bowman Family]
 
| [https://www.rintoulbowman.com/ Rintoul/Bowman Family]
 
| [[User:Adrintoul|Andrew Rintoul]]
 
| [[User:Adrintoul|Andrew Rintoul]]
 
| Public/Private
 
| Public/Private
| 9.0.0.5 / 12.0
+
| 12.0.1.6
| EN, DE, ES, FR
+
| 12.3
|-
+
| EN,DE,ES,FR
 +
 
 +
|- style="vertical-align:top;"
 
| [http://racine-ad.fr/TNG/index.php Racine d'Alsace]
 
| [http://racine-ad.fr/TNG/index.php Racine d'Alsace]
 
| J-Louis Valory
 
| J-Louis Valory
| Public/Private - Template 1
+
| Public-Private - Template 17
| 9.0.0.5/11.1.1
+
| 12.0.1.6
| French
+
| 12.0.1
|-
+
| FR
 +
 
 +
|- style="vertical-align:top;"
 
| [https://www.gambrillfamilytree.com Gambrill Family Tree]
 
| [https://www.gambrillfamilytree.com Gambrill Family Tree]
 
| [[User:bobbyfamilytree| Bobby Gambrill]]
 
| [[User:bobbyfamilytree| Bobby Gambrill]]
 
| Public
 
| Public
| 9.0.0.5/11.1.2
+
| 9.0.0.5
 +
| 11.1.2
 
| EN
 
| 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]
 
| [https://www.martius-familie.de/ Martius family]
 
| [[User:Hemar|Hendrik Martius]]
 
| [[User:Hemar|Hendrik Martius]]
 
| Half public
 
| Half public
| 12.0.0.6 / 12.0.1
+
| 12.0.0.6
| DE, EN, FR, NL
+
| 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: Mods for TNG v10]]
+
 
[[Category: Mods for TNG v11]]
 
[[Category: Mods for TNG v12]]
 
 
[[Category:showlog.php mods]]
 
[[Category:showlog.php mods]]
 
[[Category:ajx_logxml.php mods]]
 
[[Category:ajx_logxml.php mods]]
Line 210: 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

NeedSupport 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 NeedSupport


Restrict Access Mod
Summary Blocks access to files (except PDFs) unless user is logged in
Validation The mod is XHTML compliant.Valid-xhtml10.png
Mod Updated 17 June 2018
Download link For
TNG 12.0.1
TNG 13.0
TNG 14.0
restrict_access_V12.0.1.6a.zip
For
TNG 9.0
TNG 10.0
TNG 11.0
TNG 12.0
restrict_access_V9.0.0.5.zip
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

  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.

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:

  1. add or remove directives for affected files: Access Log, All Media, Anniversaries & Dates, Calendar, Notes and Sources
  2. 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
  3. 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:
Noaccess.png

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
Chamberlain & Eidenbenz Genealogy Graham Chamberlain Mod developer 12.0.1.6 12.0.1 EN,FR,DE,ES,NL
Treichel-Familie.de Andreas Treichel Public & Private 12​.0​.1​.6 14.0.3 DE,EN,FR,ES,PL
Kemp(e) Family History Andrew Kemp see User:Kempons see User:Kempons EN
The Dutton's of Vermont Genealogy & History Darrin Dutton Public Site 9.0.0.5 11.1.1 EN
Kleinmann Genealogy John Kleinmann 12.0.1.6 14.0 EN
Turner Mob Genealogy Margaret Grogan Turner 9.0.0.3 10.1.1 EN
Grogan Mob Genealogy Margaret Grogan Turner 9.0.0.3 10.1.1 EN
Roots & Relatives Remembered Ron Krzmarzick Public & Private See Here See Here EN,DE,CS
The Extended Craxford Family Magazine Alan Craxford 9.0.0.5 10.1.3 EN
Crawford County Genealogy Gateway Frank Bernosky 9.0.0.5 11.1 EN
Rintoul/Bowman Family Andrew Rintoul Public/Private 12.0.1.6 12.3 EN,DE,ES,FR
Racine d'Alsace J-Louis Valory Public-Private - Template 17 12.0.1.6 12.0.1 FR
Gambrill Family Tree Bobby Gambrill Public 9.0.0.5 11.1.2 EN
Our Acadian Family Randal Suire Public/Private Media 9.0.0.5 11.1.2 EN,FR
Martius family Hendrik Martius Half public 12.0.0.6 12.0.3 DE,EN,FR,NL
Lloyd & Lucas - A Merging of Interests Chris Lloyd Public site 12.0.1.6 12.0.1 EN
The Severijns / Timmer Familytree Rob Severijns Public / Private 12.0.1.6a 14.0.4 NL, EN
Solem Genealogy Jan-Thore Solem Private 12​.0​.1​.6 14.0.2 EN,NO