+ Post New Thread
Page 3 of 3 FirstFirst 123
Results 31 to 37 of 37
Scripts Thread, SIMS to MRBS: Script Available in Coding and Web Development; Hi, Try changing the last few lines to the following: $this_period = (int)substr($period[$item],4,2); // Get the period number into an ...
  1. #31

    Join Date
    Jun 2007
    Location
    Colchester, Essex, UK
    Posts
    28
    Thank Post
    1
    Thanked 7 Times in 5 Posts
    Rep Power
    15
    Hi,

    Try changing the last few lines to the following:

    $this_period = (int)substr($period[$item],4,2); // Get the period number into an integer
    $start_secs = (60 * $this_period); // Convert the period number into seconds for MRBS
    This should mean the first period goes into Slot 1, and there are no breaks.

  2. IDG Tech News

  3. #32
    mikeglover's Avatar
    Join Date
    Mar 2009
    Location
    Northampton
    Posts
    139
    Thank Post
    28
    Thanked 30 Times in 9 Posts
    Rep Power
    12
    Quote Originally Posted by Minkus View Post
    Hi,

    Try changing the last few lines to the following:



    This should mean the first period goes into Slot 1, and there are no breaks.
    Hi, thanks for your reply but I'm afriad that doesn't work. So my code now look like this now:

    if(substr($period[$item],4,3) == "RgA"){ // If this is an AM registration period
    $start_secs = 12*60*60;
    } elseif(substr($period[$item],4,3) == "RgP"){ // If this is a PM registration period
    $start_secs = 12*60*60 + (60 * 9);
    } else { // If this is an ordinary period
    $this_period = (int)substr($period[$item],4,2); // Get the period number into an integer
    $start_secs = (60 * $this_period); // Convert the period number into seconds for MRBS
    }
    When i run the script there are no errors but nothing is added into the timetable now. I double checked the Room ID.

  4. #33

    Join Date
    Jun 2007
    Location
    Colchester, Essex, UK
    Posts
    28
    Thank Post
    1
    Thanked 7 Times in 5 Posts
    Rep Power
    15
    Sorry. Not thinking.

    Try:

    $this_period = (int)substr($period[$item],4,2); // Get the period number into an integer
    $start_secs = 12*60*60 + (60 * ($this_period - 1)); // Convert the period number into seconds for MRBS

    EDIT - Changed the formula - make sure you use this one!

  5. #34
    mikeglover's Avatar
    Join Date
    Mar 2009
    Location
    Northampton
    Posts
    139
    Thank Post
    28
    Thanked 30 Times in 9 Posts
    Rep Power
    12
    Quote Originally Posted by Minkus View Post
    Sorry. Not thinking.

    Try:

    $this_period = (int)substr($period[$item],4,2); // Get the period number into an integer
    $start_secs = 12*60*60 + (60 * ($this_period - 1)); // Convert the period number into seconds for MRBS

    EDIT - Changed the formula - make sure you use this one!
    Thanks Chris this works a treat now
    One step closer to the finish line

  6. #35

    glennda's Avatar
    Join Date
    Jun 2009
    Location
    The Office
    Posts
    5,434
    Thank Post
    236
    Thanked 696 Times in 629 Posts
    Rep Power
    226
    Does anybody have the Sims2MRBS report which includes registration periods?

  7. #36

    Join Date
    Jun 2007
    Location
    Colchester, Essex, UK
    Posts
    28
    Thank Post
    1
    Thanked 7 Times in 5 Posts
    Rep Power
    15
    Hi,

    The one included in the script should export registration periods - so long as they are available in SIMS.Net?

    Maybe check with your timetabler to make sure this is the case?

  8. #37

    glennda's Avatar
    Join Date
    Jun 2009
    Location
    The Office
    Posts
    5,434
    Thank Post
    236
    Thanked 696 Times in 629 Posts
    Rep Power
    226
    Possibly they are done differently here! I will investigate more!

SHARE:
+ Post New Thread
Page 3 of 3 FirstFirst 123

Similar Threads

  1. Exporting SIMS timetable into MRBS
    By amvc in forum MIS Systems
    Replies: 2
    Last Post: 29th July 2009, 04:25 PM
  2. Changing passwords for SIMS users by script
    By academic_mwnci in forum MIS Systems
    Replies: 2
    Last Post: 3rd September 2008, 12:02 AM
  3. SIMs backup script after SQL 2005 migration failing...
    By mullet_man in forum MIS Systems
    Replies: 13
    Last Post: 23rd November 2007, 07:03 PM
  4. MRBS help
    By niknik in forum Web Development
    Replies: 0
    Last Post: 29th August 2007, 03:00 PM
  5. SIMS update script
    By nicholab in forum MIS Systems
    Replies: 1
    Last Post: 27th April 2007, 08:17 AM

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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