Secret medias

From TNG_Wiki
Jump to navigation Jump to search
Restricted Downloads of Secret medias 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


Ambox notice.png The latest version of this mod uses the guidelines for TNG v12+ cust_text.php files. If you are using TNGv12+, and any cust_text.php file in this mod is marked with a Bad Target error, you need to update your cust_text.php files before you can install this mod. [Show instructions]

If you upgraded to TNGv12+, and did not update your cust_text.php files as instructed in the upgrade readme script, then you must use the TNG Mod Manager to update them. To do so:

  1. Go to Mod Manager, and select its "Recommended Updates" tab.
    (If the "Recommended Updates" tab is not visible, then go to the Mod Manager Options tab, select "Display Settings", and turn on the "Recommended Updates" tab.)
  2. Click the "Update" button in the "Recommended Updates" tab.
    Installed mods do not interfere with the update, and if you already have (or think you may have) run this update, it will not hurt for you to run it again.

[See details in the TNGv12 Change Impacts Article][Hide the instructions]

TNG 14.0
TNG 13.0
TNG 12.0


Secret medias
Summary Restrict access to certain media to logged-in members.
Validation
Mod Updated 15 May 2023
Download link For
TNG 14.0

v14.0.0.6b


For
TNG 12.0
TNG 13.0
TNG 13.1.2
v12.3.0.5c
Download stats Montrer les statistiques
Author(s) Michel Kirsch
Homepage Racines luxo-hennuyeres
Mod Support TNG Community Forums
Contact Developer MyMail
Latest Mod 12.3.0.5c for TNG v12 & 13
14.0.0.6b for TNG 14+
Min TNG V 12.3
Max TNG V 14
Files modified
admin_media.php
ajx_slideshow.php
ajx_showmediaxml.php
browsemedia.php
functions.php
genlib.php
globallib.php
personlib.php
showmedia.php
showmedialib.php
showmediaxmllib.php
languages/English/cust_text.php
languages/English-UTF8/cust_text.php
languages/French/cust_text.php
languages/French-UTF8/cust_text.php
languages/German/cust_text.php
languages/German-UTF8/cust_text.php
languages/Dutch-UTF8/cust_text.php
Related Mods
Notes

Purpose of the Mod

Establishes a system of individual media management. Each media can be made "secret" so that it is visible ONLY to connected members. The others medias stay accessible following the normal access rules of TNG.
Once the Mod installed, go to Admin>>Media. A new column "Secret?" is present in the table. A gray icon means that the media meets TNG normal access rules. Click on it and the icon turns green. The media is now only accessible to your members who are logged in. Click again on the green icon, the media is again normally accessible.
You can also make all the media of your database (or only those displayed on the page) secret or not.
Important: To completely remove this Mod, you must DROP manually the field 'secret' from your table 'tng_media' via your PhpMyAdmin interface.

Development

Written by : Michel Kirsch from Charleroi - Hainaut - Belgium

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 Date Contents
14.0.0.6b 17 Nov 2023 Modified the display of the secret media: thumb is always displayed, but is marked 'Reserved for connected members' - Handled now slide-shows for albums and media - Added Dutch language (Thx to RobS!) - Compatible with the watermark Mod and the future Private media Mod.
14.0.0.6a 15 May 2023 Added 'secret' field in 2 queries for showmedialib.php.
14.0.0.6 15 May 2023 Under certain conditions, some media could still be seen!
14.0.0.6 26 Apr 2023 From this version, a secret media contained in an album is not displayed for unregistered user.
14.0.0.5c 08 Jan 2023 Fix a problem with a label line 238.
14.0.0.5c 06 Oct 2022 TNG 14 ready.
12.3.0.5c 25 Dec 2021 PHP8 Warnings - Rewrite some code.
12.3.0.5b 13 Oct 2021 Adds two missing strings.
12.3.0.5a 29 Mar 2021 Modify location 7 of admin_media to avoid conflict with "Admin media Search" Mod.
12.3.0.5 26 Mar 2021 Add code to hide media in whatsnew.php file ans screen.
12.3.0.4b 20 Feb 2021 OK for TNG 13.0.3.
12.3.0.4a 19 Feb 2021 Fix compatibility problem with "Public Access Control" Mod.
12.3.0.4 30 Oct 2020 Fix some confidentiality problems.
12.3.0.1a 23 Sep 2020 First online version ready for TNG v13.
12.3.0.1 10 Aug 2020 First online version.

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 any tables if created, 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.

IMPORTANT: To completely remove this Mod (not for upgrade), you must DROP manually the field 'secret' from your 'tng_media' table using your PhpMyAdmin interface.
Drop Field

Upgrade

  • Uninstall and eventually Delete the current Mod.
  • Proceed as for an installation with the new Mod.

TNG Modules Impacted

You can click on the [Expand] link on the right to display the list of TNG Modules change and the [Collapse] link to hide this section again.

The following TNG Modules are modified, and should be backed up prior to installing this mod:

admin_media.php
browsemedia.php
functions.php
globallib.php
personlib.php
showmedia.php
showmedialib.php
English/French/German language files

Files created/copied by this Mod

Source Destination
secret_media/secret_media_no.gif TNG root/img/secret_media_no.gif
secret_media/secret_media_yes.gif TNG root/img/secret_media_yes.gif

Other Modifications

This Mod adds a field "secret" to your tng_media table.

Visualization

secret_medias.jpg

The 'Media' screen, with the new column 'secret?'. The second media is restricted to logged-in users, the first not.

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
Racines luxo-hennuyeres Michel Kirsch Mod's Developer 12.3.0.6a 14.0.3 FR,EN,NL,DE,SP
americankindred americankindred Public 14.0.0.6a 14.0.2 EN
Stammbaum der Familien Klein, Landgraf, Eckarts und Reichenbachs Maikl11 Public/Private 12.3.0.4a 13.0.2 EN,DE
Blumensaadt & Ingemand Soren Ingemand Public/Private 14.0.0.6 14.0.1 EN,FR,DE,ES,NL,NO,SE
GénéaKat Katryne Public & Private 14.0.0.6b 14.0.3 FR,EN
The Severijns / Timmer Familytree Rob Severijns Public / Private - Great Mod :-) See here See here NL,EN