Difference between revisions of "Media Privacy Mod"

From TNG_Wiki
Jump to navigation Jump to search
(Display change)
 
(36 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{TNGmod
+
{{SupportNeeded}}{{TNGmod
 
| mod_name        = Media Privacy Mod
 
| mod_name        = Media Privacy Mod
| mod_summary    = Blocks access to media files unless user is logged in
+
| mod_summary    = Blocks access to media 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 = [[Media:Media_Privacy_V9.0.0.3.zip | Media_Privacy_v9.0.0.3.zip]] for {{Tv90}}<hr /> [[Media:Media_Privacy_V8.1.3.zip|Media_Privacy_v8.1.3.zip]] for  {{Tv813}}<hr />
+
| mod_last_update = 22 Apr 2012
| mod_author      = Graham Chamberlain<br />Config file by Graham Chamberlain
+
| download_link = For{{Tv110}}{{Tv100}}{{Tv90}}[https://tng.lythgoes.net/wiki/images/8/83/Media_Privacy_V9.0.0.3.zip Media_Privacy_V9.0.0.3.zip]<hr style="clear: both;"/>For{{Tv813}}[http://tng.lythgoes.net/wiki/images/1/1e/Media_Privacy_V8.1.3.zip Media_Privacy_V8.1.3.zip]
 +
| download_stats = [http://www.katiandgraham.com/genealogy/ccount/index.php?action=stats&groupid=5 See download statistics]
 +
| mod_author      = [[User:hiraeth|Graham Chamberlain]]
 
| mod_url        = [[Media Privacy Mod]] (This page)
 
| mod_url        = [[Media Privacy 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    = Use Contact form on developer's website
+
| mod_contact     = [http://www.katiandgraham.com/genealogy/mod_support.php Contact Developer]
| mod_version    = V9.0.0.3 for TNG V9<br />V8.1.3 for TNG V8
+
| mod_version    = 9.0.0.3 for TNG 9+<br />8.1.3 for TNG 8
| min_TNG_ver    = 8.0.0 or 9.0.0 using integrated Mod Manager<br />TNG 7.1.0 requires manual installation of Mod Manager
+
| min_TNG_ver    = 8.1.3
| max_TNG_ver    = 8.1.3 / 9.0.2
+
| max_TNG_ver    = 11+
 
| TNG_file_list  = browsemedia.php, browsealbums.php, showmedia.php, languages/English/cust_text.php, languages/English-UTF8/cust_text.php
 
| TNG_file_list  = browsemedia.php, browsealbums.php, showmedia.php, languages/English/cust_text.php, languages/English-UTF8/cust_text.php
| related_mods    = [[Restrict Access mod]]
+
| related_mods    = [[Restrict Access mod]]<br/>[[Restrict Image Preview]]
 
| 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 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.
  
To allow 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.
  
The method used in this mod can be applied to any file to which one wishes to restrict access.
+
'''NOTE: The mod does not currently inhibit access to PDF media'''
  
 
== Mod Developer ==
 
== Mod Developer ==
 +
The Mod Developer is [[User:hiraeth|Graham Chamberlain]].
  
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 Manager config file provided by Graham Chamberlain.
+
{| border="0" cellspacing="1" cellpadding="2" class="wikitable"
 +
|-
 +
! Mod Version
 +
! TNG Version
 +
! Date
 +
! Contents
 +
 
 +
|- 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
 +
| Template-related version for TNG v9
 +
 
 +
|- style="vertical-align:top;"
 +
| 9.0.0.1
 +
| 9.0
 +
| style="white-space: nowrap;"|10 Feb 2012
 +
| Updated for TNG v9
 +
 
 +
|- style="vertical-align:top;"
 +
| 8.1.3
 +
| 8.1.3
 +
| style="white-space: nowrap;"|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==
 +
# 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. You could also amend one or more directives to limit the media restriction to specific collections. The following example would only block 'histories' for non-logged-in users:
 
  
 
   if(( ! $currentuser )&&($mediatypeID=="histories")) {  
 
   if(( ! $currentuser )&&($mediatypeID=="histories")) {  
Line 52: Line 105:
 
       include("extensions/noaccess.php");  
 
       include("extensions/noaccess.php");  
 
       exit;  
 
       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 ==
 
== 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.
 
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 ==
== Visualisation (php version) ==
+
This is how the standard Restriction Warning appears in Template 8:<br />
 
 
This is how the standard Restriction Warning appears in template8:
 
 
[[Image:restrict_access.jpg]]
 
[[Image:restrict_access.jpg]]
  
 +
==Sites using this mod==
 +
If you download and install this mod, please add your TNG site to the table below:
  
==Revision History==
+
{| border="0" cellspacing="1" cellpadding="2" class="wikitable" width="100%"
 
 
{| border="1" cellspacing="5" cellpadding="2" width="100%" class="wikitable"
 
|-
 
! Version
 
! Date
 
! Contents
 
|-
 
| v9.0.0.3
 
| 22 April 2012
 
| adds text variable 'goback' missing from v9.0.0.2
 
|-
 
| v9.0.0.2
 
| 5 April 2012
 
| php, Template-related version for TNG v9
 
|-
 
| v9.0.0.1
 
| 10 February 2012
 
| HTML for TNG v9
 
|-
 
| v8.1.3
 
| 10 February 2012
 
| HTML for TNG v8
 
|}
 
 
 
 
 
== 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"
 
 
|-
 
|-
 
! 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
 +
| 9.0.0.3
 +
| 10.0.0
 +
| EN,FR,DE,SP,NL
 +
 
 +
|- style="vertical-align:top;"
 +
| [http://tree.fredberardi.com/ Our Mayflower Connection]
 +
| style="white-space: nowrap;"|[[User:fberardi|Fred Berardi]]
 
| ...
 
| ...
| 9.0.0.4/9.0.2
+
| 9.0.0.2
| English, French, German, Spanish
+
| 10.1.1
|-
+
| EN,FR,DE,SP
| [http://tree.fredberardi.com/ Our Mayflower Connection]
+
 
| [[User:fberardi|Fred Berardi]]
+
|- style="vertical-align:top;"
 +
| [http://www.mcentyrefamilyproject.org/ The McEntyre Family Project]
 +
| style="white-space: nowrap;"|[[User:Carol|Carol Thompson]]
 +
| ...
 +
| 9.0.0.2
 +
| 9.2.0
 +
| EN
 +
 
 +
|- style="vertical-align:top;"
 +
| [http://www.scabell.info Genealogy Scabell]
 +
| style="white-space: nowrap;"|[[User:Helga Scabell|Helga Scabell]]
 +
| ...
 +
| 9.0.0.3
 +
| 9.2.2
 +
| DE
 +
 
 +
|- style="vertical-align:top;"
 +
| [https://stammbaum.ronnylindner.de Lindner/Kanwischer Family site]
 +
| style="white-space: nowrap;"|[[User:RonnyLindner|Ronny Lindner]]
 +
| ...
 +
| 9.0.0.3
 +
| 10.1.2
 +
| EN,DE
 +
 
 +
|- style="vertical-align:top;"
 +
| [https://www.craxford-family.co.uk/indexnew.php The Extended Craxford Family Genealogy site]
 +
| style="white-space: nowrap;"|[[User:Newfloridian|Alan Craxford]]
 
| ...
 
| ...
| 9.0.0.2/9.0.2
+
| 9.0.0.3
| English, French, German, Spanish
+
| 10.1.3
 +
| EN
 +
 
 +
|- style="vertical-align:top;"
 +
| [https://www.josephoranholtz.com/ Joseph Oran Holtz Genealogy Pages]
 +
| style="white-space: nowrap;"|[[User:Stores|Jim Holt]]
 +
| Private
 +
| [[User:Stores|See Here]]
 +
| [[User:Stores|See Here]]
 +
| EN
 
|}
 
|}
  
[[Category: Mods for TNG v7]]
+
[[Category: Mods for TNG v11]]
 +
[[Category: Mods for TNG v10]]
 +
[[Category: Mods for TNG v9]]
 
[[Category: Mods for TNG v8]]
 
[[Category: Mods for TNG v8]]
[[Category: Mods for TNG v9]]
+
 
 +
[[Category:browsemedia.php mods]]
 +
[[Category:browsealbums.php mods]]
 +
[[Category:showmedia.php mods]]
 +
 
 +
[[Category:Cust text.php English mods]]

Latest revision as of 21:10, 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 10.1.1 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