Listing calendar

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
acpjax
Forum Newbie
Posts: 12
Joined: Fri Nov 10, 2006 11:02 am

Listing calendar

Post by acpjax »

I am currently creating a Rental site. Everything is working fairly well just got to tweak a few things. What im trying to do now though is add a calendar function that will allow each user to customize a very basic calendar embedded in their listing, The purpose would be to show when the item is avalible. just as simple as being able to turn the days its unavalible red would be all i need. I know i dont have the skill to write the code from scratch. Does anyone know of a script i could modify to my needs?

Thankyou in Advance
Adam
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

I wrote a calendar display class... but it's not real user-friendly so to speak and it's not done... but it could easily provide the functionality you're looking for... with a little love
http://mc2design.info/demos/MC2/Calenda ... &year=2007
acpjax
Forum Newbie
Posts: 12
Joined: Fri Nov 10, 2006 11:02 am

Post by acpjax »

I love the look of it.. very clean and simple.

The challenge im really running into and where my obvious lack of knowldge comes into play. Is when i want the calendar to be specific to the Listing.. So that each listing has a calendar associate to it, and the user that created the listing has the permisions and ability to just change the color of specific days/weeks etc. Now with my lack of knowldge it might just be something that i need to accept im unable to do for the moment. Might have to really hit the books and build it bit by bit :-P. Just was curious if anyone knew of one or a few scripts/code that i could base it off of..
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Nice calendar Ninja. Add some days of the week and you are going places.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

I'm using that script there in a google maps application that attaches events to locations and the calendar. You can search the calendar for events and then plot them on the map or search the map for events and then plot them on the calendar... so this script is more than capable of that, but it's all object-oriented code. I've already written an extension to it that allows for the events to be plotted on to it. I think the only part you'd have to do is the database backend. Do you know how to set up a database? PM me if you want to see the application I'm talking about as it isn't public yet.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

Everah wrote:Nice calendar Ninja. Add some days of the week and you are going places.
Yea that's the most basic implementation of it. It's got a template extension as well as a few standard implementations as you see there.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Still dude, it is very nice.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

...serves its purpose. :D
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

yapc: yet another php calendar

Post by califdon »

Here's another approach that I haven't finished developing, but if anyone's interested in the code, I'll be glad to send it to them: http://ravey.net/test/calendartest2.php

Don
Post Reply