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 are having trouble downloading with the Google Chrome browser, try using try right-click and select Open in new Window, then F5, or use another browser 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 13.0
TNG 12.0



Secret Medias
Summary Restrict access to certain media to logged-in members.
Validation
Mod Updated 13 oct 2021
Download link v12.3.0.5b
TNG 12.0
TNG 13.0

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.5b for TNG v12 & 13
Min TNG V n.c
Max TNG V v12+
Files modified
admin_media.php
browsemedia.php
functions.php
globallib.php
personlib.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


.

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 TNG v12.3.0 installation in working order.

IMPORTANT : Before installing

Before installing, it is judicious to make a backup copy of the files that will be modified by this 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
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.

INSTALLATION

  • Unzip the received file directly in the "mods" sub directory of your TNG installation.
  • Via Mod Manager, install the Mod.

Upgrade

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

Uninstall

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

Known Problems

None at this day...

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
  • Retry. If the problem persists, open an issue in the TNG Community Forums or on the page of Michel Kirsch. At worst, send a mail to MyMail

Historic of modifications

Version Release Date Contents
v12.3.0.5b 13 oct 2021 Adds two missing strings.
v12.3.0.5a 29 mar 2021 Modify location 7 of admin_media to avoid conflict with "Admin media Search" Mod.
v12.3.0.5 26 mar 2021 Add code to hide media in whatsnew.php file ans screen.
v12.3.0.4b 20 feb 2021 OK for TNG 13.0.3.
v12.3.0.4a 19 feb 2021 Fix compatibility problem with "Public Access Control" Mod.
v12.3.0.4 30 oct 2020 Fix some confidentiality problems.
v12.3.0.1a 23 sep 2020 First online version ready for TNG v13.
v12.3.0.1 10 Aug 2020 First online version.

Sites using this mod

If you download and install this mod, please add your TNG site to the table below:
If you have any problem to do it, send me a mail...

URL User Note Mod-Version TNG-Version User-language
Racines luxo-hennuyeres Michel Kirsch Mod's Developper v12.3.0.4 v13.0.1 FR/EN/NL/D/SP
Lignées revestoises Katryne Village site - Public v12.3.0.3 v13.0 FR/EN/D/IT
Stammbaum der Familien Klein, Landgraf, Eckarts und Reichenbachs Maikl11 Public/Privat v12.3.0.4a v13.0.2 EN/DE

Visualization

secret_medias.jpg

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