1
areaten
xcgallery doing big random pictures?
  • 2004/3/23 19:51

  • areaten

  • Just popping in

  • Posts: 30

  • Since: 2004/3/9 1


Is there a way to make xcgallery display a random picture at it's full or intermediate size? rather than the small thumbnails it does (by default?) with Static Thumbnails and Scrolling Thumbnails.

I just want one big random picture displaying on my top page of my site.

Thanks

2
jusui
Re: xcgallery doing big random pictures?
  • 2004/3/23 20:18

  • jusui

  • Just popping in

  • Posts: 17

  • Since: 2003/9/29


I know the broken version of Xgallery does this :P
as for coppermine, the only way I know of is to modify the 'thumbnail' size, but that will mess up your meta albums. you could also modify the block code to grab the intermediate or full size image instead of the thumbnail.

3
areaten
Re: xcgallery doing big random pictures?
  • 2004/3/24 10:11

  • areaten

  • Just popping in

  • Posts: 30

  • Since: 2004/3/9 1


Thanks jusui. I've been looking at the block code but don't know php enough to be able to change it. Any ideas? I'm looking at the 'static thumbnails' block for xcgallery to try and change the thumbnails to bigger pics.
All I can think of changing is something in here:

<{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}><br /></a>

but what?

4
mike67
Re: xcgallery doing big random pictures?
  • 2004/4/3 9:48

  • mike67

  • Just popping in

  • Posts: 15

  • Since: 2004/4/3 9


to display the intermediate photo in a block
just edit the : xcgal_blocks.php

and on line 83
replace this sentence
$thumb_list[$i]['image'] = "<img src=\"".XOOPS_URL ."/modules/xcgal/".$xcgalConfig['fullpath'].str_replace("%2F","/",rawurlencode($row['filepath'].$xcgalConfig['thumb_pfx'].$row['filename']))."\" class=\"image\" border=\"0\" alt=\"{$row['filename']}\" /></a>";

with this one :
$thumb_list[$i]['image'] = "<img src=\"".XOOPS_URL ."/modules/xcgal/".$xcgalConfig['fullpath'].str_replace("%2F","/",rawurlencode($row['filepath'].$xcgalConfig['normal_pfx'].$row['filename']))."\" class=\"image\" border=\"0\" alt=\"{$row['filename']}\" /></a>";

it works fine ! on my web site:my site
i'm french so excuse me for my english !!

bye mike




5
areaten
Re: xcgallery doing big random pictures?
  • 2004/4/9 20:55

  • areaten

  • Just popping in

  • Posts: 30

  • Since: 2004/3/9 1


thank you mike67 thats great.

*edit*
any chance you'd know the code for bringing up the large version of the picture (my upload pictures are only 400 pixels wide so no intermediate pic is made)

$xcgalConfig['normal_pfx'] change to.. what? 'full_pfx'?
how do you find out this code?

thanks

*edit again!*

actually got it displaying full size image with 'image_pfx'
cheers thou

6
mike67
Re: xcgallery doing big random pictures?
  • 2004/4/26 9:17

  • mike67

  • Just popping in

  • Posts: 15

  • Since: 2004/4/3 9


image_pfx this variable not exist that's why it works
to do it correctly i guess you must replace the line
with
$thumb_list[$i]['image'] = "<img src=\"".XOOPS_URL ."/modules/xcgal/".$xcgalConfig['fullpath'].str_replace("%2F","/",rawurlencode($row['filepath'].$row['filename']))."\" class=\"image\" border=\"0\" alt=\"{$row['filename']}\" /></a>";

suppress the prefix because for the fullsize pictures you need only the filename without prefix !!!

bye mike


Login

Username:
Password:

Lost Password? Register now!

Who's Online

53 user(s) are online (26 user(s) are browsing Support Forums)


Members: 0


Guests: 53


more...

Donat-O-Meter

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

Latest GitHub Commits