Welcome, Guest. Please login or register.
Did you miss your activation email?
February 12, 2012, 06:16:35 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.
149621 Posts in 21098 Topics by 7537 Members
Latest Member: lotte2
* Home Help Search Login Register
Pages: 1 2 3 [4] 5 6 ... 16   Go Down
Print
Author Topic: Bookings module - current version 2.22 (see page 13)  (Read 46978 times)
WebBird
Guest
« Reply #75 on: September 10, 2008, 05:20:56 PM »

I just finished version 1.15. Changes:

* renamed all methods in functions.php with "Bookings_" prefix
* Time offset can be set in options now (no longer hardcoded to 30 minutes)
* You can now show complete day in day view (set begin and end time to 0 in options) - thanks to maverick
* some additional code rewrite

This will still NOT work with PHP 4! (I can't test with PHP 4 in my environment.) I recommend upgrading to PHP 5.

http://www.webing.de/webbird/cgi-bin/dtrack/dtrack.cgi?rc=real&file=Bookings%20Module%20for%20websitebaker%202.70

Dutch translation still incomplete, would be nice if someone could help.  grin

Remember: German info see http://www.webing.de/webbird/index.php?n=websitebaker.Bookings
« Last Edit: September 10, 2008, 05:30:07 PM by WebBird » Logged
maverik

Offline Offline

Posts: 1541



WWW
« Reply #76 on: September 10, 2008, 06:58:59 PM »

hi

great work but know the dayview only shows "belegt" and not what happend. the calendarview tooltip shows it correct.

http://www.websitebaker.net/pages/labor/bookings.php?year=2008&month=09&day=15

greets maverik
Logged

Signatur wird geladen...
ronald32

Offline Offline

Posts: 25



WWW
« Reply #77 on: September 10, 2008, 07:24:00 PM »

Hello,

Dutch translation attached!

v1.15
I occurred a problem with the date picker: When I set the "start date" this date applies also at the "end date" (and visa versa).

Problems with the language module: after making some translation (NL-file) I got a blank page in the bookingsmodule. After deleting the NL-file the problem was solved.
After that I translated the NL-file in Notepad...

Ronald
Logged
maverik

Offline Offline

Posts: 1541



WWW
« Reply #78 on: September 10, 2008, 11:34:29 PM »

Quote
When I set the "start date" this date applies also at the "end date" (and visa versa).

same here
Logged

Signatur wird geladen...
WebBird
Guest
« Reply #79 on: September 11, 2008, 08:57:33 AM »

I occurred a problem with the date picker: When I set the "start date" this date applies also at the "end date" (and visa versa).

Yes, this is by design.

Problems with the language module: after making some translation (NL-file) I got a blank page in the bookingsmodule. After deleting the NL-file the problem was solved.

How did you translate? Seems to be a syntax error after translation.

Thanks for the file, I will add it to the next version. Smiley
Logged
ronald32

Offline Offline

Posts: 25



WWW
« Reply #80 on: September 11, 2008, 09:11:20 AM »



Quote
Yes, this is by design.

? but it doesn't work... I set the start date and after that I set the end date. The start date and the end date will be identical... So you can't book...



Quote
How did you translate? Seems to be a syntax error after translation.

Translation with the language module. In this module appears in the text pieces of code (lots of "<" and ",")


Ronald

www.duinenzee.nl
Logged
maverik

Offline Offline

Posts: 1541



WWW
« Reply #81 on: September 11, 2008, 09:20:47 AM »

Quote

Zitat
Yes, this is by design.

? but it doesn't work... I set the start date and after that I set the end date. The start date and the end date will be identical... So you can't book...

what design do you mean? its original wb backend.... huh
Logged

Signatur wird geladen...
WebBird
Guest
« Reply #82 on: September 11, 2008, 09:51:49 AM »

Okay, step by step...  grin

The Calendar Popup is not part of WB, but a JavaScript I included. (See http://www.mattkruse.com/ for details, if you wish.)

I thought it would be nice, if I add a new date, navigating some months in the future, to set the end date to that start date, too. So, if I use the Calendar Popup, this month is shown at once.

I found out now that this is not what I want in all cases, so I made some tweaks that will be included with the next version. (Together with translations for month and day names in the Calendar Popup.)

Meanwhile, just use the select boxes to change the end date (just as before adding the JavaScript). This will always work, also with JavaScript deactivated. Wink
Logged
WebBird
Guest
« Reply #83 on: September 11, 2008, 09:54:12 AM »


Quote
How did you translate? Seems to be a syntax error after translation.

Translation with the language module. In this module appears in the text pieces of code (lots of "<" and ",")


So it's surely an error created there. Maybe the "" here:

Code:
'STRFTIMEHINT'        => '<a href="http://www.php.net/strftime" target="_blank">strftime()</a> format, i. e. something like "%m/%d/%y"; default is "%c"',

Maybe you should report this as a bug in the language edit module.

Edit: I tried this, the Language Editor definitely breaks the language module, so don't use it!
« Last Edit: September 11, 2008, 12:08:17 PM by WebBird » Logged
WebBird
Guest
« Reply #84 on: September 15, 2008, 04:53:09 PM »

I just uploaded v1.16, which implements some changes in the Calendar Popup Javascript. It hopefully fixes the problem described by ronald32: When changing the start or end date for the first time, the vice versa is changed, too. When changing one of them again (i.e., setting the end date after start date was set), the other one is left as is. (Hope so. I'm not a JS crack.)
Logged
mr-fan

Offline Offline

Posts: 1538


WWW
« Reply #85 on: September 22, 2008, 09:14:23 AM »

hi,

i try to start a new wb 2.7 installation with php 5.2.6 to use bookings correctly...

so far so good. i can make entries now, but i have a lot of errors on my screen.

i don't know what to do?

i've added a screenshot from the backend and the frontend error output

« Last Edit: September 22, 2008, 09:22:12 AM by mr-fan » Logged

 
mr-fan

Offline Offline

Posts: 1538


WWW
« Reply #86 on: September 22, 2008, 09:21:36 AM »

sry i 've no training with my screenshto prog..... undecided

here small jpegs...
Logged

 
aldus

Offline Offline

Posts: 1238


« Reply #87 on: September 22, 2008, 10:00:51 AM »

@mr-fan ...

As for the first warnings about the missing argument for "setlocale" the following addition
will stopp it ...
file "function.php" - line 3, and file "modify_bookings.php" - line33:
Code:
setlocale( LC_ALL, LANGUAGE );

As for the other warnings:
file "functions.php" line 162 ...
Code:
function Bookings_Month_Sheet( $year, $month, $section_id, $single=false )

Adding a default value for argument 4 should stopp the warnings ...

As for the last warning depent to line 626 in functions.php i've no idea ... sorry

Regards
Aldus
Logged
mr-fan

Offline Offline

Posts: 1538


WWW
« Reply #88 on: September 22, 2008, 06:17:15 PM »

ok the errors in backend are repaired!

but the frontend.... huh    link:http://wbtest.mragrar.de/pages/bookingstest.php

ok i've the link to the page. perhaps it helps to find the missing thing to the modul to work correct....

thank's for help so far!

i ned this great modul to make a site for farmers they share maschines, that the can work cheaper with theire resources...


sry for my english  rolleyes

Logged

 
WebBird
Guest
« Reply #89 on: September 29, 2008, 09:06:48 AM »

I'm sorry, but I was offline for a week.

@aldus: Thank you very much for your help! Smiley These errors do not appear with PHP 5.2.5 (Win32).  undecided

The warning in line 626 of functions.php is caused by an empty array, which means, there are no bookings for the current time period. Please try this:

FIND:
Code:
function _GetBookings ( $year, $thismonth, $section_id, $single )
{

    global $database, $MOD_BOOKINGS;

AFTER, ADD:
Code:
    $booked = array();
Logged
aldus

Offline Offline

Posts: 1238


« Reply #90 on: September 29, 2008, 11:00:58 AM »

I'm sorry, but I was offline for a week.

@aldus: Thank you very much for your help! Smiley These errors do not appear with PHP 5.2.5 (Win32).  undecided

The warning in line 626 of functions.php is caused by an empty array, which means, there are no bookings for the current time period. Please try this:

FIND:
Code:
function _GetBookings ( $year, $thismonth, $section_id, $single )
{

    global $database, $MOD_BOOKINGS;

AFTER, ADD:
Code:
    $booked = array();

Hello WebBird

Ok - i update the line ... and seems to be ok ... haven't tested very mutch yet.
I'm pretty sure that you also get the messages/warnings if you place:
Code:
<?php
$debug 
true;

if (
true === $debug) {
    
ini_set('display_errors'1);
    
error_reporting(E_ALL);
}
?>


in the top of the "view.php" ...

Kind regards
Aldus
Logged
Olli

Offline Offline

Posts: 288


« Reply #91 on: September 29, 2008, 02:47:36 PM »

hello,
i  tried to install the bookings module 1.16 for local testing.
i only get a blank screen when clicking on options or adding a new page...

whats the latest stable version of this module?
i have got PHP Version 5.1.6 installed here...

thanks
Logged
WebBird
Guest
« Reply #92 on: September 29, 2008, 03:43:04 PM »

The latest version is 1.16, and it is most stable. Wink

Which mySQL version do you have? Which WB version? Is a new event added to the database when you click [Add]?
Logged
jasje

Offline Offline

Posts: 11


« Reply #93 on: September 29, 2008, 04:58:09 PM »

Maybe usefull. Just to eliminate the problem some info:

I had the same problem: empty page by adding new event.

PHP5 (safe mode=off) , MySQL5
bookings 1.6 (latest at this moment)
WebsiteBaker 2.7
Browsers checked with: Opera 9.52 on SuSe11
Logged
mr-fan

Offline Offline

Posts: 1538


WWW
« Reply #94 on: September 29, 2008, 05:49:07 PM »

hi gents,

thank you for help, it works so far.

but while im testing i've found another one...

i tested to make two entries at one day.... made i a error on the booking or is this another prob..?

i've added a screenshot

regards


Logged

 
WebBird
Guest
« Reply #95 on: September 29, 2008, 05:49:30 PM »

And _is_ the new event added to the database?

BTW: The current version is 1.16, not 1.6. Wink
Logged
WebBird
Guest
« Reply #96 on: September 29, 2008, 05:52:52 PM »

i tested to make two entries at one day.... made i a error on the booking or is this another prob..?

While I'm not a gent Wink I'm trying to help...

Seems to be the same problem as with $single (see above). Try this:

FIND:
Code:
function _GetBookingsForDay( $year, $month, $day, $section_id, $for )

CHANGE TO:
Code:
function _GetBookingsForDay( $year, $month, $day, $section_id, $for='list' )

Edit: Of course, all changes will be added to the next version of this module!
« Last Edit: September 29, 2008, 05:58:37 PM by WebBird » Logged
mr-fan

Offline Offline

Posts: 1538


WWW
« Reply #97 on: September 29, 2008, 06:17:57 PM »

sry for the gent  rolleyes

thank wou for your fast help, i try it tomorrow...

today i have a booking... wink your modul is a very perfect modul! if i can handle it better and learn,
 i can make a lot of organisation easyer!

regards

Logged

 
WebBird
Guest
« Reply #98 on: September 30, 2008, 10:18:39 AM »

I've just uploaded a new version 1.17. (See signature for download link.)

Here are the changes:

* Some code changes to prevent error messages (undefined vars etc.); see remark below
* Some minor CSS changes to add spaces between the month sheets in year view
* New: Links to last and next year on top of year view
* New: Added some CSS classes for year view (outer <div> containing the month sheets and the links to last and next year, which are encapsulated into <span>s)
* New: Added "title" attributes to some links

Remark: There are still some messages in error mode E_NOTICE, caused by some Perl tricks I used. I do not treat them as 'bugs'. It aren't. Wink

This version still doesn't work with PHP 4.x! (I'm sorry...)

Special thanks to Aldus for his $debug hint. Wink
Logged
WebBird
Guest
« Reply #99 on: October 06, 2008, 12:18:23 PM »

I'd like to announce an upcoming new version of the Bookings module, which will implement some permission features suggested by "mr-fan". Smiley I am doing this at an early stage so you can post your opinion and/or additional suggestions.

Permission options planned:

Owner

The owner is the user who added a booking. You can decide to let the owner modify and delete his own bookings or not. It is not planned to set these two seperately, for this can be done by group permissions.

Group

There are 4 permissions that can be set seperately for groups:

* Admin (corresponds to the [Options] button in WB backend)
* Add
* Modify
* Delete

This way, you can create a group with "Add" permissions, and additionally let the owner modify and delete his own bookings without having to create additional groups for this case. (This is what "mr-fan" wanted to achieve.)

All permissions can be set like any other booking options for each page/section seperately. (Button [Options] in WB backend.)
Logged
Pages: 1 2 3 [4] 5 6 ... 16   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!