+ Post New Thread
Page 5 of 15 FirstFirst 123456789 ... LastLast
Results 61 to 75 of 221
How do you do....it? Thread, Classroom booking System in Technical; I fixed the problem by changing the offset from 1 to 2. Seems to work but I have no idea ...
  1. #61
    zag
    zag is offline
    zag's Avatar
    Join Date
    Mar 2007
    Posts
    3,765
    Thank Post
    898
    Thanked 416 Times in 350 Posts
    Blog Entries
    12
    Rep Power
    87
    I fixed the problem by changing the offset from 1 to 2. Seems to work but I have no idea what else it might break!

    Code:
    function getFirstDayOfWeek($year, $weeknr)
    {
    	$offset = date('w', mktime(0,0,0,1,1,$year));
    	$offset = ($offset < 5) ? 2-$offset : 8-$offset;
    	$monday = mktime(0,0,0,1,1+$offset,$year);
    
    	return strtotime('+' . ($weeknr - 1) . ' weeks', $monday);
    }
    Last edited by zag; 21st October 2008 at 02:33 PM.

  2. #62

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    So when is version 2 hitting the high street? I can't wait to get my hands on it - It will finally mean being able to scrap the aweful system we have now as soon as webman's app has LDAP.

  3. #63
    denon101's Avatar
    Join Date
    Jul 2008
    Location
    Stuck in the server room......
    Posts
    395
    Thank Post
    54
    Thanked 37 Times in 35 Posts
    Rep Power
    21
    Can some one help me?

    I can just get this error



    Config file

    <?php if (!defined('BASEPATH')) exit('No direct script access allowed');

    // Full URL to your installation
    $config['base_url'] = 'http://booking/crbs/';


    // Empty string if using .htaccess
    #$config['index_page'] = 'index.php';
    $config['index_page'] = '';

    // You shouldn't need to change any of these.
    $config['layout'] = 'layout';
    $config['language'] = 'english';
    $config['uri_protocol'] = 'auto';
    $config['url_suffix'] = 'http://booking/crbs/';
    $config['enable_query_strings'] = FALSE;
    $config['controller_trigger'] = 'c';
    $config['function_trigger'] = 'm';
    $config['time_reference'] = 'local';
    $config['log_threshold'] = 0;
    $config['log_path'] = '';
    $config['log_date_format'] = 'Y-m-d H:i:s';
    $config['cache_path'] = '';
    $config['encryption_key'] = '';
    $config['sess_cookie_name'] = 'ci_session';
    $config['sess_expiration'] = 7200;
    $config['sess_encrypt_cookie'] = FALSE;
    $config['sess_use_database'] = FALSE;
    $config['sess_table_name'] = '';
    $config['sess_match_ip'] = TRUE;
    $config['sess_match_useragent'] = TRUE;
    $config['cookie_prefix'] = '';
    $config['cookie_domain'] = '';
    $config['cookie_path'] = '/';
    $config['global_xss_filtering'] = TRUE;
    $config['enable_hooks'] = False;
    $config['permitted_uri_chars'] = 'a-z 0-9~%.:_-';
    $config['compress_output'] = FALSE;
    $config['subclass_prefix'] = 'MY_';
    $config['rewrite_short_tags'] = FALSE;

    ?>

    Database File

    <?php if (!defined('BASEPATH')) exit('No direct script access allowed');

    $active_group = "default";

    $db['default']['hostname'] = 'booking';
    $db['default']['username'] = 'ajones';
    $db['default']['password'] = 'password';
    $db['default']['database'] = 'crbs';
    $db['default']['dbdriver'] = 'mysql';
    $db['default']['dbprefix'] = '';
    $db['default']['active_r'] = TRUE;
    $db['default']['pconnect'] = FALSE;
    $db['default']['db_debug'] = TRUE;
    $db['default']['cache_on'] = FALSE;
    $db['default']['cachedir'] = 'dbcache';

    ?>

    I think I have the permissions to the areas set, can anyone help??

    Ta!

  4. #64

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,406
    Thank Post
    639
    Thanked 961 Times in 661 Posts
    Blog Entries
    2
    Rep Power
    324
    @denon101: Is the database hostname actually 'booking'? Usually MySQL is running on the same server as the webserver so should just be 'localhost'.

  5. #65
    denon101's Avatar
    Join Date
    Jul 2008
    Location
    Stuck in the server room......
    Posts
    395
    Thank Post
    54
    Thanked 37 Times in 35 Posts
    Rep Power
    21
    I have changed it back to localhost and it has made no difference. Do you need to setup a DB in mysql? the instructions on the wiki does not give instructions on how to setup a db using SQLite.

    Maybe I am doing this all wrong. Forgive my stupidity. But help would be most appreciated.

  6. #66

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    I think you need to create a database with a user with rights first.

  7. #67

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,406
    Thank Post
    639
    Thanked 961 Times in 661 Posts
    Blog Entries
    2
    Rep Power
    324
    Ah, SQLite. I've never used that before; but the documentation says:

    For example, when using SQLite you will not need to supply a username or password, and the database name will be the path to your database file. The information above assumes you are using MySQL
    I would create a SQLite DB first using your preferred method, and then just set the database config file to the path of the SQLite file.

  8. #68
    sippo's Avatar
    Join Date
    May 2008
    Location
    Swindon, Wiltshire
    Posts
    1,717
    Thank Post
    134
    Thanked 183 Times in 134 Posts
    Rep Power
    108
    I installed the Devizes school one now.

    Anyone know how to remove the copyright? I'm going to donate anyway, they just haven't got back to me yet.

  9. #69
    sippo's Avatar
    Join Date
    May 2008
    Location
    Swindon, Wiltshire
    Posts
    1,717
    Thank Post
    134
    Thanked 183 Times in 134 Posts
    Rep Power
    108
    Devizes school have yet to get back to me. Can anyone help?

  10. #70

    Join Date
    Mar 2007
    Location
    Devon
    Posts
    1,042
    Thank Post
    226
    Thanked 63 Times in 56 Posts
    Rep Power
    30
    I have just installed classroombookings and have to say looks great and so far been easy to setup.

    But we've come across a problem where no matter what day you book it adds it today's. All dates are today. I thought i'd check the Week dates option but get page not found "http://moon:8080/room/index.php/weeks/dates_dates.php".

    We also get it on reports "http://moon:8080/room/index.php/reports"

    Any ideas about their only being todays date or the missing pages?

  11. #71

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,406
    Thank Post
    639
    Thanked 961 Times in 661 Posts
    Blog Entries
    2
    Rep Power
    324
    Hi dave.81.... That is a known bug, sorry... The only way round that is at the moment is to change the view type in the Settings page to 'One day at a time' instead of 'One room at a time'.

    The Week Dates icon/link you mentioned is redundant, and the reporting function has not been created (yet). In an ideal world I would have removed the Reporting icon (or had time to create the reporting function); but I'm only human

  12. #72

    Join Date
    Mar 2007
    Location
    Devon
    Posts
    1,042
    Thank Post
    226
    Thanked 63 Times in 56 Posts
    Rep Power
    30
    Well in that case it's all working wonderfully and much improved over our old system, well i think so whether the teachers agree we'll wait to see.

    Heyho reporting is a bonus not a must and there are only so many hours in the day lol...

    Thanks

  13. #73

    Join Date
    May 2007
    Posts
    14
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Apache permissions

    Hi,

    Ive got classroombookings running okish but im new to apache and php so without sounding stupid(hopefully) how do i give apache server permissions to the folders specified in the installation instructions?

  14. #74

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,406
    Thank Post
    639
    Thanked 961 Times in 661 Posts
    Blog Entries
    2
    Rep Power
    324
    @jonnellan: Is the server Linux/Unix or Windows? If Linux it is just a matter of doing something like this:

    Code:
    $ cd /var/www/classroombookings/
    $ chmod -R 775 webroot/images/roomphotos
    $ chmod -R 775 webroot/images/schoollogo
    $ chmod -R 775 webroot/images/bg
    $ chmod -R 775 system/cache
    $ chmod -R 775 temp
    where /var/www/classroombookings is the directory you installed it to.

  15. #75

    Join Date
    May 2007
    Posts
    14
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Its windows, sorry should have said.

SHARE:
+ Post New Thread
Page 5 of 15 FirstFirst 123456789 ... LastLast

Similar Threads

  1. Classroom booking software
    By Andyhall in forum Educational Software
    Replies: 32
    Last Post: 2nd July 2009, 02:24 PM
  2. Online Resource Booking System
    By SimpleSi in forum Web Development
    Replies: 14
    Last Post: 29th October 2008, 08:34 PM
  3. ICT Booking System
    By sLiDeR in forum Network and Classroom Management
    Replies: 3
    Last Post: 8th August 2007, 07:53 AM
  4. Online Parental Booking System
    By robknowles in forum MIS Systems
    Replies: 4
    Last Post: 3rd July 2007, 07:52 PM
  5. Online Booking System
    By imullings in forum Educational Software
    Replies: 2
    Last Post: 5th September 2006, 08:10 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •