forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: scarydeath on May 08, 2014, 10:11:31 pm

Title: Information when hovering over image
Post by: scarydeath on May 08, 2014, 10:11:31 pm
Hi all,

I have a fairly basic install of Coppermine, no themes etc. and I have noticed that my images are not showing up in Goolgle images.

After doing a little digging, it seems that Google gets its data about the image from the image title html tag. Coppermine seems not to include the title or description in this title tag at all, instead just showing "Filename=... Filesize=... Dimensions=... Date added=..." when I hover over any image. It seems that unless I search Google for "DSC_0001.JPG"

Is there a way to include the title and description in this hover-over? Would I need to install a theme, or change something buried deep in the php files? Am I completely missing the point about Google image search - and I should be doing something else? (My site appears in google itself...). Or maybe my images just aren't worth of a result? Who knows...

I have tried to have a search for help, but throwing search terms such as "Coppermine Image Hover Description" into a search engine just brings back a whole wave of unrelated stuff :-( Any help would be most appreciated!

Thanks,
Title: Re: Information when hovering over image
Post by: scarydeath on May 08, 2014, 10:18:31 pm
I have just realised I have posted this in completely the wrong place. My fault for having two tabs open for the same forum!

Can someone please move it to the "forum.coppermine-gallery.net > Support > cpg1.5.x Support > cpg1.5 themes (visuals)" area?

Cheers,
Title: Re: Information when hovering over image
Post by: allvip on May 26, 2014, 07:33:40 am
In firefox right click anywhere on the page - click View Page Source and look for <title>...</title>  you can see the ALBUM NAME - FILENAME - Your gallery name.
If you add a title to the image not just description when you upload it you can see that is ALBUM NAME - PICTURE TITLE -Your gallery name.

Google reads the title not the text displayed on hover.

ON the pop up page (full size image) the title is <title>Your gallery name : Click image to close this window</title> only but I think google is not reading from it anyway.
Title: Re: Information when hovering over image
Post by: Αndré on June 24, 2014, 01:37:54 pm
Regardless of Google, what you ask for can be achieved in 2 ways:
1. Modify Coppermine core files (include/functions.inc.php - not recommended!)
2. Use the plugin hook(s) thumb_html_title and/or thumb_strip_html_title to modify thumbnail titles

Have a look at that (http://forum.coppermine-gallery.net/index.php/topic,63369.0.html) plugin as an example how such a plugin could work. It's quite easy to modify it to your needs if you don't like how it currently works.