Difference between revisions of "Media Privacy Mod"

From TNG_Wiki
Jump to navigation Jump to search
(Updated URL for mod download)
(Corrected user detail.)
Line 164: Line 164:
 
|-
 
|-
 
| [https://www.craxford-family.co.uk/indexnew.php The Extended Craxford Family Genealogy site]
 
| [https://www.craxford-family.co.uk/indexnew.php The Extended Craxford Family Genealogy site]
| style="white-space: nowrap;"|[[User:Alan Craxford|Alan Craxford]]
+
| style="white-space: nowrap;"|[[User:Newfloridian|Alan Craxford]]
 
| ...
 
| ...
 
| 9.0.0.3
 
| 9.0.0.3

Revision as of 19:49, 10 March 2024

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


Media Privacy Mod
Summary Blocks access to media files (except PDFs) unless user is logged in
Validation The mod is XHTML compliant.Valid-xhtml10.png
Mod Updated 22 Apr 2012
Download link For
TNG 11.0
TNG 10.0
TNG 9.0
Media_Privacy_V9.0.0.3.zip
For
TNG 8.1.3
Media_Privacy_V8.1.3.zip
Download stats See download statistics
Author(s) Graham Chamberlain
Homepage Media Privacy Mod (This page)
Mod Support TNG Community Forums
Contact Developer Contact Developer
Latest Mod 9.0.0.3 for TNG 9+
8.1.3 for TNG 8
Min TNG V 8.1.3
Max TNG V 11+
Files modified
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 for non-registered users. It allows access to media files only for logged-in users. If a non-logged-in user tries to access the relevant file they will see a message that informs them they are not authorised to view that file and a link to the Home page.

The method used in this mod can be applied to any php file to which one wishes to restrict access.

NOTE: The mod does not currently inhibit access to PDF media

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
Mod Version TNG Version Date Contents
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 Template-related version for TNG v9
9.0.0.1 9.0 10 Feb 2012 Updated for TNG v9
8.1.3 8.1.3 10 Feb 2012 New for TNG v8

Conflicts and Issues

The standard version of this mod affects a sub-set of files affected by the Restrict Access mod so should not be installed if you already use the Restrict Access mod.

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

The principles used in the directives of this mod to limit access also can be applied to other files; for example: showlog.php; anniversaries.php; showsource.php, browsenotes.php.

Visualisation

This is how the standard Restriction Warning appears in Template 8:
Restrict access.jpg

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 9.0.0.3 10.0.0 EN,FR,DE,SP,NL
Our Mayflower Connection Fred Berardi ... 9.0.0.2 9.0.2 EN,FR,DE,SP
The McEntyre Family Project Carol Thompson ... 9.0.0.2 9.2.0 EN
Genealogy Scabell Helga Scabell ... 9.0.0.3 9.2.2 DE
Lindner/Kanwischer Family site Ronny Lindner ... 9.0.0.3 10.1.2 EN,DE
The Extended Craxford Family Genealogy site Alan Craxford ... 9.0.0.3 10.1.3 EN
Joseph Oran Holtz Genealogy Pages Jim Holt Private See Here See Here EN