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

    BOUNTY: Web GUI reprogramming

    Scheduled Pinned Locked Moved Bounties
    256 Posts 31 Posters 173.7k 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.
    • S
      snazy2000
      last edited by

      Just installed your code in to my dev box and im getting tonnes of errors.

      Warning: require_once(shortcuts.inc): failed to open stream: No such file or directory in /usr/local/www/fbegin.inc on line 8 Fatal error: require_once(): Failed opening required 'shortcuts.inc' (include_path='.:/etc/inc:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg') in /usr/local/www/fbegin.inc on line 8

      also got one about set_language in the guiconfig file

      1 Reply Last reply Reply Quote 0
      • C
        charlie0440
        last edited by

        is that on 2.0.3? I've been coding against 2.1 as I had loads of issues with JQuery in 2.0.3.

        Edit: I can highly recommend a virtual box (or any virtual machine) install. All that is required is the latest snapshot iso load up the machine and if you screw it up just reboot the VM.  ;D

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

          Thats on 2.0.2 and 2.0.3

          1 Reply Last reply Reply Quote 0
          • C
            charlie0440
            last edited by

            @snazy2000:

            Thats on 2.0.2 and 2.0.3

            I suggest you move to 2.1 as there have many commits which affected the GUI code, plus there's no point working against an old build.

            If you are continuing against 2.0x the only post of mine with files which should work is this one > http://forum.pfsense.org/index.php/topic,48140.msg333804.html#msg333804

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

              Any such work should be using a 2.1 base mostly because 2.0.x was all using prototype.js, 2.1 was converted to jQuery.

              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
                snazy2000
                last edited by

                Well im bit of an idiot i used to be on 2.1 but during a 1am madnas when i saw 2.0.3 was released i downgraded (thought i was upgrading)

                I am now upgrading to 2.1 again! Duh…

                1 Reply Last reply Reply Quote 0
                • C
                  charlie0440
                  last edited by

                  So I've been busy and had put this project to rest (temporarily).

                  I Revisited it tonight but took a different approach. I started working on it as a theme ie CSS changes as opposed to rewriting the HTML.
                  In the process of attempting to get twiitter bootstrap implemented I ended up with a very basic full screen theme (with no fancy features) based on the pfsense_ng theme.

                  Anyway I pushed it to pfsense master so maybe it will get merged.

                  https://github.com/pfsense/pfsense/pull/647

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

                    Looks good but more columns are needed, they dont have to be wider…

                    1 Reply Last reply Reply Quote 0
                    • C
                      charlie0440
                      last edited by

                      @Supermule:

                      Looks good but more columns are needed, they dont have to be wider…

                      Easier said then done.

                      I pretty much have accomplished this in my testing. I have a version which has 3 columns which are droppable but I haven't figured out how to save their state (Ajax code).

                      Problem is this can't be implemented as a theme. It requires changes to the HTML & javascript. Which I guess as most of the existing themes are fixed width would require all the existing themes to be edited :(

                      Edit: Does anyone know where the source code for the widescreen package is?

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

                        Rich did some rewrite of the widescreenpackage and got it working quite well.

                        Maybe you should talk to him about it since the 2 column code id hardcoded into pfsense.

                        1 Reply Last reply Reply Quote 0
                        • C
                          charlie0440
                          last edited by

                          @Supermule:

                          Looks good but more columns are needed, they dont have to be wider…

                          Something like this ;) http://youtu.be/dYNSF3zIHlM

                          That is achieved using jQuery no changes have been made to pfsense's core, it is added as part of the theme (so far so good). The problem is, as I said before, I can't work out how the Ajax code is working with saving the states. So as soon as you navigate away from the dash we are back to 2 columns  >:(

                          @Supermule:

                          Rich did some rewrite of the widescreenpackage and got it working quite well.

                          Maybe you should talk to him about it since the 2 column code id hardcoded into pfsense.

                          How do I contact rich? Is that his forum username? or are there any devs reading this who can help. I think we all agree this would be cool for pfsense!

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

                            This is his profile.

                            http://forum.pfsense.org/index.php?action=profile;u=236308

                            This is a further discussion about the widescreen package.

                            http://forum.pfsense.org/index.php/topic,62410.0.html

                            1 Reply Last reply Reply Quote 0
                            • C
                              charlie0440
                              last edited by

                              @Supermule:

                              This is a further discussion about the widescreen package.

                              http://forum.pfsense.org/index.php/topic,62410.0.html

                              Damn if I had seen this thread before I would of finished this ages ago. It enabled me to understand how the save states were being loaded!

                              So I think I have this solved (spend far too long on it today).
                              new vid (sound seems screwed up so you might want to turn it down/mute): http://youtu.be/irglXyn41Ys?t=3s
                              new theme pull requests sent to master. Fingers crossed

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

                                Exactly why I posted it ;)

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

                                  In the video it looks like it reverts back to 2 columns in the end??

                                  1 Reply Last reply Reply Quote 0
                                  • C
                                    charlie0440
                                    last edited by

                                    it becuase I change back to the pfsense_ng theme.

                                    This is a new theme called full_screen. Its a theme so it doesn't touch much core code ie break anything else.

                                    the widescreen package is quite hacky changing lots of files etc. this only changes the index.php slightly all the rest is part of the theme files (its still a hack tho)

                                    1 Reply Last reply Reply Quote 0
                                    • C
                                      charlie0440
                                      last edited by

                                      if anyone wants to test it. Download it here: https://dl.dropboxusercontent.com/u/12367642/full_screen_theme.zip

                                      extract the zip to a folder ie tmp

                                      you need to place the files onto pfsense.

                                      In linux from a terminal:
                                      cd /location/of/folder/tmp
                                      scp -r * root@192.168.0.50:/usr/local/www/

                                      Remeber to change the ip address  ;)

                                      Then on the webgui select the theme full_screen

                                      Edit for 2.1 only (not sure if it'll work with 2.0.x)

                                      1 Reply Last reply Reply Quote 0
                                      • C
                                        Clear-Pixel
                                        last edited by

                                        @charlie0440:

                                        Something like this ;) http://youtu.be/dYNSF3zIHlM

                                        That is achieved using jQuery no changes have been made to pfsense's core, it is added as part of the theme (so far so good). The problem is, as I said before, I can't work out how the Ajax code is working with saving the states. So as soon as you navigate away from the dash we are back to 2 columns  >:(

                                        Not sure what type of database pfsense is utilizing, but a record would need to be created for this task, so the column count state can be stored and be retrieved when a page loads or a refresh occurs.

                                        OR

                                        Look for a jquery cookie plugin and store the column value there.

                                        OR

                                        Haven't had a need to arise yet to try this, but you might be able to rewrite the default variable value of the column count in the jquery file itself. File of course would have to be set to read & write which I don't really like but the security might not be a concern depending on the deployment.

                                        Note:
                                        There is a need for a enhanced Menu. It should be in a side bar and capable of expanding and collapsing! There is a template already with a side bar menu that can be modified! The problem with the exsiting it its not collapsible!

                                        See my previous reply's

                                        HP EliteBook 2530p Laptop - Core2 Duo SL9600 @ 2.13Ghz - 4 GB Ram -128GB SSD
                                        Atheros Mini PCI-E as Access Point (AR5BXB63H/AR5007EG/AR2425)
                                        Single Ethernet Port - VLAN
                                        Cisco SG300 10-port Gigabit Managed Switch
                                        Cisco DPC3008 Cable Modem  30/4 Mbps
                                        Pfsense 2.1-RELEASE (amd64)
                                        –------------------------------------------------------------
                                        Total Network Power Consumption - 29 Watts

                                        1 Reply Last reply Reply Quote 0
                                        • C
                                          charlie0440
                                          last edited by

                                          @clear-pixel Don't think you read the last few posts before posting. I solved that problem of storing the column number a few posts back.

                                          I hear what your saying about the GUI. I think the way to go is to get all the css and as much js as we can out of the HTML/PHP pages and into .css & .js files. Then we can work on stuff like collapsible menus and fancy stuff. But until that is done, it would be a nightmare.

                                          1 Reply Last reply Reply Quote 0
                                          • stephenw10S
                                            stephenw10 Netgate Administrator
                                            last edited by

                                            I would personally not want collapsible menus unless there was a very good reason for it. I can't think of one, but I'm open to suggestions.  ;)

                                            Steve

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