pragmaMx Support Forum

pragmaMx => Individuelle Anpassungen => Thema gestartet von: diabolo in 03 März 2006, 18:37:02

Titel: Picture instead of link
Beitrag von: diabolo in 03 März 2006, 18:37:02
Hi,
I 've do that for download module:

(https://forum.pragmamx.org/proxy.php?request=http%3A%2F%2Fwww.hiboox.com%2Fvignettes%2F906%2Fuqfkh5d.jpg&hash=de49c24f629548576ee29294663b004c50276df7) (http://www.hiboox.com/image.php?img=uqfkh5d.jpg)

I've edit index.php in modules/download

line 1644 i've replace by:
. "<a href=\"modules.php?name=Downloads&amp;d_op=getit&amp;lid=$lid\">".mxCreateImage("images/download/download.png", _DOWNLOADNOW)."<br>[ <b>" . _DOWNLOADNOW . "</a></b> ]"

Is working but this code is correct with .mxCreateImage ??
Titel: Re: Picture instead of link
Beitrag von: Andi in 05 März 2006, 15:55:26
Hi Diabolo :)

yes, it seems to be correct  ;) :thumbup:

the function mxCreateImage has 5 parameters:

1. the complete path to the local image
2. a String for the alt and title attribute
3. border arround the image 1=yes, 0 =no
4. a string for more image-tag attributes, example 'align="left"'
5. shows the image tag in xhtml-style <img />,  1=yes, 0 =no

full example:
mxCreateImage("images/logo.gif", "alternate Text", 0, 'align="left"', 1);

create the following iamage Tag:

<img src="images/logo.gif" width="249" height="49" alt="alternate Text" title="alternate Text" border="0" align="left" />