Restrict Access mod
|Restrict Access Mod|
|Summary||Blocks access to files (except PDFs) unless user is logged in|
|Validation||The mod is XHTML compliant.|
|Download stats||See download statistics|
Config file by Graham Chamberlain
|Homepage||Restrict Access mod (This page)|
|Mod Support||My Mod Support|
|Contact Developer||Contact Developer|
|Latest Mod||V126.96.36.199 for TNG V10+|
|Min TNG V||9.0.0 using integrated Mod Manager|
|Max TNG V||10+|
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
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
The Mod Developer is Graham Chamberlain.
Mod Manager config files provided by Graham Chamberlain.
- Download the appropriate file for your TNG version from the download links in the mod summary area in the upper right.
- Extract the downloaded zip 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 appropriate source_title_display.cfg file.
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 variable ($text['authorise'] = "You are not authorised to view this page";)
|v188.8.131.52||22 April 2012||adds text variable 'goback' missing from v184.108.40.206|
|v220.127.116.11||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
|Chamberlain & Eidenbenz Genealogy||Graham Chamberlain||...||18.104.22.168/10.1.1||English, French, German, Spanish, Dutch|
|Kemp(e) Family History||Andrew Kemp||see User:Kempons||EN|
|Pannier Genealogy||Martin Pannier||see here||DE|
|The Dutton's of Vermont||Darrin Dutton||22.214.171.124/10.1.0||EN|
|Kleinmann Genealogy||John Kleinmann||126.96.36.199/10.1.1|
|Turner Mob Genealogy||Margaret Grogan Turner||188.8.131.52/10.1.1||EN|
|Grogan Mob Genealogy||Margaret Grogan Turner||184.108.40.206/10.1.1||EN|