Adding Calendar (easy php calendar) to template

Permalink
Hi,

I am about 99% done with moving a non-profit website to c5. Great so far, one last thing I have to do is get a decent calendar app working. We have used easyPHP in the past (paid). I am not too php literate, how can I integrate this into the modified "beautiful" template I have now? I have followed the instructions, but cannot seem to figure out the proper syntax.

I am supposed to add this line:

<?php $CSS=1; require("calendar/calendar.php"); ?>
</head>

before the end of the /head. I added this exactly as above in the header.php.

Then to use the calendar, I am supposed to add:

<?php require("calendar/calendar.php"); ?>

where I want it to appear. I have added it via the default.php (just picked a div) or via a content item. I'm just not getting something here. Should I be using some form of the $this-> syntax (I do not understand that)?

Please take pitty on a newbie. I have managed to work my way through all the css and stuff to get this to work, this is my last thing...

test website at:

http://brinkerhoff.site40.net/index.php...

test calendar at:

http://brinkerhoff.site40.net/calendar/calendar.php...

thanks!!!!!

Jeff

 
pumpernickel replied on at Permalink Reply
I'm have trouble integrating the "easyphp calendar" as well.

Would really appreciate any general input as well.

Thanks much
synlag replied on at Permalink Reply
synlag
calendar is coming soon and looks fine so far..
DigitalCrate replied on at Permalink Reply
DigitalCrate
Hi, just wondering if there was any sign of the official C5 calendar block yet? I'm currently building a modded C5 site and this is the last thing to add to the site, any idea on time scale?
frz replied on at Permalink Reply
frz
i'm looking at it in beta, and it looks fine. you should be able to get it when we release 5.3 next week.
DigitalCrate replied on at Permalink Reply
DigitalCrate
Thats excellent news, I got a launch date any day now so as long as its all on schedule and they are both released this week you should save my bacon (as us english people say - for some strange reason!)
Hopefully no delays?????
hereNT replied on at Permalink Reply
hereNT
I've been killing myself the last couple of weeks trying to get a calendar working, and have a pretty good start. You can read about it and see some screenshots here:

http://www.werstnet.com/portfolio/mpls_trail_watch...

The live version is password protected. I'm trying to get it more abstracted so you can add multiple types of events to each calendar, and to have real time entries for the start / end of each event.

The most annoying thing was by far using a separate version of the jQuery calendar when the user can't edit the page.

When can we play with the new core calendar? :D
ScottC replied on at Permalink Reply
ScottC
that looks pretty nice. If you abandon it or want a bit of help on it let me know :)
DigitalCrate replied on at Permalink Reply
DigitalCrate
Hi, 5.3 downloaded, upgraded and tested, awesome, thanks concrete5 team, but, I thought the calendar block was being released at the same time??? Is this coming very soon, got a launch on Tuesday and the Calendar function is crucial, can you PLEASE advise on situ.
Many thanks and once again, great work.
frz replied on at Permalink Reply
frz
Yeah, I was actually just about to make a screencast of it and feature it in the new marketplace yesterday when i got a weird javascript error on the auto-install. The thing couldn't be closer and with a fresh set of eyes we should be able to get it up there no problem. It just became a "omg there's something funky there and we still need to upgrade the demo server" at 6:30pm last night..

I promise this is the first module we will work on monday morning if not before.

my apologies for the constant waiting.
DigitalCrate replied on at Permalink Reply
DigitalCrate
Hi, thanks for the fast response. Its a shame there was an issue with that cos Monday morning to you is Monday evening too me!!! Going to be tight but I'm sure we'll manage.
Once again thanks for the update and i look forward to having the calendar block neatly installed into the site. Have a good weekend.
beeman89045 replied on at Permalink Reply
There is a Calvi Block in the forums somewhere that will display events from Google Calendar.

Also, I'm almost finished with a different Google Calendar Block that allows more tweaking of the event feed (what dates are shown, ordering, timezones, etc.).

Should be ready sometime in the next week or two. (and I know a lot of folks claim that it'll-be-ready-soon-but-then-never-do-it, but this is really finished ... just trying to improve usability a little).

--djn12313
DigitalCrate replied on at Permalink Reply
DigitalCrate
Sorry to hassle you but I'm afraid I'm going to have too.
Have you managed to sort the calendar block yet? I really hope so as I have a launch tomorrow so i'm desperate to get it installed.
I'm sure you are flat out but this really is the last piece of my modded Concrete5 puzzle.... Look forward to your reply
frz replied on at Permalink Reply
frz
posting screencast now. should be up for sale in an hour or two.
DigitalCrate replied on at Permalink Reply
DigitalCrate
thats great news, better have another cup of strong coffee then cos its 11.45pm here in the Uk and i still need to populate it afterwards!!!!
DigitalCrate replied on at Permalink Reply
DigitalCrate
I have purchased the calendar block as promised but when i log in to the "New" section and click Download i get this error message.

"The following errors occurred when attempting to process your request:
An error while trying to unzip the package: There was an error unpacking your add-on or theme. Perhaps you have not uploaded a valid zip file, or you do not have zip installed."

Am i being thick and missing something here???? please help!
DigitalCrate replied on at Permalink Reply
DigitalCrate
Sorry, having a mad 5 minutes, block unzipped and installed perfectly. Is there a little bit of script that I can somehow add that will allow me to also print the calendar. Not urgent but perhaps something for the future.
Looks awesome from what i have seen of this so far. Thanks again for all your hard work with this.
frz replied on at Permalink Reply
frz
no, but that's an easy mod prolly.. look at the list view and see if that would be a good starting point for ya..

post it to the calendar block review section as a feature request and we'll put it in the roadmap.
hereNT replied on at Permalink Reply
hereNT
I bought the block, but I'm not seeing it in my profile. http://www.concrete5.org/profile/orders... is bringing up a totally blank page.
frz replied on at Permalink Reply
frz
we just made a change to the back end of that - lemmie check a few things..
DigitalCrate replied on at Permalink Reply
DigitalCrate
when i try and add an event it keeps telling me that i must select at least one calendar????? am i missing something?
frz replied on at Permalink Reply
frz
You gotta add a page of type calendar somewhere. Typically you would ALSO add a calendar block to that page, but you might have additional calendar blocks summarizing those calendars elsewhere.. a tad confusing I admit.
DigitalCrate replied on at Permalink Reply
DigitalCrate
right got the calendar working, now i assume i need to modify one of my template pages with the script from the calendar_event page so that i get event results that fit in with my modded site?
andrew replied on at Permalink Reply
andrew
Do you mean customize the look of the calendar/calendar results?

That should all be contained within calendar/css/calendar.css, hopefully pretty nicely commented.

Otherwise, here's how you typically get started with the calendar.

1. Add a page type of "Calendar" somewhere on your site. It can the page you intend to have publicly showing as your "calendar" or it can be somewhere else. You can add multiple "calendar" pages as well.

2. Either on the same page or somewhere else, add a block of type "calendar." Choose either [] This page, or the page that you added in step 1. Select the mode of display.

That should print out an empty calendar on the page you added the calendar to. Then, if you add a calendar event page type below the calendar page you added in step 1, it should show up everywhere a block loads data from that calendar, in whatever mode. If you're using agenda view or standard month view you won't even have to go through the standard concrete5 add page process - you should be able to click "Add Event" or click the day (in month view) that you'd like to add the event to, and get the overlay.

Does this help? Any other questions or did I miss something?
frz replied on at Permalink Reply
frz
goto your download page now, working?
hereNT replied on at Permalink Reply
hereNT
And the calendar looks great! I was able to read through the code and figure out how to add the tinyMCE editor to another package I was working on I was working on :D

Kinda OT, but should I be seeing an updated version of the advertisement block in my downloads as well? I bought that one too, but before 5.3 - how do you upgrade?
frz replied on at Permalink Reply
frz
we'll make sure upgrades are available to existing customers as stuff gets ported over.