Welcome, Guest. Please login or register.
Did you miss your activation email?
February 13, 2012, 04:09:58 AM

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.
149700 Posts in 21103 Topics by 7538 Members
Latest Member: ionline
* Home Help Search Login Register
Pages: 1 [2]   Go Down
Print
Author Topic: Ztarcal  (Read 15034 times)
ztar

Offline Offline

Posts: 41


WWW
« Reply #25 on: August 02, 2006, 03:57:59 PM »



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.



This may fix the problem.

Replace class.database.php with the attached file

ztar
Logged
Ditto

Offline Offline

Posts: 21


« Reply #26 on: August 02, 2006, 04:11:43 PM »

I replaced the old class.calendar.php file with the one included in the zip and now I do see the calendar on the screen.  Thank you very much for your help.

 smiley

 
Logged
GsT

Offline Offline

Posts: 3


« Reply #27 on: August 02, 2006, 10:50:54 PM »

Hi everybody!

I like the Ztarcal very much, but is there a easy way to get rid of the schedule thing, and just have a description (textbox) there instead. It would be like a mixed version of the Event Calendar and the Ztarcal.  wink

In other words, when you click on a date you get a descripton rather than a hour-schedule.

It would also be really cool if those dates that are filled with info would be colored differently.

I´m no PHP-coder, yet  grin, otherwise I would modify it myself but I just like to know if this is possibly. Thank you all in advance!

/ Frank
Logged
ztar

Offline Offline

Posts: 41


WWW
« Reply #28 on: August 02, 2006, 11:46:25 PM »


I like the Ztarcal very much, but is there a easy way to get rid of the schedule thing, and just have a description (textbox) there instead. It would be like a mixed version of the Event Calendar and the Ztarcal.  wink


I´m no PHP-coder, yet  grin, otherwise I would modify it myself but I just like to know if this is possibly. Thank you all in advance!

/ Frank

Anything is possible...

However, my time is limited, so it may take me a while to get around to looking at this..

Ztar
« Last Edit: August 02, 2006, 11:47:59 PM by ztar » Logged
marccouture

Offline Offline

Posts: 216



« Reply #29 on: August 03, 2006, 05:46:05 PM »

I replaced the old class.calendar.php file with the one included in the zip and now I do see the calendar on the screen.  Thank you very much for your help.

 smiley

 

I'll echo that, very nice indeed!

Eventually, it would be nice for users to submit events, but that can wait.  Thanks again!
Logged

Marc C.
ztar

Offline Offline

Posts: 41


WWW
« Reply #30 on: August 03, 2006, 08:45:32 PM »

I replaced the old class.calendar.php file with the one included in the zip and now I do see the calendar on the screen.  Thank you very much for your help.

 smiley

 

I'll echo that, very nice indeed!

Eventually, it would be nice for users to submit events, but that can wait.  Thanks again!

A user who has permission can add events by logging on.

Ztar
Logged
marccouture

Offline Offline

Posts: 216



« Reply #31 on: August 04, 2006, 02:10:19 PM »

I replaced the old class.calendar.php file with the one included in the zip and now I do see the calendar on the screen.  Thank you very much for your help.

 smiley

 

I'll echo that, very nice indeed!

Eventually, it would be nice for users to submit events, but that can wait.  Thanks again!

A user who has permission can add events by logging on.

Ztar

Where would one do that exactly?  All I can do when logged on as site admin is change default display settings.  There are no input fields that I can see, at least on the admin side of things (see attached screenshot #1).  On the public side, I can click on a day, and all I see is in the screenshots #2 and #3 (attached).
Logged

Marc C.
ztar

Offline Offline

Posts: 41


WWW
« Reply #32 on: August 04, 2006, 02:38:55 PM »


Where would one do that exactly?  All I can do when logged on as site admin is change default display settings.  There are no input fields that I can see, at least on the admin side of things (see attached screenshot #1).  On the public side, I can click on a day, and all I see is in the screenshots #2 and #3 (attached).

Create a group called zcal_editors
Add a user to the group
Login to the front end as the user.
You should now be able to add events.

You can login to the demo site as

demo
pw: demo

to see it working...

Ztar
Logged
marccouture

Offline Offline

Posts: 216



« Reply #33 on: August 04, 2006, 03:18:22 PM »

Thanks for the quick reply.  However, it doesn't work.  I created a new group and added a new user as described above, I still don't see any input possibilities on the public side.
Logged

Marc C.
JesseG

Offline Offline

Posts: 5


« Reply #34 on: August 24, 2006, 03:51:34 PM »

Thanks for the quick reply.  However, it doesn't work.  I created a new group and added a new user as described above, I still don't see any input possibilities on the public side.

I found the problem. The database field called "times_arry" in the mod_cal table is created as a varchar(255), which is too small. Since it doesn't hold all the necessary available times config data, the display code doesn't loop through all the time slots properly. I changed the field manually to a "text" field type and it worked, provided I first select the start and end times in the admin interface after changing the field type.
Logged
JesseG

Offline Offline

Posts: 5


« Reply #35 on: August 24, 2006, 04:12:47 PM »

Also, there are a few SQL syntax errors in install.php which prevent one of the needed tables from being created.

Where it currently reads:

Code:
$mod_events = "CREATE TABLE `".TABLE_PREFIX."mod_cal_events` (
`event_id` INT(11) NOT NULL auto_increment,
`edate` DATETIME DEFAULT '0000-00-00 00:00:00',
`duration TIME DEFAULT '00:00:00',
' edescription` VARCHAR(255) NOT NULL,
PRIMARY KEY ( `event_id` );";

It should instead read:

Code:
$mod_events = "CREATE TABLE `".TABLE_PREFIX."mod_cal_events` (
`event_id` INT(11) NOT NULL auto_increment,
`edate` DATETIME DEFAULT '0000-00-00 00:00:00',
`duration` TIME DEFAULT '00:00:00',
`edescription` VARCHAR(255) NOT NULL,
PRIMARY KEY ( `event_id` ));";
Logged
beXed

Offline Offline

Posts: 3


« Reply #36 on: November 15, 2006, 08:51:29 PM »

Hello,
I've got some problems.
I download the Calender and the new class.calendar.

But the Calnder dosn't work.
When I choose a day there is this Error:

starton odd
endOnEven
Warning: mktime() expects parameter 1 to be long, string given in C:\Programme\xampp\htdocs\cns\wb\modules\calendar\class.calendar.php on line 601

Anybody know how to fix this problem?

Logged
kida

Offline Offline

Posts: 24


« Reply #37 on: August 30, 2007, 01:36:34 AM »

Hey

What is the status of this module?

It looked promising but I can't find anywhere to download it.

Cheers

darren.
Logged
Turskis

Offline Offline

Posts: 50


« Reply #38 on: April 18, 2008, 09:22:25 PM »

I'm looking for calendar, which can be used so that registered users can submit events. After searching this forum I found this module, but it is not anymore supported. Is anything happening with Ztarcal? Or is there any other calendar supporting that feature?
Logged
marathoner

Offline Offline

Posts: 495


« Reply #39 on: April 19, 2008, 12:44:33 AM »

I would guess that any calendar system will allow registered users to add events assuming that you've given the user or group permissions to do so.
Logged
Turskis

Offline Offline

Posts: 50


« Reply #40 on: April 19, 2008, 01:34:46 PM »

Yeah, thats probably true, but I mean from the frontend of the website. Without admin panel.
Logged
zeroram

Offline Offline

Posts: 16


« Reply #41 on: February 04, 2009, 09:37:52 AM »

the only good prospect for a decent calendar it got abandon   undecided
Logged
Pages: 1 [2]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!