View Full Version : [Module] Upcoming Events
James Goddard
11-22-2005, 03:11 PM
Ok, I'm putting this module back. Hopefully I won't see any of the abuse that I saw before with people reposting buggy versions without asking.
This creates an upcoming events block on your CMPS page.
Note: if you want to display holidays you need to add 'holidy' to the phrasegroups array on the CMPS index page:
$phrasegroups = array(
'calendar',
'holiday',
);
Support Notes: This module does not appear at all if you have no events to display. If the module is not displaying you need to check two things:
1. Is the module enabled on the page?
2. Do upcoming events appear on FORUMHOME?
KW802
11-22-2005, 04:36 PM
James, have a screen shot or a demo link handy?
Before I recreate the wheel and convert my old version over to vb 3.5/CMPS 2.x you might be able to save me some time. :D
James Goddard
11-22-2005, 04:39 PM
James, have a screen shot or a demo link handy?
Before I recreate the wheel and convert my old version over to vb 3.5/CMPS 2.x you might be able to save me some time. :D
Yea, I did with the old version but right now my forum doesn't have anything but Thanksgiving in the list ;).
I think I still have a screen shot with actual events at home so I plan to put it up when I get there.
The MidwestDive link will allow you to see it on my forum if you don't want to wait.
phoenixdown
11-22-2005, 05:00 PM
Perfect timing if I may say so, I just upgraded to 3.5 and was looking for this. :)
phoenixdown
11-23-2005, 12:01 AM
I seem to be running into a problem where if I have the module activated, and I have an event to display, my index wont load at all. Any ideas on what this might be?
James Goddard
11-23-2005, 12:13 AM
I seem to be running into a problem where if I have the module activated, and I have an event to display, my index wont load at all. Any ideas on what this might be?
Not really. Even when this was a beta module I never ran into that. Please PM me with your forum information and I'll take a peek.
Otherwise:
1. What do you mean by "my index won't load at all"? Do you get a white screen? If you right click it and "view source" what do you see? Just a header/empty body or code with some sort of error?
2. How are you adding the module? Are you using the module system?
3. If you used the module system, you should have a file in /forums/modules/upcomingevents.php. At the top of that file there are 2 flags:
$debug = 0;
$secure = 1;
First try turning secure to 0 and see if that changes anything. If not try setting debug to 1 and see what you get. If you set debug to 1 you should get a module with a ton of "extra" information.
4. Make sure you are running VB 3.5 or 3.5.1 with CMPS 2.0.
phoenixdown
11-23-2005, 01:56 AM
Here, its not really a live site so I will leave it up so you can see the "error" yourself.
www.nycpagans.com
I mean it wont load at all, like its a dns type issue except that the problem goes away if I turn off the module.
I downloaded the module.
It ended like this:
// memory saving
unset($events, $eventstore);
}
I had to add a ?> at the end. It looks like that was missed somehow. Tried it again, no luck. I also tried editing both of those settings without any further luck.
I tried uploading the module twice by using the module upload feature in cmps. I am running 2.0 and vb 3.5.1.
I also re-uploaded every file to the server. I am going to do a beyond compare of the server files vs the server just to double check as I had a problem once before with that.
edit: the files all look intact after comparing the server set to the local copy. hmmm... *breaks out a blowtorch*
dstephan
11-23-2005, 02:36 AM
Oh my god! I love hacks like this! Upload it and there it is, no code editing, no manipulation at all!
James - I have some projects if you're looking for some pocket money!
Ramses
11-23-2005, 04:00 AM
I installed, it's in the acp but no visible module on my site?
vb 3.5 + cmps 2, the upcomingsevent.php and adv_portal_events are there,
Module Parent = no, Clean File Output = no, Use Module Shell Template = yes
turning secure to 0 = nothing happen
Debug on:
Array ( [portal_ue_showevents] => 14 [portal_ue_showholidays] => 1 [portal_ue_showeventtype] => date )
Using VB's event cache
Processing Event:
31-24-2005
Permissions OK
Finished Processing Displaying events:
Array ( )
Thanks
James Goddard
11-23-2005, 09:53 AM
I mean it wont load at all, like its a dns type issue except that the problem goes away if I turn off the module.
Wierd. You're web server is not responding to the request. Can you check the servers error log, it should give a clue as to why...
James Goddard
11-23-2005, 10:00 AM
Array ( [portal_ue_showevents] => 14 [portal_ue_showholidays] => 1 [portal_ue_showeventtype] => date )
Using VB's event cache
Processing Event:
31-24-2005
Permissions OK
Finished Processing Displaying events:
Array ( )
You don't have any events to show. The block doesn't show up unless there are events. Check your FORUMHOME, do you see upcoming events there?
phoenixdown
11-23-2005, 11:50 AM
I turned off the module on the index page and activated it here:
http://www.nycpagans.com/index?page=events
you'll see that the index now shows up but the events page will not.
My error log doesn't show much.
[Wed Nov 23 08:03:23 2005] [error] [client 166.46.3.139] File does not exist: /home/nycpagans/domains/nycpagans.com/public_html/favicon.ico
[Wed Nov 23 08:03:23 2005] [error] [client 166.46.3.139] File does not exist: /home/nycpagans/domains/nycpagans.com/public_html/404.shtml
[Wed Nov 23 08:04:51 2005] [error] [client 166.46.3.139] File does not exist: /home/nycpagans/domains/nycpagans.com/public_html/greenfairy/gradients/thead.gif
[Wed Nov 23 08:04:51 2005] [error] [client 166.46.3.139] File does not exist: /home/nycpagans/domains/nycpagans.com/public_html/404.shtml
[Wed Nov 23 08:05:02 2005] [error] [client 166.46.3.139] File does not exist: /home/nycpagans/domains/nycpagans.com/public_html/greenfairy/gradients/thead.gif
[Wed Nov 23 08:05:02 2005] [error] [client 166.46.3.139] File does not exist: /home/nycpagans/domains/nycpagans.com/public_html/404.shtml
[Wed Nov 23 08:05:28 2005] [error] [client 166.46.3.139] File does not exist: /home/nycpagans/domains/nycpagans.com/public_html/greenfairy/gradients/thead.gif
[Wed Nov 23 08:05:28 2005] [error] [client 166.46.3.139] File does not exist: /home/nycpagans/domains/nycpagans.com/public_html/404.shtml
[Wed Nov 23 08:05:38 2005] [error] [client 166.46.3.139] File does not exist: /home/nycpagans/domains/nycpagans.com/public_html/favicon.ico
[Wed Nov 23 08:05:38 2005] [error] [client 166.46.3.139] File does not exist: /home/nycpagans/domains/nycpagans.com/public_html/404.shtml
very wierd!
ARchxAngel
11-23-2005, 01:00 PM
Is there a link, or did I just not read the posts correctly?
Angel
macagent
11-23-2005, 03:49 PM
Yes, where is it? I see no links to download it?:confused:
James Goddard
11-23-2005, 04:57 PM
Funny, it was there earlier. It's back now.
macagent
11-23-2005, 08:44 PM
I am getting the same error.
Activate the module on my home page and then that page refuses to load. Seems to be something header-related since my browser thinks it is a netwrok error.
Turn the module off and the page loads fine.
No errors in server log.
Very strange.
James Goddard
11-23-2005, 09:32 PM
change
require_once(DIR . '/includes/functions_calendar.php');
to
require_once('includes/functions_calendar.php');
ARchxAngel
11-23-2005, 11:43 PM
Excellent. Exactly what I was looking for and works like a dream!
I am looking at the programming, to see if there is a way to edit the output for the display of the date and or the time... but otherwise... fantastic!
Thanks once again, James!!
Angel
s1opp
11-24-2005, 04:40 AM
I'd like to see this module on my site, but like the others here it won't display.
I have CMPS v2.0 vBv3.5.
FORUMHOME shows the events I've added in the netxt few days.
The module is enabled, I get errors. Whole page fails.
Made the PHP modification above, but still no joy.
Any help would be gratefully received.
Ramses
11-24-2005, 11:34 AM
You don't have any events to show. The block doesn't show up unless there are events. Check your FORUMHOME, do you see upcoming events there?
The event will show if it is on the same day, but I made an entry of 14 days in the acp option "Number of days to display upcoming events?"
and the following events won't show.
Thanks for your support.
dstephan
11-24-2005, 11:16 PM
I just discovered the Holiday function. When I add a holiday it displays the date for it in the module but no title. I tried adding text under the holiday "description" but still have the same problem.
Any fix for this?
I'd also like to shrink the font for the date used, but was naving trouble finding where exactly I need to change the code.
Thanks again, I really do love this add-on!
James Goddard
11-25-2005, 09:10 AM
The event will show if it is on the same day, but I made an entry of 14 days in the acp option "Number of days to display upcoming events?"
and the following events won't show.
Thanks for your support.
Looking at your calendar I don't see any events in the next month?
James Goddard
11-25-2005, 09:11 AM
I just discovered the Holiday function. When I add a holiday it displays the date for it in the module but no title. I tried adding text under the holiday "description" but still have the same problem.
Any fix for this?
I'd also like to shrink the font for the date used, but was naving trouble finding where exactly I need to change the code.
Thanks again, I really do love this add-on!
Sorry about that. I forgot to add the note about the holiday phrases when I reuploaded this. If you're showing holidays you have to add the holidy phrasegroup to your CMPS index page:
$phrasegroups = array(
'calendar',
'holiday',
);
The original message has been updated to reflect this.
macagent
11-25-2005, 11:08 AM
I am getting the same error.
Activate the module on my home page and then that page refuses to load. Seems to be something header-related since my browser thinks it is a netwrok error.
Turn the module off and the page loads fine.
No errors in server log.
Very strange.
I am still unable to see anything. Where is this DST setting you referred to??
Ramses
11-25-2005, 12:15 PM
Looking at your calendar I don't see any events in the next month?
Yes thats right, only registered members can see events.
Volion
11-25-2005, 01:21 PM
I'd like to see this module on my site, but like the others here it won't display.
I have CMPS v2.0 vBv3.5.
FORUMHOME shows the events I've added in the netxt few days.
The module is enabled, I get errors. Whole page fails.
Made the PHP modification above, but still no joy.
Any help would be gratefully received.
same problem...
James Goddard
11-25-2005, 03:01 PM
Yes thats right, only registered members can see events.
I registered and I stll see no evens in your calendar. The module does not show up at all if there are no events to display.
Anyone with the 404 error should re-download. I uploded the fix for that this morning.
Volion
11-25-2005, 04:20 PM
ok I downloaded the latest module, it installed fine, however it does not show up at all and I do have several events, any suggestions?
ConqSoft
11-25-2005, 04:26 PM
Edited the Page and made sure this Module was checked? And checked the permissions on the Module?
lincolngirl79
11-25-2005, 05:08 PM
Love it!! Thank you, James :)
Volion
11-25-2005, 05:09 PM
I still get a 404 error when I enable this module. :(
klaush
11-25-2005, 05:21 PM
Same here.
I installed it under vb 3.50 and hat to reinstall it twice before any event was shown up.
So we did the upgrade to vb 3.5.1 and i did the same installation, but now there is no event shown.
Permissions are set correctly.
So what can we do?
Any idea?
James Goddard
11-25-2005, 05:43 PM
ok I downloaded the latest module, it installed fine, however it does not show up at all and I do have several events, any suggestions?
Do they show up on FORUMHOME?
Volion
11-25-2005, 06:14 PM
Do they show up on FORUMHOME?
Yes the events are listed on forumhome, I have checked everything, and re-installed it several times, the module kills the portal page when active with a 404.
dstephan
11-25-2005, 06:48 PM
Thanks for the Holiday fix - works great now!
James Goddard
11-26-2005, 06:28 PM
Yes the events are listed on forumhome, I have checked everything, and re-installed it several times, the module kills the portal page when active with a 404.
Try downloading the new version.
klaush
11-26-2005, 06:54 PM
Try downloading the new version.
Hello James,
i got this sript working til the forum went to a new server.
I reinstalled and nothing happens at all, no box, no events....
I remember the discussions before you deleted the old thread completely, so this would be helpful, but i think there is no chance.
So what i can remember is the fact that i had to do some settings in the forumhome and choose the "select by date" option?
Argglll, any help appreciated!:-)
James Goddard
11-27-2005, 12:59 AM
Hello James,
i got this sript working til the forum went to a new server.
I reinstalled and nothing happens at all, no box, no events....
I remember the discussions before you deleted the old thread completely, so this would be helpful, but i think there is no chance.
So what i can remember is the fact that i had to do some settings in the forumhome and choose the "select by date" option?
Argglll, any help appreciated!:-)
You know, if I have no site to look at it's hard to tell if it's a real issue or not. Do upcoming events show on your FORUMHOME? Do you have the module enabled?
pennylessz28
11-27-2005, 01:59 AM
James, just curious if there was a way I could asign this so that certain usergroups could add events with out having to be in my UserCP.
klaush
11-27-2005, 04:49 AM
You know, if I have no site to look at it's hard to tell if it's a real issue or not. Do upcoming events show on your FORUMHOME? Do you have the module enabled?
James, you had write this post, so it is working after reinstalling the module like a charm.
*pruuust*
Thanks a lot!:-)
Just one question left. How can i reduce the font size?
Greetings
Klaus
klaush
11-27-2005, 05:54 AM
Arrglll, i was a bit to early.
After a little time i got the error 404 and it blew up my site. Did a reinstall and now it is still not shown anything at all!
So here is the forum: www.nikon-fotografie.de
It ist still installed...
Thanks
Klaus
AndyA
11-27-2005, 09:02 AM
Yeehah this works at last ! Thanks a lot for sorting this module . . . great job. ;)
www.throttlejockey.co.uk
tjordan
11-27-2005, 11:47 PM
I'm having the issue of the module does not display when I have upcoming events in my calendar and also it throws my portal page off when is active
Abrel_Knezquawr
11-29-2005, 09:49 PM
Hello, I got sorted the few problems i had, i´m just still figuring out how to make a more appealing template for it.
Thanks alot for this addon. :)
s1opp
11-30-2005, 07:06 AM
Yay!!!! :D
Got it working. I had to manually delete everything and re-upload it.
Being a complete 'novice' this was probably obvious to others!!
But it now does what it should do and I'm chuffed with it.
Thanks for the help, much appreciated.
I've just got one thing to figure out. When I have the module enabled, in the right column, even if there's nothing to display, it seems to stretch the width of the column slightly - so it doesn't match the left hand side.
I thought I'd move it to the left and see if it did the same, but when I do that I get the "Page cannot be displayed" error. Very odd. Move it back to the right and it's ok.
macagent
12-02-2005, 07:11 AM
Anyone with the 404 error should re-download. I uploded the fix for that this morning.
Installed the new version and nothing has changed. It should be noted that I am not getting a 404 error from the server. I am not getting a response at all. I feel it has to do with the header (should be 200, 404, 403, etc...) being sent back to the server?
My browsers just show a network failure.
klaush
12-02-2005, 09:03 AM
Installed the new version and nothing has changed. It should be noted that I am not getting a 404 error from the server. I am not getting a response at all. I feel it has to do with the header (should be 200, 404, 403, etc...) being sent back to the server?
My browsers just show a network failure.
Same here!
Sorry, is it possible to do the install of this module not within using the module but generating the php-script the templates?
I would donate any solution!
Greetings
Klaus
Bellinis
12-02-2005, 03:45 PM
Not working for me either :(
I've run trough every possible solution in this post.....
Isn't there some other way to add this mod?
Ramses
12-02-2005, 06:14 PM
For me it's working now if I choose in the acp under vbulletin settings "how many days want to have to show for upcoming events". It may be not in the same words because I have german language settings.
klaush
12-03-2005, 07:04 AM
For me it's working now if I choose in the acp under vbulletin settings "how many days want to have to show for upcoming events". It may be not in the same words because I have german language settings.
Welche Module-Version nutzt Du?
Which module-version did you install?
Thanks....
Greetings
Klaus
-----
www.nikon-fotografie.de
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.