1
Level42
XCGallery, how to remove Random Pictures and Last uploaded ?
  • 2005/1/7 20:43

  • Level42

  • Just popping in

  • Posts: 26

  • Since: 2004/11/14


Hello,

I think XCGallery is a great module, but for my purpose I need things to stay as simple as possible. So in the Album List view I want to get rid of the Random Pictures ans Last Uploaded sections....this would merely confuse my audience ;)

I think I read somewhere how to do it , but can't find it anymore ?
I guess I have to hack the xcgal_index.html file....but how ?

Anyone ?


Never mind.....got it already ;)

For people who want to know:

Simply rem-out these lines at the end of xcgal_index.html:

Like this:

<!--<{if $no_img == 1}>

<table align="center" width="100%" cellspacing="1" cellpadding="0" class="outer" style="width: 100%;">
<tr>
<td class="head"><{$album_name}></td>
<tr>
<td class="odd" height="200" align="center">
<font size="3"><b><{$lang_no_img}></b></font>
</td>
</tr>
</table>
<{else}>
<{section name=i loop=$thumbs}>
<{include file="db:xcgal_thumb.html" thumb=$thumbs[i]}>
<{/section}>
<{/if}>-->

2
bigbrofan
Re: XCGallery, how to remove Random Pictures and Last uploaded ?
  • 2005/1/9 23:45

  • bigbrofan

  • Just popping in

  • Posts: 22

  • Since: 2004/11/25


Can't you simply go to Administration Menu
XCGallery Admin
General Configuration

Find this line (6th LINE DOWN):

Album list view: The content of the main page

Listed to the right are what will display on the album main page... If you don't want random there just remove it or if you want more or less just change the number behind it.

Here is what you can do with that configuration line from the readme in the xcgal folder:

"Album list view: The content of the main page"
Here you can arranged the content of the gallery main page. Use following abbreviation(without ') seperated with a /:
'catlist': for diaplaying the category list
'alblist': for diaplaying album list

'random,x': random pictures with x rows
'lastup,x': last uploads with x rows
'topn,x': most viewed with x rows
'toprated,x': top rated with x rows
'lastcom,x': last comments with x rows
'mostsend,x': most sent ecards with x rows
'lasthits,x': last hits with x rows

Example: 'catlist/alblist/random,2/lastcom,2/lasthits,1' this displays the category and album list, 2 rows of random pics, 2 rows of last commented pics and 1 row of the last hits.
Excluding catlist and alblist, you can use this commands for the meta albums block, too.

3
Level42
Re: XCGallery, how to remove Random Pictures and Last uploaded ?
  • 2005/1/10 12:00

  • Level42

  • Just popping in

  • Posts: 26

  • Since: 2004/11/14


Bigbofran,

You are absolutely right !!!

I only discovered that as well yesterday, very stupid of me :)

Also, my hack was not completely right, because the second part of the if (the elseif) needs to be executed to display the thumbnails of a selected album.

Anyway, please all FORGET my solution and go for Bigbrofan's suggestions, that's the way to do it right, and neat.

Thanks ! (and sorry for the confusion)

Login

Who's Online

166 user(s) are online (121 user(s) are browsing Support Forums)


Members: 0


Guests: 166


more...

Donat-O-Meter

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

Latest GitHub Commits