Jump to content
TNG Community

Tooltip


Hans-Erik_Bork

Recommended Posts

Hans-Erik_Bork

I am still very interested in getting a name for my pictures when I move the mouse over the picture. I have several times thought I had found the solution, but I have to admit that I did not.

I have found ToolTip on Wiki, which can what I want.Unfortunately, my knowledge of being equal to zero. I can't figure it out.

Is there a helpful person who will write a detailed guide on how to do it?I have installed mod_manager_latest_v12.0.0.2b and media-4_tooltip_v11.0.2.3. I use TNG 12.1. I hope the 2 mod fit my version of TNG?I hope someone can help me.

Yours sincerelyHans-Erik Bork

Link to comment

Hans-Erik,

When you hover a media item, you should be seeing a 'media preview' popup, and in TNG12, the media caption was added to the popup.  Wouldn't that take the place of a tooltip?

If you're looking for more than just the caption, showing a portion/face tooltip, then Ken's mod described below would be more appropriate.  Since I import all data from a PC-based genealogy software regularly, that strategy will not work for my situation.

Ron

Link to comment

Hans-Erik,

My Tooltip mod replaces the TNG img map capability within the Admin > Media > Image Map section  that allows you to select a part of a group photo and link it to a person so that it will display that person's name when you hover over the picture.

The TNG tooltip is generated via the title= capability in the browser, whereas my mod uses a javascript to immediately display the information without the browser tooltip delay.

Additionally you can create a tooltip for a person that is not in the database.

Currently the TNG Wiki does not contain detail instructions on generating the image map for media.  The help screen for Admin Media shows the following

Image Map

This section will start out collapsed. To expand, click on the "Image Map" header, or the arrow next to it. This section allows you to link different portions of the image to individuals in your database, or to display short messages when the mouse pointer is over those portions.

Note: The media item must be a valid JPG, GIF or PNG image to use this feature.

For each region you want to link to an individual, first select the individual's tree, then define the region by drawing a rectangle on the image with your mouse pointer. Start by clicking at the upper left corner of your rectangle, then hold down the mouse and move it down and to the right to draw the rectangle. When you get to the lower right corner of the rectangle, release the mouse. This will select your image coordinates. After the coordinates have been selected, a popup box will be displayed to allow you to find or enter the individual's ID. Enter all or part of the individual's name or ID to locate possible matches, then choose the correct individual from the candidates displayed. The box will close and the code for this region will be added to the Image Map box below the image. You may edit that code if necessary, or you may enter the image map code directly if desired.

Repeat this process for any additional regions needed. All new code will be added to the end of that already in the Image Map box.

To link different portions of your image to different pages, or to display short messages when the mouse pointer is over those portions, enter the needed image map code in this box. To construct your own image map, see the Image Map Construction section at the bottom of the page.

Link to comment
19 minutes ago, tngrlkrz said:

Since I import all data from a PC-based genealogy software regularly, that strategy will not work for my situation.

Note that I do not import my media, so I cannot speak as to whether the image maps are lost on a GEDCOM import using Replace All Data

Link to comment
Newfloridian

From the direction of this thread it looks as if you are referring to "internal" images in your website - by that I mean those added through Admin > Media

For the sake of completeness, you can add tooltips etc to "external" images - usually those you add to articles created through the historytemplate.php route.  To do this you would add:

<img src="thenameofyourphoto.jpg" title="My Photo" />  where what you write in title shows as the mouse-over tooltip in this case My Photo. 

Obviously not suitable for "internal" media

If you want to see a working example, let me know

Alan 

 

Link to comment
51 minutes ago, Ken Roy said:

Note that I do not import my media, so I cannot speak as to whether the image maps are lost on a GEDCOM import using Replace All Data

Ken,

I should clarify.  I 'clear' my tree, then import all medial *links' and other data from my PC software to TNG.  Any actual new media is copied to the server via FTP.

Ron

Link to comment
2 minutes ago, tngrlkrz said:

Ken,

I should clarify.  I 'clear' my tree, then import all medial *links' and other data from my PC software to TNG.  Any actual new media is copied to the server via FTP.

Ron

TNG takes care of clearing the database tables as needed based on the import options.  I do not think it is necessary to clear your tree on Import. 

Link to comment
51 minutes ago, Newfloridian said:

For the sake of completeness, you can add tooltips etc to "external" images - usually those you add to articles created through the historytemplate.php route.  To do this you would add:

<img src="thenameofyourphoto.jpg" title="My Photo" />  where what you write in title shows as the mouse-over tooltip in this case My Photo. 

Note that you can also use Image maps on external images as I have done on my Vietnam Map which also uses the same Dynamic Drive Cool Tip javascript that I implemented in my Tooltip mod

Link to comment
Newfloridian

I was thinking more along the lines of the "informational" tooltip as in the thumbnail map "Streets of Nottingham" at the head of column 2 in the article below. Both the thumbnail image and the link caption beneath it carry (subtly different in this case) information on mouse over to aid the reader.

Alan

A Saga of Finedon

 

Link to comment
1 hour ago, Ken Roy said:

TNG takes care of clearing the database tables as needed based on the import options. 

Ken,

Yea,, I've never tried that, because what I'm doing has been working OK.  The tables unassociated with individuals and media I need are preserved (e.g.users, template tables, etc), and it only takes literally, a few minutes for the whole import process for 15k person database.  I would  give it a try, if there's some advantages or incentives to doing that.

UPDATE:  Ken,  OK I gave it a try on my test site, not clearing the tree, with the same gedcom already imported before.  It appears that the only secondary process I had to do is the 'relabel branches'.  Trim menus is retained, and didn't need to relink media.  But not sure yet about new media, which I didn't have in my test.  I can see where replace all current data vs. clearing the tree would save time for those who have multiple trees; I only have one.  Will try again when I have new data and media.

Link to comment
Hans-Erik_Bork
4 hours ago, Ken Roy said:

Hans-Erik,

My Tooltip mod replaces the TNG img map capability within the Admin > Media > Image Map section  that allows you to select a part of a group photo and link it to a person so that it will display that person's name when you hover over the picture.

The TNG tooltip is generated via the title= capability in the browser, whereas my mod uses a javascript to immediately display the information without the browser tooltip delay.

Additionally you can create a tooltip for a person that is not in the database.

Currently the TNG Wiki does not contain detail instructions on generating the image map for media.  The help screen for Admin Media shows the following

Image Map

This section will start out collapsed. To expand, click on the "Image Map" header, or the arrow next to it. This section allows you to link different portions of the image to individuals in your database, or to display short messages when the mouse pointer is over those portions.

Note: The media item must be a valid JPG, GIF or PNG image to use this feature.

For each region you want to link to an individual, first select the individual's tree, then define the region by drawing a rectangle on the image with your mouse pointer. Start by clicking at the upper left corner of your rectangle, then hold down the mouse and move it down and to the right to draw the rectangle. When you get to the lower right corner of the rectangle, release the mouse. This will select your image coordinates. After the coordinates have been selected, a popup box will be displayed to allow you to find or enter the individual's ID. Enter all or part of the individual's name or ID to locate possible matches, then choose the correct individual from the candidates displayed. The box will close and the code for this region will be added to the Image Map box below the image. You may edit that code if necessary, or you may enter the image map code directly if desired.

Repeat this process for any additional regions needed. All new code will be added to the end of that already in the Image Map box.

To link different portions of your image to different pages, or to display short messages when the mouse pointer is over those portions, enter the needed image map code in this box. To construct your own image map, see the Image Map Construction section at the bottom of the page.

Thank you very much for a very detailed guide on Tooltip. Finally, I understood the concept. I will immediately work with Tooltip

Link to comment
Hans-Erik_Bork
4 hours ago, tngrlkrz said:

Hans-Erik,

When you hover a media item, you should be seeing a 'media preview' popup, and in TNG12, the media caption was added to the popup.  Wouldn't that take the place of a tooltip?

If you're looking for more than just the caption, showing a portion/face tooltip, then Ken's mod described below would be more appropriate.  Since I import all data from a PC-based genealogy software regularly, that strategy will not work for my situation.

Ron

Thanks for your reply

Link to comment
Hans-Erik_Bork
4 hours ago, Newfloridian said:

From the direction of this thread it looks as if you are referring to "internal" images in your website - by that I mean those added through Admin > Media

For the sake of completeness, you can add tooltips etc to "external" images - usually those you add to articles created through the historytemplate.php route.  To do this you would add:

<img src="thenameofyourphoto.jpg" title="My Photo" />  where what you write in title shows as the mouse-over tooltip in this case My Photo. 

Obviously not suitable for "internal" media

If you want to see a working example, let me know

Alan 

Thanks for your reply

 

 

Link to comment
Hans-Erik_Bork
4 hours ago, Newfloridian said:

From the direction of this thread it looks as if you are referring to "internal" images in your website - by that I mean those added through Admin > Media

For the sake of completeness, you can add tooltips etc to "external" images - usually those you add to articles created through the historytemplate.php route.  To do this you would add:

<img src="thenameofyourphoto.jpg" title="My Photo" />  where what you write in title shows as the mouse-over tooltip in this case My Photo. 

Obviously not suitable for "internal" media

If you want to see a working example, let me know

Alan 

 

Tak. Jeg vil gerne se et eksempel!

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...