Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
February 12, 2012, 06:16:35 AM
1 Hour
1 Day
1 Week
1 Month
Forever
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
WebsiteBaker Community Forum
English
Modules
(Moderator:
Argos
)
Bookings module - current version 2.22 (see page 13)
Pages:
1
2
3
[
4
]
5
6
...
16
Go Down
Author
Topic: Bookings module - current version 2.22 (see page 13) (Read 46978 times)
WebBird
Guest
Re: Bookings module - current version 1.14 - see page 4!
«
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.
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
Posts: 1541
Re: Bookings module - current version 1.15 - see page 4 for details
«
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
Posts: 25
Re: Bookings module - current version 1.15 - see page 4 for details
«
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
Posts: 1541
Re: Bookings module - current version 1.15 - see page 4 for details
«
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
Re: Bookings module - current version 1.15 - see page 4 for details
«
Reply #79 on:
September 11, 2008, 08:57:33 AM »
Quote from: ronald32 on September 10, 2008, 07:24:00 PM
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.
Quote from: ronald32 on September 10, 2008, 07:24:00 PM
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.
Logged
ronald32
Offline
Posts: 25
Re: Bookings module - current version 1.15 - see page 4 for details
«
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
Posts: 1541
Re: Bookings module - current version 1.15 - see page 4 for details
«
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....
Logged
Signatur wird geladen...
WebBird
Guest
Re: Bookings module - current version 1.15 - see page 4 for details
«
Reply #82 on:
September 11, 2008, 09:51:49 AM »
Okay, step by step...
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.
Logged
WebBird
Guest
Re: Bookings module - current version 1.15 - see page 4 for details
«
Reply #83 on:
September 11, 2008, 09:54:12 AM »
Quote from: ronald32 on September 11, 2008, 09:11:20 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
Re: Bookings module - current version 1.15 - see page 4 for details
«
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
Posts: 1538
problems...
«
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
Posts: 1538
sry for the big jpegs...
«
Reply #86 on:
September 22, 2008, 09:21:36 AM »
sry i 've no training with my screenshto prog.....
here small jpegs...
Logged
aldus
Offline
Posts: 1238
Re: Bookings module - current version 1.16 - see page 5 for details
«
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
Posts: 1538
Re: Bookings module - current version 1.16 - see page 5 for details
«
Reply #88 on:
September 22, 2008, 06:17:15 PM »
ok the errors in backend are repaired!
but the frontend....
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
Logged
WebBird
Guest
Re: Bookings module - current version 1.16 - see page 5 for details
«
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!
These errors do not appear with PHP 5.2.5 (Win32).
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
Posts: 1238
Re: Bookings module - current version 1.16 - see page 5 for details
«
Reply #90 on:
September 29, 2008, 11:00:58 AM »
Quote from: WebBird 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!
These errors do not appear with PHP 5.2.5 (Win32).
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
Posts: 288
Re: Bookings module - current version 1.16 - see page 5 for details
«
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
Re: Bookings module - current version 1.16 - see page 5 for details
«
Reply #92 on:
September 29, 2008, 03:43:04 PM »
The latest version is 1.16, and it is most stable.
Which mySQL version do you have? Which WB version? Is a new event added to the database when you click [Add]?
Logged
jasje
Offline
Posts: 11
Re: Bookings module - current version 1.16 - see page 5 for details
«
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
Posts: 1538
Re: Bookings module - current version 1.16 - see page 5 for details
«
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
Re: Bookings module - current version 1.16 - see page 5 for details
«
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.
Logged
WebBird
Guest
Re: Bookings module - current version 1.16 - see page 5 for details
«
Reply #96 on:
September 29, 2008, 05:52:52 PM »
Quote from: mr-fan on September 29, 2008, 05:49:07 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
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
Posts: 1538
Re: Bookings module - current version 1.16 - see page 5 for details
«
Reply #97 on:
September 29, 2008, 06:17:57 PM »
sry for the gent
thank wou for your fast help, i try it tomorrow...
today i have a booking...
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
Re: Bookings module - current version 1.16 - see page 5 for details
«
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.
This version still doesn't work with PHP 4.x! (I'm sorry...)
Special thanks to Aldus for his $debug hint.
Logged
WebBird
Guest
Re: Bookings module - upcoming version 1.20
«
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".
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
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
-----------------------------
English
-----------------------------
=> Help & Support
-----------------------------
General
-----------------------------
=> WebsiteBaker Website Showcase
-----------------------------
English
-----------------------------
=> Modules
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
-----------------------------
General
-----------------------------
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
-----------------------------
General
-----------------------------
=> Security Announcements
-----------------------------
Deutsch (German)
-----------------------------
=> Hilfe/Support
-----------------------------
General
-----------------------------
=> Documentation
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
=> Module & Snippets
-----------------------------
English
-----------------------------
=> Archive (posts up to 2007)
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Deutsch (German)
-----------------------------
=> jQuery
=> Tutorials
=> Templates & Design
-----------------------------
English
-----------------------------
=> jQuery
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
===> Suggestions
-----------------------------
Deutsch (German)
-----------------------------
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
===> Vorschläge
-----------------------------
English
-----------------------------
===> Software bugs
-----------------------------
Deutsch (German)
-----------------------------
===> Softwarefehler
=====> Module / Extensions
-----------------------------
English
-----------------------------
=====> Modules / Extensions
-----------------------------
Deutsch (German)
-----------------------------
===> Erfahrungs und Testberichte
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...