View Full Version : [Module] Combo: Calendar + Birthdays + Upcoming Events
Pages :
1
2
3
4
5
6
[
7]
8
vgevolution
06-27-2007, 12:13 AM
These lines don't seem to be working in combocalendar.php:
$vbulletin->templatecache['calendar_smallmonth_header'] = $vbulletin->templatecache['adv_portal_calendar_header'];
$vbulletin->templatecache['calendar_smallmonth_week'] = $vbulletin->templatecache['adv_portal_calendar_week'];
$vbulletin->templatecache['calendar_smallmonth_day'] = $vbulletin->templatecache['adv_portal_calendar_day'];
$vbulletin->templatecache['calendar_smallmonth_day_other'] = $vbulletin->templatecache['adv_portal_calendar_day_other'];
Any ideas? It's why I had to comment out the header row lines in the template, calendar_smallmonth_header, but it breaks the normal calendar.php page.
Tom M
06-27-2007, 12:59 AM
These lines don't seem to be working in combocalendar.php:
$vbulletin->templatecache['calendar_smallmonth_header'] = $vbulletin->templatecache['adv_portal_calendar_header'];
$vbulletin->templatecache['calendar_smallmonth_week'] = $vbulletin->templatecache['adv_portal_calendar_week'];
$vbulletin->templatecache['calendar_smallmonth_day'] = $vbulletin->templatecache['adv_portal_calendar_day'];
$vbulletin->templatecache['calendar_smallmonth_day_other'] = $vbulletin->templatecache['adv_portal_calendar_day_other'];
Any ideas? It's why I had to comment out the header row lines in the template, calendar_smallmonth_header, but it breaks the normal calendar.php page.Those lines are the same as what's in the minicalendar.php file so it might be something else. Are you sure those templates actually exist in the style you are using? If not then that would be a problem.
vgevolution
06-27-2007, 01:06 AM
Right, and when I enable the minicalendar, the combo calendar displays correctly. If the minicalendar isn't enabled, the combo calendar doesn't seem to use the correct templates for the portal (i.e., those replacement lines aren't pulling the cached adv_portal_* templates instead of the calendar* templates).
Tom M
06-27-2007, 01:36 AM
Right, and when I enable the minicalendar, the combo calendar displays correctly. If the minicalendar isn't enabled, the combo calendar doesn't seem to use the correct templates for the portal (i.e., those replacement lines aren't pulling the cached adv_portal_* templates instead of the calendar* templates).Do you have all the templates listed in the 'Templates Used' section of the combocalendar module? If you changed the way they are listed (normally a comma separated list) you might try copying the definition from the minicalendar module and pasting it into the combocalendar module. Follow that by then adding the additional templates (adv_portal_todaysevents, adv_portal_upcomingevents) to the end of the list.
vgevolution
06-27-2007, 01:53 AM
Found the problem! I removed the commas separating the templates used and put in carriage returns. Now the adv_portal* templates are working correctly. vba 3 must have changed from comma-separated to newline-separated. I just didn't notice it until I tried this module.
vgevolution
06-27-2007, 02:14 AM
To fix the problem with the calendar.php page not showing the small calendar header, you must create a new Module Page that doesn't use either the mini calendar or combo calendar. By utilizing the normal birthday and the upcoming events module found here, the only difference in that the mini calendar doesn't appear on my main calendar page.
I ma geting this error:
Warning: Invalid argument supplied for foreach() in /modules/combocalendar.php on line 152
THanks for any help
Tom M
09-06-2007, 06:46 PM
I ma geting this error:
Warning: Invalid argument supplied for foreach() in /modules/combocalendar.php on line 152
THanks for any helpSame question as you other post... Link?
Any events in the calendar?
Edward
09-26-2007, 05:41 PM
I have the combo installed also, in version 3.0 of the Advanced, 3.6.8 of the Vbulletin, using the default style.. The right edge of the module breaks the page as seen in the picture..
If I minimize the module, the page returns to normal. Where would I go to try and fix this? Help needed.. thank you.
Tom M
09-26-2007, 07:45 PM
It has to do with the templates that are being used ant the extra column with the '>' on each row. Are the four adv_portal_calendar_xxx templates loaded in the style you are using?
Edward
09-28-2007, 08:02 AM
Tom,
Yes, there are four
adv_portal_calendar_day, day_other, header and week.
They appear red in the template list, I know so little about why.. or what..
Do those need to be fixed, changed, or whatever?..
Tom M
09-28-2007, 11:48 AM
Tom,
Yes, there are four
adv_portal_calendar_day, day_other, header and week.
They appear red in the template list, I know so little about why.. or what..
Do those need to be fixed, changed, or whatever?..You might save what you have and then revert them to see if that fixes things as mine are unmodified.
If you need help with this, PM me your ACP login info and I can take a quick look.
guttormson
10-19-2007, 06:02 PM
I love my combo calendar but I think there might be a bug in it.
Notice the events I have posted for the 28th of October?
http://www.bigwestracing.com/forums/calendar.php?do=getinfo&day=2007-10-28&c=1
Yet these events will not show on the upcoming events in the combo calendar.
http://www.bigwestracing.com/
Events before and after show, just not events on the 28th. All events are posted to the same calendar "public". I just don't get it.
Tom M
10-19-2007, 08:03 PM
If it doesn't show up on the FORUMHOME page (which it doesn't) then it won't show up on the combo calendar. You have the main calendar set to only display 7 days so no matter what you set the combo value to it won't do more than that as it uses the vb calendar cache. I'm betting that if you increase the number of days for you FORUMHOME page then it will show up.
And no, I don't know why it seems like there are currently more than 7 days showing in the combo calendar :o
guttormson
10-19-2007, 08:44 PM
If it doesn't show up on the FORUMHOME page (which it doesn't) then it won't show up on the combo calendar. You have the main calendar set to only display 7 days so no matter what you set the combo value to it won't do more than that as it uses the vb calendar cache. I'm betting that if you increase the number of days for you FORUMHOME page then it will show up.
And no, I don't know why it seems like there are currently more than 7 days showing in the combo calendar :oTom that was it! Thanks.
I guess what threw me for a loop was the combo calendar was showing events past 7 days (don't know why).
john_d13
11-10-2007, 07:04 PM
This doesent work with Firefox. Is there a fix.
check out
http://www.allpronation.com
Tom M
11-10-2007, 07:41 PM
This doesent work with Firefox. Is there a fix.
check out
http://www.allpronation.comI guarantee it's not a FF issue as that's my preferred browser!
I'm betting that the problem is either that your permissions aren't right or that you haven't updated the number of days for your FORUMHOME page as no events show up there for me either. The number of days specified in the module acts in conjunction with that specified for the FORUMHOME page. You can have fewer days in the module but not more. Hope that makes sense.
john_d13
11-10-2007, 08:11 PM
its set to 35 days on forumhome.
Its weird cause it works on ie but not ff.
Tom M
11-10-2007, 10:41 PM
its set to 35 days on forumhome.
Its weird cause it works on ie but not ff.As a guest I didn't see any events listed on FORUMHOME. As such, there won't be any events listed by the module on the home page.
john_d13
11-10-2007, 10:48 PM
ahhh dam my fault. wasent logged in when using ff. ill have to change the permissions.
thx guys
jaykresge
11-14-2007, 05:42 PM
I have the combo installed also, in version 3.0 of the Advanced, 3.6.8 of the Vbulletin, using the default style.. The right edge of the module breaks the page as seen in the picture..
If I minimize the module, the page returns to normal. Where would I go to try and fix this? Help needed.. thank you.
I was having this same exact issue. Here's how I fixed it.
Open your adminCP and go to vBa CMPS >>> Edit Modules >>> Combo Calendar
Scroll down to "Title Row Colspan", and change this from "7" to "8"
After this, go back to the adminCP and go to Styles and Templates >>> Style Manager >>> Edit templates (from the drop down on your style).
Now, you need to edit both "adv_portal_todaysevents" and "adv_portal_upcomingevents"
These are small files. Find the 3 total locations where it says colspan="7", and change the values to 8.
You'll be all set.
TSM_Pikachu
11-15-2007, 06:00 PM
I was having this same exact issue. Here's how I fixed it.
Open your adminCP and go to vBa CMPS >>> Edit Modules >>> Combo Calendar
Scroll down to "Title Row Colspan", and change this from "7" to "8"
After this, go back to the adminCP and go to Styles and Templates >>> Style Manager >>> Edit templates (from the drop down on your style).
Now, you need to edit both "adv_portal_todaysevents" and "adv_portal_upcomingevents"
These are small files. Find the 3 total locations where it says colspan="7", and change the values to 8.
You'll be all set.
Okay so I did this and it fixed the "No events" issue from having that small blank space next to it.
My question is this with a screenshot for you to see what I am talking about
How do we fix the overbite marked in yellow so that it is in-line with the blue borders below (because right now it goes over that).
And the second question I have is why is there dual titles "November 2007" marked in red.
http://img249.imageshack.us/img249/5718/95153372av9.png
jaykresge
11-19-2007, 02:13 PM
How do we fix the overbite marked in yellow so that it is in-line with the blue borders below (because right now it goes over that)
I'm not currently having this same issue as you. However, it looks to me that your Regional events has the same problem. It needs the colspan attribute changes from 7 to 8. If you're not able to find this, and you're trusting enough of me, set up a dummy admin account for your forums, and PM me the info. I'll look into it and try to find a solution.
And the second question I have is why is there dual titles "November 2007" marked in red.
The first one is for when the module is minimized. The second title is tied to the calendar itself. I'll see if there's a way for me to nuke that 2nd title.
Joshva2
12-01-2007, 11:07 PM
Okay so I did this and it fixed the "No events" issue from having that small blank space next to it.
My question is this with a screenshot for you to see what I am talking about
How do we fix the overbite marked in yellow so that it is in-line with the blue borders below (because right now it goes over that).
And the second question I have is why is there dual titles "November 2007" marked in red.
http://img249.imageshack.us/img249/5718/95153372av9.png
I have the exact same problem as your overbite image above and Edwards image.
Is their any way of fixing this?
Thanks,
Josh
Tom M
12-02-2007, 12:00 AM
I have the exact same problem as your overbite image above and Edwards image.
Is their any way of fixing this?
Thanks,
JoshThe problem stems from using the calendar that has the week arrows '>' being displayed. The module was written for the CMPS templates that don't display those. If you want the version with the week indicators then the tempates need to be modified to account for the extra column.
theexpatdirctor
12-24-2007, 03:50 AM
The problem stems from using the calendar that has the week arrows '>' being displayed. The module was written for the CMPS templates that don't display those. If you want the version with the week indicators then the tempates need to be modified to account for the extra column.
I have the same problem. Which template do I need to bod to remove the >
Great mod apart from this little snag.
zweeper
01-07-2008, 12:51 PM
is there a way to let this hack with vbulletin 3.7 and the newest cmps run?
Tom M
01-07-2008, 09:16 PM
I'm sure there is but it will have to wait until I have time to get them installed and the module updated... Sorry.
zweeper
01-13-2008, 03:41 PM
hm okay, because this is one of the coolest moduls for vbadvanced.
i will get very lucky when there is a version for the new vbadvanced =)
gatorsfootball
01-14-2008, 02:38 AM
Looking forward to the update as well Tom. :D
zweeper
01-26-2008, 04:15 AM
i just will push the thread with the best hack for CMPS ;)
manning
01-28-2008, 05:06 PM
Tried to upload this and it says its not a valid module ... guess it doesnt work for the latest versions? Ok - now it installed .... going to check it out now.
YIKES - its all foobarred .... going to take some playing around to get it to display correctly. Somethings not quite right.
FIXED ok - I did > http://www.vbadvanced.com/forum/showpost.php?p=116439&postcount=305 and now it is displaying correctly - at least so far.
zweeper
02-05-2008, 07:53 AM
now 3.0 is gold.
manning, is it now working correctly?
can you tell me what i have to do?
manning
02-05-2008, 09:55 AM
now 3.0 is gold.
manning, is it now working correctly?
can you tell me what i have to do?
What issues are you having?
This is what helped me > I had to remove the commas which separated the templates used for the mod. Go into Edit Modules and Templates Used ... take out the commans and put each template on a new line.
NukeOZ
02-22-2008, 01:06 AM
Tom I tried to change the Color and font to the headings in the combo Mod but had no luck..?
Do you have a code for this..?
I used:
<span style="color: #00FFFF;">Upcoming Events.</span>
Thanxs in advanced..:)
Tom M
02-23-2008, 11:49 PM
Tom I tried to change the Color and font to the headings in the combo Mod but had no luck..?
Do you have a code for this..?
I used:
<span style="color: #00FFFF;">Upcoming Events.</span>
Thanxs in advanced..:)
I would think that would work if you are editing the HTML template for the correct style. The other possibility is that it's being overridden by the style for the <td>.
ukdalai
03-06-2008, 05:34 AM
Hi Tom, where would i edit the mysql statement, for the upcoming events page.
i may be able to add the custom feild there
Craig
Tom M
03-07-2008, 12:32 AM
Hi Tom, where would i edit the mysql statement, for the upcoming events page.
i may be able to add the custom feild there
CraigThere's a separate thread for the Custom Field version. Unfortunately, I don't provide support for that one.
yinyang
03-21-2008, 01:43 AM
anyone try this on vb3.7?
zweeper
04-14-2008, 02:47 PM
when 3.7 gone gold
zweeper
04-30-2008, 02:01 PM
Okay, nice, it works!
The only problem i got is by the birthdays display.
There just stand "ARRAY"
Can you help me again please? :-(
zweeper
05-01-2008, 03:58 PM
someone eslse has this problem?
Tom M
05-02-2008, 08:01 AM
Okay, nice, it works!
The only problem i got is by the birthdays display.
There just stand "ARRAY"
Can you help me again please? :-(Link? Version numbers?
zweeper
05-02-2008, 10:08 AM
i have 3.7 gold
http://www.moshground.de/forum
(above is the original vbadvanced birthday module)
Tom M
05-03-2008, 12:59 PM
Does it work properly if there's actually a birthday to display?
Did you install it on all styles or just the custom style?
Coroner
05-04-2008, 02:50 AM
I have the combo installed also, in version 3.0 of the Advanced, 3.6.8 of the Vbulletin, using the default style.. The right edge of the module breaks the page as seen in the picture..
If I minimize the module, the page returns to normal. Where would I go to try and fix this? Help needed.. thank you.
Tom, I have this same exact issue with 3.6.9. I saw where you were going to look in Edwards acp for a fix. Could you please post a solution. Everything installed fine and works great for the exception of the extra colums.
Please let me know.....
zweeper
05-04-2008, 05:30 AM
Does it work properly if there's actually a birthday to display?
Did you install it on all styles or just the custom style?
when a birthday is, then the standard vbadvanced module shows the birthday, by the combo calendar just stands "ARRAY".
The $birthdays bit was changed to an Array in 3.7RC3: here's a quick fix:
Edit combocalendar.php and find line 111, and edit to read as follows:
case $vbulletin->birthdaycache['day2'];
$birthdays = $vbulletin->birthdaycache['users2'];
break;
}
// The next section has been changed (lifted from birthdays.php):
$birthdays_str = '';
// Birthdays change from a string to array in vB 3.7 RC3
if (is_array($birthdays))
{
if (empty($birthdays))
{
$birthdays_str = $vbphrase['none'];
}
else
{
foreach ($birthdays AS $birthkey => $birthinfo)
{
$birthdays_str .= '<a href="' .
$vbulletin->options['bburl'] . '/member.php?' . $vbulletin->session->var
s['sessionurl'] . 'u=' . $birthinfo['userid'] . '">' . $birthinfo['username'] .
'</a>' . iif($birthinfo['age'], ' (' . $birthinfo['age'] . ')') . '<br />';
}
}
}
else if ($birthdays)
{
$birthdays_str = str_replace(array('member.php', ','),
array($vbulletin->options['bburl'] . '/member.php',
'<br />'), $birthdays);
}
else
{
$birthdays_str = $vbphrase['none'];
}
$birthdays = $birthdays_str;
// Everything below here hasn't changed:
if ($birthdays)
{
eval('$calendarbits .= "' . fetch_template('adv_portal_birthdays
') . '";');
}
unset($birthdays);
}
Hope this helps.
B
zweeper
05-07-2008, 02:59 PM
not it works, but you have an error in your code
$vbulletin->options['bburl'] . '/member.php?' . $vbulletin->session->var
s['sessionurl'] . 'u=' . $birthinfo['userid'] . '">' . $birthinfo['username']
there is an "s" to much before ['sessionurl'] ;)
big thanks!
Tom M
05-07-2008, 05:14 PM
not it works, but you have an error in your code
$vbulletin->options['bburl'] . '/member.php?' . $vbulletin->session->var
s['sessionurl'] . 'u=' . $birthinfo['userid'] . '">' . $birthinfo['username']
there is an "s" to much before ['sessionurl'] ;)
big thanks!
Sorry, but I believe that 'vars' is correct. If you'd like to provide a bit more info that would help. I'll also have to wait until I get home to access my 3.5 version as I'm now running 3.6 for quite some time.
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.