Jump to content
TNG Community
SarahBeth

Possible to show Default Image thumb in Public person list?

Recommended Posts

SarahBeth

When I search inside the "People" tab in the Admin area, I get a really nice view of the default image thumb on any individuals with media. Like this:

image.png

Is there an option to have the "Thumb" show in the regular public name list? It currently looks like this when a non-Admin is looking:

image.png

Thanks! 

Share this post


Link to post
Share on other sites
Michel KIRSCH

Hi Sarah,

no option is provided to do that. Must be a Mod...

Michel

Share this post


Link to post
Share on other sites
SarahBeth

Thanks for the answer. I really like the option of seeing the thumbs. In a long list of the same names (I've got a lot of Johns and Richards), it helps to see the thumbs to lead you to more complete pages and key ancestors. 

Share this post


Link to post
Share on other sites
Michel KIRSCH
On 6/22/2021 at 2:58 PM, SarahBeth said:

Thanks for the answer.

Sarah,

try this and let me know...

Michel

 

Add_thumb_to_search_result_v13.0.4.beta1.cfg

Share this post


Link to post
Share on other sites
Ken Roy
4 hours ago, Michel KIRSCH said:

try this and let me know...

Michel

Michel,

Please, please do NOT add color font to

%name:<font color="Red"><i>Add thumb to search result</i></font>%
%version:<font color="Red"><i>v13.0.4.beta1</i></font>%

Those of us you do not have perfect vision or are visually impaired (color-blind) have a difficult time to read those type of changes

Thanks

Share this post


Link to post
Share on other sites
Michel KIRSCH

Hi Ken,

I add color for the beta versions.

Offical versions are not colored, of course.

What color can i Add for you? Certainly depending of the background...

Maybe bold and italic...

 

Michel

Share this post


Link to post
Share on other sites
Ken Roy

Michel,

There is no reason to add any color if you use beta in the version number and cfg file names. 

I know most users do not understand being color-blind.  I asked and it cannot be corrected during cataract surgery

Share this post


Link to post
Share on other sites
Michel KIRSCH
22 minutes ago, Ken Roy said:

Those of us you do not have perfect vision

This one so...

Add_thumb_to_search_result_v13.0.4.beta1.cfg

Share this post


Link to post
Share on other sites
Michel KIRSCH

de nada !

Share this post


Link to post
Share on other sites
klooster

Hi Michel,

Thanks for the mod, works fine, BUT when I click on the thump is does NOT show the photo but the TNG login screen (when I am not logged in)??

PS: when I am logged in it shows theTNG admin page for the person

Share this post


Link to post
Share on other sites
Michel KIRSCH

Yes Cees,

Actually, when clicking on the thumb, you are redirected to the Edit-media page.

It's why you are asking for log in.

I think it's better for the user's side to redirect to the "View media" page.

If you're ok with that, i'll check and propose another mod.

Michel

Share this post


Link to post
Share on other sites
klooster

Hi Michel,

From a users viewpoint to redirect to the”view media” page would be a better idea in my opinion.

Share this post


Link to post
Share on other sites
Michel KIRSCH

Will check that this evening Cees.

Michel

Share this post


Link to post
Share on other sites
Rob Severijns

Hi Michel,

So only the guest and submitter go to the Login or view media page and all others go to the Login or Edit Media page?

Rob

 

Share this post


Link to post
Share on other sites
Michel KIRSCH

Hi Rob,

I change the behaviour of the link.

When clicking on the thumb, every connected user goes to the showmedia page.

Administrator goes to the admin_editmedia page via the Administration panel as usual.

I send you he new mod by pm

Michel

Share this post


Link to post
Share on other sites
Ken Roy

Michel,

Your v13.0.4.1s version of the mod looks good and handles the old style default (treeID.personID.jpg) thumbnails correctly and does not attempt to go to showmedia.php. 

Well done

Share this post


Link to post
Share on other sites
tngrlkrz

Thanks Sarah for making the suggestion.

And Thanks to Michel,  as Captain Picard would say,  'making it so'.  Nice little mod with a few well placed code lines which even work on my modified search page, which includes Scott DuPree's  powerful Expand_Search mod. 😊 

Share this post


Link to post
Share on other sites
Michel KIRSCH

Hi Ron,

I just send a new version of Expand search to Scott with small changes to avoid PHP8 notices and warnings... :-)

Michel

Share this post


Link to post
Share on other sites
tngrlkrz

Hi Michel,

Thanks for helping Scott. Yes I noticed the warnings from the mod and look forward it's publication. There are of course numerous other mods that will need changes for PHP8 compliancy.  I have been working on my private changes with PHP 8.07.

BTW...you have an uppercase letter in the cfg file name, which is unconventional, and the download link doesn't indicate the full name, just the version.😉

Share this post


Link to post
Share on other sites
Philip Roy
20 hours ago, Michel KIRSCH said:

The version 1a of the Mod, showing the media in showmedia.php instead of admin_editmedia.php is downlodable on the wiki
https://tng.lythgoes.net/wiki/index.php/Add_thumb_to_search_result

Michel

Hmm...I'm seeing the page on the wiki say 1a, but the file I'm getting when downloading is still 13.0.4.1?Screen Shot 2021-06-28 at 5.39.15 PM.png

Share this post


Link to post
Share on other sites
tngrlkrz

***deleted**

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

×