CMSMS 1.7
server php versie 5.3
Ik wil graag deze link bij de plaatjes zodat iedereen ze kan downloaden. (als dit tenminste werkt??)
Code: Select all
<a href="http://karaokefamily.com/download.php?file={$picture->picture}<?=$row['file_name']?>">Download</a>
Code: Select all
{* Include JS files. You can move this to the head of your page template if you want *}
<!--Lytetbox 3.2 (Lyteshow is the slideshow-capable component)-->
<__script__ type="text/javascript" src="modules/Album/templates/db/lytebox/lytebox.js"></__script>
<link rel="stylesheet" href="modules/Album/templates/db/lytebox/lytebox.css" type="text/css" media="screen" />
{if $pictureid !=0}
{* Big Picture *}
<div style="text-align:center">
<p class="bigpicturecaption"><strong>{$picture->name}</strong><br />
<br />
<span class="bigpicturenav">
{if $link.picture.previous}<a href="{$link.picture.previous}" title="Vorige foto">< Previous</a>{/if}
<span class= "albumpicturecount">( Picture {$picturenumber}/{$picturecount} )</span>
{if $link.picture.next}<a href="{$link.picture.next}" title="Volgende foto">Next ></a></span>{/if}
</p>
<a href="" onmouseover="SMR_setLink(this);" target="_blank"><img src="{$picture->picture}" alt="{$picture->name|escape:'html'} - {$picture->comment|escape:'html'}" onload="SMR_resize(this, {$max_image_size});" title="{$picture->name|escape:'html'} - {$picture->comment|escape:'html'}" /></a>
</div>
{/if}
{* Album List *}
{if !$album}
<ul class="albumlist">
{foreach from=$albums item=album}
<li class="thumb">
<a href="{$album->link}">
<img src="{$album->thumbnail}" alt="{$album->name|escape:'html'}" title="{$album->name|escape:'html'}"{$album->autothumbnailsize} /></a>
<p class="albumname">{$album->name}<br />
<span class="albumpicturecount">({$album->picturecount} images)</span><br />
</p>
</li>
{/foreach}
</ul>
{else}
{* Photo List *}
<p><strong>{$album->name}</strong><br />
{$album->comment}<br /><a href="http://karaokefamily.com/download.php?file={$picture->picture}<?=$row['file_name']?>">Download</a>
<span class="instructiontext">Kik op een kleine foto om hem te vergroten. Klik op de sluit knop om de foto weer te sluiten. {if $returnlink}<a href="{$returnlink}">Ga terug naar het overzicht.</a>{/if}</span></p>
{if $pagecount>1}
<p class="albumnav">
<a href="{$link.page.first}" title="first page"><< </a>
{if $link.page.previous}<a href="{$link.page.previous}" title="Vorige pagina">< </a>{/if}
page {$pagenumber}/{$pagecount}
{if $link.page.next}<a href="{$link.page.next}" title="Volgende pagina"> ></a>{/if}
<a href="{$link.page.last}" title="Laatste pagina"> >></a>
</p>
{/if}
<ul class="picturelist">
{foreach from=$pictures item=picturesrow}
{foreach from=$picturesrow item=onepicture}
<li class="thumb"><a href="{$onepicture->picture}" rel="lytebox[{$album->name|escape:'html'}]" title="{$onepicture->name|escape:'html'} {if ($onepicture->comment != "")}- {$onepicture->comment|escape:'html'}{/if}"> <img src="{$onepicture->thumbnail}" alt="{$onepicture->name|escape:'html'} - {$onepicture->comment|escape:'html'}" title="{$onepicture->name|escape:'html'} - {$onepicture->comment|escape:'html'}" /></a>
</li>
{if ($onepicture->number==$picturenumber and !$picture)}{assign var=picture value=$onepicture}{/if}
{/foreach}
{/foreach}
</ul>
<div style="clear:both;"></div>
{if $picturecount==0}No image{/if}
{/if}
{if $picture->id>0}
{/if}
(ps is me wel gelukt op andere plekken maar lukt niet bij de gewone plaatjes
