Highslide 3.04 and alt/width/height Highslide 3.04 and alt/width/height
 

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

Highslide 3.04 and alt/width/height

Started by hddk, March 16, 2010, 01:40:56 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

hddk

Hello

My gallery adress: http://roslinyowadozerne.boo.pl/, I have CPG 1.4.26 and Highslide 3.04 plugin. How can I force HS to insert into links alt, width and height attributes?

Currently links on main page looks like this (in lastup, topn, anycontent):
<a href="albums/nepenthes/rok2010/DSCF5329.jpg" class="highslide" onclick="return hs.expand(this)">
<img src="albums/nepenthes/rok2010/thumb_DSCF5329.jpg" class="image" id="highslide14" border="0"
alt="DSCF5329.jpg" title="Nazwa pliku=DSCF5329.jpg Rozmiar=98KB Rozmiar=768x1024 Data dodania=09 marca 2010"/><br />


I would like to have following attributes and values in <IMG SRC> tag:
1. alt = title of image, instead of filename (or in case of blank title field: alt="")
2. width = 100/75, depending on horizontal/vertical thumbnail
3. height = 75/100, depending on horizontal/vertical thumbnail
alt="N. rafflesiana" width="75" height="100"

My knowledge of PHP is rather limited, so be understanding, please :)

Thanks!