Jump to content
TNG Community
^maikl11

Mod Secret medias

Recommended Posts

^maikl11

Hello everybody,
I wanted to install the mod "Secret medias" today. But it cannot be installed.
Can you tell me why ???
I have TNG 13.0.2
Template 12
Thanks in advance...

Screenshot 2021-02-17 081004.jpg

Share this post


Link to post
Share on other sites
RickM

It is possible you have a Mod installed that conflicts with Secret Medias.

Would you advise what other Mods you have installed please?

I would also suggest you try uninstalling Mods one at a time, to see if YOU can determine which (if any) Mod/s may be in conflict.

 

Share this post


Link to post
Share on other sites
Michel KIRSCH
On 2/17/2021 at 8:11 AM, ^maikl11 said:

I wanted to install the mod "Secret medias" today.

Hi Michael,

did you install the Mod now?

Michel

Share this post


Link to post
Share on other sites
^maikl11
vor 8 Stunden schrieb Michel KIRSCH:

Hi Michael,

did you install the Mod now?

Michel

Hello Michel,
no not yet. First I have to uninstall various mods and reinstall them. To test which mod is hindering the installation of Secrets Medias ...

Share this post


Link to post
Share on other sites
Michel KIRSCH
3 hours ago, ^maikl11 said:

First I have to uninstall various mods and reinstall them

The problem comes from the globallib.php file.

Which mods are modifying this file?

You can display it by clicking the "Analyze TNG files" in the Mod Manager; then clicking on globallib.php. This will show you the list of the mods modifying this file.

Uninstall them one-by-one.

Michel

Analyse tng files.JPG

Share this post


Link to post
Share on other sites
^maikl11

Hello Michel,

thank you for the tip.
The mod "Public Access Control" was the problem.
First install "Secret Media" and then "Public Access Control" !!!
So it was with me.
Maybe you can write it into "Known Problems" .....

Many greetings Micha

Share this post


Link to post
Share on other sites
Michel KIRSCH

Thanks Micha.

I'll load "Public Access Control" and try to solve the problem !

Michel

 

Share this post


Link to post
Share on other sites
Michel KIRSCH

 

The new version 4a solve this problem => Secret medias

Michel

Share this post


Link to post
Share on other sites
^maikl11
vor 20 Stunden schrieb Michel KIRSCH:

The problem comes from the globallib.php file.

Which mods are modifying this file?

You can display it by clicking the "Analyze TNG files" in the Mod Manager; then clicking on globallib.php. This will show you the list of the mods modifying this file.

Uninstall them one-by-one.

Michel



Good morning Michel,
I have now downloaded and installed the latest version.
But again it doesn't work.
I have now uninstalled all mods that access globallib.php.
But the installation is still not possible!

Do you need access to my TNG ???
Michael

 

Unbenannt - 2.jpg

Screenshot 2021-02-20 071621.jpg

Share this post


Link to post
Share on other sites
Michel KIRSCH

Yes, Michael.

I see you have another problems with Watermark...

Send me an Administrator access to genealogie AT mkirsch.be

But before , uninstall all your mods and restore a safe copy of your globallib.php file. maybe it can solve the problem...

Michel

Share this post


Link to post
Share on other sites
Michel KIRSCH

Michael,

which version of TNG are you using? The new 13.0.3, I'm sure...

This version 4d is made for 13.0.3

Michel

secret_medias_v12.3.0.4b.zip

Share this post


Link to post
Share on other sites
Drake

I just installed this mod.  Thanks for adding!    I added a new photo, and linked it to "John Brown".   When not logged in,  if I view John Brown, I don't see it as a linked photo.  However, if I view "What's New",  I see the item, and it shows it is linked to John Brown.

Share this post


Link to post
Share on other sites
Michel KIRSCH

Drake,

I wrote the Mod.

I can't reach your site to see what append. (No site address on your profile or on signature)..

An address please?

Thx

Michel

Share this post


Link to post
Share on other sites
Drake
13 hours ago, Michel KIRSCH said:

Drake,

I wrote the Mod.

I can't reach your site to see what append. (No site address on your profile or on signature)..

An address please?

Thx

Michel

My site is https://www.americankindred.com

If you search on John Brown, you'll notice he has a hidden document that is for connected members only.  

https://www.americankindred.com/getperson.php?personID=I2945&tree=KentuckyKindred

Displaying What's new reveals the document:

https://www.americankindred.com/whatsnew.php

 

 

Share this post


Link to post
Share on other sites
Michel KIRSCH

Seen, Drake.

Which template are you using?

Michel

Share this post


Link to post
Share on other sites
Drake
12 minutes ago, Michel KIRSCH said:

Seen, Drake.

Which template are you using?

Michel

I am using template 14

Share this post


Link to post
Share on other sites
Michel KIRSCH

OK Drake.

I see in my notes that this Mod needs to be reviewed since TNG13.

Indeed, the new version 13 introduces a new chanp "private" in the media table (accessible via Admin>>Media>>Edit the media and check the "Private" checkbox).
I don't know yet if this new field can replace my Mod and if it has the same function.
I don't think so, but it needs to be investigated.

It will be for the next version. In this new version, I will also provide to hide the secret media in the whatsnew.php page.


In the meantime, I can provide you a code to hide the new media blocks on the page if no user is logged in.

Michel

Share this post


Link to post
Share on other sites
Drake
7 minutes ago, Michel KIRSCH said:

OK Drake.

I see in my notes that this Mod needs to be reviewed since TNG13.

Indeed, the new version 13 introduces a new chanp "private" in the media table (accessible via Admin>>Media>>Edit the media and check the "Private" checkbox).
I don't know yet if this new field can replace my Mod and if it has the same function.
I don't think so, but it needs to be investigated.

It will be for the next version. In this new version, I will also provide to hide the secret media in the whatsnew.php page.


In the meantime, I can provide you a code to hide the new media blocks on the page if no user is logged in.

Michel

I tried the "private media" checkbox,  but it didn't do what I wanted to accomplish.  I have a couple of images I don't want to show up in the image list.  However, I do display the images in on a custom page with the showmedia function.   The private checkbox does not allow me to show them if they are private.  It might be an "undocumented feature", but your mod works perfectly for what I want to accomplish.

Share this post


Link to post
Share on other sites
Michel KIRSCH

Will do the change needed to hide the medias from the whatsnew page.

But be patient ! :-)

Michel

Share this post


Link to post
Share on other sites
Michel KIRSCH

I think marking a media as "private" works as for the notes. This media can be seen by Administrators only.

If I am wrong, someone will correct me

Michel

Share this post


Link to post
Share on other sites
Michel KIRSCH
On 3/25/2021 at 8:40 PM, Drake said:

I tried the "private media" checkbox,  but it didn't do what I wanted to accomplish.  I have a couple of images I don't want to show up in the image list.  However, I do display the images in on a custom page with the showmedia function.   The private checkbox does not allow me to show them if they are private.  It might be an "undocumented feature", but your mod works perfectly for what I want to accomplish.

Drake,

you can download the new version 5 on the wiki ==> Secret media Mod

If you find another malfunction, let me know !

Enjoy

Michel

Share this post


Link to post
Share on other sites
Drake
3 hours ago, Michel KIRSCH said:

Drake,

you can download the new version 5 on the wiki ==> Secret media Mod

If you find another malfunction, let me know !

Enjoy

Michel

Thanks so much!

Share this post


Link to post
Share on other sites
Michala

Hi @Michel KIRSCH,

I'm keen to use your mod but ran into an issue and thought I'd hop on the same thread as I have the same issue.

I'm running:

  • TNG 13.0.3 (new installation so never upgraded)
  • secret_medias_v12.3.0.5
  • I have the mods shown in attached installed (a couple not quite right that I need to sort out).

There appear to be no conflicts with globallib.php as shown in attached.

This is the text showing that i cannot install on the mod, bad target at line 236.

Let me know if you need anything further to assist with troubleshooting.

Many thanks,

Michala

Quote
Cannot install
 


Met en place un système de gestion individuelle des médias. Chaque média peut être rendu "secret" de sorte qu'il ne soit visible QUE pour les membres connnectés. Les autres médias sont accessibles suivant les normes d'accès normales de TNG.
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.


Pour complètement désinstaller ce Mod, vous devez dropper manuellement le champ 'secret' de votre table 'tng_media' via votre interface PhpMyAdmin.
To completely remove this Mod, you must DROP manually the field 'secret' from your table 'tng_media' via your PhpMyAdmin interface.

 

flags:
@  optional
^  (provisional) must be available
~  protected

 

line 33: %target:functions.php% verified
line 36: %location:% #1 not installed
line 51: %location:% #2 not installed

 

line 71: %target:admin_media.php% verified
line 75: %location:% #1 not installed
line 160: %location:% #2 not installed
line 179: %location:% #3 not installed
line 203: %location:% #4 not installed
line 213: %location:% #5 not installed
line 224: %location:% #6 not installed
line 236: %location:% #7 Bad target
line 256: %location:% #8 not installed

 

line 276: %target:personlib.php% verified
line 280: %location:% #1 not installed
line 305: %location:% #2 not installed

 

line 323: %target:browsemedia.php% verified
line 327: %location:% #1 not installed
line 341: %location:% #2 not installed
line 354: %location:% #3 not installed
line 367: %location:% #4 not installed

 

line 381: %target:globallib.php% verified
line 385: %location:% #1 not installed
line 398: %location:% #2 not installed

 

line 414: %target:languages/English/cust_text.php% verified
line 416: %location:% #1 not installed

 

line 431: %target:languages/English-UTF8/cust_text.php% verified
line 433: %location:% #1 not installed

 

line 448: %target:@languages/French/cust_text.php% verified
line 451: %location:% #1 not installed

 

line 466: %target:@languages/French-UTF8/cust_text.php% verified
line 469: %location:% #1 not installed

 

line 485: %target:@languages/German/cust_text.php% verified
line 488: %location:% #1 not installed

 

line 505: %target:@languages/German-UTF8/cust_text.php% verified
line 508: %location:% #1 not installed

 

line 531: %copyfile2: img/secret_media_yes.gif  not copied
Source: mods/secret_media/secret_media_yes.gif
line 532: %copyfile2: img/secret_media_no.gif  not copied
Source: mods/secret_media/secret_media_no.gif

  • code modifications specified: 24; modified: 0
  • file copies specified: 2; copied: 0
  • new files specified: 0; created: 0
  • new folders specified: 0; created: 0
  • errors: 1

 

TNG globallib error.jpg

TNG mod list as at 27-03-2021.jpg

Share this post


Link to post
Share on other sites
Michel KIRSCH

Wonderful error report! Nothing is missing!

Can you send me your globallib.php  admin_media.php file?


Michel

Edited by Michel KIRSCH

Share this post


Link to post
Share on other sites
Michel KIRSCH

And a screen capture of "Analyze TNG files" for the admin_media.php file...

Thx

Michel

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×