alois blasbichler | 3 Nov 10:59 2004
Picon

increase size of description

hello list

how i can increase the size of description (Kurzbeschreibung) ? can you give me
a hint where is this parameter set?
We have seen that when we insert more than about 50 charakters the entry is not
saved - without error-message - is it also  possible to give out an errore
message ?

thank you luis

Michael Hellwig | 3 Nov 15:38 2004
Picon

Bookings in the past

Hello,

I had a user who, accidentally, submitted a booking 1 year back in time 
  probably because he started from an old bookmark.
I think it should only be possible to have bookings in the future.
I added a few lines in edit_entry_handler.php to reject bookings in the 
past.

# Reject bookings in the past
$this_day = date("d");
$this_month = date("m");
$this_year = date("Y");

if( ($year < $this_year) ||
     (($month < $this_month) ||
     (($day < $this_day) && ($month <= $this_month)) &&
     ($year <= $this_year)) )
{
     showAccessDenied($day, $month, $year, $area);
     exit;
}

This snipped can also be used in del_entry.php to reject deletion of old 
bookings in case you need it e.g. for accounting purposes.

This works so far, but didn't test it with repeating entries.

Kind regards,

Michael
(Continue reading)

Michael Hellwig | 4 Nov 08:17 2004
Picon

Re: Bookings in the past

John Meskes schrieb:
> On 3 Nov 2004 at 15:38, Michael Hellwig wrote:
> 
> 
>>I added a few lines in edit_entry_handler.php to reject bookings in the 
>>past.
>>
>># Reject bookings in the past
> 
> 
> if ( mktime(23,59,59,$month,$day,$year) < mktime() )
> 
> 
Oh well, it can be so simple.
Thank you!

--

-- 
Michael Hellwig                          hellwigm <at> staff.uni-marburg.de
----------------------------------------------------------------------
Philipps University Marburg, Germany          Phone:  49 6421 28-23458
Geosciences, Hans Meerwein Str.                 Fax:  49 6421 28-23383

alois blasbichler | 4 Nov 08:49 2004
Picon

Re: Bookings in the past

> >>I added a few lines in edit_entry_handler.php to reject bookings in the 
> >>past.
> >>
> >># Reject bookings in the past
> > 
> > if ( mktime(23,59,59,$month,$day,$year) < mktime() )

very usefulll for me to.
how i insert the condition if the user is not a administrator  then reject
bookings in the past else allow it  ?

thank you

luis

Michael Hellwig | 4 Nov 11:49 2004
Picon

Re: Bookings in the past

alois blasbichler schrieb:
>>>if ( mktime(23,59,59,$month,$day,$year) < mktime() )
> 
> 
> very usefulll for me to.
> how i insert the condition if the user is not a administrator  then reject
> bookings in the past else allow it  ?
> 
Hello luis,
this should do what you want:

if( ((mktime(23,59,59,$day, $month, $year) < mktime()) &&
       authGetUserLevel(getUserName(), $auth["admin"]) < 2))
{
     showAccessDenied($day, $month, $year, $area);
     exit();
}

Michael

--

-- 
Michael Hellwig                          hellwigm <at> staff.uni-marburg.de
----------------------------------------------------------------------
Philipps University Marburg, Germany          Phone:  49 6421 28-23458
Geosciences, Hans Meerwein Str.                 Fax:  49 6421 28-23383

alois blasbichler | 4 Nov 14:03 2004
Picon

a certain day is writable

thank you for the fast help 

i want ask for another wish :
i want that i one room or one area only a certain day is writable.
for example in the area A only on mondays there are entries allowed and on the
other days no.

maybe sombody have the code to do this

thanks again

luis

Campbell Morrison | 4 Nov 14:19 2004
Picon

Re: Bookings in the past

If we put this enhancement in the mainstream code, then I think it should be 
implemented either as an option that's enabled by a flag in the config file, 
or else, preferably, by putting up a warning saying "Warning: you are about 
to book a room for a date in the past.   Would you like to continue?".   (Or 
possibly both).

I find it quite useful for accounting purposes to be able to enter bookings 
in the past.     We run reports on "room" usage to justify the expenditure 
on them and when people forget to book a "room", it is useful to be able to 
add it retrospectively.

Campbell

----- Original Message ----- 
From: "alois blasbichler" <alois.blasbichler <at> sb-brixen.it>
To: <mrbs-general <at> lists.sourceforge.net>
Sent: Thursday, November 04, 2004 7:49 AM
Subject: Re: [MRBS-general] Bookings in the past

>> >>I added a few lines in edit_entry_handler.php to reject bookings in the
>> >>past.
>> >>
>> >># Reject bookings in the past
>> >
>> > if ( mktime(23,59,59,$month,$day,$year) < mktime() )
>
> very usefulll for me to.
> how i insert the condition if the user is not a administrator  then reject
> bookings in the past else allow it  ?
>
(Continue reading)

Richard Hobbs | 4 Nov 15:27 2004
Picon

Viewing only weekdays?

Hello,

Is there a way in which I can make the default views exclude Saturday and
Sunday? I would like them still to be available, but hidden by default.

Thanks in advance to anyone who can help :-)

Hobbs.

--

-- 
Richard Hobbs (Systems Administrator)
Toshiba Research Europe Ltd. - Speech Technology Group
Web: http://www.toshiba-europe.com/research/
Email: richard.hobbs [at] crl.toshiba.co.uk
Tel: +44 1223 376964        Mobile: +44 7811 803377

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

Kevin Hatch | 4 Nov 22:07 2004

MRBS development

I'm a developer working for a Public Library that's in the process of replacing our current event
scheduling application, Web Event.  We recently chose MRBS, but we know it will not entirely meet our
needs.  As a result, I'll be extending the application a fair amount to add in the extra feature
requirements.  We support the open source model, and I'm writing to ask whether you feel my efforts would be
useful to you or not.  The additions will be fairly specific to the needs of our library, but I intend to
structure the features in a more universal and modular way wherever possible.  And in any case I wanted to
let you know of the project in case you're in the very least interested in our install of MRBS.
Thanks,
--Kevin

Kevin J. Hatch
Webmaster
Iowa City Public Library
123 South Linn Street
Iowa City, Iowa 52240-1820
319.887.6022
http://www.icpl.org/

Gavin Walker | 4 Nov 23:23 2004
Picon

Re: Bookings in the past

Noted.

I wouldn't make this anything other than a configurable option.

Gavin

On Thu, 2004-11-04 at 13:19, Campbell Morrison wrote:
> If we put this enhancement in the mainstream code, then I think it should be 
> implemented either as an option that's enabled by a flag in the config file, 
> or else, preferably, by putting up a warning saying "Warning: you are about 
> to book a room for a date in the past.   Would you like to continue?".   (Or 
> possibly both).
> 
> I find it quite useful for accounting purposes to be able to enter bookings 
> in the past.     We run reports on "room" usage to justify the expenditure 
> on them and when people forget to book a "room", it is useful to be able to 
> add it retrospectively.
> 
> Campbell
> 
> 
> ----- Original Message ----- 
> From: "alois blasbichler" <alois.blasbichler <at> sb-brixen.it>
> To: <mrbs-general <at> lists.sourceforge.net>
> Sent: Thursday, November 04, 2004 7:49 AM
> Subject: Re: [MRBS-general] Bookings in the past
> 
> 
> >> >>I added a few lines in edit_entry_handler.php to reject bookings in the
> >> >>past.
(Continue reading)


Gmane