Welcome, Guest. Please login or register.
March 20, 2010, 10:53:53 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
110556 Posts in 15966 Topics by 9310 Members
Latest Member: stevenris10
* Home Help Search Login Register
+  WebsiteBaker Community Forum
|-+  English
| |-+  Modules (Moderators: Argos, BerndJM)
| | |-+  Ztarcal
Pages: [1] 2 Go Down Print
Author Topic: Ztarcal  (Read 13088 times)
ztar

Offline Offline

Posts: 41


WWW
« on: December 30, 2005, 09:09:03 PM »

As its Christmas, and a holiday, I thought I would brush off Ztarcal, and bring it into the new year:

New features: No longer requires Pear
Accepts event descriptions longer than 255 characters.
WB 2.61 compatable.

Please leave feedback if you wish to beta test.

Ztar
Logged
ztar

Offline Offline

Posts: 41


WWW
« Reply #1 on: December 30, 2005, 09:14:58 PM »

As its Christmas, and a holiday, I thought I would brush off Ztarcal, and bring it into the new year:

New features: No longer requires Pear
Accepts event descriptions longer than 255 characters.
WB 2.61 compatable.

Please leave feedback if you wish to beta test.

Ztar

A url would also help..
http://www.ztar.com.au/wb/

Ztar
Logged
pcwacht
Guest
« Reply #2 on: December 30, 2005, 10:56:20 PM »

Demo looks impressive!

Just 2 quick questions comes to mind:
1 - whole year in page, could it be reduced to current mont and maybe next month? (speed building page)
2 - Could public adding events be disabled?

John
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 5561


WWW
« Reply #3 on: December 30, 2005, 11:32:47 PM »

Hi ztar,

indeed a nice mod ... I just had a quick look, does the day finish at 5:30 PM or can you set this in the module settings (like, Mo to Fr day ends 8PM, Sa & Su day ends at 5PM ... etc ...)?

cheers

Klaus
Logged

http://www.weitzel.biz
PM has been disabled
ztar

Offline Offline

Posts: 41


WWW
« Reply #4 on: December 31, 2005, 12:11:09 AM »

Demo looks impressive!

Just 2 quick questions comes to mind:
1 - whole year in page, could it be reduced to current mont and maybe next month? (speed building page)
2 - Could public adding events be disabled?

John

1. Backend configurable - Year, Month or Day
2. Yes, that is next step
Logged
ztar

Offline Offline

Posts: 41


WWW
« Reply #5 on: December 31, 2005, 12:12:02 AM »

Hi ztar,

indeed a nice mod ... I just had a quick look, does the day finish at 5:30 PM or can you set this in the module settings (like, Mo to Fr day ends 8PM, Sa & Su day ends at 5PM ... etc ...)?

cheers

Klaus

Backend configuration not complete - I am open to suggestions
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 5561


WWW
« Reply #6 on: December 31, 2005, 08:37:50 AM »

rrright ... that sounds like it:

1 - Start & Endtime of day customisable  cool

2 - maybe possible to set "beginning of the week"

3 - output options month, quarter, half and full year?

4 - what pcwacht also wrote the adding option customisable.

I think this would be great options. Do you thik it is possible to automatically import/assign bankholidays (I think this one would be a bit tricky for the diferent counties though, since you would need the import resources and make it customisable ...).

I wish you a happy and productive new year, cheers

Klaus   wink
Logged

http://www.weitzel.biz
PM has been disabled
Ditto

Offline Offline

Posts: 19


« Reply #7 on: February 09, 2006, 04:36:41 PM »

I would very much like to beta test your calendar module, if possible.  For some reason the module called Events doesn't work with my installation so I'm kind of left without anything.

Thanks in advance!
Logged
Ed

Offline Offline

Posts: 49


« Reply #8 on: March 06, 2006, 02:05:16 PM »

Hey there, this module is just what i have been looking for  grin how do i get my hands on it ?
  smiley


Thanks  grin
Logged
ztar

Offline Offline

Posts: 41


WWW
« Reply #9 on: March 06, 2006, 03:56:55 PM »

Hey there, this module is just what i have been looking for  grin how do i get my hands on it ?
  smiley


Thanks  grin

I have been busy with commercial projects that have had priority over my hobby sad

Start and endtime are now customisable for each day of the week
Start of week fixed at this stage.
Multi-level access control.

Release in about a week or so...

Ztar
Logged
pcwacht
Guest
« Reply #10 on: March 06, 2006, 07:03:53 PM »

Kewl
Logged
MrRedlich

Offline Offline

Posts: 73



« Reply #11 on: March 06, 2006, 11:41:30 PM »

Click on language german =  header is  S  M   T  W  T  F  S
correct for german is S M D M D F S  maybe better So Mo Di Mi Do Fr Sa   or Mo Di Mi Do Fr Sa So

Maybe usefull

GERMAN, ENGLISH, FRENCH, SPANISH, ITALIAN, PORTUGAL,

Sonntag  = Sunday = Dimanche = Domingo = Domenica = Domingo
Montag = Monday = lundi = Lunes = Lunedì = Segunda-feira
Dienstag = Thursday = mardi = Martes = Martedì = Terça-feira
Mittwoch = Wednesday = mercredi = Miércoles = Mercoledì = Quarta-feira
Donnerstag = Thursday = jeudi = Jueves = Giovedì = Quinta-feira
Freitag = Friday = vendredi = Viernes = Venerdì = Sexta-feira
Samstag = Saturday = samedi = Sábado = Sabato =  Sábado

     
Logged

I nur speek Deutsch
Ich only spreche German
centran

Offline Offline

Posts: 76


« Reply #12 on: March 07, 2006, 01:02:25 AM »

You basta...  huh   Is this forum family friendly?
Wish I saw this post earlier. I didn't think a nice intergrated calendar would happen anytime soon.

I just bought easyphpcalendar and this module looks like it could have done the job and I would have been able to keep everything to one admin page.
Oh well. Just do not put in hover over popup windows and I will feel that my money was well spent.

BTW, the calendar shows up differently on IE then firefox. In firefox the boxes are tiny compared to IE. I assume IE is correct; which means you somehow coded it correctly for IE and not firefox. Bravo! That is impressive because usally things show up correctly in firefox and not IE.
« Last Edit: March 07, 2006, 01:13:13 AM by centran » Logged
ztar

Offline Offline

Posts: 41


WWW
« Reply #13 on: March 08, 2006, 11:09:13 PM »

Click on language german =  header is  S  M   T  W  T  F  S
correct for german is S M D M D F S  maybe better So Mo Di Mi Do Fr Sa   or Mo Di Mi Do Fr Sa So

Maybe usefull

GERMAN, ENGLISH, FRENCH, SPANISH, ITALIAN, PORTUGAL,

Sonntag  = Sunday = Dimanche = Domingo = Domenica = Domingo
Montag = Monday = lundi = Lunes = Lunedì = Segunda-feira
Dienstag = Thursday = mardi = Martes = Martedì = Terça-feira
Mittwoch = Wednesday = mercredi = Miércoles = Mercoledì = Quarta-feira
Donnerstag = Thursday = jeudi = Jueves = Giovedì = Quinta-feira
Freitag = Friday = vendredi = Viernes = Venerdì = Sexta-feira
Samstag = Saturday = samedi = Sábado = Sabato =  Sábado

     

Currently the Day of Week display (SMTWTFS) is hard coded, as the output did not look correct when using the set language function in PHP date() function. I will re-activate.

Ztar
Logged
wwwMARKLEYcouk

Offline Offline

Posts: 287



WWW
« Reply #14 on: March 23, 2006, 09:39:05 AM »

hows this moduel coming along? nearly ready?
Logged

http://www.markley.co.uk
webhosting packages available
bockbagock

Offline Offline

Posts: 2


« Reply #15 on: July 18, 2006, 10:09:05 PM »

Status... where is the cal at for DL
Logged
marccouture

Offline Offline

Posts: 210



« Reply #16 on: July 19, 2006, 02:17:01 AM »

Wow, that is EXACTLY what I am looking for in a calendar.  I'd gladly test this out.
Logged

Marc C.
Ditto

Offline Offline

Posts: 19


« Reply #17 on: July 29, 2006, 02:32:05 AM »

Bump!  I'd be glad to beta-test as well.

smiley

 
Logged
brownj

Offline Offline

Posts: 18


« Reply #18 on: July 30, 2006, 09:04:01 PM »

Also, I!

J
Logged
ztar

Offline Offline

Posts: 41


WWW
« Reply #19 on: July 31, 2006, 12:33:53 PM »

For all that are interested, here is a zip that may or may not work.. I don't have time to do any more than upload what is running on the test site.

INSTALL AT YOUR OWN RISK.

The module will be installed as "calendar"

Unregistered users can view from front end, Registered users in the correct group and logged in can create/modify events.

Backend has config for start/finish times
Language display will depend on server OS etc..

Ztar

Logged
bockbagock

Offline Offline

Posts: 2


« Reply #20 on: July 31, 2006, 03:30:31 PM »

Thanks smiley
Logged
Ditto

Offline Offline

Posts: 19


« Reply #21 on: July 31, 2006, 09:08:54 PM »

Thank you so much!

The module installed flawlessly.  I created a page (public) using the Calendar and set a start and end time for each day.  I set it to "month" view and went to look at the page I'd just created and saved.

I get the following error:

Fatal error: Call to a member function on a non-object in /home/sitename/public_html/modules/calendar/class.calendar.php on line 255

I went to that line in class.calendar.php and this is what it says:

Code:
$numberOfEvents = $events->numRows();

The entire routine that line 255 is a part of says:

Code:
function check_events($eMonth="1", $eYear="2005"){
global $database;
if(strlen($eMonth) == 1) $eMonth = "0".$eMonth;
$sql = "SELECT * FROM `".TABLE_PREFIX."mod_cal_events` WHERE `edate` LIKE '".$eYear."-".$eMonth."%'";
$events = $database->query($sql);
$numberOfEvents = $events->numRows();
if($numberOfEvents > 0) {
while ( $v = $events->fetchRow()) {
$ddd = explode(" ",$v['edate']);
$dte = explode("-",$ddd[0]);
$tme = explode(":",$ddd[1]);
$hm = $tme[0].":".$tme[1];
$event_day[$dte[2]][$v['event_id']] = $v["edescription"];
}
}else{
$event_day = array();
}


Hope that helps locate the problem!

 grin

Logged
marccouture

Offline Offline

Posts: 210



« Reply #22 on: August 02, 2006, 03:30:41 PM »

Install works fine, but no calendar is displayed, even after I change available options (Day/Month/Year view, times).
Logged

Marc C.
ztar

Offline Offline

Posts: 41


WWW
« Reply #23 on: August 02, 2006, 04:12:24 PM »


I get the following error:

Fatal error: Call to a member function on a non-object in /home/sitename/public_html/modules/calendar/class.calendar.php on line 255

I went to that line in class.calendar.php and this is what it says:

Code:
$numberOfEvents = $events->numRows();

The entire routine that line 255 is a part of says:

Code:
function check_events($eMonth="1", $eYear="2005"){
global $database;
if(strlen($eMonth) == 1) $eMonth = "0".$eMonth;
$sql = "SELECT * FROM `".TABLE_PREFIX."mod_cal_events` WHERE `edate` LIKE '".$eYear."-".$eMonth."%'";
$events = $database->query($sql);
$numberOfEvents = $events->numRows();
if($numberOfEvents > 0) {
while ( $v = $events->fetchRow()) {
$ddd = explode(" ",$v['edate']);
$dte = explode("-",$ddd[0]);
$tme = explode(":",$ddd[1]);
$hm = $tme[0].":".$tme[1];
$event_day[$dte[2]][$v['event_id']] = $v["edescription"];
}
}else{
$event_day = array();
}


Hope that helps locate the problem!

 grin



It needs error checking on the results of the query
As I was working on a populated database, it was not failing at this point.

eg:

if(results from database) {
   populate array;
} else {
  initialize array;
}

As it is over six months since I have looked at WB code, you will need to ask someone else what the relative $database error function is.

Logged
ztar

Offline Offline

Posts: 41


WWW
« Reply #24 on: August 02, 2006, 04:15:04 PM »

Install works fine, but no calendar is displayed, even after I change available options (Day/Month/Year view, times).
If you have errors suppressed in your php.ini file, you will not see the error mentioned above.
Currently the code breaks when it checks for existing events as there are none.
(see previous post)
Logged
Pages: [1] 2 Go Up Print 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!