Easy PHP Calendar - We really take care of your dates!


Go Back   Easy PHP Calendar > General Discussion > General Support

General Support Questions about using the Easy PHP Calendar. (Not installation or customizations)

Closed Thread
 
Thread Tools Search this Thread Display Modes

Output date & event to an external html
Old 11-24-2007, 01:28 AM   #1
cramcrew
Calendar User
 
cramcrew is offline
Join Date: Nov 2007
Posts: 2
Default Output date & event to an external html

Hello. I am currently working on a website where I need the front page to present a short list of upcoming events. I do not need to display the calendar itself or the details of each event. I want it to list only the next upcoming five events. All I want is basically something like this:

Event 1 — November 24
Event 2 — November 28
Event 3 — November 30
Event 4 — December 2
Event 5 — December 5

Also, each event would be clickable where one could click it and go to the actual calendar page listing with all of the other events, cal view, etc.

I don't want an RSS feed, so that information hasn't quite been of use... does anyone have any idea how to do what I need? I figure it's a matter of creating another php file to open the database and call a few variables and then on the mainpage I can do a require php function and call that page. Thoughts?

Thanks!
 

Old 11-24-2007, 07:49 AM   #2
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

Nope, it's easier than that... use the $LIST mode alone... Crack open /template/modern.php or monthly.php, find which one you want to modify and change it to your taste (rename it something else). Once changed, look at the integration section of the docs and configure the list to only show 5 events.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 11-24-2007, 11:38 AM   #3
cramcrew
Calendar User
 
cramcrew is offline
Join Date: Nov 2007
Posts: 2
Default

It looks great!

http://www.cramcrew.com/index-new.php

But quick (and probably stupid) question: how do I get the [date] to just write something like "December 1" rather than the day of the week and all that? Through modern.php the main calendar displays it entirely differently, though it also just uses [date], so I can't figure out what the difference is.
 

Old 11-26-2007, 05:36 PM   #4
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

The format is defined by what's in your $DF variable. You can find the definitions in the date() specifications of PHP.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Show only 1 event in popup for the date? loyalrogue General Support 1 09-06-2006 11:04 PM
passing the event date in a url stewart.campbell General Support 0 11-22-2004 04:55 PM
getting event date variable in URL stewart.campbell General Support 1 11-22-2004 04:11 PM
Delete Event after the Current Date? Muneo General Support 1 02-08-2004 05:04 PM



All times are GMT -4. The time now is 10:00 AM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright 2009 NashTech, Inc.

| Home | Register | Today's Posts | Search | New Posts |