• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Tiny bit of help with iPXE menu look

Scheduled Pinned Locked Moved
General
3
3
1.2k
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.
  • B
    BigMan99211
    last edited by Mar 13, 2015, 6:57 AM

    Hey guys,

    I’m trying to modify my iPXE boot menu a little bit more. I’ve already changed the background image to show my company’s logo. But, now I have a small thing that i’m trying to fix. The orange “selection” bar that highlights each item, goes almost the full width of the screen. Is there a way to trim it down to only highlight the listed items? I mean an average width… I’m not trying to get it to re-size specific to each line or anything. I just don’t want it covering up the company logo! 😄

    Thanks in advance!

    "Failure is not an option. It come pre-installed on Windows…" - Anonymous

    "Life is hard; It's harder if you're stupid" - John Wayne

    1 Reply Last reply Reply Quote 0
    • W
      Wayne Workman
      last edited by Mar 13, 2015, 9:28 PM

      Edit the logo file so that the logo is in a spot where the bars won’t cover it up.

      That’s the quick and easy fix, it’s what I’d do.

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
      Daily Clean Installation Results:
      https://fogtesting.fogproject.us/
      FOG Reporting:
      https://fog-external-reporting-results.fogproject.us/

      1 Reply Last reply Reply Quote 0
      • L
        Lee Rowlett Developer
        last edited by Mar 15, 2015, 12:23 AM

        look at BootMenu.class.php - in and around line 1010 which is where it “builds” the menu… have a play around, see what works and luckily it’s all hookable, so you can amend it and won’t be reverted on upgrade (due to the fact hooks get copied during install!)

        here’s my hook doing something similar if it helps you in the right direction 🙂

        [CODE]<?php
        class BrandBootMenu extends Hook
        {
        var $name = ‘BrandBootMenu’;
        var $description = ‘customize boot menu items.’;
        var $author = ‘Lee Rowlett’;
        var $active = true;
        public function tweakmenu($arguments)
        {
        if ($arguments[‘ipxe’][‘head’])
        {
        $arguments[‘ipxe’][‘head’][7] = ‘colour --rgb 0x036802 2’;
        $arguments[‘ipxe’][‘head’][14] = preg_replace(‘#right 80#’,‘right 80 --top 80’,$arguments[‘ipxe’][‘head’][14]);
        }
        }
        }
        $BrandBootMenu = new BrandBootMenu();
        // Hook Event
        $HookManager->register(‘IPXE_EDIT’, array($BrandBootMenu, ‘tweakmenu’));[/CODE]

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        1 / 1
        • First post
          2/3
          Last post

        233

        Online

        12.1k

        Users

        17.3k

        Topics

        155.4k

        Posts
        Copyright © 2012-2024 FOG Project