Difference between revisions of "Media Privacy Mod"
RonnyLindner (talk | contribs) |
(Display change) |
||
(11 intermediate revisions by 6 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 ('''except PDFs''') 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 = [ | + | | mod_last_update = 22 Apr 2012 |
− | + | | 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= | + | | 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 = [[Media Privacy Mod]] (This page) | | mod_url = [[Media Privacy Mod]] (This page) | ||
− | | 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 = [http://www.katiandgraham.com/genealogy/mod_support.php Contact Developer] | ||
− | | mod_version = | + | | mod_version = 9.0.0.3 for TNG 9+<br />8.1.3 for TNG 8 |
− | | min_TNG_ver = 8 | + | | min_TNG_ver = 8.1.3 |
− | | max_TNG_ver = | + | | 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]]<br/>[[Restrict Image Preview]] | | 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. | 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. | The method used in this mod can be applied to any php file to which one wishes to restrict access. | ||
− | '''NOTE | + | '''NOTE: The mod does not currently inhibit access to PDF media''' |
+ | |||
+ | == 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 | ||
− | == Mod | + | {| 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]. | ||
− | + | == 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 62: | Line 107: | ||
} | } | ||
'''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 == | == 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 | + | This is how the standard Restriction Warning appears in Template 8:<br /> |
− | |||
− | This is how the standard Restriction Warning appears in | ||
[[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: | ||
− | + | {| border="0" cellspacing="1" cellpadding="2" class="wikitable" width="100%" | |
− | |||
− | {| border=" | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
! 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 | | Mod developer | ||
− | | 9.0.0.3 | + | | 9.0.0.3 |
− | | | + | | 10.0.0 |
− | |- | + | | EN,FR,DE,SP,NL |
+ | |||
+ | |- style="vertical-align:top;" | ||
| [http://tree.fredberardi.com/ Our Mayflower Connection] | | [http://tree.fredberardi.com/ Our Mayflower Connection] | ||
− | | [[User:fberardi|Fred Berardi]] | + | | style="white-space: nowrap;"|[[User:fberardi|Fred Berardi]] |
| ... | | ... | ||
− | | 9.0.0.2 | + | | 9.0.0.2 |
− | | | + | | 10.1.1 |
− | |- | + | | EN,FR,DE,SP |
+ | |||
+ | |- style="vertical-align:top;" | ||
| [http://www.mcentyrefamilyproject.org/ The McEntyre Family Project] | | [http://www.mcentyrefamilyproject.org/ The McEntyre Family Project] | ||
− | | [[User:Carol|Carol Thompson]] | + | | style="white-space: nowrap;"|[[User:Carol|Carol Thompson]] |
| ... | | ... | ||
− | | 9.0.0.2 | + | | 9.0.0.2 |
− | | | + | | 9.2.0 |
− | |- | + | | EN |
− | | [http://www.scabell.info | + | |
− | | [[User:Helga Scabell|Helga Scabell]] | + | |- style="vertical-align:top;" |
+ | | [http://www.scabell.info Genealogy Scabell] | ||
+ | | style="white-space: nowrap;"|[[User:Helga Scabell|Helga Scabell]] | ||
| ... | | ... | ||
− | | 9.0.0.3 | + | | 9.0.0.3 |
− | | | + | | 9.2.2 |
− | |- | + | | DE |
− | | [ | + | |
− | | [[User: | + | |- style="vertical-align:top;" |
+ | | [https://stammbaum.ronnylindner.de Lindner/Kanwischer Family site] | ||
+ | | style="white-space: nowrap;"|[[User:RonnyLindner|Ronny Lindner]] | ||
| ... | | ... | ||
− | | 9.0.0.3 | + | | 9.0.0.3 |
− | | | + | | 10.1.2 |
− | |- | + | | EN,DE |
− | | [https:// | + | |
− | | [[User: | + | |- 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.3 | + | | 9.0.0.3 |
− | | | + | | 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 | + | [[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:browsemedia.php mods]] | [[Category:browsemedia.php mods]] | ||
[[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]] |
Latest revision as of 21:10, 10 March 2024
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 |
Media Privacy Mod | |||||
---|---|---|---|---|---|
Summary | Blocks access to media files (except PDFs) unless user is logged in | ||||
Validation | The mod is XHTML compliant. | ||||
Mod Updated | 22 Apr 2012 | ||||
Download link | For
For
| ||||
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
- 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
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:
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 |