Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Widescreen package issue

    Scheduled Pinned Locked Moved pfSense Packages
    3 Posts 2 Posters 1.9k 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.
    • R
      romainp
      last edited by

      Hi,
      I really enjoy the widescreen package but I have an issue with it:
      When installed and the browser refreshed, all seems to be fine for a while.
      But it seems that as soon as the information 'Current: xxx Mhz, Max xxx Mhz' appear in the CPU type section in the 'System Information' section then the result is pretty ugly as showned in the screenshot.

      Any idea?
      Thanks
      widescreen.png
      widescreen.png_thumb

      1 Reply Last reply Reply Quote 0
      • L
        LostInIgnorance
        last edited by

        You have to modify /usr/local/www/index.php
        Modify the line: var numofcols = parseInt(currwidth/400);

        var printed2 = false;
        var printed3 = false;
        var printed4 = false;
        var printed5 = false;
        var printed6 = false;
        var numofcols = parseInt(currwidth/400); // one column is minimum 350px
        if (numofcols < 2) numofcols = 2;
        var colpercent;  // column width in percents
        if (numofcols <= 2) colpercent = parseInt(100/numofcols-2);
        else colpercent = parseInt(100/numofcols-1);
        

        Modify it to 500 or 600 and that should get rid of the extra column.  I am working on some code changes for the widescreen package to add or delete columns with a button on the top of the page, but haven't had time lately to code much.

        1 Reply Last reply Reply Quote 0
        • R
          romainp
          last edited by

          Perfect! It works!
          Hope to see soon an updated version of the cool package.

          Thanks again
          Romain

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.