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

    Dashboard - 3rd Column - $100

    Scheduled Pinned Locked Moved Completed Bounties
    51 Posts 10 Posters 41.5k 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.
    • E
      Eugene
      last edited by

      @2low4zero:

      Do I owe you a little cash Evgeny?

      Let's test it first -) I'll PM you when it is ready and on how to test it.

      http://ru.doc.pfsense.org

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

        Ok, I redid lots of css, added/removed/modified some pictures, now the whole theme adjusts to browser's window size pretty nice.
        Now I am trying to make it perfect by letting web-server to decide how many columns to give you for widgets (based on width of your browser window) but I hit a roadblock that I can't seem to find solution for.
        How can php code (server side) be aware of browser window current width (client side)? I tried cookie but it works only if you refresh after resizing the window…
        Any hints will be appreciated. I really would not like to hard code number of columns...
        Thanks.

        http://ru.doc.pfsense.org

        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          It probably can't, because that has to be determined by javascript.

          Why does the PHP code have to know? Couldn't you shuffle the widgets around or rewrite the widget container using only javascript?

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • S
            simoncpu
            last edited by

            @Evgeny:

            Ok, I redid lots of css, added/removed/modified some pictures, now the whole theme adjusts to browser's window size pretty nice.
            Now I am trying to make it perfect by letting web-server to decide how many columns to give you for widgets (based on width of your browser window) but I hit a roadblock that I can't seem to find solution for.
            How can php code (server side) be aware of browser window current width (client side)? I tried cookie but it works only if you refresh after resizing the window…
            Any hints will be appreciated. I really would not like to hard code number of columns...
            Thanks.

            Just do something like:

            $_GET['var'] will then contain the value "123". Of course, it will all depend on what you're trying to do. A better solution is to modify the HTML using JavaScript instead. :)

            1 Reply Last reply Reply Quote 0
            • 2
              2low4zero
              last edited by

              All,

              Evgeny is, for lack of a better phrase, THE MAN!  And the bounty has been paid.  Thanks go out to SimonCPU, SuperMule, and Jimp on this one.  I appreciate the input.

              Now then, Evgeny wanted to open the floor for discussions regarding auto-detecting browser dimensions versus just manually selecting 3 or 4 columns.  Can anyone give a good argument on why one method might be superior to the other?

              Also, here are a couple of links to some full-sized sample images for your TMI-Candy enjoyment;

              http://mail.manske.org/Advancing-Column01.jpg
              http://mail.manske.org/Advancing-Column03.jpg

              Hopefully Evgeny can push this into the repository sometime soon and the core team will accept it.

              Thanks again everyone.

              AC01thumb2.jpg
              AC01thumb2.jpg_thumb
              AC03thumb.jpg
              AC03thumb.jpg_thumb

              1 Reply Last reply Reply Quote 0
              • S
                sullrich
                last edited by

                Please send patches to coreteam@pfsense.org so I can look them over.  We MIGHT be able to get these in if they are trivial…. But no promises until I can judge the risk factor being this late in the BETA cycle.

                EDIT: oh by the way, that looks incredible!

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

                  This is done as a package now. I was not hoping that you could push it to pfSense mainline.
                  modified:

                  • index.php
                  • fbegin.inc
                  • fend.inc
                  • all.css for pfsense_ng theme
                    and added several pictures.
                    Still want to see patches or should I just push new package to packages in gitorious?
                    Thanks.

                  http://ru.doc.pfsense.org

                  1 Reply Last reply Reply Quote 0
                  • S
                    sullrich
                    last edited by

                    Why would you not want this stuff included?

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

                      Just because it is not tested enough and might badly affect other themes although I tried to avoid this. -( Lots of css stuff looked puzzling to me as usually you do not understand other's people thoughts ver well when they design web-pages using css (all this coordinates, margins, pads, relative-ness etc).
                      Anyway I'll provide patches and you decide.

                      http://ru.doc.pfsense.org

                      1 Reply Last reply Reply Quote 0
                      • S
                        sullrich
                        last edited by

                        OK I understand your hesitation and can appreciate that.

                        I'll look it over and worst case scenario we get it in for 2.1.

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

                          I've sent patches.
                          I've got $300 from bounty starter. Thanks!!!
                          I've donated $100 out of these $300 to pfSense. Thank you, pfSense team!

                          http://ru.doc.pfsense.org

                          1 Reply Last reply Reply Quote 0
                          • S
                            Supermule Banned
                            last edited by

                            This is just awesomeness!!

                            Thx Evgeny! looks very good! Sorry I couldnt contribute more than I did.

                            1 Reply Last reply Reply Quote 0
                            • 2
                              2low4zero
                              last edited by

                              I think we did a good thing here for the whole community.  And I obviously wanted it bad enough to pay for it and test it.  I hope the core team finds it safe and suitable for inclusion before 2.0 goes RC.  Maybe not, but it's obviously cool enough to include down the line.

                              Thanks again, Evgeny.

                              1 Reply Last reply Reply Quote 0
                              • S
                                Supermule Banned
                                last edited by

                                Is it backwards compatible with 1.2.3?

                                1 Reply Last reply Reply Quote 0
                                • 2
                                  2low4zero
                                  last edited by

                                  Backwards compatible?

                                  Nyet!  What we've got in 1.2.3 is what we've got, unless there's ever a 1.2.4, I suspect.

                                  Good question for the devs though;  Will there ever be a 1.2.4 with a backport of …stuff... from 2.x?
                                  (Way off topic though...)

                                  1 Reply Last reply Reply Quote 0
                                  • jimpJ
                                    jimp Rebel Alliance Developer Netgate
                                    last edited by

                                    No, 1.2.x is dead; Long live 2.0. :-)

                                    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                    Need help fast? Netgate Global Support!

                                    Do not Chat/PM for help!

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      Supermule Banned
                                      last edited by

                                      I was only thinking about the mod here :)

                                      1 Reply Last reply Reply Quote 0
                                      • jimpJ
                                        jimp Rebel Alliance Developer Netgate
                                        last edited by

                                        The 2.0 dashboard is a lot different than the one backported into the 1.2.3 dashboard package… At this point I doubt it would be worth the effort to backport the changes into that package.

                                        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                        Need help fast? Netgate Global Support!

                                        Do not Chat/PM for help!

                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          Supermule Banned
                                          last edited by

                                          Thks Jim :)

                                          @jimp:

                                          The 2.0 dashboard is a lot different than the one backported into the 1.2.3 dashboard package… At this point I doubt it would be worth the effort to backport the changes into that package.

                                          1 Reply Last reply Reply Quote 0
                                          • 2
                                            2low4zero
                                            last edited by

                                            I left the 3 column dashboard up all night.  It's been 24 hours and no errors, complaints, or lock-ups.

                                            So far it's all good.

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