Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Pages: [1]   Go Down
Print
Author Topic: show the last 5 added event  (Read 289 times)
0 Members and 1 Guest are viewing this topic.
pao
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« on: January 22, 2006, 01:03:00 PM »

Hello,
I’m trying to make a template that show the last 5 added event.In the calendarmap is a file named events.id holding the number of the last added events, the script must read it and put it in a variable, for example $LastEvent.
Can I use that variable in a template to display  $LastEvent and  $LastEvent -1 and so on to -4?

P-A

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: January 22, 2006, 02:17:00 PM »

** Can I use that variable in a template to display $LastEvent and $LastEvent -1 and so on to -4? **

Not reliably. There's no guaranty all of those events would still be on the calendar. Any one of them could have been deleted.

** a file named events.id holding the number of the last added events **

A file named event.txt holds the actual events as they were posted.

JFYI

Dan O.

------------------

Logged
Pages: [1]   Go Up
Print
Jump to: