Welcome, Guest. Please login or register.
Did you miss your activation email?
February 13, 2012, 12:17:21 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
149699 Posts in 21103 Topics by 7538 Members
Latest Member: ionline
* Home Help Search Login Register
Pages: 1 ... 5 6 [7] 8 9 ... 16   Go Down
Print
Author Topic: Bookings module - current version 2.22 (see page 13)  (Read 47061 times)
WebBird
Guest
« Reply #150 on: November 13, 2008, 05:51:44 PM »

ok i have that working now but the calendar in my sidebar doesnt highlight correctly.. the event appears as full text Sad

Please include the frontend.css. You may do so by adding this code:

Code:
if((!function_exists('register_frontend_modfiles') || !defined('MOD_FRONTEND_CSS_REGISTERED')) &&
      file_exists(WB_PATH .'/modules/bookings_v2/frontend.css')) {
      echo '<style type="text/css">';
    include(WB_PATH .'/modules/bookings_v2/frontend.css');
    echo "\n</style>\n";
}

also in the week view the highlight time slots show up as "array" on the tooltip

I'll fix this in the next version.

Edit: Beta 9 (see attachment) fixes this, but as I made lots of code changes, there may be (lots of) other errors now. You will have to uninstall and reinstall the module if you use any previous beta versions, as upgrading is not implemented for betas.

I found out how to add the [Edit CSS] button, so you'll find it on the [Options] page now.  grin

Edit 2: Woops, I skipped Beta 8.  shocked

Edit: Removed Beta 9 as there's a new one.
« Last Edit: November 14, 2008, 01:46:33 PM by WebBird » Logged
wwwMARKLEYcouk

Offline Offline

Posts: 288


WWW
« Reply #151 on: November 14, 2008, 11:25:08 AM »

ok ive installed the v2.9b Smiley still not sure where to add that code though for the frontend.css thing Sad

looks great code though Smiley but as you say, a couple things went upside down.. the calendar is a list now not neatly sorted into columns. possibly a request there to allow how many columns to show the calendar in?
Logged

WebBird
Guest
« Reply #152 on: November 14, 2008, 12:02:20 PM »

possibly a request there to allow how many columns to show the calendar in?

You can set this under [Options]. (It's the first option.)

The layout problem you have may results of your CSS. I made a change there to fix problems occuring with "floating" layouts. I am now using

display: inline-table;

instead of

float: left;

in frontend.css. You may reset it to float if that works better for you.
Logged
WebBird
Guest
« Reply #153 on: November 14, 2008, 12:09:19 PM »

ok ive installed the v2.9b Smiley still not sure where to add that code though for the frontend.css thing Sad

Variant 1: Add this to your template (index.php) at the position where the month sheet shall occur.

Code:
<?php 
if((!function_exists('register_frontend_modfiles') || !defined('MOD_FRONTEND_CSS_REGISTERED')) &&
      
file_exists(WB_PATH .'/modules/bookings_v2/frontend.css')) {
      echo 
'<style type="text/css">';
    include(
WB_PATH .'/modules/bookings_v2/frontend.css');
    echo 
"\n</style>\n";
}
include_once(
WB_PATH.'/modules/bookings_v2/functions.php');
$year  date("Y");
$month date("m");
global 
$page_id;
$page_id 3;
echo 
"<div id=\"mod_bookings\">\n",
     
Bookings_Month_Sheet$year$month10true ),
     
"</div>\n";

?>


Variant 2: Add this to the <head> section of the index.php. (Where the other CSS files are included.)

Code:
<link href="<?php echo WB_URL?>/modules/bookings_v2/frontend.css" rel="stylesheet" type="text/css" media="screen" />

Leave this part at the position of the calendar sheet:

Code:
<?php
include_once(WB_PATH.'/modules/bookings_v2/functions.php');
$year  date("Y");
$month date("m");
global 
$page_id;
$page_id 3;
echo 
"<div id=\"mod_bookings\">\n",
     
Bookings_Month_Sheet$year$month10true ),
     
"</div>\n";

?>


Hope this helps.
Logged
WebBird
Guest
« Reply #154 on: November 14, 2008, 01:45:21 PM »

Here's Beta 10. grin I made some corrections; I think there's going to be a release candidate next week. cool

New:

* You can now set a "default view" (current year / month / quarter / week / day)
* In list view for day, there will be a "no bookings" text if ... well, there are no bookings Wink
* Current day will be highlighted in year or month view
* Default date format for day view is now set in language modules

Edit: Removed attachment. See next page for current Beta.
« Last Edit: November 27, 2008, 01:15:39 PM by WebBird » Logged
wwwMARKLEYcouk

Offline Offline

Posts: 288


WWW
« Reply #155 on: November 14, 2008, 02:42:56 PM »

excellent thats worked a treat Smiley although the yearly sheet is still listing and not sorting into a 3*4 column Sad

also the bottom save in the admin-->page settings section for the permissions has been disabled Sad

excellent module though webBird and very diverse for its application Smiley keep up the great work
Logged

WebBird
Guest
« Reply #156 on: November 14, 2008, 04:24:38 PM »

excellent thats worked a treat Smiley although the yearly sheet is still listing and not sorting into a 3*4 column Sad

Did you try the display-change in the CSS file?

also the bottom save in the admin-->page settings section for the permissions has been disabled Sad

I added the buttons to the top, this surely causes the problem. I'll fix this.

excellent module though webBird and very diverse for its application Smiley keep up the great work

Thank you! grin
Logged
wwwMARKLEYcouk

Offline Offline

Posts: 288


WWW
« Reply #157 on: November 15, 2008, 03:46:59 PM »

excellent thats worked a treat Smiley although the yearly sheet is still listing and not sorting into a 3*4 column Sad
Did you try the display-change in the CSS file?

Code:
#mod_bookings .bookings_sheet { border : 1px solid #ccc;
float : left;
display: inline-table; margin-right : 5px; margin-bottom : 5px;}

this worked Smiley
thanks
Logged

macsmet

Offline Offline

Posts: 230


« Reply #158 on: November 19, 2008, 11:48:53 AM »

Hi webbird,

I am keeping my eye on your module and so far I'm very impressed.
I also noticed you can now choose a different output but that is only in the backend and not in the frontend?
Is it also possible to show the add form without logging into the database?
And does the owner get's notified by e-mail when a user 'makes' a booking?
Or is that not possible?

Keep up the good work!!!!!!

Greetings,

MacSmet
Logged
WebBird
Guest
« Reply #159 on: November 19, 2008, 12:14:47 PM »

I also noticed you can now choose a different output but that is only in the backend and not in the frontend?

Uhm, I'm not sure what you mean. huh

Is it also possible to show the add form without logging into the database?

At the moment, it is meant to have registered (=backend) users to make bookings. It is not possible to let guests make bookings. (BEWARE OF SPAM!!! I would NEVER let guests do ANYTHING with bookings! Well, other of look at them. grin)

And does the owner get's notified by e-mail when a user 'makes' a booking?

No.

Or is that not possible?

It is not planned for this version.
Logged
macsmet

Offline Offline

Posts: 230


« Reply #160 on: November 19, 2008, 12:42:58 PM »

Hi WebBird,

You're absolutely right about SPAM. I forgot all about it.
What I meant is that in the backend you choose dayview, weekview or yearview but you cannot change that in the frontend (on the website). So as a visitor you cannot go from dayview to yearview!

I vote for booking notification by e-mail  wink

Greetings,

MacSmet


Logged
WebBird
Guest
« Reply #161 on: November 19, 2008, 12:49:34 PM »

What I meant is that in the backend you choose dayview, weekview or yearview but you cannot change that in the frontend (on the website). So as a visitor you cannot go from dayview to yearview!

Of course you can. Try the "back" link at the bottom of the day view. grin

Ah... well, there's a bug. shocked  rolleyes

Edit: This is fixed with Beta 11.
« Last Edit: November 27, 2008, 01:14:19 PM by WebBird » Logged
WebBird
Guest
« Reply #162 on: November 19, 2008, 05:47:54 PM »

I vote for booking notification by e-mail  wink

Is it enough to configure an email address in the options dialog?
Logged
macsmet

Offline Offline

Posts: 230


« Reply #163 on: November 19, 2008, 05:56:19 PM »

Hi WebBird,

I think that would be enough!
I was thinking as in the guestbook module: get an e-mail on a new message or not.

greetings,

MacSmet

Logged
WebBird
Guest
« Reply #164 on: November 21, 2008, 01:50:25 PM »

When would you like to receive emails? On new bookings only?
Logged
macsmet

Offline Offline

Posts: 230


« Reply #165 on: November 21, 2008, 07:07:26 PM »

Hi WebBird,

Yes my first thought was on a new booking only. But maybe also when someone changes his booking?
Have you got some other ideas about it then?

Greetings!
Logged
WebBird
Guest
« Reply #166 on: November 24, 2008, 10:39:19 AM »

There may be mails on all actions (add/modify/delete), but I'm afraid this could lead into a mass of mails.
Logged
macsmet

Offline Offline

Posts: 230


« Reply #167 on: November 24, 2008, 10:47:04 AM »

Yes that's true but it will be a handy feature I think.
And you could also use a special e-mailaddress for it.

Ans I think if you make it an option in the backend everyone who uses the module can choose f the y want to use it or not..

Greetings!
Logged
WebBird
Guest
« Reply #168 on: November 24, 2008, 11:22:08 AM »

Well, that's the question. The easy way is to only let the admin enter an email address and send mails on each action. The more complicated way is to let the admin choose on which actions he wants to receive mails. I'd prefer the easy way. Wink
Logged
macsmet

Offline Offline

Posts: 230


« Reply #169 on: November 24, 2008, 11:44:29 AM »

Hi Webbird,

Choose the easy way?

Greetings!
Logged
WebBird
Guest
« Reply #170 on: November 24, 2008, 01:52:58 PM »

Okay, if you tell me so  grin
Logged
wwwMARKLEYcouk

Offline Offline

Posts: 288


WWW
« Reply #171 on: November 25, 2008, 12:16:23 PM »

how is the development of v2 coming on?
Logged

WebBird
Guest
« Reply #172 on: November 25, 2008, 01:22:14 PM »

Well, as I put some more requests in this version, it used some more time than I thought. The last feature to add is the mail notice. From this point it's testing only. grin So please test it and report what you find out. wink As a developer, sometimes things get out of sight, so you miss the mistakes you made. rolleyes
Logged
wwwMARKLEYcouk

Offline Offline

Posts: 288


WWW
« Reply #173 on: November 26, 2008, 01:59:37 PM »

Well, as I put some more requests in this version, it used some more time than I thought. The last feature to add is the mail notice. From this point it's testing only. grin So please test it and report what you find out. wink As a developer, sometimes things get out of sight, so you miss the mistakes you made. rolleyes
yes i know that for sure with developing databases..

i have a feature i would perhaps like to see.

at present you only have the either 'occupied' and 'partial occupied' which actually needs changed in the css file. perhaps allow for numerous states with different colour coding to be added/modified for example, i operate a coach firm and bookings for me take place in the form of: INITIAL, DEPOSIT PAID, CONFIRMED and COMPLETED

just a thought Cheesy im sure as a general use that feature would be good?
Logged

WebBird
Guest
« Reply #174 on: November 26, 2008, 02:49:04 PM »

Well, the "occupied" and "partially occupied" states are determined automatically by analyzing the date and time settings. The states you are suggesting would have to be set by the admin. Additionally, the "(partially) occupied" state is still significant in combination with any other state manually set. So you would have to define colors for each combination. ("confirmed, partially" and "confirmed, full day", for example)

I should say that the bookings module was never meant to be a management tool for bookings. It's primary goal is to allow you to show the availability of resources to your visitors. So, currently I am not planning to implement payment or customer relationship features. wink

But you could write the "custom state" into the name field or use the group feature. I can add the possibility to use the group name as a css class.
Logged
Pages: 1 ... 5 6 [7] 8 9 ... 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!