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.

Simple Addon Request

Discussion in 'cPanel Developers' started by ephlox, Feb 1, 2006.

  1. ephlox

    ephlox Well-Known Member

    Joined:
    Aug 22, 2004
    Messages:
    60
    Likes Received:
    0
    Trophy Points:
    6
    Hi,
    I need a addon. which will show in WHM in every reseller account "Submit Request" , it is link. When someone click on it, it will open our website www.xyz.com

    Please give me this Addon i will be thankful to you.


    Best Regards from,
    Farrukh Hussain
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You would have to add it yourself by modifying the WHM theme(s) that you're using.
     
  3. kosmo

    kosmo Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    403
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    All over Europe
    Jonathan,

    this is IMHO the wrong approach. Correct:

    Create file
    /usr/local/cpanel/whostmgr/docroot/cgi/addon_submitrequest.cgi
    (chmod 755)

    Edit the file to look like this:

    ---start---
    #!/usr/local/bin/perl

    #WHMADDON:submitrequest:Submit Request

    Add_here_your_perl_code
    ---end---

    BTW, you can not do it with PHP since WHM will not parse PHP when you are logged in as some reseller.

    kosmo
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Yup, that's fair enough. At least doing it your way will avoid the issue of cPanel updates overwriting the changes.
     
Loading...

Share This Page