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

    2.1.5 widescreen patch - multiple columns on dashboard

    Scheduled Pinned Locked Moved webGUI
    41 Posts 13 Posters 13.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.
    • C
      charlie0440
      last edited by

      Firstly this patch is all thanks to SuperMule who posted a bounty (https://forum.pfsense.org/index.php?topic=80053.0) requesting a widescreen patch. So it is a big thank you to him for paying for the patch and then allowing everyone else to use it for free!!

      This is a patch I wrote which contains a new theme "pfsense_ng_fs". It's a clone of the default pfsense_ng theme but makes it full screen. The theme has already made it into 2.2 (where it acts more responsive to window resizing, along with many other changes which are not included here).

      To apply the theme, the easiest way is to access the shell (either via ssh or via console/VGA of your pfsense box), and issue these two commands:

      
      fetch -o /tmp https://dl.dropboxusercontent.com/u/12367642/2.1.5_widescreen.tar.gz
      tar -zxvf /tmp/2.1.5_widescreen.tar.gz -C /
      
      

      Then from the System > General Setup menu select the new theme "pfsense_ng_fs"

      If your issues with the menu wrapping on pfsense (not caused by the patch but code adding in 2.1.5). Go to system > patches and apply this commit:

      https://github.com/CharlieMarshall/pfsense/commit/2b5c16b9c6ee3dcb9a1333b44949f48024eb3cd0
      

      It should be completely safe to apply this patch as it adds loads of files which are related to the new theme. The only existing file which will be changed is the index.php file. The changes in there will not break current 2.1.5 and if you choose to not use the theme, you just need to go to "General Setup" and switch themes. If you are determined to undo the changes from the patch. You can replace the modified index.php with the default 2.1.5 index.php which can be found here:

      https://raw.githubusercontent.com/pfsense/pfsense/RELENG_2_1/usr/local/www/index.php

      Screenshot (yes this says 2.1.4, but the patch has been modified for 2.1.5):

      List of files inside zip (many are just a clone of the pfsense_ng files and have not been modified)

      usr/local/www/themes/pfsense_ng_fs/images/misc/tri_c.gif
      usr/local/www/themes/pfsense_ng_fs/rrdcolors.inc.php
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_frmfld_mail.png
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_services_stop_mo.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_services_restart_mo.gif
      usr/local/www/themes/pfsense_ng_fs/javascript/ie7/ie7-standard.js
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_system-group-grey.png
      usr/local/www/themes/pfsense_ng_fs/images/header.png
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_reject_d.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_frmfld_unknown.png
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_3g.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_check.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_advanced_s.gif
      usr/local/www/themes/pfsense_ng_fs/images/menu_right.gif
      usr/local/www/themes/pfsense_ng_fs/images/misc/widget_loader.gif
      usr/local/www/themes/pfsense_ng_fs/images/menubgr.png
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_pass_add.gif
      usr/local/www/themes/pfsense_ng_fs/images/misc/loader.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_carp_d.gif
      usr/local/www/
      usr/local/www/themes/pfsense_ng_fs/images/mainmenu-right.gif
      usr/local/www/themes/pfsense_ng_fs/images/mainmenu-down.gif
      usr/local/www/themes/pfsense_ng_fs/apple-touch-icon.png
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_block_add.gif
      usr/local/www/themes/pfsense_ng_fs/javascript/transmenu-body.php
      usr/local/www/themes/pfsense_ng_fs/javascript/img/submenu-off.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_clock_red.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_in_d.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_service_stop_d.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_right.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_reinstall_xml_d.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_plus_bl_p.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_up_d.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_e.gif
      usr/local/www/themes/pfsense_ng_fs/bottom-loader.js
      usr/local/www/themes/pfsense_ng_fs/images/misc/loader_all.gif
      usr/local/www/themes/pfsense_ng_fs/images/misc/status_alerter.gif
      usr/local/www/widgets/widgets/interface_statistics_supermule.widget.php
      usr/local/www/themes/pfsense_ng_fs/images/misc/graph.png
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_pass.gif
      usr/local/www/themes/pfsense_ng_fs/images/misc/bullet_toggle_plus.png
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_system-user.png
      usr/local/www/themes/pfsense_ng_fs/images/misc/status_left.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_reinstall_xml_mo.gif
      usr/local/www/themes/pfsense_ng_fs/javascript/ie7/ie7-png.js
      usr/local/www/widgets/widgets/
      usr/local/www/themes/pfsense_ng_fs/images/misc/tri_o.gif
      usr/local/www/themes/pfsense_ng_fs/images/misc/rrd_error.png
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_wlan_d.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_cal.gif
      usr/local/www/themes/pfsense_ng_fs/images/misc/tri_o_black.gif
      usr/local/www/themes/pfsense_ng_fs/javascript/ie7/ie7-standard-p.js
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_flag_de.png
      usr/local/www/themes/pfsense_ng_fs/images/misc/tri_c_black.gif
      usr/local/
      usr/local/www/themes/pfsense_ng_fs/images/wizards/initial/restore.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_down.gif
      usr/local/www/themes/pfsense_ng_fs/javascript/ie7/ie7-ie5.js
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_e_mo.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/
      usr/local/www/themes/pfsense_ng_fs/javascript/ie7/ie7-fixed.js
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_service_stop.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_clock_green.gif
      usr/local/www/themes/pfsense_ng_fs/images/status.png
      usr/local/www/themes/pfsense_ng_fs/javascript/ie7/ie7-html4.js
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_flag_en.png
      usr/local/www/themes/pfsense_ng_fs/styles/transmenu.css
      usr/local/www/themes/pfsense_ng_fs/images/misc/bar_right.gif
      usr/local/www/themes/pfsense_ng_fs/images/wizards/initial/joincluster_mo.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_ts_rule.gif
      usr/local/www/themes/
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_alias_host.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_service_stopped.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_parp_d.gif
      usr/local/www/themes/pfsense_ng_fs/images/misc/loader_tab.gif
      usr/local/www/widgets/widgets/traffic_graphs.widget.php
      usr/local/www/themes/pfsense_ng_fs/images/wizards/initial/restore_mo.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_in.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_service_restart_d.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_reinstall_d.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_out.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_alert.gif
      usr/local/www/widgets/include/
      usr/local/www/themes/pfsense_ng_fs/javascript/img/submenu-on.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_advanced.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_service_restart.gif
      usr/local/www/themes/pfsense_ng_fs/images/menu_footer.gif
      usr/local/www/widgets/include/interface_statistics_supermule.inc
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_frmfld_pwd.png
      usr/local/www/themes/pfsense_ng_fs/graphlink.css
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_cablenic.gif
      usr/local/www/themes/pfsense_ng_fs/images/misc/progress_bar.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_down_d.gif
      usr/local/www/themes/pfsense_ng_fs/javascript/
      usr/local/www/themes/pfsense_ng_fs/images/log.png
      usr/local/www/themes/pfsense_ng_fs/javascript/img/white-90.png
      usr/local/www/themes/pfsense_ng_fs/javascript/niftyjsCode.js
      usr/local/www/themes/pfsense_ng_fs/javascript/img/
      usr/local/www/themes/pfsense_ng_fs/javascript/ie7/ie7-css2.js
      usr/local/www/themes/pfsense_ng_fs/all.css
      usr/local/www/themes/pfsense_ng_fs/images/background.jpg
      usr/local/www/themes/pfsense_ng_fs/javascript/ie7/blank.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_ifalias_d.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_logs.gif
      usr/local/www/themes/pfsense_ng_fs/images/misc/status_right.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_frmfld_host.png
      usr/local/www/themes/pfsense_ng_fs/images/wizards/initial/
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_plus_bl.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_system_lock_screen.png
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_info_pkg.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_log_s.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_left_mo.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_minus.gif
      usr/local/www/themes/pfsense_ng_fs/images/wizards/initial/startnewcluster_mo.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_services_start_mo.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_alias_url.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_help.gif
      usr/local/www/themes/pfsense_ng_fs/images/wizards/initial/joincluster.gif
      usr/local/www/themes/pfsense_ng_fs/javascript/ie7/ie7-server.css
      usr/local/www/themes/pfsense_ng_fs/images/wizards/initial/standalone_mo.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_block_d.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_frmfld_search.png
      usr/local/www/themes/pfsense_ng_fs/images/wizards/initial/standalone.gif
      usr/local/www/themes/pfsense_ng_fs/images/misc/bullet_toggle_minus.png
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_frmfld_imp.png
      usr/local/www/themes/pfsense_ng_fs/images/menubgr_highlight.png
      usr/local/www/themes/pfsense_ng_fs/images/new_tab_menu.png
      usr/local/www/themes/pfsense_ng_fs/images/help.png
      usr/local/www/themes/pfsense_ng_fs/no_big_logo
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_trapped_p.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_error.gif
      usr/local/www/themes/pfsense_ng_fs/images/alert_bgr.png
      usr/local/www/themes/pfsense_ng_fs/images/misc/loader_filter.gif
      usr/local/www/themes/pfsense_ng_fs/images/misc/logon.png
      usr/
      usr/local/www/themes/pfsense_ng_fs/javascript/transmenuC.js
      usr/local/www/themes/pfsense_ng_fs/images/wizards/initial/startnewcluster.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_carp.gif
      usr/local/www/themes/pfsense_ng_fs/javascript/ie7/test-trans.png
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_reinstall_xml.gif
      usr/local/www/widgets/
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_ifalias.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_out_d.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_service_start_d.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_block.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_system-user-grey.png
      usr/local/www/themes/pfsense_ng_fs/images/misc/bar_gray.gif
      usr/local/www/themes/pfsense_ng_fs/javascript/transmenu-head.php
      usr/local/www/themes/pfsense_ng_fs/images/misc/status_reload_filter.gif
      usr/local/www/themes/pfsense_ng_fs/styles/menustyles.css
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_service_start.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_up.gif
      usr/local/www/themes/pfsense_ng_fs/images/misc/key_152.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_other.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_configure.gif
      usr/local/www/themes/pfsense_ng_fs/javascript/ie7/ie7-lite-p.js
      usr/local/www/themes/pfsense_ng_fs/javascript/transmenu.org
      usr/local/www/themes/pfsense_ng_fs/images/misc/left_background.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_reinstall_pkg_d.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_alias_port.gif
      usr/local/www/themes/pfsense_ng_fs/javascript/ie7/ie7-css-strict.js
      usr/local/www/themes/pfsense_ng_fs/images/
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_other_d.gif
      usr/local/www/themes/pfsense_ng_fs/images/misc/key_64.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_reinstall_pkg_mo.gif
      usr/local/www/themes/pfsense_ng_fs/images/logo.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_frmfld_group.png
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_interface_down.gif
      usr/local/www/themes/pfsense_ng_fs/images/hostname.png
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_plus_mo.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_alias_net.gif
      usr/local/www/themes/pfsense_ng_fs/new_tab_menu.css
      usr/local/www/themes/pfsense_ng_fs/images/misc/status_reload_all.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_reject.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_plus_d.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_parp.gif
      usr/local/www/themes/pfsense_ng_fs/loader.js
      usr/local/www/themes/pfsense_ng_fs/images/horizontal.png
      usr/local/www/themes/pfsense_ng_fs/images/misc/status_page_loading.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_left_d.gif
      usr/local/www/themes/pfsense_ng_fs/images/alerter.png
      usr/local/www/themes/pfsense_ng_fs/jsevents/
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_flag_es.png
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_ts_rule_d.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_trapped.gif
      usr/local/www/themes/pfsense_ng_fs/
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_service_status.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_wlan.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_cal_mo.gif
      usr/local/www/themes/pfsense_ng_fs/javascript/img/x.gif
      usr/local/www/themes/pfsense_ng_fs/images/misc/button.gif
      usr/local/www/themes/pfsense_ng_fs/javascript/ie7/ie7-css3.js
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_frmfld_url.png
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_x_d.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_plus.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_log_s_d.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_log.gif
      usr/local/www/themes/pfsense_ng_fs/favicon.ico
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_chain.png
      usr/local/www/themes/pfsense_ng_fs/wizard.css
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_system-group.png
      usr/local/www/themes/pfsense_ng_fs/javascript/ie7/ie7-core.js
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_service_running.gif
      usr/local/www/themes/pfsense_ng_fs/images/misc/key_256.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/out.gif
      usr/local/www/themes/pfsense_ng_fs/images/misc/status_carpmaster.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_plus_p.gif
      usr/local/www/themes/pfsense_ng_fs/images/logobig.jpg
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_frmfld_time.png
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_wol_all.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_frmfld_cert.png
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_interface_up.gif
      usr/local/www/themes/pfsense_ng_fs/images/misc/bar_blue.gif
      usr/local/www/themes/pfsense_ng_fs/javascript/ie7/ie7-box-model.js
      usr/local/www/themes/pfsense_ng_fs/javascript/ie7/ie7-lite.js
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_left.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_x_mo.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_import_alias.gif
      usr/local/www/themes/pfsense_ng_fs/images/misc/
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_reinstall_mo.gif
      usr/local/www/index.php
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_system_logout.png
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_close.gif
      usr/local/www/themes/pfsense_ng_fs/images/transparent.gif
      usr/local/www/themes/pfsense_ng_fs/login.css
      usr/local/www/themes/pfsense_ng_fs/images/icons/out_d.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_up_mo.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_wzd_saved.png
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_exclam.gif
      usr/local/www/themes/pfsense_ng_fs/styles/
      usr/local/www/themes/pfsense_ng_fs/menu.inc
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_wzd_nsaved.png
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_fw-update.gif
      usr/local/www/themes/pfsense_ng_fs/jsevents/body.def
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_down_mo.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_reinstall_pkg.gif
      usr/local/www/themes/pfsense_ng_fs/javascript/img/grey-40.png
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_flag_pt_BR.png
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_x_p.gif
      usr/local/www/themes/pfsense_ng_fs/images/menu-dot.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_frmfld_user.png
      usr/local/www/themes/pfsense_ng_fs/images/misc/key_128.gif
      usr/local/www/themes/pfsense_ng_fs/images/mainmenuitem.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_frmfld_file.png
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_x.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/in_d.gif
      usr/local/www/themes/pfsense_ng_fs/images/menubgr_footer.png
      usr/local/www/themes/pfsense_ng_fs/images/wizards/
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_log_d.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_clock_grey.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_3g_inactive.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_open.gif
      usr/local/www/themes/pfsense_ng_fs/javascript/ie7/
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_reinstall.gif
      usr/local/www/themes/pfsense_ng_fs/images/misc/bar_left.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/in.gif
      usr/local/www/themes/pfsense_ng_fs/images/footer.png
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_alias_url_reload.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/icon_pass_d.gif
      usr/local/www/themes/pfsense_ng_fs/images/transparent_pixel.gif
      usr/local/www/themes/pfsense_ng_fs/images/icons/favicon.ico
      
      
      1 Reply Last reply Reply Quote 0
      • ?
        Guest
        last edited by

        WOW! It's Sunday, peace everywhere! I'm bowing deeply, opensource at its best!

        1 Reply Last reply Reply Quote 0
        • D
          doktornotor Banned
          last edited by

          @charlie0440:

          If you are determined to undo the changes from the patch. You can replace the modified index.php with the default 2.1.5 index.php which can be found here:

          https://raw.githubusercontent.com/pfsense/pfsense/RELENG_2_1/usr/local/www/index.php

          Diff for use in System Patches or similar:

          
          --- /usr/local/www/index.php.orig	2014-08-31 09:45:39.000000000 +0200
          +++ /usr/local/www/index.php	2014-08-18 23:20:02.000000000 +0200
          @@ -466,7 +466,7 @@
          
          @@ -545,7 +545,7 @@
          
           		" />
          
          -
          +
           	 	$totalwidgets = count($widgetfiles);
           	$halftotal = $totalwidgets / 2 - 2;
          @@ -554,7 +554,7 @@
           	$printed = false;
           	$firstprint = false;
           	?>
          -	
          +	
          
           	foreach($widgetlist as $widget) {
          @@ -631,22 +631,42 @@
           			}
           		}
          
          -		if ($config['widgets'] && $pconfig['sequence'] != ""){
          -			if ($colpos[$widgetcounter] == "col2" && $printed == false)
          -			{
          +		if( substr($g['theme'], -3) != "_fs") {
          +			if ($config['widgets'] && $pconfig['sequence'] != ""){
          +				if ($colpos[$widgetcounter] == "col2" && $printed == false)
          +				{
          +					$printed = true;
          +					?>
          +					
          +					
          +					+				}
          +			}
          +			else if ($widgetcounter >= $halftotal && $printed == false){
           				$printed = true;
           				?>
          
          -				
          +				
           				 			}
           		}
          -		else if ($widgetcounter >= $halftotal && $printed == false){
          -			$printed = true;
          -			?>
          -			
          -			
          -			+		else {
          +			if ($config['widgets'] && $pconfig['sequence'] != "") {
          +				if ($colpos[$widgetcounter] == "col2" && $printed == false)
          +				{
          +					$printed = true;
          +					?>
          +					
          +					
          +					+				}
          +				else { ?>
          +					 
          +				+			}		
           		}
          
           		?>
          @@ -721,8 +741,7 @@
           // 	jQuery(document).ready(function(in_event)
           	{
          -			jQuery('#col1').sortable({connectWith: '#col2', dropOnEmpty: true, handle: '.widgetheader', change: showSave});
          -			jQuery('#col2').sortable({connectWith: '#col1', dropOnEmpty: true, handle: '.widgetheader', change: showSave});
          +			jQuery('.ui-sortable').sortable({connectWith: '.ui-sortable', dropOnEmpty: true, handle: '.widgetheader', change: showSave});
          
           			hideAllWidgets();
          
          Also, repacked the tarball with proper permissions (root:wheel, 644/755 for files/dirs):
          https://mega.co.nz/#!4AFVjBIb!UTDERxRhdLNi9SafMDLuRrfs87ydEsoGJLAT1q-EVwM
          
          1 Reply Last reply Reply Quote 0
          • C
            charlie0440
            last edited by

            If you want the diffs, view it on github here: https://github.com/CharlieMarshall/pfsense/tree/RELENG_2_1

            1 Reply Last reply Reply Quote 0
            • H
              haddock
              last edited by

              Wonderful.

              Thanks to both of you.

              1 Reply Last reply Reply Quote 0
              • KOMK
                KOM
                last edited by

                Yes, thank you very much for this patch.

                As a suggestion, would it be easy to move the Add column / Delete column buttons so that they are inline with the other buttons?

                Menu2.png_thumb
                Menu1.png
                Menu2.png
                Menu1.png_thumb

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

                  if you want to.

                  line 111 of the "/usr/local/www/themes/pfsense_ng_fs/loader.js"

                  
                  jQuery('
                  
                  ![](\"./themes/pfsense_ng_fs/images/icons/icon_plus.gif\"/) Add column ![](\"./themes/pfsense_ng_fs/images/icons/icon_x.gif\"/) Delete column
                  
                   ').insertBefore('#niftyOutter.fakeClass');
                  
                  

                  try removing the

                  at the begining of the line.

                  
                  jQuery('![](\"./themes/pfsense_ng_fs/images/icons/icon_plus.gif\"/) Add column ![](\"./themes/pfsense_ng_fs/images/icons/icon_x.gif\"/) Delete column
                  
                   ').insertBefore('#niftyOutter.fakeClass');
                  
                  
                  1 Reply Last reply Reply Quote 0
                  • S
                    Supermule Banned
                    last edited by

                    Does this

                    Capture1.PNG
                    Capture1.PNG_thumb

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

                      Had a quick fiddle. No obvious way. Could put them infront and inline of the other 2 icons. But that isn't straight forward either

                      1 Reply Last reply Reply Quote 0
                      • KOMK
                        KOM
                        last edited by

                        Thanks for your effort anyway.

                        1 Reply Last reply Reply Quote 0
                        • K
                          kcallis
                          last edited by

                          I have tried it and I am still getting an issue where the Help tab is right below the System tab. Is there any way that I could just remove help for the time being? This is preventing me from accessing option on the System menu.

                          ![screen issue.png](/public/imported_attachments/1/screen issue.png)
                          ![screen issue.png_thumb](/public/imported_attachments/1/screen issue.png_thumb)

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

                            Just change the font in your browser to Tahoma or change the default size to .9

                            1 Reply Last reply Reply Quote 0
                            • K
                              kcallis
                              last edited by

                              Thanks, that fixed that problem…

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

                                Youre welcome!

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

                                  @kcallis

                                  Go to system > patches and apply this commit:

                                  https://github.com/CharlieMarshall/pfsense/commit/2b5c16b9c6ee3dcb9a1333b44949f48024eb3cd0
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • K
                                    kcallis
                                    last edited by

                                    It has been added…

                                    1 Reply Last reply Reply Quote 0
                                    • AhnHELA
                                      AhnHEL
                                      last edited by

                                      Charlie, is there a way to fix the picture widget using a 4 column dashboard?  Using a picture that is 350 x 350, but the picture doesnt fill up the width of the column.  Using a larger or smaller pic just causes the pic to zoom in or out respectively without filling up the column width.

                                      This is only with 2.1.5.  On my 2.2 Alpha box, the picture fills up the width of the column properly.

                                      pfPic.jpg
                                      pfPic.jpg_thumb

                                      AhnHEL (Angel)

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

                                        Yes. As I said in my opening post. I have not included all he changes here which are in 2.2. If I have some spare time today, I'll back port the fix to 2.1.5 and upload it here

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

                                          AWESOME!

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

                                            @AhnHEL - Was a super simple fix:

                                            Apply via:

                                            • System patches using commit:
                                              https://github.com/CharlieMarshall/pfsense/commit/7a775e8bf1a4771ee8d0217a2f66d415f9abc302

                                            • Or make the necessary changes yourself via GUI > edit file

                                            • Or paste the whole file into the broswer via GUI > edit file: https://raw.githubusercontent.com/CharlieMarshall/pfsense/7a775e8bf1a4771ee8d0217a2f66d415f9abc302/usr/local/www/widgets/widgets/picture.widget.php

                                            Edit: You are not limited to 350 x 350, all images should hopefully now scale

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