1
I upgraded my XcGal to 2.02, and have been able to get random images, which I couldn't before in previous versions.
One extra mod I'd like to make is to pull the images from only 1 gallery - not from the range of galleries.
The pics I want are all in xcgal/albums/userpics/10001/
The code for the static page looks like this:
<table width="100%" cellspacing="1" align="center">
<{if $block.position == 1}>
<tr>
<{foreach item=pic from=$block.pics}>
<td align="center" class="odd" style="padding: 10px;vertical-align: middle;">
<a href="<{$xoops_url}>/modules/xcgal/<{$pic.link_tgt}>"><{$pic.image}>a><br />
<{$pic.caption}>
td>
<{/foreach}>
tr>
<{else}>
<{foreach item=pic from=$block.pics}>
<tr>
<td align="center" style="padding: 10px;vertical-align: middle;">
<a href="<{$xoops_url}>/modules/xcgal/<{$pic.link_tgt}>"><{$pic.image}>a> <br />
<{$pic.caption}>
td>
tr>
<{/foreach}>
<{/if}>
table>
Can I simply add
albums/userpics/10001/
after xcgal in the 2 lines where that appears?
Well I tried, but it doesn't limit it to the 1 directory !
Your suggestions would be appreciated.
Basil