PDA


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


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

Tom M
02-24-2006, 08:02 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?What are you clicking on to access the calendar page? Does it work properly with just the vBa minicalendar module? What version of vBa and vb? I haven't done anything with 3.5.4 and notice a lot of people are having issues with that.

Jaxel
02-24-2006, 12:16 PM
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 ;).
It is? I was checking the Event array in the SQL DB and there are no time stamps, only date stamps.

Tom M
02-24-2006, 02:02 PM
It is? I was checking the Event array in the SQL DB and there are no time stamps, only date stamps.I believe that you will find that the date stamp contains the time as well when using ranged events. If using "all day events" then the time is defaulted to midnight.

Jaxel
02-24-2006, 02:36 PM
Awww... dang... way too many numbers for me to figure it out... oh well.

caimakale
02-24-2006, 02:57 PM
What are you clicking on to access the calendar page? Does it work properly with just the vBa minicalendar module? What version of vBa and vb? I haven't done anything with 3.5.4 and notice a lot of people are having issues with that.
I am on 3.5.4 and vba 2.1, but this was an issue with 3.5.3 vba 2.0 also. I just never really looked into the cause before, I just took the integration out of it so it wasn't an issue. Last night I was bored and finally looked into the problem and that is when I noticed the problem.

Tom M
02-24-2006, 03:58 PM
I am on 3.5.4 and vba 2.1, but this was an issue with 3.5.3 vba 2.0 also. I just never really looked into the cause before, I just took the integration out of it so it wasn't an issue. Last night I was bored and finally looked into the problem and that is when I noticed the problem.I'm not sure what to say. I just tested on vBa 2.1.0 and vb 3.5.2 with both the minicalendar and the combocalendar active on the same page and am able to access the main vb calendar by clicking the link at the top of each module w/o any problems.

Any additional info you are able to provide, including screen shots, would be helpful.

trackpads
02-28-2006, 01:32 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).
Excellent work! Thanks!

galaxyre
03-05-2006, 08:27 PM
This mod works wonderfully! I would like to know how to add 1 more feature...

An Attachement? I want to be able to attach a thumbnail of the upcoming events flyer/image/etc and include that on the main page, underneath the event title. So the Event Title appears and underneath a small thumbnail of an image appears.

I'm sure it's just a matter of editing adv_portal_upcomingevents template, but I am unsure of how to do it properly.

Thanks.

Tom M
03-05-2006, 08:33 PM
I'm sure it's just a matter of editing adv_portal_upcomingevents template, but I am unsure of how to do it properly.
It's a bit more complicated than that as when there are multiple events they are listed right after each other. Editing the template alone won't catch them all and so it's necessary to edit the php file as that's where the list of events is built up.

cgmojoco
03-15-2006, 10:53 PM
Anyone get this working on 3.5.4?

It isn't working with the default installation....

Gandalf-LoJ
03-16-2006, 04:47 AM
It's working fine here on 3.5.4

However it was installed when the forum was on 3.5.3 and after the upgrade it continued to work fine.

|oR|ElGuapo
03-17-2006, 02:19 PM
installed

www.limmac.org

ricotero
03-18-2006, 05:04 PM
how can i change the color of font in the module in cmps ?? like green
only for upcoming events

any ideas ?

burley
03-20-2006, 06:04 PM
installed it on version 3.5.4 works like a charm, great mod!

However, I've got some issues with my portal after I installed it.
Somehow the combocalender mod screws with the alignment of the collapse buttons and the ID images I use at the top of each module.

When I move the combocal module to the top left it screws with all the modules, if I move it to the top right it only screws with the modules on the right side. When at the right bottom it doesn't screw up any module.

What could cause this? And how do I correct it.

Please check out the (test) portal at www.p8ntball.nl/test_forum

Tom M
03-20-2006, 08:02 PM
When I move the combocal module to the top left it screws with all the modules, if I move it to the top right it only screws with the modules on the right side. When at the right bottom it doesn't screw up any module.

What could cause this? And how do I correct it.
Does it work properly when using the the basic style and templates that it came with?

Is it possible to see a version of the page where it's 'broken'?

burley
03-20-2006, 09:15 PM
The page you get when you follow the link is the one with the 'broken' module. However the image is off by a few pixels (both vertical & horizontal)

I haven't tried it with the normal skin, will do that shortly.

Tom M
03-20-2006, 11:24 PM
The page you get when you follow the link is the one with the 'broken' module. However the image is off by a few pixels (both vertical & horizontal)

I haven't tried it with the normal skin, will do that shortly.
But it looks OK to me in both FF and IE. I'd like to see it with the module in the upper left or elsewhere on the page - other than the lower right.

burley
03-22-2006, 02:39 PM
I'm sorry, I missed your post.

I had modified the collapse buttons slightly, so the difference wasn't as clearly visable as it is now (replaced them with the originals)

Anyway I moved the module to the upper left page, the difference is clearly vissible i think.

Edit; I'm sorry but I don't have the original skin anymore. Of course I have the original vb files but can't find the skin in it.

Tom M
03-22-2006, 02:52 PM
I'm sorry, I missed your post.

I had modified the collapse buttons slightly, so the difference wasn't as clearly visable as it is now (replaced them with the originals)

Anyway I moved the module to the upper left page, the difference is clearly vissible i think.

Edit; I'm sorry but I don't have the original skin anymore. Of course I have the original vb files but can't find the skin in it.
I've looked at it in FF and IE with the module in the upper left and it looks fine to me. Is there still something wrong with it? Perhaps a screen shot of what you are finding would help.

PS - You are missing an image for the module header on your Random funny video clip.

burley
03-22-2006, 03:28 PM
I've looked at it in FF and IE with the module in the upper left and it looks fine to me. Is there still something wrong with it? Perhaps a screen shot of what you are finding would help.

PS - You are missing an image for the module header on your Random funny video clip.



Hmm, thats weird! Below are 3 screenshots, the first 2 are with the module switched on, the 3rd has it switched of.

I know the video module is missing an image, but we're not sure if we are gonna use that module, so we haven't made one for it jet. But thanks!

Tom M
03-22-2006, 03:35 PM
Hmm, thats weird! Below are 3 screenshots, the first 2 are with the module switched on, the 3rd has it switched of.
Perhaps it's related to being logged in vs. viewing as a guest. When I look at it I'm a guest. Your screen shots appear to show you logged in.

burley
03-22-2006, 03:40 PM
Perhaps it's related to being logged in vs. viewing as a guest. When I look at it I'm a guest. Your screen shots appear to show you logged in.

That seems to be the case when the module is on the topleft, when its on the top right it doesn't matter.

Could the problem perhaps be in the css which places the buttons? (don't know which one)

You can log on, if you want;

test-user
test-user

Tom M
03-22-2006, 04:13 PM
If you'll put it back on the left I'll take a look at it. As you said, it looks OK on the right when I look at the generated html.

burley
03-22-2006, 04:48 PM
cool, I've put it back to the right

Tom M
03-22-2006, 04:54 PM
cool, I've put it back to the rightI've seen it on the top right and it looked OK. I'd like to see to on the top left if possible.

Also, you apparently have a mix up/type as you have a class of "smalltext" specified but not defined. I'm pretty sure this should be "smallfont" instead. You might also try it w/o the class="collapse" specification.

burley
03-22-2006, 05:43 PM
hmm, I shall look into that.


But we fixed it, we wrote a special css for the collapse buttons and we edited the cellpadding which was set at 4 in the module, while in the rest of the modules it was set to 0.


$stylevar['oldcellpadding'] = $stylevar['cellpadding'];
$stylevar['cellpadding'] = 4;


Thanks for your time & patience though!

Hyrel
03-29-2006, 01:00 AM
This is such an incredible mod! I'm so happy to have it working right for 3.5 again! =)

I just installed this other really neat plugin for Vb and was wondering if you could tell me how to link them together, making an already sexy mod even sexier ;)

http://www.vbulletin.org/forum/showthread.php?t=102213&highlight=upcoming+events

What this plugin does as makes a thread with the calendar summary anytime you add a new event to the calendar. So what I want to do is have my Upcoming events mod link to that thread instead of linking to the calender event.

Can it be done?

Jenn

Tom M
03-29-2006, 01:30 AM
I'm afraid it would take a fair amount of re-write to get the two to work. If you know how to code the bulk of the work would be taking apart part of the plugin code and replacing the part that looks at the calendar for upcoming events. Probably wouldn't take more than a day or 2 to get it working if you are motivated. ;)

deta
03-31-2006, 07:16 AM
Hello

I has there 2 concerns.

1. How I can indicate behind the Birthsdayuser still his age (example = deta 38)

2. How can one change the assortment?
I would have with pleasure it with pleasure so.

the coming events
calendar
birthdays

Thanks

cu Deta

Tom M
03-31-2006, 01:00 PM
1. How I can indicate behind the Birthsday user still his age (example = deta 38)
In the combocalendar.php file remove (or comment out) the following line. $birthdays = ereg_replace( ' <!--...-->\([0-9]{1,2}\)', '', $birthdays); // strip the ' <!--rlm-->(age)' portion

2. How can one change the assortment?
To change to layout of the module it is also necessary to edit the combocalendar.php file as the output is built up in the $calendarbits string that's then used by the adv_portal_module_shell template. Since the php file is pretty much in sections it should be possible to create 3 separate calendarbits variables (i.e. $calendarbits1, $calendarbits2, $calendarbits3) and then combine them in whatever order you like right before the final string is assigned to the module content near the end of the file.

deta
03-31-2006, 04:01 PM
Thanks..

cuDeta

DGB
04-04-2006, 11:46 AM
Thanks for the great mod!

One quick question though, somehow I've gotten it working so that logged in users see the upcoming events, but guests don't. I want guests to see them. I've browsed this thread and checked around at the settings in vBa CMPS, any ideas?

Tom M
04-04-2006, 12:03 PM
somehow I've gotten it working so that logged in users see the upcoming events, but guests don't. I want guests to see them. I've browsed this thread and checked around at the settings in vBa CMPS, any ideas?Are guests able to see the events on the FORUMHOME page? If not, then everything is behaving as it should and it's probably a permissions thing. A link would also be helpful.

DGB
04-04-2006, 01:53 PM
Bingo...I can't believe not reading through this whole thread i didn't catch onto that thread.

I'm going to use the excuse that i've been off work for the last week and my brain hasn't returned yet.

Thanks for your time!

SirCampalot
04-05-2006, 05:34 PM
Installed - works great - or so I think. I'm still on 3.5.2 and vBa 2.0.0. After reading this thread I think I'll wait before I upgrade.

question though:

When I installed the module - the calendar events I already had in the system showed up without any trouble. However, I just added 3 events that fall within the date range and they are not showing up (?)

Any ideas?

Tom M
04-05-2006, 05:58 PM
When I installed the module - the calendar events I already had in the system showed up without any trouble. However, I just added 3 events that fall within the date range and they are not showing up (?)

Any ideas?Do they show up on the FORUMHOME page?

Is the number of days specified for the calendar less that that for FORUMHOME?

SirCampalot
04-05-2006, 06:09 PM
doh! That was the problem.... thanks!

JoeWho
04-06-2006, 12:54 AM
Nice... I installed it, no problems...

How do I fix the with of the calendar? It is a little wider then the other module.

Thanks.

Tom M
04-06-2006, 01:03 AM
How do I fix the with of the calendar? It is a little wider then the other module..Do you have a link so I can see it in action?

zweeper
04-06-2006, 12:30 PM
greate hack, but one question. i installed the follow sidebar hack:
http://www.vbulletin.org/forum/showthread.php?t=91888&highlight=sidebar

how can i add the module in the sidebar?


In the Sidebar template i can add custom code:


<br />
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="90%">
<tr>
<td class="tcat"><span class="smallfont"><b>&raquo; Termine</b></span></td>
</tr>
<tr>
<td color="#FFFFFF" width="100%" bgcolor="#FFFFFF">

<!-- Begin custom code -->
here i can add the custom code
<!-- End custom code -->

</td>
</tr>
</table>
<br />



can someone help me?

zweeper
04-07-2006, 12:43 AM
hm, i don't know...

zweeper
04-07-2006, 12:08 PM
greate hack, but one question. i installed the follow sidebar hack:
http://www.vbulletin.org/forum/showthread.php?t=91888&highlight=sidebar

how can i add the module in the sidebar?


In the Sidebar template i can add custom code:


<br />
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="90%">
<tr>
<td class="tcat"><span class="smallfont"><b>&raquo; Termine</b></span></td>
</tr>
<tr>
<td color="#FFFFFF" width="100%" bgcolor="#FFFFFF">

<!-- Begin custom code -->
$home[leftblocks]
<!-- End custom code -->

</td>
</tr>
</table>
<br />



can someone help me?


why does this not work?

Tom M
04-07-2006, 12:36 PM
why does this not work?It doesn't work because the module is designed to be run as part of vBa, which the side module hack from vb.org isn't.

If you are already running vBa for your portal but are using the side module hack in the forums I would suggest that you follow the directions located elsewhere that show how to use vBa as the side module.

zweeper
04-07-2006, 12:44 PM
but i just want this module in another sidebar. is there no way to make this? hm...

Tom M
04-07-2006, 12:54 PM
but i just want this module in another sidebar. is there no way to make this? hm...The only way to get it into the sidebar hack is to rewrite portions of the code. It's not too difficult but you'll have to do it on your own.

zweeper
04-07-2006, 01:01 PM
ok, than i can forgett it... i'm a noob in php...

dilbert05
04-07-2006, 02:02 PM
Vey nice, thank you.

VVIper
04-07-2006, 10:53 PM
Great work tom i LOVE IT

NR Fatal
04-08-2006, 10:18 PM
I installed this and I can't get it to show at all on my page, I set the clanender to active, setr it to the default calender, a few events for the next fews days are here, but nothing is showing up. I can see the module in the admin cp and adjust the settings but its not working. also, I installed your other mod of just "upcoming events" how do I unistall this? I uploaded the file you supplied in the posts by "Download/upload modules".
my site
http://forum.norestrictions.net/index.php

Tom M
04-08-2006, 10:37 PM
I installed this and I can't get it to show at all on my page, I set the clanender to active, setr it to the default calender, a few events for the next fews days are here, but nothing is showing up. I can see the module in the admin cp and adjust the settings but its not working. also, I installed your other mod of just "upcoming events" how do I unistall this? I uploaded the file you supplied in the posts by "Download/upload modules".
my site
http://forum.norestrictions.net/index.phpI don't see any events listed on the FORUMHOME page either. Should there be?

Basically, if you can't see events on FORUMHOME you won't see them in the combo calendar module either. Other than that be sure to check all the standard stuff like I've listed just a few posts back.