Network and Classroom Management Thread, MRBS - Entry Types in Technical; Any one able to get entry types to work?
Not sure what I am missing but have the config portion ...
-
9th November 2007, 06:11 PM #1
- Rep Power
- 0
MRBS - Entry Types
Any one able to get entry types to work?
Not sure what I am missing but have the config portion here to look at, any where else that needs a change?
# $typel["A"] = "A";
# $typel["B"] = "B";
# $typel["C"] = "C";
# $typel["D"] = "D";
$typel["E"] = get_vocab("external");
# $typel["F"] = "F";
# $typel["G"] = "G";
$typel["H"] = get_vocab("holiday"); < -- this is the one I added and will not show on the page
$typel["I"] = get_vocab("internal");
# $typel["J"] = "J";
-
-
IDG Tech News
-
10th November 2007, 10:06 PM #2 Re: MRBS - Entry Types
Change to
$typel["H"] = "Holiday";
However, the letters only link to the CSS. For example.."A" is the colour it links to. If you look in your CSS you'll see this.
"H" is just another colour.
-
-
18th December 2007, 08:38 PM #3
- Rep Power
- 0
Re: MRBS - Entry Types
Thanx, got it an hors after my post 8O .
New question though, new to PHP. How would I set MRBS to show the login page before anything else? Looked in the index.php and that was not much help.
-
-
28th December 2007, 08:39 PM #4 Re: MRBS - Entry Types
That is quite an easy one, but off the top of my head I can't tell you the exact code to add and where to add it. There is a function to check what the username of the requester is (they who are accessing various areas of MRBS). All I did was check if this username was null, and if null, exit the script and echo a message telling them to login, thus preventing the rest of the php from loading. Works really well but needs some tweaks in the echo part (or maybe directing to a custom page) to look consistant.
I can take a look when school reopens at what I changed and let you know how I did it, if you haven't figured it out by then.
-
-
28th December 2007, 09:07 PM #5
- Rep Power
- 0
Re: MRBS - Entry Types
That would be great! Thank you. Have to admit.. never thought to look there. Will take a look to see if I can figure it out and I look forward to your response.
-
-
9th January 2008, 11:38 AM #6 Don't know if you managed to do this or not, but i've checked what I used on my code and the below seems to be effective for us..
Code:
$username = getUserName();
if (!$username) {
include "nologin.php";
exit;
} In the case of including nologin.php, this is a custom page I have created to inform for the user why their request failed (ie: letting them know they are not logged in).
I put it below the bit of code which grabs the date, although I would imagine it would still ok putting it strait after the main include lines at the top, so long as it is before the main mrbs code.
Dave
-
SHARE: 
Similar Threads
-
By jcs808 in forum Windows
Replies: 13
Last Post: 28th February 2012, 10:57 AM
-
By mmoseley in forum Network and Classroom Management
Replies: 4
Last Post: 27th October 2007, 10:47 PM
-
By thegrassisgreener in forum Windows
Replies: 13
Last Post: 2nd October 2007, 10:17 AM
-
By mark80 in forum MIS Systems
Replies: 6
Last Post: 15th May 2007, 03:35 PM
-
Replies: 21
Last Post: 20th February 2006, 07:35 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
-
Forum Rules