1
basil
Modifying where static images come from in XcGal
  • 2006/1/17 3:59

  • basil

  • Just popping in

  • Posts: 68

  • Since: 2005/2/14


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

Login

Who's Online

291 user(s) are online (225 user(s) are browsing Support Forums)


Members: 0


Guests: 291


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits