News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

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!