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

    Plugins Tutorial

    Scheduled Pinned Locked Moved
    General
    3
    4
    1.9k
    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.
    • ZorDereldaZ
      ZorDerelda
      last edited by

      I’m trying to create a plugin to run various update commands from the fog server interface. However I’m not understanding the Example Plugin. Is there a tutorial somewhere for creating plugins from scratch?
      Cheers!

      Wayne WorkmanW 1 Reply Last reply Reply Quote 1
      • Wayne WorkmanW
        Wayne Workman @ZorDerelda
        last edited by Wayne Workman

        @zorderelda Do you know PHP already? Would you consider yourself experienced at PHP or novice? I’m just trying to determine where we should start.

        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/

        ZorDereldaZ 1 Reply Last reply Reply Quote 0
        • ZorDereldaZ
          ZorDerelda @Wayne Workman
          last edited by

          @wayne-workman Yes Wayne, I’m a multi-disciplinary programmer. Fancy pants way of saying I know lots of programming languages. 🙂 I also know SQL, just in case that might be the next question. I have looked over the example plugin, as well as several other plugins, for inspiration and understanding. I’ve gotten my plugin to show in the list of plugins, and I can get it to the install point, but no further.

          I need to make a snapin updater for my small group of computers. That way when I’m on leave any of my coworkers can update the snapin data and then push the new snapin data at all the computers. So any kind of help will be great. My wish list includes an icon in the top list, with an associated page below, as well as a spot in the configuration menu.

          Thanks in advance!

          Cheers!

          george1421G 1 Reply Last reply Reply Quote 0
          • george1421G
            george1421 Moderator @ZorDerelda
            last edited by george1421

            @zorderelda The info you are looking for, unfortunately doesn’t exist outside of the brains of the developers. And I agree we really need to get some documentation on this to grow the list of available plugins.

            I’ve done some tweaking of a few plugins and I can say they are not difficult but also a pita at the same time.

            I worked on / with 2 plugins the LDAP and the Persistent Groups.

            The persistent groups was created by the developers to aid in installing a sql trigger that simulates persistent groups in FOG. It is the most simple one with no menus or outward appearance that it has been installed.

            The ldap plugin is a bit more complex, but it also shows you how to create tables, hook into a process. It also has a display/editor page. I can tell you the graphics at the top are fonts based on the font awesome library http://fontawesome.io/

            The fog application has and calls out hooks at certain functions and as a plugin programmer you can tie into those hooks to add function to fog.

            That is about it from what limited knowledge I have.

            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!

            1 Reply Last reply Reply Quote 1
            • 1 / 1
            • First post
              Last post

            213

            Online

            12.1k

            Users

            17.3k

            Topics

            155.4k

            Posts
            Copyright © 2012-2024 FOG Project