solved Calendar for jrEvent

hammondegs
@hammondegs
10 years ago
80 posts
Looking for some clever person to create a calendar that interfaces with jrEvent and displays all events on a php-calendar style layout.

I see some earlier versions of Jamroom had a calendar page, will this feature be returned in future updates?

Thanks.
updated by @hammondegs: 12/01/14 06:34:52PM
michael
@michael
10 years ago
7,715 posts
Seen any examples of good ones online anywhere?
hammondegs
@hammondegs
10 years ago
80 posts
http://www.php-calendar.org/php-calendar/
I like this look, clean and without eye candy.
boplive
@boplive
10 years ago
345 posts
wowwwwwwwwwwwwwwwww...thats going way back with that skin..the Cobalt...
bringing back some good memories when I first came across the Jamroom platform and I started messing around with Cobalt and the grey version Monochrome.. :).
I still have some custom work I did for both some where..hahahaha

Well hammondegs...I think this calendar will fit with well with the events.
It so simple to start off with on jamroom 5 I believe(DON'T QUOTE ME ON THIS NOW:)).
The jamroom team can make it happen :)..these guys are grrrreat on what they do.
Not sure why they never added it before...but why not now :)
michael
@michael
10 years ago
7,715 posts
boplive:....Not sure why they never added it before...
Limited resources and priorities. ;)

If I'm building this, then I'm not building something else. Looking into it though.
hammondegs
@hammondegs
10 years ago
80 posts
Thanks Michael.
Would be good though. I was wondering why it had been removed, as it featured in jamroom 3.0.27 with the cobalt skin. I get a feeling my community will eventually ask for a calendar setup, so I am getting in early... so to speak.
I won't be heart broken if it doesn't happen, If I can get some time away I might have a go myself. Whilst I am familiar with smarty of days gone by; the new is very cool but I must get more edumaction ;)
Cheers, David.
hammondegs
@hammondegs
10 years ago
80 posts
boplive:
wowwwwwwwwwwwwwwwww...thats going way back with that skin..the Cobalt...
bringing back some good memories when I first came across the Jamroom platform and I started messing around with Cobalt and the grey version Monochrome.. :).
I still have some custom work I did for both some where..hahahaha

Well hammondegs...I think this calendar will fit with well with the events.
It so simple to start off with on jamroom 5 I believe(DON'T QUOTE ME ON THIS NOW:)).
The jamroom team can make it happen :)..these guys are grrrreat on what they do.
Not sure why they never added it before...but why not now :)

Thanks for your support boplive!
michael
@michael
10 years ago
7,715 posts
I've done it. It just needs to be vetted and an issue sorted related to date format storage in the db. So you'll see it appear in an up-coming release.

Its not about removed, its about remade. Nothing from JR4 came over to JR5, it was all re-made for JR5.
hammondegs
@hammondegs
10 years ago
80 posts
I thank you Michael!
So what they say about you on the forum is true ;-)
Looking forward to implimenting it.
Cheers, David.
gary.moncrieff
gary.moncrieff
@garymoncrieff
10 years ago
865 posts
Nice Michael, Events isn't a section I have touched yet but I other plans too ;)
michael
@michael
10 years ago
7,715 posts
@hammondegs , @Gary.moncrieff could I send you a copy of the newer jrEvent and get your feedback on whether its working or not. It seams to be all go on my server, but not showing events on profiles on another server for a reason which I can't see.

I'd like your feedback on whether its working for your sites or not. If thats OK, just say and I'll zip it and send it to the email address you use here on jamroom.net.
hammondegs
@hammondegs
10 years ago
80 posts
Okay, I'm happy to be your guinee pig ;-)
michael
@michael
10 years ago
7,715 posts
sent. Thanks.
gary.moncrieff
gary.moncrieff
@garymoncrieff
10 years ago
865 posts
yeah send it over,
hammondegs
@hammondegs
10 years ago
80 posts
Installed!
Calendar layout is great.
Displays events on each profiles calendar except this one:
https://www.barklycommunity.org/melbourne-music-centre/event

There are only a limited amount of events listed due to the new factor of this site. So it's hard to say how it really is overall. I did create a new event for the URL above, yet it failed to show on the calendar.

It doe work for 2 other profiles that have events listed:
https://www.barklycommunity.org/barkly-public-hall/event/calendar/month=9/year=2014

https://www.barklycommunity.org/administrator/event/calendar

Feel free to mess around, create an account and list an event. Then when you are done delete your stuff.

Thanks... great work!!
michael
@michael
10 years ago
7,715 posts
You can add an event calendar to the top page of your site if you like with this code:

{jrEvent_calendar month=$_post.month year=$_post.year}

So a full page, perhaps called ourcalendar.tpl would look like:
{jrCore_include template="header.tpl"}

{jrEvent_calendar month=$_post.month year=$_post.year}

{jrCore_include template="footer.tpl"}
and would be accessed at:
your-site.com/ourcalendar

Passing in variables to that page would change the calendar dates:
your-site.com/ourcalendar/month=06/year=2014

Would get the calendar for june.


--edit--
actually don't bother with this, I will make it part of the module once I figure out why some events are working while others arent.
updated by @michael: 10/28/14 12:12:21AM
michael
@michael
10 years ago
7,715 posts
@gary.moncrieff sent.
gary.moncrieff
gary.moncrieff
@garymoncrieff
10 years ago
865 posts
Thanks Michael will check it out soon, @hammondegs try editing and resaving the event that doesn't show up to see if that sorts it.
hammondegs
@hammondegs
10 years ago
80 posts
I have found an issue:
https://www.barklycommunity.org/barkly-public-hall/event/calendar/month=10/year=2014

the event appears twice... once where it should be and on the previous months last digits eg. 29th
Have a look and you will see.

Hope this helps.
hammondegs
@hammondegs
10 years ago
80 posts
Also it does not list ongoing events beyond their starting date.
Or does it require an end date to respond by listing eg. 1st Wednesday of every month?
hammondegs
@hammondegs
10 years ago
80 posts
gary.moncrieff:
Thanks Michael will check it out soon, @hammondegs try editing and resaving the event that doesn't show up to see if that sorts it.

Tried that but to no avail.
michael
@michael
10 years ago
7,715 posts
Its supposed to search the database for any events with a date that is between the beginning of this month and the end of this month. Any that it finds, show them.

Yes it all helps, thanks very much. I'm trying to figure out why some show and others don't.
gary.moncrieff
gary.moncrieff
@garymoncrieff
10 years ago
865 posts
I have seen a few things now,

Event doesn't show on one profile and on another they are duplicated on the calendar view.

http://i57.tinypic.com/10r05k7.png
updated by @garymoncrieff: 10/28/14 12:54:58AM
michael
@michael
10 years ago
7,715 posts
Awesome. I am able to reproduce that double up issue here so I can debug it. Thanks Guys, will have a solution to that one soon.
michael
@michael
10 years ago
7,715 posts
Just sent you both an updated version with that issue fixed.

It also contains a site calendar at:
your-site.com/event/calendar/10/2014
hammondegs
@hammondegs
10 years ago
80 posts
Not out of the woods yet.
The double listing is over.
And the profiles that have listed events are now showing.
However list an event for 31st, October 2014, and it won't show.
michael
@michael
10 years ago
7,715 posts
I can guess at what that issue is. I bet I've got it searching for the beginning of the day at the end of the month. I'll change that to the start of the first day of the next month and we should be good.

Hold on.
michael
@michael
10 years ago
7,715 posts
Just sent an update "2nd update to event module" that should fix the last day issue.
gary.moncrieff
gary.moncrieff
@garymoncrieff
10 years ago
865 posts
I have at work to find my schedule over flowing with people so will check these fixes later.

One small thing how's about a mini calendar for sidebars?
michael
@michael
10 years ago
7,715 posts
gary.moncrieff:One small thing how's about a mini calendar for sidebars?

Its a good idea, all it needs is the template implementation along with some css. Lets get its functionality sorted first, then I'll add that in.
hammondegs
@hammondegs
10 years ago
80 posts
You the MAN!!
All good.
I will keep on hammering at it though and see if any surprises abound :)

Excellent work Michael!
michael
@michael
10 years ago
7,715 posts
Nice one. We still have those issues where some events don't show up right? If you notice anything that could be a clue as to why, let me know.

Thanks for all your help getting it going.
hammondegs
@hammondegs
10 years ago
80 posts
YEP!!
Got an issue with 1st November 2014... [grin]
hammondegs
@hammondegs
10 years ago
80 posts
BTW - when time lends itself. It would be good to have CSS added to the template editor... maybe across the whole core.
michael
@michael
10 years ago
7,715 posts
I'll have to look for the November (probably every first of the month event) issue tomorrow. Getting late here. off soon.

Your site is looking excellent. The calendar is a useful add on, thanks both of you for suggesting it.

Looks great! :)
https://www.barklycommunity.org/event/calendar
hammondegs
@hammondegs
10 years ago
80 posts
Cheers Michael!
Have a good sleep, must be late.
Only 9pm in OZ.

A final thought... the ability to add an event by clicking a date on the calendar - just a thought ;)
michael
@michael
10 years ago
7,715 posts
Tokyo its 7:00 pm. Time for dinner. :)
gary.moncrieff
gary.moncrieff
@garymoncrieff
10 years ago
865 posts
I'm in N. Ireland so its 11am and stuck in work lol
gary.moncrieff
gary.moncrieff
@garymoncrieff
10 years ago
865 posts
I still seem to be experiencing the double up of events on calendar, just installed latest files, run integrity check and cleared caches. Added a new event "New Text Event", see pic below.

http://i62.tinypic.com/103ebcw.png
Bandwerkstatt
Bandwerkstatt
@bandwerkstatt
10 years ago
224 posts
it would be cool, if the calandar can export it for example to apple calendar ics format and for other like google and so on ... :)
Bandwerkstatt
Bandwerkstatt
@bandwerkstatt
10 years ago
224 posts
... and that u can invit users and other users via mail or something like that ... not the same, but the facebook event calandar have nice functions ;)

... and when it work with google maps, so that everybody can find it :)
updated by @bandwerkstatt: 10/28/14 04:09:51PM
michael
@michael
10 years ago
7,715 posts
gary.moncrieff:
I still seem to be experiencing the double up of events on calendar, just installed latest files, run integrity check and cleared caches. Added a new event "New Text Event", see pic below.

http://i62.tinypic.com/103ebcw.png

There's a newer version than the one your using. I sent it to you with a title like "2nd update to event module".

I'll try to figure out that first day of the month issue, then send it again.
michael
@michael
10 years ago
7,715 posts
Think that's good to go now. Have put the latest version in the marketplace.

For @hammondeggs and @gary.moncrieff since you already have 1.0.5 installed, you'll need to 'reload' it from
ACP -> MARKETPLACE -> TOOLS -> RELOAD MODULES OR SKINS -> Profile Events -> RELOAD

yoursite.com/marketplace/system_update/all=1

Thanks for all your help with this. If you still see issues, let me know.
hammondegs
@hammondegs
10 years ago
80 posts
michael:
Think that's good to go now. Have put the latest version in the marketplace.
Yep! The 1st day issue is gone.
Now there be a new issue:
https://www.barklycommunity.org/event/calendar
defaults to January 2014, not the current month.

Overall it is impressive, a job well done!
2 thumbs up
michael
@michael
10 years ago
7,715 posts
Great catch. Thanks.

Reload the module from the marketplace now, it should be fixed.

--edit--
after that its just:
* small calendar for side bars
* calendar CSS to style editor

right?
updated by @michael: 10/28/14 11:05:07PM
hammondegs
@hammondegs
10 years ago
80 posts
Aye Captain!
* small calendar for side bars
* calendar CSS to style editor
It was for all modules that I would like the CSS - however I will take what I'm given and be thankful... I digress.

All appears to be functional.

Thank you, I'm a very happy :)
gary.moncrieff
gary.moncrieff
@garymoncrieff
10 years ago
865 posts
One other small thing from a user experience standpoint, when viewing the profile calendar you don't see the add event button until you go back to list.
hammondegs
@hammondegs
10 years ago
80 posts
gary.moncrieff:
One other small thing from a user experience standpoint, when viewing the profile calendar you don't see the add event button until you go back to list.

Thanks Gary!
I had forgotten that one
michael
@michael
10 years ago
7,715 posts
Try reloading the module now. It has the small calendar in place.

There is the ability now to alter module CSS from the skins STYLE area if the module has been setup to provide it.

Problem is, when you put all the options for CSS out there then it gets too hard to find the actual setting your after. So what parts of the calendar do you want editable?

I've set it so the main calendar can adjust a couple of settings to give you an idea.

Go to ACP -> SKINS -> (your current skin) -> STYLE -> search for "calendar" and calendar.css will appear with some settings.

As for adding something from the calendar page, I'll get that added in.

--edit--
Use this code to show the small calendar as pictured in the screenshot:
{jrEvent_calendar month=$month year=$year template="small_calendar.tpl" tpl_dir="jrEvent"}

updated by @michael: 10/29/14 12:04:29AM
michael
@michael
10 years ago
7,715 posts
Create Event button added. Reload. (I think i was a bit quick to update the marketplace. should have asked for your input before putting it there.)
gary.moncrieff
gary.moncrieff
@garymoncrieff
10 years ago
865 posts
No Problem Michael you've done an awesome job here.

Now I have add an active search area to the events page in the mediapro theme so when I filter by category it shows the right one.
gary.moncrieff
gary.moncrieff
@garymoncrieff
10 years ago
865 posts
If I could be so bold to suggest one other thing it would be this.

Upon clicking on day within the small calendar it would take you to a list of Events on that day.
michael
@michael
10 years ago
7,715 posts
I've got the search in there, so you can search on events. Use it like this:

{jrEvent_calendar month=$month year=$year search="event_title like %day%"}
That will display all events with the word 'day' in the title.

In your case your going to want to search on whatever filter your using. It will search on any datastore key you like. Use the event datastore browser tool to see what options you have.

I'm not going to put a day list in because its a bit too specific. There is no reason you can't though. Its just a matter of pointing to a template then fleshing out the content for that day. Do it by adding your own template="whatever.tpl" in.

{jrEvent_calendar month=$month year=$year template="calendar_day.tpl"}

Then create
/skins/your-skin/calendar_day.tpl
and you can view it from
your-site.com/calendar_day
hammondegs
@hammondegs
10 years ago
80 posts
Great Stuff! Still deciding on the layout of the home page, however the small calendar is in place: https://www.barklycommunity.org/

What I was specifically looking for in the CSS, is transparent background for the entire calendar.
#jrEvent_calendar table.ecal-main
michael
@michael
10 years ago
7,715 posts
lol. That's how it was in the beginning, but I put a white bg in. See you figured out how to do it.

If you RELOAD the module, STYLE tab for the skin will have that as an option in the calendar.css file.
updated by @michael: 10/29/14 01:33:46AM
hammondegs
@hammondegs
10 years ago
80 posts
Yeah it wasn't hard.
I'm just looking for a way to make my css edits remain when updates happen.
Usually I upload mine after an update and reset the caches ;)

Magnificent work.
michael
@michael
10 years ago
7,715 posts
gary.moncrieff:
If I could be so bold to suggest one other thing it would be this.

Upon clicking on day within the small calendar it would take you to a list of Events on that day.

I woke up last night thinking about this. It doesn't need a separate interface, so I added it in. It goes to the same location the default events list goes to, then filters them down to just the day. Reload the module and it will work like that.

If you need more than that, you'll have to do something custom.
gary.moncrieff
gary.moncrieff
@garymoncrieff
10 years ago
865 posts
Thank you Michael, I've been that swamped with regular work I hadn't even had time to explore your suggestion above, but this is exactly what I want, just need to do a bit of styling now.

You rock.

Tags