Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
March 21, 2010, 06:49:12 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Wollen Sie dem Website Baker Team beitreten?
Nähere Informationen finden Sie unter
hier
und auf unserer
neuen Webseite
.
110567
Posts in
15967
Topics by
9310
Members
Latest Member:
stevenris10
WebsiteBaker Community Forum
English
Modules
(Moderators:
Argos
,
BerndJM
)
evcal - A Simple Events Calendar
Pages:
[
1
]
2
Author
Topic: evcal - A Simple Events Calendar (Read 11547 times)
Fratm
Offline
Posts: 100
evcal - A Simple Events Calendar
«
on:
March 21, 2006, 10:00:01 PM »
I looked at the 2 events calendars that are mentioned in the sticky up top, and the first one just did not support features I wanted, and the second seems to be not released yet, so I wrote my own.
This is my first module, so please let me know what you think, and if there are any bugs etc. in it.
The Module can be downloaded at :
http://steve.adnd.com/evcal.zip
You can view it working at :
http://steve.adnd.com
(click on the Event's Calendar link)
This calendar does NOT allow the public to add entries, only the page admin.
The calendar is controlled by a stylesheet that is included in the zip file called EvCal.css, so if you need to change any colors or anything just edit that file.
This has been tested with 2.6.1 and 2.6.2
-Fratm
«
Last Edit: March 21, 2006, 10:04:12 PM by Fratm
»
Logged
robmock
Offline
Posts: 31
Re: evcal - A Simple Events Calendar
«
Reply #1 on:
March 21, 2006, 10:30:59 PM »
How about a 'readme' file to guide me through installation? (I need my hand held)
It has a nice and clean look, so I'd like to try it.
Do you administer it from the admin section of WB (does it show up as an icon on the main admin page)?
looking forward to giving it a try,
rob
Logged
Fratm
Offline
Posts: 100
Re: evcal - A Simple Events Calendar
«
Reply #2 on:
March 21, 2006, 11:09:25 PM »
Quote from: robmock on March 21, 2006, 10:30:59 PM
How about a 'readme' file to guide me through installation? (I need my hand held)
It has a nice and clean look, so I'd like to try it.
Do you administer it from the admin section of WB (does it show up as an icon on the main admin page)?
looking forward to giving it a try,
rob
It's like a page module, when you add a page, change the type to Events Calendar, and then you would edit it like you would any page, just click on its title in your page list, and your options will come up.
It's pretty straight forward.
As for installing it, go to addons, modules and use the install module feature to install it. WB should do all the behind the scense magic for you. The only file you may need to edit by hand is the EvCal.css file, which is the style sheet for the calendar.
The default is a white background with blue month text, on my demo page, I changed that in the style sheet to be black with gold text.
If you have any questions/comments post them here, and I will answer them.
-Fratm
Logged
robmock
Offline
Posts: 31
Re: evcal - A Simple Events Calendar
«
Reply #3 on:
March 22, 2006, 12:51:16 AM »
Wow! That's pretty slick. Never had a clue how easy it was to install a module.
Thanks for making it.
Up in the top left, you have that icon where you can toggle between week and month views... I think I'd prefer to see just the text: 'week view' and 'month view" instead of the icons. Personally I like it the way it is, but I'm running lots of installs for the teachers in my school and I can forsee them not having a clue what the icon is for, or not even seeing it at all.
Which file would I look in to make that change? I'm no coder, but I think I can handle this one
Logged
Fratm
Offline
Posts: 100
Re: evcal - A Simple Events Calendar
«
Reply #4 on:
March 22, 2006, 01:12:08 AM »
Quote from: robmock on March 22, 2006, 12:51:16 AM
Wow! That's pretty slick. Never had a clue how easy it was to install a module.
Thanks for making it.
Up in the top left, you have that icon where you can toggle between week and month views... I think I'd prefer to see just the text: 'week view' and 'month view" instead of the icons. Personally I like it the way it is, but I'm running lots of installs for the teachers in my school and I can forsee them not having a clue what the icon is for, or not even seeing it at all.
Which file would I look in to make that change? I'm no coder, but I think I can handle this one
Actually, its a list view vs calendar view, not month/week.. Seems a little odd, but the people I wrote it for wanted to be able to chose between those views.
Anyways, to change it, the file is called view.php just look for gnome-month.png, and you should be able to change it to any text that you like.
-Fratm
Logged
robmock
Offline
Posts: 31
Re: evcal - A Simple Events Calendar
«
Reply #5 on:
March 23, 2006, 02:18:35 PM »
I installed evcal in another teacher's separate WB installation, but he and I are both on the same database (different table prefixes).
The installation ran successfully and he could make calendars and the database was accepting his entries -- I used phpmyadmin to make sure his entries were there.
However
, when you surf to his calendar, you get a generic "Internal Server Error".
Any ideas? Mine still works fine.
In the meantime, I will do another install of evcal on another WB and see what happens...
Ok, I put another evcal on another person's install and
it worked fine
. Yikes! What could I try now? I think first I'll uninstall the module and then re-install. Will post results here...
Ok, no luck with that. Hmmm.....
«
Last Edit: March 23, 2006, 04:02:09 PM by robmock
»
Logged
Fratm
Offline
Posts: 100
Re: evcal - A Simple Events Calendar
«
Reply #6 on:
March 23, 2006, 05:46:23 PM »
Quote from: robmock on March 23, 2006, 02:18:35 PM
I installed evcal in another teacher's separate WB installation, but he and I are both on the same database (different table prefixes).
The installation ran successfully and he could make calendars and the database was accepting his entries -- I used phpmyadmin to make sure his entries were there.
However
, when you surf to his calendar, you get a generic "Internal Server Error".
Any ideas? Mine still works fine.
In the meantime, I will do another install of evcal on another WB and see what happens...
Ok, I put another evcal on another person's install and
it worked fine
. Yikes! What could I try now? I think first I'll uninstall the module and then re-install. Will post results here...
Ok, no luck with that. Hmmm.....
I'm not sure what wouls cause that, do you have access to the web servers error logs? It should give you a better idea of what is happening. Meanwhile, I have installed this in situations like the above mentioned, and it worked, but I will look into it some more.
-Fratm
Logged
robmock
Offline
Posts: 31
Re: evcal - A Simple Events Calendar
«
Reply #7 on:
March 23, 2006, 07:35:08 PM »
Excellent. I feel like I'm learning something (or about to!)
I looked at the error logs and noticed two errors with their roots in this person's directories:
One
of them is a "file is writeable by others" error, which is probably my fault because I had a bear of a time upgrading this guy from 2.5.2 to 2.6.2 using the old buggy upgrade script.
The other
is a "Premature end of script headers" error.
Should I try to reproduce these errors and keep track of the exact time so I can know which action caused them?
Logged
Fratm
Offline
Posts: 100
Re: evcal - A Simple Events Calendar
«
Reply #8 on:
March 24, 2006, 12:53:47 AM »
Quote from: robmock on March 23, 2006, 07:35:08 PM
Excellent. I feel like I'm learning something (or about to!)
I looked at the error logs and noticed two errors with their roots in this person's directories:
One
of them is a "file is writeable by others" error, which is probably my fault because I had a bear of a time upgrading this guy from 2.5.2 to 2.6.2 using the old buggy upgrade script.
The other
is a "Premature end of script headers" error.
Should I try to reproduce these errors and keep track of the exact time so I can know which action caused them?
Yeah, that would be helpful.. I'll look around in the script and see if I can find anything obvious..
-Fratm
Logged
robmock
Offline
Posts: 31
Re: evcal - A Simple Events Calendar
«
Reply #9 on:
March 24, 2006, 02:17:48 PM »
I uninstalled evcal, then reinstalled it and made a calendar and everything went fine.
The error only happens after the installation is done and someone actually surfs to the calendar.
The error I see on the browser is "The server encountered an internal error or misconfiguration and was unable to complete your request"
and the error in the server's logs is "error: file is writable by others:"
I went into this install's pages directory and CHMOD'd the calendar I made to 644 and
now it works!
All of the other pages in that directory were already set to 644.
Each new calendar that is made in this guy's WB is default set to 666 and doesn't work.
«
Last Edit: March 24, 2006, 05:06:55 PM by robmock
»
Logged
Fratm
Offline
Posts: 100
Re: evcal - A Simple Events Calendar
«
Reply #10 on:
March 25, 2006, 05:51:22 AM »
Quote from: robmock on March 24, 2006, 02:17:48 PM
I went into this install's pages directory and CHMOD'd the calendar I made to 644 and
now it works!
All of the other pages in that directory were already set to 644.
Each new calendar that is made in this guy's WB is default set to 666 and doesn't work.
Interesting.. The server must have a weirf umask setup to make things default to 666.. Or.. Maybe in your wb config you have world write set to on, which is a bad thing.. Check your configs, and if there is an option to make things world writable (I forget the wording, but I've seen it) make sure that is not checked.
-Steve
Logged
robmock
Offline
Posts: 31
Re: evcal - A Simple Events Calendar
«
Reply #11 on:
March 25, 2006, 04:43:58 PM »
Problem solved. Thanks!
In the advanced settings I unchecked the "others" and "world" write and execute boxes and that did the trick. I don't remember checking those boxes in the first place, but I must have done so at some point.
So far I have shown this module to a couple of the teachers in my building and they love it. It is definitely going to get used here.
Just curious, any plans to develop it further, or do you want to keep it the way it is? Are you tracking how many evcal downloads you've had?
«
Last Edit: March 25, 2006, 04:48:47 PM by robmock
»
Logged
Fratm
Offline
Posts: 100
Re: evcal - A Simple Events Calendar
«
Reply #12 on:
March 27, 2006, 10:59:25 PM »
Quote from: robmock on March 25, 2006, 04:43:58 PM
Problem solved. Thanks!
In the advanced settings I unchecked the "others" and "world" write and execute boxes and that did the trick. I don't remember checking those boxes in the first place, but I must have done so at some point.
So far I have shown this module to a couple of the teachers in my building and they love it. It is definitely going to get used here.
Just curious, any plans to develop it further, or do you want to keep it the way it is? Are you tracking how many evcal downloads you've had?
Actually, we have something in common, I wrote this for departments at a school (Not faculty, but close). I work at a community college in California.
Anyways, Yes, I am going to be adding more features to it soon, some requests were that there could be an easy way to add repeating events, and they would like it to be simular to how Outlook does it (Schedule an even to be every other day, ever other week etc..) So I am *thinking* on how to do this, they also mentioned that it would be nice to have a master calendar that would show all evens across all departments.. This I am not sure I want to do, but I will be looking into it.
So, watch for an update or two in the near future.
-Steve
Logged
mangione
Offline
Posts: 5
Re: evcal - A Simple Events Calendar
«
Reply #13 on:
April 07, 2006, 03:45:31 PM »
Hi, i created a codesnipplet for an evcal Reader. You can display the next 3 events everywhere on your page. When an event is over, it disappears automatically.
Mangione
Code:
<?php $query
=
"select concat(day,'.',month,'.',year) as datum, small_desc,big_desc from "
.
TABLE_PREFIX
.
"mod_evcal
where cast(concat(year,'-',month,'-',day) as datetime) >= cast(concat(substr(now(),1,10),' 00:00:00') as datetime) ORDER BY cast(concat(year,'-',month,'-',day) as datetime) ASC LIMIT 0, 3;"
;
global
$database
;
$result
=
$database
->
query
(
$query
);
$total
=
$result
->
numRows
();
// how many items are there?
$cnt
=
1
;
echo
'<table border="0">'
;
while (
$cnt
<=
$total
){
$data
=
$result
->
fetchRow
() ;
echo
'<tr><td>'
.
$data
[
'datum'
].
'</td><td>'
.
$data
[
'small_desc'
].
'</td><td>'
.
$data
[
'big_desc'
].
'</td></tr>'
;
$cnt
++;
}
echo
'</table>'
;
echo
'<br>'
;
?>
Logged
robmock
Offline
Posts: 31
Re: evcal - A Simple Events Calendar
«
Reply #14 on:
April 08, 2006, 12:58:16 AM »
I tried and failed to use this snippet. Here's what I tried:
1) added a new "code" section on the page where my calendar is and pasted the snippet code there
2) made a new WYSIWYG page and put the code in while in html mode
3) made a new page with only a "code" section and pasted it there
In each case I get this error:
Quote
Fatal error: Call to a member function on a non-object in /home/myfolder/public_html/wb/modules/code/view.php(30) : eval()'d code on line 7
Am I missing something?
*I had had earlier issues with permissions, but I checked and all the pages I mention above are set to 644 so I "think" that's fine
«
Last Edit: April 08, 2006, 02:32:42 AM by robmock
»
Logged
mangione
Offline
Posts: 5
Re: evcal - A Simple Events Calendar
«
Reply #15 on:
April 24, 2006, 03:07:55 PM »
Hi, if you put it in a code section you can skip the <php...>. use only the following code. be sure to use the evcal module. Mangione
Code:
$query = "select concat(day,'.',month,'.',year) as datum, small_desc,big_desc from ".TABLE_PREFIX."mod_evcal
where cast(concat(year,'-',month,'-',day) as datetime) >= cast(concat(substr(now(),1,10),' 00:00:00') as datetime) ORDER BY cast(concat(year,'-',month,'-',day) as datetime) ASC LIMIT 0, 3;";
global $database;
$result = $database->query($query);
$total = $result->numRows(); // how many items are there?
$cnt = 1;
echo '<table border="1">';
while ($cnt<=$total){
$data = $result->fetchRow() ;
echo '<tr><td>'.$data['datum'].'</td<td>'.$data['small_desc'].'</td<td>'.$data['big_desc'].'</td></tr>';
$cnt++;
}
echo '</table>';
echo '<br>';
Logged
robmock
Offline
Posts: 31
Re: evcal - A Simple Events Calendar
«
Reply #16 on:
April 24, 2006, 04:01:50 PM »
Perfect, thanks!
Logged
pegcjs
Offline
Posts: 9
Re: evcal - A Simple Events Calendar
«
Reply #17 on:
March 26, 2007, 05:08:21 PM »
Anyone out there know where I can get this evcal thing - the links above don't seem to go anywhere useful anymore
best
Chris
Logged
Fratm
Offline
Posts: 100
Re: evcal - A Simple Events Calendar
«
Reply #18 on:
March 26, 2007, 06:09:56 PM »
Quote from: pegcjs on March 26, 2007, 05:08:21 PM
Anyone out there know where I can get this evcal thing - the links above don't seem to go anywhere useful anymore
best
Chris
Hi Chris, yeah I re-did my site some time ago, but I keep a wb install up and running for testing, you can get my calendar program there.
http://wbtest.adnd.com/pages/baker-stuff.php
-Steve
Logged
Panther
Offline
Posts: 168
Re: evcal - A Simple Events Calendar
«
Reply #19 on:
May 23, 2007, 09:50:17 PM »
Quote from: mangione on April 24, 2006, 03:07:55 PM
Hi, if you put it in a code section you can skip the <php...>. use only the following code. be sure to use the evcal module. Mangione
This snippet have an error, the > is missing to close the TD tags.
Here's a copy I tweeked a bit for formatting.
Code:
$query = "select concat(day,'.',month,'.',year) as datum, small_desc,big_desc from ".TABLE_PREFIX."mod_evcal
where cast(concat(year,'-',month,'-',day) as datetime) >= cast(concat(substr(now(),1,10),' 00:00:00') as datetime) ORDER BY cast(concat(year,'-',month,'-',day) as datetime) ASC LIMIT 0, 3;";
global $database;
$result = $database->query($query);
$total = $result->numRows(); // how many items are there?
$cnt = 1;
echo '<table cellspacing=0 cellpadding=0 border=0>';
while ($cnt<=$total){
$data = $result->fetchRow() ;
echo '<tr><td>'.$data['datum'].' - </td>';
echo '<td>'.$data['small_desc'].' - </td>';
echo '<td>'.$data['big_desc'].'</td></tr>';
$cnt++;
}
echo '</table>';
echo '<br>';
Also, an FYI, this only displays events in the current year. If you are viewing the calendar after your last event in December, it will not show anything coming up in January.
Logged
tomhung
Offline
Posts: 352
Re: evcal - A Simple Events Calendar
«
Reply #20 on:
November 27, 2007, 04:04:28 PM »
post code to forum....
Logged
jbs
Offline
Posts: 17
Re: evcal - A Simple Events Calendar
«
Reply #21 on:
February 03, 2008, 09:13:45 AM »
I'm having a sorting issue with this calendar that I can't seem to find. I've been going through the code and all seems fine. However, the events following the calendar are appearing in a seemingly random order. They aren't in the order I entered them and they aren't in ascending or descending order by date.
Other than that, this calendar is meeting our needs well.
Anyone else have this problem or know a resolution to this?
Logged
fsuk
Offline
Posts: 109
Re: evcal - A Simple Events Calendar
«
Reply #22 on:
June 11, 2008, 02:22:19 PM »
The links are broken
Logged
You say deviant like its a bad thing...
aggiejag
Offline
Posts: 9
Re: evcal - A Simple Events Calendar
«
Reply #23 on:
July 09, 2008, 05:58:10 PM »
Quote from: fsuk on June 11, 2008, 02:22:19 PM
The links are broken
I've hosted the module again... here's the link:
http://www.marineofficerprograms.com/download/evcal0.02.zip
The code hasn't been touched in years, I think. If anyone decides to update it, I'd be happy to host the updated version as well.
Cheers,
Russell
«
Last Edit: July 09, 2008, 06:00:38 PM by aggiejag
»
Logged
Lotus
Offline
Posts: 176
Re: evcal - A Simple Events Calendar
«
Reply #24 on:
August 21, 2008, 11:14:48 AM »
As russel said
"The code hasn't been touched in years"
. Installed it in WB 2.7 but couldnt use it because admin was messed up. The default calendar showed up great on the public page though.
Logged
Pages:
[
1
]
2
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
=> Security Announcements
=> Documentation
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> Help & Support
=> Modules
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
=> jQuery
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
=> Archive (posts up to 2007)
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> Hilfe/Support
=> Module & Snippets
=> Templates & Design
=> Tutorials
=> jQuery
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
Loading...