Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Member
    Join Date
    Dec 2008
    Posts
    153

    Default Trouble Making Addons..

    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. #2
    Member
    Join Date
    Dec 2008
    Posts
    153

    Default

    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)
    Last edited by jhyland87; 01-11-2009 at 08:47 PM.

  3. #3
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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. #4
    Member
    Join Date
    Dec 2008
    Posts
    153

    Default

    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 Thumbnails Attached Thumbnails Trouble Making Addons..-screenshot.png  

  5. #5
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by jhyland87 View Post
    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
    I recommend letting our technical analysts take a look at things for you so they can correct this issue.

  6. #6
    Member
    Join Date
    Dec 2008
    Posts
    153

    Default

    Quote Originally Posted by cPanelDavidG View Post
    I recommend letting our technical analysts take a look at things for you so they can correct this issue.
    ok request sent
    Last edited by jhyland87; 01-12-2009 at 09:25 PM.

  7. #7
    Member
    Join Date
    Dec 2008
    Posts
    153

    Default

    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. #8
    Member
    Join Date
    Dec 2008
    Posts
    153

    Default

    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. #9
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by jhyland87 View Post
    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
    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/cpanels...php/README.TXT

  10. #10
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by jhyland87 View Post
    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
    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.ph...3&postcount=26

Similar Threads & Tags
Similar threads

  1. addons
    By bigboy36 in forum cPanel Developers
    Replies: 0
    Last Post: 10-04-2008, 10:39 PM
  2. Addons Not Available
    By BC in forum cPanel Developers
    Replies: 1
    Last Post: 01-28-2008, 01:35 PM
  3. Having trouble making a server...need help ..
    By snipingkid in forum cPGS Discussions
    Replies: 9
    Last Post: 05-11-2007, 02:59 PM
  4. mod security making trouble with a word
    By bsasninja in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-06-2007, 10:39 AM
  5. Trouble using "Mail Trouble Shooter"
    By howard111 in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 02-17-2004, 10:48 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube