Menu

#1312 Modification in access level and adding new lov

open
nobody
None
1
2017-09-15
2017-09-13
No

Hi
My Name is Ramana . This is regarding the application MRBS.
Can you help me to clarify the bellow items.

1: How to make the application open for all. ? . I want to define only two levels
level 1 : user

level 2: admin

Please provide the changes and filename where the changes required

2:
How to include 1 more new LOV .

As similer to room booking , I want to define new LOV to add projecotr booking . Is this possible to add new LOV to add projecotr selection

Discussion

  • Campbell Morrison

    1. This is the default configuration.
    2. I am not quite sure what you mean by "LOV"? If you mean another field in the booking form, then follow the instructions on "custom fields" in INSTALL and systemdefaults.inc.php. If you mean that you'd like a system for booking projectors instead of rooms, then all you need to do is to change the text strings using the $vocab_override config settings.
     
    • Ramana Reddy

      Ramana Reddy - 2017-09-13

      Hi Campbell,
      Thank you so much for the update.
      For the item #2
      I want to add new filed as add projector like add room .
      So can you please help.me where I should make chages

       

      Last edit: Campbell Morrison 2017-09-13
  • Campbell Morrison

    All you need to do is to create two new columns, one in the entry table and the other in the repeat table, called 'projector' and make them tinyint(1). MRBS will do the rest. The only other thing you ned to do is to add the following in your config file to give the new field a label:

    $vocab_override['en']['entry.projector'] = 'Projector';
    

    The example above was for English. Substitute your language for 'en'.

     

    Last edit: Campbell Morrison 2017-09-13
    • Ramana Reddy

      Ramana Reddy - 2017-09-14

      As mentioned , i have created two coulmns in two tables(entry and repeat
      table) .

      Cna you help me where exaclty I have to add the below code in config file.

      $vocab_override['en']['entry.projector'] = 'Projector';
      
       

      Last edit: Campbell Morrison 2017-09-14
      • Ramana Reddy

        Ramana Reddy - 2017-09-14

        I have added the code as hown below, however the changes not appeared in
        the application. Please help .
        [image: Inline image 1]

        [image: Inline image 2]

         

        Last edit: Campbell Morrison 2017-09-14
        • Ramana Reddy

          Ramana Reddy - 2017-09-14

          Added successfully . Thank you

           

          Last edit: Campbell Morrison 2017-09-14
          • Ramana Reddy

            Ramana Reddy - 2017-09-14

            Hi Team,
            Thanks for the help.
            Sorry to bother you. need advice for the below items
            1: Is it possible to change the alignement of the application . want to
            move some of the tabs like help should move to right corner and rooms and
            report modules should move to one line below.

            Please advice how and where to change the positions of each module .

            [image: Inline image 1]

             

            Last edit: Campbell Morrison 2017-09-14
  • Campbell Morrison

    You'll need to modify the MRBS code to do this, in particular the function print_nav() in Themes/default/header.inc. You might also need to modify the CSS by adding a custom CSS file (see systemdefaults.inc.php for how to do this).

     
    • Ramana Reddy

      Ramana Reddy - 2017-09-15

      Hi Campbell,

      I have changed the theme color from default to classic and the changes were
      reflected . However when I change back to default the changes are not
      reflcting in the applcation . Please help me how to check the different
      colors. and How to change the applcation color to deault.

      Thanks for your usual support.

       

      Last edit: Campbell Morrison 2017-09-15
  • Campbell Morrison

    I'm not quite sure what you mean. Do you mean that you have set

    $theme = 'classic126';
    

    and then changed it back to

    $theme = 'default';
    

    and the colours are still the classic colours? If so, are you sure that you have uploaded the changed config file?

     

    Last edit: Campbell Morrison 2017-09-15
    • Ramana Reddy

      Ramana Reddy - 2017-09-15

      Yes , it s in calssic file.

      have uploaded the changed config file?-- Yes I saved the changes . Where
      to upload the config file.

       

      Last edit: Campbell Morrison 2017-09-15
      • Campbell Morrison

        The config file should be placed in the web directory of your MRBS installation, ie at the same level as index.php, edit_users.php, etc.

         
        • Ramana Reddy

          Ramana Reddy - 2017-09-15

          Yes It is placed at web directory of my MRBS installation. Please refer the
          screen below.
          I have done changes(theme color to default) in file systemdefaults.inc and
          this one placed at same folder too.

           

          Last edit: Campbell Morrison 2017-09-15
          • Ramana Reddy

            Ramana Reddy - 2017-09-15

            I have replaced file with the file which I download from site. Its working
            fine now. Can you please clarify , If I want to make changes in apllcation
            colors from where I can change. Also is this possible to display images(png
            format) if yes please tell me how?

             

            Last edit: Campbell Morrison 2017-09-15
            • Campbell Morrison

              To change the colours, you should make your own theme by copying the directory Themes/default to another directory, eg Themes/ramana and then change the colours by editing styling.inc.

              To add a logo search for '$mrbs_company_logo' in systemdefaults.inc.php.

              Please read INSTALL and systemdefaults.inc.php for full instructions on how to customise MRBS.

               
              • Ramana Reddy

                Ramana Reddy - 2017-09-15

                Thank you so much Campbell.

                One last query for the day. Where to edit the below fields.

                1: Areas

                [image: Inline image 1]

                2: Want to remove the Full Descritpion and change area

                [image: Inline image 2]

                 

                Last edit: Campbell Morrison 2017-09-15
                • Campbell Morrison

                  As mentioned elsewhere in this ticket (a) I cannot see attachments if you just reply to the notification emails, so I do not know what you want to achieve and (b) it would be helpful if you could start a new ticket when you have a new topic please.

                   
                  • Ramana Reddy

                    Ramana Reddy - 2017-09-15

                    Sorry for that . Ill create new ticket

                     

                    Last edit: Campbell Morrison 2018-10-03
          • Campbell Morrison

            If you just reply to the notification email then I cannot see any attachments - and also the whole email chain gets posted on sourceforge. It's better to reply by going to sourceforge, eg to https://sourceforge.net/p/mrbs/support-requests/1312/ in this case, and posting the reply using your web browser.

            You should not make any changes to systemdefaults.inc.php. Just put any changes you want to make in config.inc.php - this file overrides systemdefaults. I expect that is why you are not seeing any changes.

             
  • Campbell Morrison

    PS By the way, it would be helpful in future if you could raise a new ticket when you have a new topic. It makes it easier for others to benefit from the solutions. Thanks.

     
MongoDB Logo MongoDB