utilizing alt tags utilizing alt tags
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

utilizing alt tags

Started by WickedElf, July 02, 2005, 04:48:39 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

WickedElf

Hello,

I checked the FAQ and searched and didn't see this covered, but it seems like it should be easy (and that I'm just looking in the wrong spots), so hopefully someone can help me out.

Right now when the mouse hovers over any of the thumbnails, it says a bunch of file info (filename, size, date uploaded, etc...), which for example is alt="velvet002.jpg" title="Filename : velvet002.jpg Filesize : 49KB Dimensions : 400x195 Date added : May 04, 2005"/code] in the code.

How can I change it so the alt and title tags read something like just the Album name?  It's just a little annoying when people hover over something like one of the random images or last added... and have to click on it to find out what it is.

Thanks!

Joachim Müller

what's your actual question?

WickedElf

Whoops, sorry.  I screwed up with the code tag and my question went into there. 

It was:
How can I change it so the alt and title tags read something like just the Album name?

Joachim Müller

Actually, it's not the alt attribute, but the title attribute, but anyway:
edit include/functions.inc.php, find                        $pic_title =$lang_display_thumbnails['filename'].$row['filename']."\n".
                                $lang_display_thumbnails['filesize'].($row['filesize'] >> 10).$lang_byte_units[1]."\n".
                                $lang_display_thumbnails['dimensions'].$row['pwidth']."x".$row['pheight']."\n".
                                $lang_display_thumbnails['date_added'].localised_date($row['ctime'], $album_date_fmt);
within the function definition of // Prints thumbnails of pictures in an album
function display_thumbnails($album, $cat, $page, $thumbcols, $thumbrows, $display_tabs)
and replace with                        $pic_title = $album_name;(not tested though)

zboub

Hi,

I'm trying to use same way to get picture title, caption, and date added in the alt tag, with no success...

Instead of:
$pic_title =$lang_display_thumbnails['filename'].$row['filename']."\n".
        $lang_display_thumbnails['filesize'].($row['filesize'] >> 10).$lang_byte_units[1]."\n".
        $lang_display_thumbnails['dimensions'].$row['pwidth']."x".$row['pheight']."\n".
        $lang_display_thumbnails['date_added'].localised_date($row['ctime'], $album_date_fmt);


I put this:
$pic_title =$row['title']."\n".

        $row['caption']."\n".

        $lang_display_thumbnails['date_added'].localised_date($row['ctime'], $album_date_fmt);


It looks ok on an album display, but with toprated and most viewed, only date added is shown.

I'd really appreciate any help.

;)