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 ...
-
13th December 2011, 06:45 PM #31 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.
-
-
IDG Tech News
-
14th December 2011, 12:12 PM #32 
Originally Posted by
Minkus
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.
-
-
14th December 2011, 12:25 PM #33 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!
-
-
15th December 2011, 11:09 AM #34 
Originally Posted by
Minkus
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
-
-
26th April 2012, 06:53 PM #35 Does anybody have the Sims2MRBS report which includes registration periods?
-
-
27th April 2012, 10:26 AM #36 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?
-
-
27th April 2012, 10:36 AM #37 Possibly they are done differently here! I will investigate more!
-
SHARE:
Similar Threads
-
By amvc in forum MIS Systems
Replies: 2
Last Post: 29th July 2009, 04:25 PM
-
By academic_mwnci in forum MIS Systems
Replies: 2
Last Post: 3rd September 2008, 12:02 AM
-
By mullet_man in forum MIS Systems
Replies: 13
Last Post: 23rd November 2007, 07:03 PM
-
By niknik in forum Web Development
Replies: 0
Last Post: 29th August 2007, 03:00 PM
-
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
-
Forum Rules