scriptygoddess

05 Dec, 2002

Day Event Script

Posted by: Jennifer In: Scripts

A variation on the previously released "Event Script". This one was done with a different purpose in mind. The original Event Script was mainly for displaying birthdays/anniversaries (recurring events). THIS event script is geared more for one time events.

It'll display the events for the next "x" number of days that HAVE events. (Written for Linda who wanted to display the next "x" number days of gigs her band had on her website.)

Download it here

(and no, these script names aren't terribly exciting. By the time I'm done writing the script, my creativity is all used up!) 😉

12 Responses to "Day Event Script"

1 | Carla

December 5th, 2002 at 12:27 pm

Avatar

Is it possible to combine email reminders with this script?

2 | Jennifer

December 5th, 2002 at 12:52 pm

Avatar

You would need some way of initiating the email… scripts don't run (in the background) unless you do something first – like access the page, etc…

3 | Linda

December 5th, 2002 at 1:26 pm

Avatar

This is awesome! Thanks so much!!

4 | linda

December 9th, 2002 at 6:23 pm

Avatar

Is there any reason why DayEventScript would work when I use the absolute path in the include statement (http://www.etc.etc) but not when I use the unix syntax pointing to the exact same file? (/usr/www/users etc)? I've quadruple checked, and it points to the same place,and I have all my slashes in the right place, etc.

When I call showevents.php using /usr/www/users etc I get this error:

Fatal error: Failed opening required 'eventconfig.php' (include_path=") in /usr/www/users/myuserid/lookhere/DayEventScript/showevents.php on line 2

Using http://etc.etc in the include returns perfect data, and everything acts as it should.

It's like it stops looking in the same directory when I use the root path (if that's the right term) but continues to get the other files from the DayEvent script directory when I call showevents.php using "http://…"

Weird, huh?

5 | Jennifer

December 9th, 2002 at 7:55 pm

Avatar

That is pretty weird and I'm not sure why. I wonder if it has to do with the type of server you're on…

Well, at least it *does* work with the absoulte path…

6 | Fly On Wall

December 10th, 2002 at 2:54 pm

Avatar

I want a script that allows me to put a different block of content on screen depending on what day of the week it is. Could someone point me in the right direction?

7 | bobby ashman

December 21st, 2002 at 12:51 pm

Avatar

Great script, but I am having the problem of events being held on the current day not being displayed. It goes to the next days event instead of the current day event. Is this something I can configure to fix? Thanks for the script.

8 | bobbyashman

December 21st, 2002 at 2:24 pm

Avatar

I think I figured out that problem. I just changed the showevents file line that contained 00:00:00 to 23:59:59. It now displays properly for me for the current day. Thanks again for the great script

9 | Sqrl

April 21st, 2003 at 6:02 pm

Avatar

Is there some way to have it display the next event based on hours?

For example, there are three events, one at 1 AM, the next at 11 AM, and then at 8 PM.

When someone is on the page it retrieves the next event, and not all of them?

10 | Johnnie

July 8th, 2003 at 11:59 am

Avatar

What I'm looking for is this…

We need a script that will display the next concert that has been put into a databased file.

Example:
I put all the concerts in one file, the script will show the visitor the next gig in line (example: August 14, 2003 – Venue Blabla in Amsterdam). When that date has passed the next concert will be displayed without us having to change it by hand.

I hope you know what I mean with this! Is there something out there? What I have found so far is the events being shown on that specific day or shown days after the event has already passed.

Please, let me know if possible!

Thanks in advance,

Johnnie…

11 | Wench

February 26th, 2004 at 5:37 pm

Avatar

2 things, but first THANK YOU! i've been looking forever for a simple event list script =)

1. can't make the date numerical [i.e. 2/26]

2. i don't want the year to show, just month and date [i.e. 2/26] is there an easy way to strip that out??

12 | Lee

April 21st, 2005 at 1:19 pm

Avatar

Is there any reason why this script would not be writing at all? I have added events and tried to include them in a page without success. I have also checked the individual files and they have no data written to them. Any ideas?

I would really love to use this script!

Featured Sponsors

Genesis Framework for WordPress

Advertise Here


  • Scott: Just moved changed the site URL as WP's installed in a subfolder. Cookie clearance worked for me. Thanks!
  • Stephen Lareau: Hi great blog thanks. Just thought I would add that it helps to put target = like this:1-800-555-1212 and
  • Cord Blomquist: Jennifer, you may want to check out tp2wp.com, a new service my company just launched that converts TypePad and Movable Type export files into WordPre

About


Advertisements