Media Access Mod

From TNG_Wiki
Jump to navigation Jump to search
Restricted Downloads of Media Access Mod are restricted to logged in users. If you do not have a user account on the TNG Wiki use the Request Account link to request a user account Restricted
Caution If you have trouble downloading with Google Chrome, Vivaldi, Brave or other Chromium based browser, try using a right-click and select Open in new Window, then F5, or use another browser such as Firefox


Caution


Media Access Mod
Summary Require users login to access media.
Validation Latest mod is XHTML compliant.Valid-xhtml10.png
Mod Updated 04 Apr 2024
Download link For
TNG 14.0
media_access_v14.0.3.2b.zip
Download stats Downloads Stats
Author(s) Steven Davis
Homepage Media Access Mod (This page)
Mod Support TNG Community Forums
Contact Developer Steven Davis
Latest Mod 14.0.3.2b
Min TNG V 14.0.3
Max TNG V 14.0.0
Files modified
admin_media.php
admin_media.php
admin_newmedia.php
admin_mediauploader.php
admin_photoimporter.php
browsealbums.php
browsemedia.php
customconfig.php
familychart.php
functions.php
getperson.php
globallib.php
pedbox.php
personlib.php
relationship.php
rpt_utils.php
showalbum.php
showmedia.php
showmedialib.php
tngrss.php
whatsnew.php
languages/English-UTF8/cust_text.php
languages/English/cust_text.php
languages/German/cust_text.php
languages/German-UTF8/cust_text.php
languages/French/cust_text.php
languages/French-UTF8/cust_text.php
languages/Spanish/cust_text.php
languages/Spanish/cust_text-UTF8.php
Related Mods
Notes

Purpose of the mod

This mod was developed to allow public access while hiding media from the users that do not log in. The mod does not prevent templates from displaying media.

If you require a login or allow public access to media you can disable the permission mode and use the remaining features.

Developer

This mod was developed by Steven Davis
Many thanks to Michel Kirsch for testing compatibility and code suggestions to avoid conflicts.

Requirements

  • A working TNG installation.
  • A backup of all affected files (see the list in the summary to the right)
  • 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
14.0.3.2b 14.0 03 Apr 2024 Added Dutch language translation by Rob Severijns

Corrected typo in query

14.0.3.2a 14.0 03 Apr 2024 Resolved conflicts with Living Color Mod and Secret medias mods
14.0.3 14.0 02 Apr 2024 Fixed SQL error that affected users that were not admins
14.0.3.1 14.0 12 Oct 2023 Updated for TNG14
13.0.3.2 13.0 3 Apr 2022 Users must log in to view catalogs.

Fixed issue that caused an error if a user logged out while viewing media.

13.0.3.1 13.0 31 Mar 2022 Renumbered per TNG guidelines, after testing with earlier versions.

Code changes to reduce potential conflicts with other mods.

13.1.1.6b 13.1 27 Mar 2022 Removed conflict with Secret Medias Mod so install/uninstall order is not important
13.1.1.6a 13.1 25 Mar 2022 First version of mod for testing on beta site

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.

Advantages

  • No access to media unless user logs in.
  • Hide the living or private message.
  • Hide media from the RSS feed.
  • Adds feature to make adding new media private by default.
  • Above features can be disabled in the mod options.
  • Adds feature to search for private or not private media.
  • Does NOT require changing the TNG database.

Mod Options

After media access is installed, all features are enabled by default. The mod does not affect the TNG living and private settings except as outlined for the living private message mode.

There are four options in the mod option menu.

The first option requires all users log in to access media. This includes individual pages, charts and PDFs.

To expose select media but not all media, set the permission mode to 1 and use with the Secret_medias mod.

Media Access-01b.jpg

The second option hides the living and private message which is displayed when a user does not have permission.

Media Access-03.jpg

The third option prevents the RSS feed from displaying media.

The fourth option makes ALL NEW media private by default when using the Add New, Import and Upload methods.

Two check boxes are added to the media admin page to allow searching for media marked private as well as media not marked private.

Media Access-07.jpg

The check boxes can be used to find media incorrectly marked and searches the selected collection.

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
Family Histories Steven Davis Mod developer 14.0.3.2b 14.0.4 EN
Malkins in New Zealand Rick Malkin Great Mod 13.1.1.6b 13.1.1 EN
The Severijns / Timmer Familytree Rob Severijns Public / Private 14.0.3.2b
TNG 14.0.4
NL,EN