Members: 10,140
Threads: 38,830
Posts: 159,367
Online: 42

Newest Member: Xoote


Old 05.11.2004, 03:08   #1
bradym
Baby Mamber
 
Join Date: Jun 2004
Posts: 12
bradym is on a distinguished road
Question Latest events module custom format help

I'm using the latest events module, and I've almost got it displaying my data how I would like it to.

Some of the events that I have entered into the events component are single day events which I would like to have the event module display the event like this:

November 22
National Family Volunteer Day

Right now I am using the custom format string of
Code:
${eventDate(F j)}-${endDate(j)}<br />${title}
which displays all events like this:

November 22-22
National Family Volunteer Day

It should just be a simple if statement like
PHP Code:
if($eventDate == $endDate)
            
$evalString '"${eventDate(F j)}<br />${title}"';
       else
            
$evalString '"${eventDate(F j)} - ${endDate(j)}<br />${title}"'
but I can't figure out how to get it to work. Putting that code in the custom format string displays the if statement, and I can't seem to figure out how to get it working on the mod_events_latest.php file.

Any suggestions on how to accomplish this?

Brady

PS - I'm using the following config:

Mambo 4.5.1a Stable
Events v1.1
events_latest 1.4
bradym is offline   Reply With Quote
Sponsored Links
Old 10.04.2005, 21:35   #2
tobiaseigen
Baby Mamber
 
Join Date: Aug 2004
Posts: 12
tobiaseigen is on a distinguished road
Default Re: Latest events module custom format help

That's interesting - I just tried your custom format code and get results like this:

November 16-18
World Summit on the Information Society

November 17-18
World Summit on the Information Society

November 18-18
World Summit on the Information Society

I'd like to have a single entry like the first one - any suggestions?

Mambo [Titan]* 4.5.2 - Stable (17-Feb-2005)
Events 1.2 (November 2004)*
Events*Module 1.5 (November 2004)*

Cheers,

Tobias
tobiaseigen is offline   Reply With Quote
Old 11.04.2005, 19:14   #3
bradym
Baby Mamber
 
Join Date: Jun 2004
Posts: 12
bradym is on a distinguished road
Default Re: Latest events module custom format help

Try setting your events as repeating once per year based on date. I think that solved the issue you are having for me.

I've since written my own calendar module because the events module wasn't working quite how I wanted it to, and I couldn't figure out how to modify it to my liking.

I'm checking with my supervisor to find out what the company policy is, and if policy allows I will post the module for others to use.

Brady
bradym is offline   Reply With Quote
Old 23.04.2005, 02:56   #4
tobiaseigen
Baby Mamber
 
Join Date: Aug 2004
Posts: 12
tobiaseigen is on a distinguished road
Default Re: Latest events module custom format help

Hi Brady -

Thanks for the reply. I set the events as repeating once per year based on date, but that doesn't show me a date like 16-18 November, 2005 - it just shows me 16 November, 2005.

I'm getting closer,

I'd be interested in seeing your module - let me know.

Cheers,

Tobias
tobiaseigen is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Latest Events module - changing sort order gintas Module 'How Do I' Questions 4 12.12.2005 21:21
Deutsche Daten in latest Events Sansibar Module 4 11.12.2005 21:47
Latest Events module - are there Parameters that allow you to customize its output jabby Module 'How Do I' Questions 8 11.09.2004 22:40
Latest Events module help HIKARI Module Development 2 14.08.2004 08:24
Latest news 1-2 module properties mambomaster Module 'How Do I' Questions 5 10.06.2004 19:59


All times are GMT +2. The time now is 13:29.

Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.