PDA


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


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

vbcoder1
02-05-2006, 02:44 PM
I have vba 2.1.0 but its not showing the events and Birthdate

Tom M
02-05-2006, 03:14 PM
I have vba 2.1.0 but its not showing the events and BirthdateHave you...

Confirmed events show on the FORUMHOME page?
Confirmed Birthdays show using the standard module?
Double checked all the settings to make sure they are right?

Please provide a link to the page as it makes it very difficult to verify some of these items w/o a url.

vbcoder1
02-05-2006, 03:17 PM
oh so you mean that I must have events and Birthdays to show the event catogory and Birthdays catogory

Currently events 0 Birthdays 0

TYorke
02-05-2006, 03:35 PM
Birthdays
...
If there are no birthdays then the section is not displayed (may be changed by editing the combocalendar.php module)


I'm curious as to how exactly this is done.

Barteke
02-08-2006, 12:38 PM
Installed it works fine now (had it installed before but once it didn't work anymore but i selected update all pages now hope that will solve it... :-))
Great job TOM!

Grtz

Gandalf-LoJ
02-09-2006, 09:40 AM
This is great! Installed. However, I did come across a small issue with the php file.

Our site has the calendar on the right for the home page and on the left on all of the other pages (www.seka.org.uk) and when I installed the module and updated all pages, then copied to the right and added it to the pages that it appears on I got a blank page and the error;

PHP Fatal error: Cannot redeclare compare_dates() (previously declared in /home/seka/public_html/forum/modules/combocalendar.php:123) in /home/seka/public_html/forum/modules/combocalendar.php on line 123

Anyway, I first fixed it by making sure it only appears on the one page, but to prevent any further errors if I add extra pages and tick the box so they both appear accidentally I modded the php code as follows.

in forum/modules/combocalendar.php

Find

// ### TODAY'S EVENTS #################################################


below add

if (!function_exists('compare_dates')) {


Find

if ($mod_options['portal_cc_showevents'])


above add

}


and this fixes the issue, I can now have the calendar on a page twice if needed.

I hope you don't mind me modding the code :)

Centurio
02-09-2006, 11:47 AM
And this module works fine,THX for doing!!!

majorxp
02-09-2006, 12:59 PM
Brilliant.

rivacityj
02-10-2006, 09:02 PM
Is this set up as to NOT display the events scheduled for that day?

Tom M
02-10-2006, 09:15 PM
Is this set up as to NOT display the events scheduled for that day?It *should* display all events including events taking place based o the local time of the user. At least that's how it works for me ;)

rivacityj
02-10-2006, 09:20 PM
I thought so but all of a sudden I'm not seeing todays events. Any hints on where I can look to fix it? I'm running vB 3.5.3 and vBa 2.1.0

Thanks for a great mod by the way. This is going to come in very handy on our website. :)

P.S. I created a user with a birthday set for today and that shows up fine.

rivacityj
02-10-2006, 09:44 PM
This apparently is an issue with vBulletin itself. Todays events aren't showing up in my "Upcoming Events" on the forum home page either.

And to anyone who has installed this mod with version 3.5.3 and has been getting the message about updated templates... I went ahead and reverted the 4 that were listed and haven't had any noticeable effects.

rivacityj
02-11-2006, 03:32 AM
Ok I'm back to having issues with this again. I uninstalled all my modules and vbadvanced itself tracking down my problem with "Upcoming Events". I seemed to have fixed that however I after I reinstalled vbadvanced, I'm having trouble downloading this module. When I try to install it I get this error message..

Invalid SQL:
INSERT INTO vbphrase (languageid, varname, text, phrasetypeid) VALUES (0,
'setting_portal_cc_calendarid_title', 'Combo Calendar ID', 5000);

MySQL Error : Duplicate entry 'setting_portal_cc_calendarid_title-0-5000' for key 2
Error Number : 1062

The module appears in my CMPS Admin CP however it isn't completely functional. Can someone help me get all traces of this out of my database so I can do a clean install?

Tom M
02-11-2006, 10:33 AM
The module appears in my CMPS Admin CP however it isn't completely functional. Can someone help me get all traces of this out of my database so I can do a clean install?If this was originally installed on vBa 2.1 you might want to open a support ticket with Brian so he can take a look at things. If, however, you just want the remnants removed so you can reinstall it I can do that for you. PM me with login info and I'll clean up the db for you.

rrokdoka
02-11-2006, 06:00 PM
Hey ..... quick question! I got it installed to one of my styles but how do i get too work on my other style? lol

Tom M
02-11-2006, 06:16 PM
Hey ..... quick question! I got it installed to one of my styles but how do i get too work on my other style? lolIf you installed it to a specific style then it will only work with that style and any child styles. Normally it would be installed to the default style.

rrokdoka
02-11-2006, 06:21 PM
yeah.... thats what style it installed to... so there is no way of putting it on two styles?

Tom M
02-11-2006, 06:58 PM
yeah.... thats what style it installed to... so there is no way of putting it on two styles?If it's in a parent style it should automatically work in all the styles that are "below" it. Is this not happening?

rrokdoka
02-11-2006, 07:29 PM
no it isnt.... i only got two styles the default and a red 2 black one....

Tom M
02-11-2006, 07:53 PM
no it isnt.... i only got two styles the default and a red 2 black one....The problem is that the Red 2 Black style doesn't have the 2 templates in it for the events. If you copy the adv_portal_todaysevents and adv_portal_upcomingevents templates into that style then that portion of it will work. You'd also need to copy the appropriate templates for the birthdays if you want that portion to work.

rrokdoka
02-12-2006, 04:22 PM
what appropriate templates do i need for it to show the birthdays?

Tom M
02-12-2006, 04:30 PM
what appropriate templates do i need for it to show the birthdays?I'm pretty sure it's whatever the basic birthday module uses. If you look in the module definition it will list all the templates that are used.

rrokdoka
02-12-2006, 10:58 PM
Thanks man =]

venomx
02-13-2006, 08:34 PM
Mardi Gras is set to be shown on the calender but it says no upcomign events even though it shows a link on the date. Ideas?

Tom M
02-13-2006, 08:36 PM
Mardi Gras is set to be shown on the calender but it says no upcomign events even though it shows a link on the date. Ideas?Does it show in the forums?

venomx
02-13-2006, 08:45 PM
When I look at http://www.hotoffthewire.net/forum/calendar.php it shows...
But on http://www.hotoffthewire.net/ it doesnt...

BTW the site has no members besides me right now as I am just setting it all up..

Tom M
02-13-2006, 08:52 PM
When I look at http://www.hotoffthewire.net/forum/calendar.php it shows...
But on http://www.hotoffthewire.net/ it doesnt...

BTW the site has no members besides me right now as I am just setting it all up..Sorry, but that wasn't my question. If it doesn't show on http://www.hotoffthewire.net/forum/index.php then it won't show on the portal either.

venomx
02-13-2006, 09:03 PM
How do I make it show?
Also I just change my birthday to Feb 15th.. It doesnt add a link for it..

venomx
02-13-2006, 10:24 PM
Well this sucks. For some reason I cant get the "Today's Events" part on my forum to show up :(

Tom M
02-13-2006, 11:32 PM
For some reason I cant get the "Today's Events" part on my forum to show up :(How many days do you have it set for in the ACP for FORUMHOME?

shadowdancer36
02-14-2006, 07:37 PM
I had this installed once on my site but when I upgraded my Vbad & lost it. Now that I'm trying to reinstall it, I'm getting errors.

First it tells me:
The following template(s) already exist in this style:
adv_portal_birthdays, adv_portal_calendar_day, adv_portal_calendar_day_other, adv_portal_calendar_header, adv_portal_calendar_week, adv_portal_todaysevents, adv_portal_upcomingevents, calendar_smallmonth_day
Select 'yes' to overwrite your current templates with the new ones, or select no to keep your current templates.

I tell it to overwrite them all and then I get a message saying its done, but right up under I get this:

Database error in vBulletin 3.5.3:

Invalid SQL:
INSERT INTO pmc_phrase (languageid, varname, text, phrasetypeid) VALUES (0, 'setting_portal_cc_calendarid_title', 'Combo Calendar ID', 5000);

MySQL Error : Duplicate entry 'setting_portal_cc_calendarid_title-0-5000' for key 2
Error Number : 1062
Date : Tuesday, February 14th 2006 @ 03:34:16 PM
Script : http://www.mysite.com/~forum/admincp/vba_cmps_admin.php
Referrer : http://www.mysite.com/~forum/admincp/vba_cmps_admin.php
IP Address :
Username : shadowdancer77
Classname : vb_database


Do I have to go in MYSQL and erase something?

rivacityj
02-15-2006, 02:32 AM
Well this sucks. For some reason I cant get the "Today's Events" part on my forum to show up :(

This may be a bug with vBulletin itself. Were the events displaying on the Forums Home Page? I have the same problem. Any "Single, All Day Events" disappear at 7pm Eastern (-5 GMT). For some reason those types of events look at GMT instead of what the bb is set for. My "Ranged" events worked fine though.

rivacityj
02-15-2006, 02:37 AM
I had this installed once on my site but when I upgraded my Vbad & lost it. Now that I'm trying to reinstall it, I'm getting errors.
Database error in vBulletin 3.5.3:

Invalid SQL:
INSERT INTO pmc_phrase (languageid, varname, text, phrasetypeid) VALUES (0, 'setting_portal_cc_calendarid_title', 'Combo Calendar ID', 5000);



Do I have to go in MYSQL and erase something?

Yes. I had the same problem when I tried reinstalling. If you are comfortable with phpMyAdmin, I'll give you the advice Tom M gave me... do a search in your pmc_phrase table for "%portal_cc%" w/o the quotes in the 'varname' column. Delete whatever pops up and you should be good to go.

shadowdancer36
02-15-2006, 05:54 PM
I haven't used mysql in a min. Do u mind giving me a tad bit more info on how to search for that?

venomx
02-17-2006, 12:53 AM
Ok this seems to be working... But when I login to my admincp I get this warning...

Out-of-Date Custom Templates Found!
There are currently 4 customized template(s) that need to be updated or reverted. Some sections of vBulletin may not function if you do not do this!

Click here to view these templates!

When I click the link to check them out I see..


Updated Default Templates
The templates shown on this page have been updated in the default template set since you customized them.

It may be necessary for you to revert the custom templates, or otherwise check that they fully support vBulletin 3.5.3. If you do not do this, some sections of vBulletin may not function! Please see the release announcements at the vBulletin.com Forums for more information.


The templates it says need fixing are...


Default Style
adv_portal_calendar_day
Default Template Updated in 3.5.3 by vBadvanced
Your Custom Template Last Edited in N/A by N/A
adv_portal_calendar_day_other
Default Template Updated in 3.5.3 by vBadvanced
Your Custom Template Last Edited in N/A by N/A
adv_portal_calendar_header
Default Template Updated in 3.5.3 by vBadvanced
Your Custom Template Last Edited in N/A by N/A
adv_portal_calendar_week
Default Template Updated in 3.5.3 by vBadvanced
Your Custom Template Last Edited in N/A by N/A


Not sure if this is a vBadvanced problem or one from this mod...

Tom M
02-17-2006, 01:23 AM
Ok this seems to be working... But when I login to my admincp I get this warning...

Not sure if this is a vBadvanced problem or one from this mod...
You should be able to revert those template w/o any problem. The only reason they are included in the module is so you won't have any uncached templates. It would be good if there was a way to have templates that are used by a module being separate from templates that are part of a module. Since that's not the case you can run into this situation.

venomx
02-17-2006, 03:52 AM
So if I revert them then I will have 4 uncached templates? :(

Tom M
02-17-2006, 11:32 AM
So if I revert them then I will have 4 uncached templates? :(Not at all. The way it works is the templates are included in the list of templates used in the module even though they are really only "used" by the module and not created specifically for the module. Since there's now way to tag them that way when a module is exported all of the templates it uses get exported as if they were created specifically for the module. This make sense in most cases as the process then makes the module able to stand alone. The side effect of this action is that it is then possible to encounter the scenario you now find yourself. The other way around it s to simply duplicate the template but that's not always possible as some of the code used is already part of vb and there's no way to change the name of the template to be used.

The final upshot on this is that reverting the templates will not remove them from the template list so they will still be cached by vBa when things are loaded.

Slave
02-18-2006, 04:17 AM
Hi Tom M,

Just tried to install this on a fresh 3.5.3 vB and I've come up against a problem. At the moment I've got 2 reoccurring events but this module is only showing one of them in the upcoming events section. Both show in the calender though.

Anyone else seen this problem?

Tom M
02-18-2006, 11:32 AM
Just tried to install this on a fresh 3.5.3 vB and I've come up against a problem. At the moment I've got 2 reoccurring events but this module is only showing one of them in the upcoming events section. Both show in the calender though.
Do they both show up on the FORUMHOME page? How far in the future are they? How many days look ahead do you have? Link?

Slave
02-18-2006, 04:42 PM
Hi Tom M ..

Yeah, they both show up on FORUMHOME fine ..

They are both reoccurring events, happening every 2 weeks on Mon, Tues, Wed, Thurs and Fri .. but on different weeks if you see what I mean.

Unfortunately I can't show you the page as it's an intranet site. I've tried 1, 7 and 30 days ahead, with next weeks event not showing but the event the following week showing .. so one of the reoccurring events isn't showing at all as the other one is shown twice in the 30 day view. This is using the default calender btw.

Not sure if you're going to be able to reproduce it.

Tom M
02-18-2006, 05:49 PM
I've tried 1, 7 and 30 days ahead, with next weeks event not showing but the event the following week showing .. so one of the reoccurring events isn't showing at all as the other one is shown twice in the 30 day view. This is using the default calender btw.So you've set both the FORUMHOME page number and the module number of days to be the same and it shows on FORUMHOME but doesn't show in the module?

venomx
02-18-2006, 06:08 PM
I think its vBulletin because I was testing the events on a fresh install and an event for the current day didnt show up.

For both this and regular VB I cant get the holidays to show up on the events :( They show in the calander and it shows a link on the small calander...

Slave
02-19-2006, 01:50 AM
So you've set both the FORUMHOME page number and the module number of days to be the same and it shows on FORUMHOME but doesn't show in the module?
That's correct :)

It links in the calender fine .. just not in the upcoming events block.

Tom M
02-19-2006, 02:51 AM
That's correct :)

It links in the calender fine .. just not in the upcoming events block.Do they (the events) have different permissions or anything else that makes them different from each other?

Slave
02-19-2006, 03:02 AM
Do they (the events) have different permissions or anything else that makes them different from each other?
Nope .. the only thing different on them are the dates. (and descriptions, of course)

Tom M
02-19-2006, 10:46 AM
Nope .. the only thing different on them are the dates. (and descriptions, of course)I'm at a loss then as I just created 2 recurring events that repeat every 2 weeks and are on alternate weeks and both display fine on both FORUMHOME and on the CMPS module whether grouped by date or event.

Jaxel
02-20-2006, 04:26 AM
Hey, is there any way to get this script to not only list the date, but the time as well for upcoming events?

Something like...

3/4/06 at 5:00 PM

or

Saturday, 3/4/06

Tom M
02-20-2006, 11:33 AM
Hey, is there any way to get this script to not only list the date, but the time as well for upcoming events?The information is basically available. It would take modifying the php file a bit and also the templates to get it to display but it is possible. Whether it's worth the trouble or not is another matter ;).

caimakale
02-24-2006, 04:27 AM
For some reason when this module is active, I can't access vbulletin's calendar.php page (integrated into vbaCMPS). It gives me a permission error. I have checked the permissions on the default calendar, the cmps page, and the combocalendar and all of them are set to give me access.

Any ideas?