Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: show files in order  (Read 3950 times)

0 Members and 1 Guest are viewing this topic.

saintmic

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
show files in order
« on: May 07, 2007, 12:52:20 pm »

Hi.

I've been dabbling round with this for a while and cant seem to find the right order of words to make what i want. I have a site which - on the front page - has links to 3 or 4 different albums. What i would like is that the images it displays for each album are the first images IN the album:

For example, if there are 100 pictures, rather than just showing 6 random ones, or the last 6 I put on, i would like it to show the images that it calls 1/100, 2/100, 3/100 etc.

What do I need to replace the "..." with in $objCpm->cpm_view...(1,6); to get this?

Thanks for your help,
Mic
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: show files in order
« Reply #1 on: May 07, 2007, 04:12:35 pm »

I am not sure you can...

You can set the preferred image for each album though... that should work.
Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

saintmic

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: show files in order
« Reply #2 on: May 12, 2007, 10:59:47 am »

hiya,

Trouble is, that will only give me one picture, rather than the 3-6 that I need.

If it cant be done then it cant be done - I'll cope:)

Thanks for the help.
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: show files in order
« Reply #3 on: May 24, 2007, 05:27:39 am »

hiya,

Trouble is, that will only give me one picture, rather than the 3-6 that I need.

If it cant be done then it cant be done - I'll cope:)

Thanks for the help.

So you want...

album1 pic 1, album 1 pic 2, album 1 pic 3

album2 pic 1, album 2 pic 2, album 2 pic 3

etc... ?

So instead of last added you want first added?

Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

saintmic

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: show files in order
« Reply #4 on: May 30, 2007, 02:07:03 pm »

yeah, i think thats right. So I can try FirstAddedmedia?
Logged

saintmic

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: show files in order
« Reply #5 on: May 30, 2007, 02:09:53 pm »

just tried FirstAddedMedia and it didnt work out - wrong combination of words?
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 15 queries.