Information when hovering over image Information when hovering over image
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Information when hovering over image

Started by scarydeath, May 08, 2014, 10:11:31 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

scarydeath

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,

scarydeath

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,

allvip

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.

ΑndrĂ©

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 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.