[2023-01-23] 4images 1.10 released
0 Members and 1 Guest are viewing this topic.
I think this is what you are looking for:mask the {media_src} url
QuoteQuotemartrix wrote: It would be very nice, if somebody could write how to add this nonono.gif modification to 4images and how to mask the {media_src} url. it's pretty much simple open templates/<yourtemplate>/media/jpg.html (this example for jpg.html template, but u'll need do same thing for all others templates for images) Replace Code: [Select]<img src="{media_src}" border="1" alt="{image_name}"{width_height} />with:Code: [Select] <table style="background: url({media_src}) no-repeat; background-position: center center" cellpadding="0" cellspacing="0"> <tr> <td><img src="{template_url}/images/spacer.gif" border="1" alt="{image_name}"{width_height} /></td> </tr> </table> asume that u have spacer.gif file in /templates/<yourtemplate>/images/ folder.
Quotemartrix wrote: It would be very nice, if somebody could write how to add this nonono.gif modification to 4images and how to mask the {media_src} url. it's pretty much simple open templates/<yourtemplate>/media/jpg.html (this example for jpg.html template, but u'll need do same thing for all others templates for images) Replace Code: [Select]<img src="{media_src}" border="1" alt="{image_name}"{width_height} />with:Code: [Select] <table style="background: url({media_src}) no-repeat; background-position: center center" cellpadding="0" cellspacing="0"> <tr> <td><img src="{template_url}/images/spacer.gif" border="1" alt="{image_name}"{width_height} /></td> </tr> </table> asume that u have spacer.gif file in /templates/<yourtemplate>/images/ folder.
martrix wrote: It would be very nice, if somebody could write how to add this nonono.gif modification to 4images and how to mask the {media_src} url.
<img src="{media_src}" border="1" alt="{image_name}"{width_height} />
<table style="background: url({media_src}) no-repeat; background-position: center center" cellpadding="0" cellspacing="0"> <tr> <td><img src="{template_url}/images/spacer.gif" border="1" alt="{image_name}"{width_height} /></td> </tr> </table>