INTERACT FORUM

More => Old Versions => JRiver Media Center 21 for Windows => Topic started by: makersjam on August 05, 2015, 06:11:32 pm

Title: [INFO] Customizable Tooltip Capability
Post by: makersjam on August 05, 2015, 06:11:32 pm
I've been requesting this since 2011 and getting no love.  :-\

A few others would like to see this too.

http://yabb.jriver.com/interact/index.php?topic=67454.msg452751#msg452751

thank you!
Title: Re: [INFO] Customizable Tooltip Capability
Post by: Matt on February 04, 2016, 10:03:30 am
This is already possible.

See my response here:
http://yabb.jriver.com/interact/index.php?topic=102992.msg715339#msg715339

EDIT: This post vanished. See below:
http://yabb.jriver.com/interact/index.php?topic=99227.msg715402#msg715402
Title: Re: [INFO] Customizable Tooltip Capability
Post by: makersjam on February 04, 2016, 11:54:58 am
Thanks Matt! That is awesome!  ;D
Title: Re: [INFO] Customizable Tooltip Capability
Post by: RD James on February 04, 2016, 12:09:25 pm
HTML tags don't seem to work right with a custom tooltip.
If I set one line as bold or italic, every line below it is also bold/italic.
Title: Re: [INFO] Customizable Tooltip Capability
Post by: kstuart on February 04, 2016, 12:14:26 pm
I thought this should be documented in a thread so it can be found by searching the Forum:

In Standard View there's a "Hover info box" (for the lack of a better name/description) that appears when you leave your mouse pointer stopped for about 1 second over a Movie or a Music track.

It would be intuitive ... scratch that... it would be not just intuitive but *great* if we had the ability to configure what info appears there by using the Expression Language.

I would like to be able to select the info that I find important to be displayed in that "Hover info box".

An idea similar to the "Thumbnail Text..." dialog box seems like the perfect fit for this customization.

I was looking everywhere for a way to customize this "info box" to no avail.

Thanks

You can create a library field named "Tooltip" and fill it in with an expression to display in the "Calculated data" portion of the field.

Then you have full control over the tooltip information that's displayed.

It was this change:
20.0.88 (3/30/2015)
Changed: If there's a custom library field created called Tootip and it evaluates to non-empty, it will be used for the text of the tooltip.

Title: Re: [INFO] Customizable Tooltip Capability
Post by: Matt on February 04, 2016, 12:39:01 pm
HTML tags don't seem to work right with a custom tooltip.
If I set one line as bold or italic, every line below it is also bold/italic.

I just entered this:
<font color="f08000">[Artist]<//font>
[Album]
< b>Ha!<//b>

And that worked great.

The first line was colored, the album was normal, and Ha! was bold.

Note that I added a space after the bracket for the b because otherwise the forum goes to town with it.
Title: Re: [INFO] Customizable Tooltip Capability
Post by: glynor on February 04, 2016, 12:45:19 pm
Note that I added a space after the bracket for the b because otherwise the forum goes to town with it.

Next time wrap it in code tags:
Code: [Select]
<font color="f08000">[Artist]<//font>
[Album]
<b>Ha!<//b>
Title: Re: [INFO] Customizable Tooltip Capability
Post by: RD James on February 04, 2016, 12:48:54 pm
My mistake, you need double slashes for it to work correctly.
It seems that it just interprets < /b> as a new bold tag.
Title: Re: [INFO] Customizable Tooltip Capability
Post by: xpto on February 04, 2016, 01:59:11 pm
Matt, thanks for pointing us in the right direction of having the info we need in the tooltips at our fingertips ;D

I've just been playing with it for a while.

One item for you please to consider:

By default the tooltip will always print the 'Filename' as the last line of the tooltip and it seems there is no way of not having it there.

In reality, the 'Filename' was one of the items I was trying to remove from the tooltip.

Reason is that when I'm browsing my Movie / Music collection I'm not really interested by default in knowing the filename a particular item points to.

For movies I'm interested in things like [Name] or [Year] or [Director], not if it's located in drive F: in some odd folder.
In fact, I'm trying to hide all that path complexity from the tooltip and focus on the Movie and the related information that matters to me while browsing my collection.

Same for music tracks, I'm interested in [Name], [Artist], [Album], [Rating] but not that it lives somewhere in drive M:

Besides, if anyone is interested in having the [Filename] in there, it's just a matter of adding it to the [Tooltip] field.

This is my current customization of [Tooltip] field (just to prove the point above):

[Name] - [Year]
[Comment]
[Filename]

With the example above [Filename] will be listed twice in the tooltip.

Thanks for considering this change request
Title: Re: [INFO] Customizable Tooltip Capability
Post by: glynor on February 04, 2016, 02:03:24 pm
My mistake, you need double slashes for it to work correctly.

/ is the escape character in the Expression Language. To insert any literal-/ you must double them:
http://wiki.jriver.com/index.php/Expression_Language#Expression_Language_Syntax
Title: Re: [INFO] Customizable Tooltip Capability
Post by: RD James on February 04, 2016, 03:56:57 pm
I would also like filename to be optional in custom tooltips.
xpto I'm still trying to figure things out but rules like this seem to work.

Code: [Select]
<i>If(IsEqual([Media Type], Audio, 1), [Album Artist (auto)], If(IsEqual([Media Type], Video, 1), Delimit([Director], , Directed by/ ), / ))<//i>
/ is the escape character in the Expression Language. To insert any literal-/ you must double them:
http://wiki.jriver.com/index.php/Expression_Language#Expression_Language_Syntax
Yeah. I read that it used HTML code and used HTML without the double slashes.
Title: Re: [INFO] Customizable Tooltip Capability
Post by: Matt on February 04, 2016, 05:50:31 pm
I think we could just remove the filename because it's easy enough to enter [Filename].  I'll look at it tomorrow.  Wish me luck!
Title: Re: [INFO] Customizable Tooltip Capability
Post by: ferday on February 04, 2016, 07:14:56 pm
Quite frankly Matt, that's pretty cool if it can be done


Thanks for this!
Title: Re: [INFO] Customizable Tooltip Capability
Post by: glynor on February 04, 2016, 07:33:25 pm
I just think it is awesome how Matt went back in time and added the feature for each of you.  ;D

Can I get me some of that time machine action too? I'm happy to come to you, even in the winter.
Title: Re: [INFO] Customizable Tooltip Capability
Post by: Matt on February 05, 2016, 09:01:02 am
Success!  Coming next build:
Changed: The filename is no longer added to custom tooltips (customized with the Tooltip field).  Just add [Filename] if you want it.
Title: Re: [INFO] Customizable Tooltip Capability
Post by: CountryBumkin on February 05, 2016, 09:55:51 am
I've been reading this thread and I would like to modify the Tool Tips too, but I can't find the post with the instructions (I think it involved creating a new Library Field "Tool Tips" and adding some expressions).

Where is the post with the instructions? In Matts post (Reply #1) there is a link, but it looks like posts are missing on that thread (note Reply #44 references another post that is no longer there).

Anyways, can someone point me to the Thread explaining how to create custom Tool Tips?

Thanks
Title: Re: [INFO] Customizable Tooltip Capability
Post by: glynor on February 05, 2016, 10:16:16 am
Yeah. Matt's post got removed somehow (Jim was messing about with the Too Easy thread, I'd assume).

It's easy. Make a new custom calculated field called [Tooltip]. That's what gets displayed, if it exists. If not, it uses Matt's built in logic.
Title: Re: [INFO] Customizable Tooltip Capability
Post by: blgentry on February 05, 2016, 10:16:42 am
^ This should tell you the basics:

http://yabb.jriver.com/interact/index.php?topic=99227.msg715402#msg715402

Brian.
Title: Re: [INFO] Customizable Tooltip Capability
Post by: glynor on February 05, 2016, 10:17:00 am
I'll merge that one in.
Title: Re: [INFO] Customizable Tooltip Capability
Post by: CountryBumkin on February 05, 2016, 10:53:54 am
^ This should tell you the basics:

http://yabb.jriver.com/interact/index.php?topic=99227.msg715402#msg715402

Brian.

That link is this thread. What am I missing here?
Title: Re: [INFO] Customizable Tooltip Capability
Post by: marko on February 05, 2016, 11:28:47 am
I like my audio tooltips a bit larger...
(http://www.mpw.scot/pics/ia/21/snap-056.jpg)

I get this by adding a series of empty 'new lines' in the description field. Back when this was introduced, I tried and failed to get this using expressions in the tooltip field.

Does anyone know how to get an expression to output a series of blank 'new lines'?
Title: Re: [INFO] Customizable Tooltip Capability
Post by: blgentry on February 05, 2016, 12:13:37 pm
That link is this thread. What am I missing here?

That link, when I posted it, pointed to *another* thread started by KStuart.  The quote in that post is what Matt originally wrote to describe how this works.  It's all there.  15 minutes after I posted the link, Glynor merged that thread into this one.  So now the information is here in the same thread.

Brian.
Title: Re: [INFO] Customizable Tooltip Capability
Post by: blgentry on February 05, 2016, 12:18:31 pm
I get this by adding a series of empty 'new lines' in the description field. Back when this was introduced, I tried and failed to get this using expressions in the tooltip field.

Does anyone know how to get an expression to output a series of blank 'new lines'?

In Manage Library Fields, set up Tooltip to be Calculated Data.  Then put in all the fields you want, in the order and formatting you want.  Finally, type a bunch of returns, until you think you have enough.  'Voila, "big ol' tool tip".  I just tested it; works as expected.

I can't believe I'm actually helping Marko!  Your posts have helped me an ENORMOUS amount.  Thank you.  I feel honored that I can pay you back in this tiny way.  :)

Brian.
Title: Re: [INFO] Customizable Tooltip Capability
Post by: ferday on February 05, 2016, 12:19:45 pm
if it accepts HTML could you not use
Code: [Select]
<br> for the line breaks?

anyways just a thought, i haven't had time to play with the new tooltip yet but soon
Title: Re: [INFO] Customizable Tooltip Capability
Post by: rudyrednose on February 05, 2016, 12:42:31 pm
I have a question.
The standard tooltips are already quite good.

In my movies, i would like to append another field, [language], to the existing tooltip.
However, how can I embed the existing tooltip content when I create a Tooltip calculated field ?

Can it be done, or I need to replicate all the existing logic ?
Title: Re: [INFO] Customizable Tooltip Capability
Post by: marko on February 05, 2016, 03:01:40 pm
Thanks Brian (for the kind words too),

I had that, but, if I want the line returns first, and maybe some select info at the bottom of the tip, I can't make that happen.... MC ignores the new lines until it finds data to output. Escaping the new lines doesn't work.

I wondered if there was a special character (alt+1234 kind of thing perhaps?) that would force the  new line.
Title: Re: [INFO] Customizable Tooltip Capability
Post by: glynor on February 05, 2016, 03:53:57 pm
That link is this thread. What am I missing here?

I fixed it.
Title: Re: [INFO] Customizable Tooltip Capability
Post by: glynor on February 05, 2016, 03:56:28 pm
I had that, but, if I want the line returns first, and maybe some select info at the bottom of the tip, I can't make that happen.... MC ignores the new lines until it finds data to output. Escaping the new lines doesn't work.

I wondered if there was a special character (alt+1234 kind of thing perhaps?) that would force the  new line.

HTML Line breaks maybe?

Code: [Select]
<br> or <p>
But Brian seems to say that regular Returns work...
Title: Re: [INFO] Customizable Tooltip Capability
Post by: blgentry on February 05, 2016, 04:30:05 pm
I had that, but, if I want the line returns first, and maybe some select info at the bottom of the tip, I can't make that happen.... MC ignores the new lines until it finds data to output. Escaping the new lines doesn't work.

That's whacky.  It works fine here on MC21.0.31 for Mac.  See attached screen shot.  I just typed a bunch of return characters before the expressions and it inserted them.  Maybe try some kind of garbage character first like . or , or / or something else innocuous.  Then type all of the returns.

Brian.
Title: Re: [INFO] Customizable Tooltip Capability
Post by: glynor on February 05, 2016, 06:32:07 pm
ProTip for anyone doing this:

If you want to make different Tooltips for different media types, make the expression for each media type you want to cover its own, separate, Calculated Field:

[Tooltip - Music]
[Tooltip - Audiobook]
[Tooltip - Podcast]
[Tooltip - Other Audio]
[Tooltip - TV Show]
[Tooltip - Movie]
[Tooltip - Other Video]
etc

In the expressions you enter for those, wrap each one in its own If() statement that checks the media type (is it a Video file and a TV Show, or is it an Audio file and Music, etc). You want it to output your desired Tooltip text if it is true, and blank if it is false.

Then, your actual [Tooltip] expression can just be one big FirstNotEmpty() (http://wiki.jriver.com/index.php/Conditional_Functions#FirstNotEmpty) statement. Just line up all of the other expression fields you made! That will keep you from getting into some kind of giant multi-tentacled monster you'll never be able to edit later.

Just make sure at the end of the "chain" you have some kind of catch-all to catch otherwise unmatched types, if you want them to be custom, or make it "fall through" to blank (which will result in Matt's default ones).
Title: Re: [INFO] Customizable Tooltip Capability
Post by: blgentry on February 05, 2016, 07:07:30 pm
^  Hey that's pretty good!  I was thinking of making a three tiered system like Album Artist uses.  Something like [Tooltip], [Tooltip Base], and [Tooltip Custom], where Base is a calculated field and Custom is user editable, so you can do overrides.

I was mentally preparing for kind of a horribly complicated expression to cover only 3 media types (Music, Movies, TV Shows), but your technique makes the pieces smaller and easier to handle.  I like it.  It could also be combined with my override system if I feel the need.  The only question now is how to make an override that just uses the original built in default... but that's probably not necessary actually.

Thanks for sharing Glynor.

Brian.
Title: Re: [INFO] Customizable Tooltip Capability
Post by: glynor on February 05, 2016, 07:32:01 pm
That's the beauty of FirstNotEmpty().  You leave the last value blank (just a comma with the close parenthesis after it).

If [Tooltip] doesn't exist, or evaluates to blank, then it will use Matt's built-in tooltip (the regular one).

So each "sub expression" sees if it should apply itself. If so, great, it does, and execution stops and it spits out the value. If not, then it passes through blank. Then FirstNotEmpty() checks the next expression and the next until it finds one that applies. Structure your sub-expressions in the FirstNotEmpty() statement from most-specific (only TV Shows where [Genre] is News, for example) to least specific (Media Type is Video). If none apply (you didn't bother to make one for that media type, or the default is fine as-is) then just don't do anything, and it'll keep on passing through blank and you'll get Matt's built-in.
Title: Re: [INFO] Customizable Tooltip Capability
Post by: blgentry on February 05, 2016, 08:39:45 pm
I follow your logic, but it doesn't allow an override.  For example, what if I have (using your example) Video with Genre News, but for one or more of those videos, I want to change the Tooltip?  I'd need some way of indicating that in the expression.  I could have another variable that FirstNotEmpty checks first I guess, if I wanted something custom.

I need to think about the use cases here.  I'm probably making this complicated for no good reason.  Having a Tooltip expression, per Media Type and Subtype should be flexible enough.

Brian.
Title: Re: [INFO] Customizable Tooltip Capability
Post by: glynor on February 05, 2016, 09:05:04 pm
I follow your logic, but it doesn't allow an override.

It sure as heck does!

You get most of it, but you're missing an important bit, I think:
Structure your sub-expressions in the FirstNotEmpty() statement from most-specific (only TV Shows where [Genre] is News, for example) to least specific (Media Type is Video).

It works just like the File Info Templates in Theater View. You order them from most specific to least specific in the FirstNotEmpty(). So, to take it to a ridiculous example, say you have this field:
[Tooltip - My Override for Just This One File]

And in its expression, it has If(IsEqual([Filename],m:\path\to\some\file\I\want\to\override.mkv, 1), My Tooltip Template,)

As long as your FirstNotEmpty() has [Tooltip - My Override for Just This One File] listed as the first (of perhaps many) entries, then it'll override everything else. FirstNotEmpty() spits out the first thing it encounters that isn't empty, and then stops. So, whenever it is evaluated on that file, it is going to spit out "My Tooltip Template" and it doesn't matter what else is in the FirstNotEmpty() "chain".

Obviously, that's an extreme example, but you could have a checkbox field, or something if you need a manual override. Most of them, I imagine would be looking at other properties. So, the ones near the "front" of the FirstNotEmpty() would be Video, TV Show, Genre, and maybe on a particular drive or something. Then "further down" in the FirstNotEmpty() you have one that just matches Video and TV Show.  The ones that already "matched" would have already "tripped" and been spit out.

You "override" by making a different filter that will work and is more specific, and put it closer to the beginning of the FirstNotEmpty() "chain".
Title: Re: [INFO] Customizable Tooltip Capability
Post by: glynor on February 05, 2016, 09:09:36 pm
It also occurs to me that you don't even need the extra empty comma at the end of the FirstNotEmpty() statement. You do need it at the end of each of the If()s in the sub-expressions (so they give out a "false" value of empty. But I'm pretty sure the FirstNotEmpty() will not spit out anything if all of the values in there evaluate empty. It will just be omitted, and since your [Tooltip] consists entirely of this one FirstNotEmpty() statement, that means [Tooltip] will evaluate empty.

And Matt's built-in Tooltip will pass through.
Title: Re: [INFO] Customizable Tooltip Capability
Post by: glynor on February 05, 2016, 09:52:06 pm
It also occurs to me that you don't even need the extra empty comma at the end of the FirstNotEmpty() statement. You do need it at the end of each of the If()s in the sub-expressions (so they give out a "false" value of empty. But I'm pretty sure the FirstNotEmpty() will not spit out anything if all of the values in there evaluate empty. It will just be omitted, and since your [Tooltip] consists entirely of this one FirstNotEmpty() statement, that means [Tooltip] will evaluate empty.

And Matt's built-in Tooltip will pass through.

Yep. This works. Just tested it.
Title: Re: [INFO] Customizable Tooltip Capability
Post by: glynor on February 05, 2016, 11:29:11 pm
Okay, Brian previously asked Matt if he could provide the expression used for the existing tooltips. He couldn't because they aren't actually built in the expression language, so we have to come up with replicas on our own. Well, I don't have them all done by any means, but...

I did just, pretty closely, replicate the stock TV Show tooltip, using the system described above. I've also made a couple of (easily reversed) improvements, and I made one minor alteration because I'm lazy and it was way easier to do it this way. In any case, you should be able to use this as a base for TV Show episodes, at least.

Here's an example of the stock TV Show tooltip:
(http://glynor.com/img/screenshots/MC21/File_Tooltip-Stock-TV_Show.png)

My custom one produces:
(http://glynor.com/img/screenshots/MC21/File_Tooltip-Custom-TV_Show-General.png)

But, importantly, it still works if some of that data is missing (which takes some elbow grease to pull off):
(http://glynor.com/img/screenshots/MC21/File_Tooltip-Custom-TV_Show-General-alt.png)

Reproducing this is easy. I have two separate calculated fields defined...

[Tooltip]
Code: [Select]
FirstNotEmpty([Tooltip - TV Show])
[Tooltip - TV Show]
Code: [Select]
If(IsEqual([Media Sub Type],TV Show,1), <font size="140"><b>TVInfo(SeasonEpisode)Delimit([Name],,/ •/ )Delimit([Series],,/ •/ )<//b>Delimit([Year],/),/# (#/)Delimit([Access Rating],/),/# (#/)<//font>
<font size="115">TVInfo(SizeDisplay)If(!IsEmpty([Compression]),/ •/ [Compression],/ •/ [File Type])<//font>

If(!IsEmpty([Description]),[Description]

,)If(!IsEmpty([Genre]),<b>Genre:<//b> [Genre]
,)If(!IsEmpty([Director]),<b>Director:<//b> [Director]
,)If(!IsEmpty([Screenwriter]),<b>Screenwriter:<//b> [Screenwriter]
,)If(!IsEmpty([Actors]),<b>Actors:<//b> [Actors],)
,)

General Notes:

* Because of the FirstNotEmpty() in [Tooltip] (as described above), all of the original tooltips (Movies, Music, Podcasts, etc) still pass through, except for TV Show episodes. Those get the custom output.

* All of the spacing should be right, whether the different values are there or not (this took quite some doing).

In [Tooltip - TV Show], to Matt's "original" Tooltip, I added:

* TVInfo(SeasonEpisode) with a bullet to the front of the episode name - This produces output like: [Season].[Episode]. But it does so in a "smart" way and omits the period and whatnot when it makes sense to do so.

* The contents of [Compression] are used, if not empty, instead of [File Type]. If [Compression] happens to be empty, then it "fails to" [File Type] instead.

* I added [Genre] as one of the pieces of metadata shown below the [Description].

* My title-line text isn't quite as big as the original. If you want it to match exactly, I think you'd want to go to around 145%. I thought 140% looked good, since I was making that title line a bit longer anyway by adding the Season.[Episode] identifier, but this is still pretty close.

I also made one minor change, due mostly to laziness:

* In Matt's original, it goes: [Duration] • [File Type] • [File Size]. But [Duration] and [File Size] are both "nicely rounded" so that they display well depending on the size of the file.

* It would be tough to recreate this magic rounding by hand (probably not impossible, but it made my brain hurt). But we do have TVInfo(SizeDisplay). This does the same "magic rounding" thing, but not in quite the same order.  I like this version just as well, and it is way easier to do that the original.

[Filename] Notes:

* One thing that needs to be added is a proper [Filename] passthrough. Matt just fixed it so that [Filename] isn't permanently part of the Tooltip, but that isn't in an available build yet. So, we'll have to wait and add that to the very bottom later.
Title: Re: [INFO] Customizable Tooltip Capability
Post by: CountryBumkin on February 06, 2016, 05:01:48 am
Nice glynor! Thanks for sharing. Works great.
Title: Re: [INFO] Customizable Tooltip Capability
Post by: RD James on February 19, 2016, 01:06:33 pm
I'm having trouble finding the specific combination of things that causes it to happen, but for some files that have a comment tag, there is always a blank line and the comment inserted at the bottom of custom tooltips.
All of the affected files seem to be video podcasts that were downloaded by JRiver itself.

There is only [Name] in my tooltip for this:
Title: Re: [INFO] Customizable Tooltip Capability
Post by: blgentry on February 19, 2016, 02:24:36 pm
Okay, Brian previously asked Matt if he could provide the expression used for the existing tooltips. [...]

I did just, pretty closely, replicate the stock TV Show tooltip, using the system described above.

I forgot to thank you for this when you posted.  Thanks!  That must have been quite a bit of work to get it right.

Brian.
Title: Re: [INFO] Customizable Tooltip Capability
Post by: glynor on February 19, 2016, 02:53:41 pm
It took some fiddling, for sure.

I have added [Filename] in with the new builds, and it still works fine.
Title: Re: [INFO] Customizable Tooltip Capability
Post by: RD James on February 24, 2016, 08:56:55 am
I'm having trouble finding the specific combination of things that causes it to happen, but for some files that have a comment tag, there is always a blank line and the comment inserted at the bottom of custom tooltips.
All of the affected files seem to be video podcasts that were downloaded by JRiver itself.

There is only [Name] in my tooltip for this:
This bug is still in 21.0.50
Title: Re: [INFO] Customizable Tooltip Capability
Post by: RD James on March 07, 2016, 10:10:47 am
Bump
Title: Re: [INFO] Customizable Tooltip Capability
Post by: Matt on March 07, 2016, 10:11:50 am
Could you describe the bug you're seeing in more detail?  I haven't been able to reproduce anything.

Thanks.
Title: Re: [INFO] Customizable Tooltip Capability
Post by: RD James on March 07, 2016, 10:25:18 am
Could you describe the bug you're seeing in more detail?  I haven't been able to reproduce anything.

Thanks.
Edited:

Podcasts are showing their description at the bottom of the tooltip below everything else, even if [Description] is not being used in the custom tooltip at all.
It seems to happen with any file on a subscribed podcast list.
Tagging other files as podcasts doesn't seem to cause this.
Title: Re: [INFO] Customizable Tooltip Capability
Post by: Matt on March 07, 2016, 10:35:55 am
And what's a feed URL that will provide videos from Podcasting?

Thanks.
Title: Re: [INFO] Customizable Tooltip Capability
Post by: Matt on March 07, 2016, 10:54:15 am
Changed next build:
Changed: The comment from a Podcast would still get added below a custom tooltip, but no longer does.
Title: Re: [INFO] Customizable Tooltip Capability
Post by: RD James on March 07, 2016, 11:53:23 am
That was quick, thanks.
Title: Re: [INFO] Customizable Tooltip Capability
Post by: lynes88 on March 08, 2016, 10:34:40 am
Sorry Guys... I read through this thread many times and just got lost.  I really wanted to make one simple change to my mouse hover view for movies.  When I pause over the cover art in standard view, the pop-up list of information does not include the movie Rating (like "R" or "PG") that it gets from TMDB metadata.  I tried fumbling around with this Tooltips idea but since I am not "advanced" with these type of enhancements... I just could not figure this out.

I need help navigating from the main menu to get me to the right place for this.  And is there a way to just simply add this field to my current view without having to go through all the trouble of creating a new custom view?

I know I can see this in Theater View... but the kids like using standard view, but it would be helpful to know the rating of a film to double check their choice....  and yes, parental control is next.  Saw my son clicking on 50 shades of grey last time...... lol
Title: Re: [INFO] Customizable Tooltip Capability
Post by: lynes88 on March 30, 2016, 06:12:59 pm
bump to my own question... any help?
Title: Re: [INFO] Customizable Tooltip Capability
Post by: 8139david on May 18, 2016, 05:31:59 am
I'd like to customize the information shown by tooltip.
I looked at the tread but I don't understand what I should do.
Do I just need to create a user field called Tooltip and modify what's given on some of the posts here?
Title: Re: [INFO] Customizable Tooltip Capability
Post by: blgentry on May 18, 2016, 06:25:09 am
Yes.  Though you might consider Glynor's technique as it allows you to customize tooltips for each type individually in different fields.  Which makes it more compartmentalized and easier to edit.

Brian.
Title: Re: [INFO] Customizable Tooltip Capability
Post by: 8139david on May 18, 2016, 06:26:53 am
Thanks, that's what I did.
I just wanted to add some information for Movies.

[Tooltip]
Code: [Select]
FirstNotEmpty([Tooltip - Movie])
[Tooltip - Movie]
Code: [Select]
If(IsEqual([Media Sub Type],Movie,1), <font size="140"><b>[Name]<//b> • [Year]<//font>
If(!IsEmpty([Comment]),[Comment], If(IsEqual([File Type],iso,1),[File Type],TVInfo(SizeDisplay)If(!IsEmpty([Compression]),/ •/ [Compression],/ •/ [File Type])))

If(!IsEmpty([Description]),[Description]

,)If(!IsEmpty([Director]),<b>Director:<//b> [Director]
,)If(!IsEmpty([Country]),<b>Country:<//b> [Country]
,)If(!IsEmpty([Actors]),<b>Actors:<//b> [Actors],)
,)

I'm using MC to catalog all my movies, whether on a hard disc or not.
When it's a dvd or a bluray that is not copied on a hard disc, I add it as a comment: dvd or br. Otherwise, I leave the comment field empty. Obviously, I could also use a custom field for that, if I decided to use comments for other information.

And I test whether [File Type]=iso, since in that case, information such as Duration and Compression is not available.
Title: Re: [INFO] Customizable Tooltip Capability
Post by: 8139david on June 05, 2016, 04:13:31 am
I've added Genre in Tooltip - Movie:

[Tooltip - Movie]
Code: [Select]
If(IsEqual([Media Sub Type],Movie,1), <font size="140"><b>[Name]<//b> • [Year]<//font>
If(!IsEmpty([Comment]),[Comment], If(IsEqual([File Type],iso,1),[File Type],TVInfo(SizeDisplay)If(!IsEmpty([Compression]),/ •/ [Compression],/ •/ [File Type])))

,)If(!IsEmpty([Genre]),<b>Genre:<//b> [Genre]
,)If(!IsEmpty([Description]),<b>Description:<//b> [Description]

,)If(!IsEmpty([Director]),<b>Director:<//b> [Director]
,)If(!IsEmpty([Country]),<b>Country:<//b> [Country]
,)If(!IsEmpty([Actors]),<b>Actors:<//b> [Actors]
,)
Title: Re: [INFO] Customizable Tooltip Capability
Post by: 8139david on June 07, 2016, 02:59:52 am
I've added Dimensions in Tooltip - Movie:

Code: [Select]
If(IsEqual([Media Sub Type],Movie,1), <font size="140"><b>[Name]<//b> • [Year]<//font>
If(!IsEmpty([Comment]),[Comment], If(IsEqual([File Type],iso,1),[File Type],TVInfo(SizeDisplay)If(!IsEmpty([Compression]),/ •/ [Compression],/ •/ [File Type])If(!IsEmpty([Dimensions]),/ •/ [Dimensions],)))

,)If(!IsEmpty([Genre]),<b>Genre:<//b> [Genre]
,)If(!IsEmpty([Description]),<b>Description:<//b> [Description]

,)If(!IsEmpty([Director]),<b>Director:<//b> [Director]
,)If(!IsEmpty([Country]),<b>Country:<//b> [Country]
,)If(!IsEmpty([Actors]),<b>Actors:<//b> [Actors]
,)
Title: Re: [INFO] Customizable Tooltip Capability
Post by: 8139david on June 23, 2016, 04:38:33 am
I'd like to enlarge the size of the tooltip window (in order to show more information).
Is that possible, and if so, how?
Title: Re: [INFO] Customizable Tooltip Capability
Post by: Matt on June 23, 2016, 07:37:34 am
I'd like to enlarge the size of the tooltip window (in order to show more information).
Is that possible, and if so, how?

The tooltip will enlarge to show anything that's in the Tooltip field.

So make a huge field and the tooltip will be huge.
Title: Re: [INFO] Customizable Tooltip Capability
Post by: 8139david on June 23, 2016, 07:56:43 am
In fact, there is an arbitrary limit to the size of the tooltip window, see attached pics (one where Tooltip is defined, one where it is not).
Title: Re: [INFO] Customizable Tooltip Capability
Post by: Matt on June 24, 2016, 10:09:38 am
In fact, there is an arbitrary limit to the size of the tooltip window, see attached pics (one where Tooltip is defined, one where it is not).

Coming in the first builds of MC22:
Changed: Tooltips can be 80% of the screen height instead of 50%.
Title: Re: [INFO] Customizable Tooltip Capability
Post by: 8139david on June 24, 2016, 10:17:18 am
Nice, thanks!
What about screen width? Also authorizing 80% would allow the tooltip to display much more information.
Indeed, allowing users to choose these percentages would be fantastic.
Title: Re: [INFO] Customizable Tooltip Capability
Post by: 8139david on June 25, 2016, 01:30:30 pm
To accomodate new information, I have modified my tooltips (see attached pics):

Tootltip
Code: [Select]
FirstNotEmpty([Tooltip - Video])
Tooltip - Video
Code: [Select]
If(IsEqual([Media Type],Video,1), <font size="140"><b>delimit([Name],/ ,)<//b>delimit([Year],/ ,•/ )if(!isequal([Original Title],[Name],1), delimit([Original Title],,•/ ),)<//font>
delimit([Runtime],/ mn/ •/ ,)delimit(firstnotempty([Comment],[File Type]),/ ,)delimit([Dimensions],/ ,•/ )if(isempty([Stacked]), delimit([File Size],,•/ ),)

If(!IsEmpty([Genre]),<b>Genre:<//b> [Genre]
,)If(!IsEmpty([Description-]),<b>Description:<//b> [Description-]

,)If(!IsEmpty([Director]),<b>Rιalisateur:<//b> if(isequal(jakozh, [Original Language], 8), [Director Sort], [Director])
,)If(!IsEmpty([Country]),<b>Pays:<//b> [Country]
,)If(!IsEmpty([Actors]),<b>Acteurs:<//b> firstnotempty([ActorAsCharacter],[Actors])
,),)

In particular, the field Description_ stores a description of the movie in its original language, and Description- is calculated as follows since I'm French:

Description-
Code: [Select]
if(isequal([Original Language],fr,1), firstnotempty([Description_],[Description]), firstnotempty([Description],[Description_]))
See this post about getting information from TMDB:
http://yabb.jriver.com/interact/index.php?topic=100449.msg735485#msg735485