FFF

  • 174
Discussions
Forum's Comments
  • Primary Changes the Top and Bottom navigation bars, but it does not change the "android:navigationBarColor" which sits below the bottom navigation bar and it is not defined in the app theme. 

    Thank you for pointing this out, this color should be changeable is Theme.js as well, please try to change the following:

    statusBar: '',
    0 0 0 0 0 0
    • To change top/bottom navigation bar color, please try to change the following color in Theme.js file:

      primary: '',
      0 0 0 0 0 0
      • Hey Will Monte yes, it will have it's own page so, to set it up from scratch, you would do this. 

        1. Go into Studio > Pages click Add New Page

        2. Click the Settings button and choose the layout you want - 1 column, 2 column, etc. 

        3. Click Add Block and scroll to messenger and add the messenger block where you want it. 

        4. Click View Page and get the URL to this new page cause you will need it later. (i.e. page/NewPageName)

        5. There is a trick to making the chat box bigger since I could never get it to work using custom CSS. You will need to click Add Block again. This time choose RAW block and add it to your page. Click the Raw block to edit it and make just these changes:

        -- Block Layout = Content

        --Inside the content box, add this code:

        <style>

        .bx-messenger-table-wrapper .bx-messenger-table-wrapper-rows {

        background-color: ;

        }

        .bx-messenger-table-wrapper div.bx-messenger-table-wrapper-rows:first-child .cell

        {

            height:600px;

        }

        </style>

        NOTE: You can change the height:600px; to whatever you desire but 600 is pretty good. Don't worry. this box will not display on the page 😁  


        Now that you have your Page built, you need to add it to your Site Navigation so members can get to it. Go into Studio > Navigation > Site Navigation

        Click Add New Item. Give the new menu a System and Title name (what you want the menu item to be named). In the URL portion, paste the URL you got from View Page earlier. You should only need page/NewPageName here. Give it a icon and BAM. There you have it. 

        0 0 0 0 0 0
        • Chris colors are not adjustable, I did like this but it is difficult to find colors that go well on both dark and light theme. So you would need to inject different colors for each theme.


          /*   Color reactions */
          .col-red3 {
          color: ;
          }
          .col-red1 {
          color: ;
          }

          image_transcoder.php?o=bx_froala_image&h=1487&dpx=1&t=1561638636

          0 0 0 0 0 0

          Primary Changes the Top and Bottom navigation bars, but it does not change the "android:navigationBarColor" which sits below the bottom navigation bar and it is not defined in the app theme. 

          Thank you for pointing this out, this color should be changeable is Theme.js as well, please try to change the following:

          statusBar: '',
          • 21

          To change top/bottom navigation bar color, please try to change the following color in Theme.js file:

          primary: '',
          • 23
          Added a discussion  to  , FFF

          How do I activate and use Custom Fields within pages, I have a HTML block on a page but the fields will not activate?

          I would like to use something like this: {profile_name} thank you for joining {site_name} your site URL is: {profile_url} and then enable copy to cilpboard using a script in a HTML block on the page, where the value="<a href="{profile_url}?utm_source=testing&utm_medium=web&utm_campaign=marketing&utm_term=Mar2021&utm_content=UNA">{profile_name}</a>"

          Here is the sample code, can anyone help?

          <meta name="viewport" content="width=device-width, initial-scale=1">
          <style>
          .tooltip {
            position: relative;
            display: inline-block;
          }
          
          
          .tooltip .tooltiptext {
            visibility: hidden;
            width: 140px;
            background-color: #555;
            color: ;
            text-align: center;
            border-radius: 6px;
            padding: 5px;
            position: absolute;
            z-index: 1;
            bottom: 150%;
            left: 50%;
            margin-left: -75px;
            opacity: 0;
            transition: opacity 0.3s;
          }
          
          
          .tooltip .tooltiptext::after {
            content: "";
            position: absolute;
            top: 100%;
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: #555 transparent transparent transparent;
          }
          
          
          .tooltip:hover .tooltiptext {
            visibility: visible;
            opacity: 1;
          }
          </style>
          </head>
          <body>
          
          
          <p>Click on the button to copy the text from the text field. Try to paste the text (e.g. ctrl+v) afterwards in a different window, to see the effect.</p>
          <p>{profile_name} thank you for joining {site_name} your site URL is: {profile_url}</p>
          
          
          <input type="text" value="Hello World" id="myInput">
          
          
          <div class="tooltip">
          <button onclick="myFunction()" onmouseout="outFunc()">
            <span class="tooltiptext" id="myTooltip">Copy to clipboard</span>
            Copy text
            </button>
          </div>
          
          
          <script>
          function myFunction() {
            var copyText = document.getElementById("myInput");
            copyText.select();
            copyText.setSelectionRange(0, 99999);
            document.execCommand("copy");
            
            var tooltip = document.getElementById("myTooltip");
            tooltip.innerHTML = "Copied: " + copyText.value;
          }
          
          
          function outFunc() {
            var tooltip = document.getElementById("myTooltip");
            tooltip.innerHTML = "Copy to clipboard";
          }
          </script>


          • 276
          Followers
          Empty

          UNA - Network Infrastructure for Communities

          Close