1
zephyros
Request script: Get random picture from the folder for Agenda-X
  • 2004/2/17 7:27

  • zephyros

  • Just popping in

  • Posts: 8

  • Since: 2003/12/11


Hi all,

I want to randomly show the picture from a folder (e.g /agenda-x/images) in the minical. Although the module has a sample script of randomly choose a picture, the picture must be named in number and this will be hard to do maintanence for the pictures. Bcoz I not familiar with phpscripts, can someone help me to come out the script for the following steps?

1) Get all filenames available under specified folder.
2) Put them into an array.
3) Echo the filename using random index.

The best will be if i can also pass-in the folder path value to this script.

Thanks in advance.

2
wjue
Re: Request script: Get random picture from the folder for Agenda-X
  • 2004/2/17 10:17

  • wjue

  • Quite a regular

  • Posts: 315

  • Since: 2002/8/3 7


This is a feature in Agenda-X 2.0, simply give a XOOPS's root relative path image directory and go.

The most recent test version of Agenda-X is 2.0beta2


wjue

3
zephyros
Re: Request script: Get random picture from the folder for Agenda-X
  • 2004/2/18 3:22

  • zephyros

  • Just popping in

  • Posts: 8

  • Since: 2003/12/11


Thanks wjue,

The new features in version 2 are great. Both your Agenda-X and Enterprise-X are fantastic modules n easy to use. Not yet test out the Freecontent & sqMail module...

Btw, have you thought of putting a registration function for the event in Agenda-X? So that ppl can registered themselves to the event they want.

Login

Who's Online

138 user(s) are online (62 user(s) are browsing Support Forums)


Members: 0


Guests: 138


more...

Donat-O-Meter

Stats
Goal: AU$15.00
Due Date: Jul 31
Gross Amount: AU$0.00
Net Balance: AU$0.00
Left to go: AU$15.00
Make donations with PayPal!

Latest GitHub Commits