+ Post New Thread
Results 1 to 6 of 6
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 ...
  1. #1

    Join Date
    Nov 2007
    Posts
    3
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    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";

  2. #2
    Silvor's Avatar
    Join Date
    Oct 2007
    Posts
    122
    Thank Post
    18
    Thanked 15 Times in 10 Posts
    Rep Power
    16

    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.

  3. #3

    Join Date
    Nov 2007
    Posts
    3
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    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.

  4. #4
    dgsmith's Avatar
    Join Date
    Nov 2007
    Location
    Merseyside, England
    Posts
    1,101
    Thank Post
    118
    Thanked 90 Times in 78 Posts
    Rep Power
    36

    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.

  5. #5

    Join Date
    Nov 2007
    Posts
    3
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    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.

  6. #6
    dgsmith's Avatar
    Join Date
    Nov 2007
    Location
    Merseyside, England
    Posts
    1,101
    Thank Post
    118
    Thanked 90 Times in 78 Posts
    Rep Power
    36
    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:
+ Post New Thread

Similar Threads

  1. Strange DHCP entry
    By jcs808 in forum Windows
    Replies: 13
    Last Post: 28th February 2012, 10:57 AM
  2. Backup Types
    By mmoseley in forum Network and Classroom Management
    Replies: 4
    Last Post: 27th October 2007, 10:47 PM
  3. Adding DNS Entry
    By thegrassisgreener in forum Windows
    Replies: 13
    Last Post: 2nd October 2007, 10:17 AM
  4. Report Types
    By mark80 in forum MIS Systems
    Replies: 6
    Last Post: 15th May 2007, 03:35 PM
  5. Log entry if RAM is removed?
    By pete in forum Windows
    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
  •