Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Widget "Captive Portal Status" small bug

    Scheduled Pinned Locked Moved webGUI
    2 Posts 2 Posters 1.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • GertjanG
      Gertjan
      last edited by

      The widget "Captive Portal Status" contains a smal visual bug.

      To see the effect:
      You should have more then one portal user connected.
      Like this:

      more users connected will be fine also.

      Now, disconnect a user with the "grey cross button" at the left side.

      When this button is clicked, someting like this is sent:

      href="?order=&showact=0&act=del&zone=cpzone1&id=2d84ec64268bc40d

      &showact will be set … to 0 (zéro).

      Now, have a look at line 75:

      $showact = isset($_GET['showact']) ? 1 : 0;
      

      $showwact will be set to "1" because 'showact' 'isset' (and has a value of 0 (zéro))  ;D

      Result: have a look at your screen: the widget breaks visually because two more columns are shown.

      I have tested and propose this for line:

      $showact = (isset($_GET['showact']) && ($_GET['showact'] == 1)) ? 1 : 0;
      

      No "help me" PM's please. Use the forum, the community will thank you.

      1 Reply Last reply
      Reply Quote 0
      • E
        EMWEE
        last edited by

        Noticed the widget breaking a couple of days ago. Gonna try out your solution.

        1 Reply Last reply
        Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
        Privacy Policy · Cookie Policy