PDA


View Full Version : [Module] Combo: Calendar + Birthdays + Upcoming Events


Pages : [1] 2 3 4 5 6 7 8

Tom M
12-06-2005, 09:05 PM
Here's a combined version of the mini calendar, birthdays, and upcoming events.

Calendar
Uses the calendar specified by Upcoming Events

Note: This makes use of a modified version of the existing minicalendar.php file.
Brian: If there's an issue with this let me know and I can change this from a complete module to a hack.

Birthdays
The age is not displayed even if present
If there are no birthdays then the section is not displayed (may be changed by editing the combocalendar.php module)

This section makes use of a new template, adv_portal_birthdays, and has the phrase "Today's Birthdays" in it.

Upcoming Events
Critical controls done via module ACP including
Specifying which calendar to use
Number of days to look at
Display grouping (Event or Days)
Optionally display a 'No Events' message when no events available

The way the dates are displayed has been changed to only show a start and end date instead of multiple dates when dealing with recurring or ranged events. Additionally, the earliest date shown will be the current date. Single date events will only have that date shown.

Lastly, events displayed when Group by Event is chosen will be shown in date order instead of by event ID (when will vB figure this out?).

The Upcoming Events section makes use of 2 new templates, adv_portal_todaysevents, and adv_portal_upcomingevents which has the phrase "Upcoming Events" in it.

This has been tested and works with the existing minicalendar module running at the same time. The only real limitation is that the number of days specified for the upcoming events will be limited to the number specified for the Forum Home Page Display as the databuild routine references that variable.

Revisions

12/19/05
Corrected a problem when dealing with admin-defined Holidays. Only the php file was changed so that's all the needs to be uploaded. To display holidays it is necessary to modify the CMPS index.php file by adding the portion in red. If you already have phrasegroups listed then simply add it to them.
$phrasegroups = array('holiday');

PS - If you like this module and would like to make a donation you can do so via PayPal on my site (http://www.babblers.org/index.php?pg=sponsors).

MotoUp
12-06-2005, 09:08 PM
Very nice Tom. Would it be hard to edit the template to make it look like they were three separate modules? I personally like the separation between the tables.

Tom M
12-06-2005, 09:33 PM
Very nice Tom. Would it be hard to edit the template to make it look like they were three separate modules? I personally like the separation between the tables.
Well, the only other module that would be needed is the Upcoming Events one as the calendar and birthdays already are there. Personally, I think all the calendar related stuff should be together - which is why I did this. However I know some people like the other look a bit more.

There's already one version of Upcoming Events floating around. I also have a version that uses the same controls as the combo version that I might upload but I don't want there to be any confusion between the two (James' and mine.) That's the reason I've only done the combo one so far.

MotoUp
12-06-2005, 10:52 PM
Don't get me wrong, it's a great idea. Like I said, just a personel preference. We haven't seen a lot of mod developement lately, so it's nice to see. I know there a re a ton of people that will really love this module...especially since you have it in .module format....doesn't get much easier than that!

Ramses
12-06-2005, 11:40 PM
Thanks a lot Tom, one of the most useful modul :)
Only two things need to ask, where can I change the phrase 'upcoming events", and the last event is not shown on first place, how can I change this?
B.t.w. I like it without spaces and not as 3 different modules.

Tom M
12-07-2005, 01:02 AM
Thanks a lot Tom, one of the most useful modul :)
Only two things need to ask, where can I change the phrase 'upcoming events", and the last event is not shown on first place, how can I change this?
B.t.w. I like it without spaces and not as 3 different modules.To change "Upcoming Events" edit the adv_portal_upcomingevents template. To change "Today's Birthdays" edit the adv_portal_birthdays template (which I forgot to mention in the instructions.)

Not sure about the display order so I'll need to look into it a bit. Is there a link so I can check it out as it's correct on my site?

Ramses
12-07-2005, 11:41 AM
To change "Upcoming Events" edit the adv_portal_upcomingevents template. To change "Today's Birthdays" edit the adv_portal_birthdays template (which I forgot to mention in the instructions.)

Not sure about the display order so I'll need to look into it a bit. Is there a link so I can check it out as it's correct on my site?
Thanks Tom, it seems the events are listed in order by the creation date?
Maybe you can check it out, my site's events are only visible for registered users if you need to take a look for checking the events I'll send you a username and pw.

Tom M
12-07-2005, 12:29 PM
Thanks Tom, it seems the events are listed in order by the creation date?Not quite - though I've removed some code that was only pertinent to when things were displayed on the FORUHOME page. I've uploaded a new version of the module so please try it again and it should be right now.

Ramses
12-07-2005, 07:59 PM
Now it's showing right, thanks again Tom and waiting for the next cool module ;)

pennylessz28
12-08-2005, 11:10 PM
This is perfect and is excatly what I've been looking for. Thank you very much for the hard work.

Tom M
12-08-2005, 11:43 PM
This is perfect and is excatly what I've been looking for. Thank you very much for the hard work.Aw, shucks. Thanks. :o

Dantenator
12-09-2005, 08:15 PM
Where's the rest of this addon like the combocalendar.php file, or am I missing something in this install?

Tom M
12-09-2005, 09:23 PM
Where's the rest of this addon like the combocalendar.php file, or am I missing something in this install?The combocalendar.php module is part of the combocalendar.module file. When you import this into CMPS you'll automatically get the templates, options and php file installed. All you need to do then is to set the options the way you'd like to have them.

Dantenator
12-09-2005, 09:32 PM
huh... well that's cool then. However, the calendar doesn't want to show itself and I can't quite figure out why. I left everything at it's default in the module settings. I installed it by using the download/upload function and applied to to the proper style. Did I miss a step?

Tom M
12-09-2005, 09:38 PM
You probably just need to specify which calendar is to be used.

Dantenator
12-09-2005, 11:05 PM
Well, I've done that already, too. Just a side note, I'm using vb 3.5.2 and this is a basically a fresh install (if you don't count the vbadvance install).

One thing I tested was in the modules settings for the default minicalender I changed 'Files to include' from minicalender.php to combocalender.php just to see if I would get some kind of error. The only thing that happened was the module just disappeared. No title block, box or anything. Does this help?

Tom M
12-10-2005, 01:53 AM
I'm running CMPS 2.0 and vB 3.5.2 and it's working fine. Perhaps it's an issue with the way permissions are set? Using the minicalendar module and changing the file to load definitely won't work as none of the options will be there - so the module will just exit.

Do you have a link?

Sychev_S
12-10-2005, 03:11 AM
Is there anyway a just "upcoming events" module without calendar and birthdays can be published?
The other module by different author does not work for me, while this works perfectly.

Thanks for a great module!

Diver
12-10-2005, 01:17 PM
great addon, thank you :)

tidy_boy
12-10-2005, 04:30 PM
Thankyou sooooo much for this :D

Dantenator
12-10-2005, 06:49 PM
Ok... tried something different. I re-uploaded the module but I chose the 'Update all pages' option this time. Now it works properly. All is good now.

Thanks for the support Tom! :)

Tom M
12-19-2005, 11:57 PM
An new version of the combocalendar module which corrects a problem when dealing with holidays has been placed in the first post. If you don't show holidays there's no need to update anything.

djnth
12-20-2005, 11:27 PM
I had the same problem, you should make the module default to UPDATE ALL PAGES when uploading the module.

Great Module by the way!!

Ok... tried something different. I re-uploaded the module but I chose the 'Update all pages' option this time. Now it works properly. All is good now.

Thanks for the support Tom! :)

DJQuad
12-21-2005, 11:36 AM
After installing the module it outdated some templates -

adv_portal_calendar_day
Default Template Updated in 3.5 RC1 by vBadvanced
Your Custom Template Last Edited in N/A by N/A

adv_portal_calendar_day_other
Default Template Updated in 3.5 RC1 by vBadvanced
Your Custom Template Last Edited in N/A by N/A

adv_portal_calendar_header
Default Template Updated in 3.5 RC1 by vBadvanced
Your Custom Template Last Edited in N/A by N/A

adv_portal_calendar_week
Default Template Updated in 3.5 RC1 by vBadvanced
Your Custom Template Last Edited in N/A by N/A

Should these be reverted?

Tom M
12-21-2005, 12:01 PM
After installing the module it outdated some templates -

<snip>

Should these be reverted?
I'm running vBa 2.0 on vb 3.5.2. When I upgraded my live site with this after creating it on my test site the templates remained the same. You might compare them to see what the differences are.

DJQuad
12-21-2005, 02:06 PM
Reverting the templates helped but it's not showing the calendar events, just the birthdays.

Tom M
12-21-2005, 02:21 PM
Reverting the templates helped but it's not showing the calendar events, just the birthdays.Did you

1. Select the calendar to use.
2. Choose how many days ahead to look (and make sure it's <= to what's specified for FORUMHOME?

If you provide a link (with a guest login if needed) I'll be happy to take a look at things.

caimakale
12-30-2005, 04:58 AM
Love the module, it was exactly what I needed.

I did have a problem with it though. Everything installed right, and after adding this to the index.php file of cmps:

$phrasegroups = array('holiday');

It fixed all of my problems on my index.php page. I have several pages integrated though and the phrases disappeard as soon as I left my index page.

I fixed the problem by adding your 'holiday' fix to the phrasegroups section of /includes/vba_cmps_include_template.php

So my phrasegroups section of the file looks like this:

$phrasegroups = array_merge($phrasegroups,
array(
'calendar',
'adv_portal',
'holiday',
'postbit'
)
);

I don't know if it was dumb luck that it works, but after adding it to that file I now get the holiday phrase for admin entered holiday's on all of my pages.

Hope this helps

rza733
01-06-2006, 09:19 PM
Installed!! Thank you very much..

attroll
01-07-2006, 03:03 AM
Am I missing something here. I tried adding this as a Plugin and and tried to import product and it hangs up every time. Am I not doing it right?

attroll
01-07-2006, 03:06 AM
Never mind I did not know you could import a module in CMPS. No I know. Sorry.

attroll
01-07-2006, 03:31 AM
I just downloaded this module into my CMPS and it is not working correctly for some reason. It will display. But it does not show upcoming event. I am only using the default calendar because that is the only calendar I have. I have items in my calendar that are within the 30 time frame and they are not showing up in the upcoming events.

Tom M
01-07-2006, 03:40 AM
How many days do you have specified for the FORUMHOME page? Do the events show up on the FORUMHOME page? If the number of days specified for FORUMHOME is set to fewer than 30 then that's the maximum number of days that will be used for the CMPS calendar as well.

attroll
01-07-2006, 04:01 AM
Am I missing something here. I tried adding this as a Plugin and and tried to import product and it hangs up every time. Am I not doing it right?

Crap I did it again. I missed post #27. I have this fixed now. Sorry again. I just I have been up to late. I am going to bed before I screw something up. LOL

ga2000gt
01-07-2006, 10:58 AM
Nice mod, installed perfectly. I like having it all in one. :)

attroll
01-07-2006, 05:21 PM
Now that I have gotten some sleep. I will have to say that this installed very nicely and works very well. I have been looking for something like this for 3.5 for a while now. Thank you for putting this together for us.

shadowdancer36
01-28-2006, 06:49 PM
Has anyone made something like this, but u can add a picture? I want to do a model of the month on the top of the calendar.

Tom M
01-28-2006, 06:54 PM
Has anyone made something like this, but u can add a picture? I want to do a model of the month on the top of the calendar.You might want to check out this thread to see if it's close to what you're looking for.

arcanium
01-29-2006, 01:41 PM
i cant get it to display birthdays or upcomming events, i must be missing something. Ive set my forum home options for 30 and using the default calander, but the only thing that shows is the calander.:confused:

Tom M
01-29-2006, 02:11 PM
i cant get it to display birthdays or upcomming events, i must be missing something. Ive set my forum home options for 30 and using the default calander, but the only thing that shows is the calander.:confused:Lot's of questions...

Do you have a link? Can guests see the birthdays and events? Do birthdays show using the standard birthday module? Do events show on the forumhome page? Are permissions set up properly?

arcanium
01-29-2006, 02:52 PM
http://www.gamersvault.net, yes, everything seems to be setup correctly. Im sure its something i missed.

Tom M
01-29-2006, 03:31 PM
yes, everything seems to be setup correctly. Im sure its something i missed.If you want, PM me with login info for admin access and I'll take a look.

arcanium
01-29-2006, 04:40 PM
sent, thanks

IndyWebDesign
02-03-2006, 01:57 PM
Well doesn't work for me... uploaded fine, shows the module to active and nothing...

http://www.rchangout.com

IndyWebDesign
02-03-2006, 02:05 PM
Ok... tried something different. I re-uploaded the module but I chose the 'Update all pages' option this time. Now it works properly. All is good now.

Thanks for the support Tom! :)

I had to do that to get mine to work also!

Tom M
02-03-2006, 03:35 PM
I had to do that to get mine to work also!This is something that's pretty easy to overlook. I know because I've done it but in reverse where all the pages get updated and then I need to go to a lot of them and uncheck it!

Glad you got it all sorted out.

Racenut
02-03-2006, 06:24 PM
Tom,

I use this module and like it a lot. Have you ever thought of doing one where the Weccome, online, and stats blocks are all combined?

thanks

Tom M
02-03-2006, 07:15 PM
I use this module and like it a lot. Have you ever thought of doing one where the Weccome, online, and stats blocks are all combined?I can very honestly say, No! :eek:

On the lighter side, all the code is there so feel free to have at it ;)

BubbleHead
02-04-2006, 12:08 AM
great module, I just uploaded it.

IndyWebDesign
02-04-2006, 12:32 AM
Tom,

I use this module and like it a lot. Have you ever thought of doing one where the Weccome, online, and stats blocks are all combined?

thanks

I did this with my old version of vbadvanced and will do again since i just upgraded to vb 3.5.3 and vba 2.1.0 but I don't know if I'll have the time to write whats needed to share it like these guys are doing.