View Full Version : Mouse over thumbnails - text?
December 10th, 2012, 02:13 PM
I hope you can help me understand this problem.
We have random images on the sidebar here and thumbnails that can be scrolled under the main image. When you mouse-over any of those you see the text which is the name of the main image on the page. Is this what it is supposed to do? Is it supposed to show the main of the image the mouse is over?
On the homepage at the moment, when I mouse-over any of the thumbnails on the 'most recent' or 'random', I get the name of one of the pictures that I can't currently locate. (When I mouse-over the comment images I get the name of the actual image.) gallery.backyardpoultry.com/
I have some more questions, but it may be clearer if I use a new topic for them.
Thank you for any assistance.
December 10th, 2012, 02:38 PM
If you mouse over an image the alt tag is going to be the photo title or the filename if there is no title correct.
Are you using our latest code or an older copy?
DSCN1365 - ReefTalk Gallery (http://www.reeftalk.com/gallery/test/p1679-dscn1365.html)
December 10th, 2012, 03:07 PM
We are on 8.22
Will that make any difference?
December 10th, 2012, 03:35 PM
Yes you can upgrade to 8.23 or do this as noted in this thread
December 11th, 2012, 11:16 AM
If you want a full list of files changed since 8.22 this will show you which ones to update
December 12th, 2012, 04:44 AM
Great. Thanks Chuck. So just to confirm, I don't need to run the install, just upload those files and overwrite the ones from 8.22?
December 12th, 2012, 07:22 AM
Yes just overwrite the files noted in the announcement
December 12th, 2012, 08:02 AM
Great. That worked.
December 12th, 2012, 08:26 AM
Glad to help enjoy your day.
December 15th, 2012, 10:55 PM
Apologies if this is posted in the wrong place. I'll post elsewhere if you point me in the right direction.
I was wondering if I could alter the thumbnail hover text to show the username of the photo owner as well as the title of the photo?
December 16th, 2012, 10:31 AM
Not really not without you alter the coding. The code is not designed by default to pass the username to any functions that build the thumbnails.
December 18th, 2012, 08:11 AM
I will give you a hint on this incase you feel good enough to hack.
We pass variables to functions like so.
$pimgtag[$count] = get_imagethumb( $features['bigimage'], $features['cat'], $features['userid'], 1, 0, 0, 0, 0, $features['title'] );
See how we pass information to the function get_imagethumb in that array of info. A quick and dirty hack to make the mouse over a username could be replace say in the example I am showing the title variable with whatever variable is defined for the username if there is one in that query your doing. You would of course have to make sure your grabbing the username and defining that in your query but replacing the title variable in the get_imagethumb lines with whatever variable you define for username will work.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.