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

Get variable from the programm
Old 12-01-2007, 01:08 AM   #1
qenq
Calendar User
 
qenq is offline
Join Date: Oct 2007
Posts: 7
Default Get variable from the programm

Hi there,

first of all, the easyphpcalender is terrific!

I was wondering if i could use it to check if an specific date which someone on my website enters, is an date that is in the eventslist.

I tried to read out the $DF variable, but it did not work.

Can anyone tell me, if there is an possibility to check if an date entered by an user (for example 02.12.2007) is in the event list with an event?

I made a form where the user can enter a date, now i want to look if there is an event there and if there is an event i want to make an alert.

Thank you in advantage.
QenQ
 

Old 12-02-2007, 11:09 AM   #2
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,968
Default

$DF is for "Date Format" which is what you use to format how you want the date to be displayed on the List.

There's nothing implemented that will allow you to do that "easily". The way that I've managed that is by using the Blog mode. The Blog mode can single out a day and uses a list too. What I did is by checking the output of the list side, I could tell whether an event was displayed or not. You have to create your own list template (based off of blog.php) and use output buffering to be able to parse out the output.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Thnx
Old 12-13-2007, 02:47 PM   #3
qenq
Calendar User
 
qenq is offline
Join Date: Oct 2007
Posts: 7
Default Thnx

Hi Ve9gra,

i see, do you have an php example on how you worked it out? It would multiple the use of the calendar. We are thinking to buy more licenses, but i have to implant this feature in our software.

Would be nice if i could have an helping hand.

Regards
QenQ
 

Old 12-13-2007, 04:28 PM   #4
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,968
Default

I used it once on a site for catering (I think - foreign language) where someone could only make reservations on days where there wasn't already something planned.

Basically, the way it works is by using the Blog mode. Using the Blog template, you check to see if the output says "There is no event...". If that shows up, you display the form for someone to do a reservation. If there is an event, then the event is shown and you give a message saying "Sorry, this date is reserved".

Not really hard, but you have to know how to use output buffering (ob_start and ob_get_clean).

As the previous implementation was for a paying client, I cannot provide this solution for free. You can contact me using the link below to work out the details.
__________________
-- 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
Undefined index and variable errors bjwentz General Support 4 06-12-2007 09:52 AM
Undefined variable: addDir BadDog-Nick General Support 4 08-22-2006 08:37 AM
Not so easy... kenrayner2 General Support 3 09-03-2004 01:02 PM
Problem with installation in windows 2k server akkam General Support 3 01-11-2004 01:03 AM



All times are GMT -4. The time now is 07:45 PM.


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 |