The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Trouble Making Addons..

Discussion in 'cPanel Developers' started by jhyland87, Jan 11, 2009.

  1. jhyland87

    jhyland87 Well-Known Member

    Joined:
    Dec 8, 2008
    Messages:
    153
    Likes Received:
    0
    Trophy Points:
    16
    Hey guys, I am trying to make my own addons for cpanel, I dont need to be able to manage them via WHM, just a cpanel link that will go to its own page within cpanel, some of them will just contain links to other sites, others will be functional PHP scripts.

    Where can I find a detailed tutorial that shows how I can do this?

    Thanks!
     
  2. jhyland87

    jhyland87 Well-Known Member

    Joined:
    Dec 8, 2008
    Messages:
    153
    Likes Received:
    0
    Trophy Points:
    16
    I tried using that tutorial about the addons, I didnt quite understand it.

    Id also like to edit a cpanel addon that exists (Not to resell, but just to add another option to the mail lists)

    Edit: I guess when I say addons, I mean custom body links, some need to link to a php code that will show within cpanel if possible.. (Custom php script for domain registration, custom ajax script to show users processes, stuff like that)
     
    #2 jhyland87, Jan 11, 2009
    Last edited: Jan 11, 2009
  3. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    It sounds like you're looking to make a cPanel Plug-in.

    We do have a cPanel Plug-in Install generator at: http://www.cpanel.net/plugins/devel/installgen.html

    You can have the icon in the cPanel interface point to your own custom pages (HTML, PHP etc.) within the theme's directory.
     
  4. jhyland87

    jhyland87 Well-Known Member

    Joined:
    Dec 8, 2008
    Messages:
    153
    Likes Received:
    0
    Trophy Points:
    16
    AH! ok, so I did that, I made a test plugun, and I also used the install instructions, and it worked, then I tried the uninstall instructions... and it wont completely go away, the text is still there, but the icon isnt. Check the attachment
     

    Attached Files:

  5. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    I recommend letting our technical analysts take a look at things for you so they can correct this issue.
     
  6. jhyland87

    jhyland87 Well-Known Member

    Joined:
    Dec 8, 2008
    Messages:
    153
    Likes Received:
    0
    Trophy Points:
    16
    ok request sent :)
     
    #6 jhyland87, Jan 12, 2009
    Last edited: Jan 12, 2009
  7. jhyland87

    jhyland87 Well-Known Member

    Joined:
    Dec 8, 2008
    Messages:
    153
    Likes Received:
    0
    Trophy Points:
    16
    is there a way to make it so my pages will appear within the cpanel theme?...

    And if yes, is it possible to make them php within the theme? :P
     
  8. jhyland87

    jhyland87 Well-Known Member

    Joined:
    Dec 8, 2008
    Messages:
    153
    Likes Received:
    0
    Trophy Points:
    16
    Bump. Also.. how do I make my own group at the top? In the addon generator, I can select new group, but id like to title it
     
  9. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Yes, just create a cPanel plug-in. This involves placing files within the theme and linking to them from the main cPanel interface using the cPanel Plug-in File Generator.

    PHP files may be used within cPanel themes and will need a .php extension. If you wish to use both PHP and API1/API2, you can use .phpcp or .cpphp file extensions. With .cpphp, API1/API2 code is executed before PHP code. With .phpcp, PHP code is executed before API1/API2 code.

    Alternatively, you could use .livephp if you with to use API1/API2 code within your PHP code:

    http://httpupdate.cpanel.net/cpanelsync/EDGE/cpanel/php/README.TXT
     
  10. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Modifying the plugin file generator will not be successful. Unfortunately, there is no good/official way of doing this at this time. Instead, you will need to use CSS to generate custom groups. Plug-ins would not be able to be placed within these custom groups.

    Here's a link to a previous post I made regarding how to create custom groups: http://forums.cpanel.net/showpost.php?p=473493&postcount=26
     
Loading...
Similar Threads - Trouble Making Addons
  1. Mike St
    Replies:
    1
    Views:
    689

Share This Page