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.

Anybody know where to edit this crap code in addon scripts?

Discussion in 'User Experience' started by Jeff75, May 18, 2005.

  1. Jeff75

    Jeff75 Well-Known Member

    Joined:
    Apr 11, 2003
    Messages:
    555
    Likes Received:
    0
    Trophy Points:
    16
    Does anyone know where the code is located that is displayed when an addoncgi script is installed? I greped the entire /usr/local/cpanel directory and the only reference to 'New Installation' that I found was in /usr/local/cpanel/Cpanel/Addons.pm and I changed a lot of the code, restarted cPanel, apache, etc. and the old crap code is still showing up?

    Code:
       <h1>osCommerce 2.2ms2 Setup</h1>
       <blockquote>
       osCommerce is an easy to use and configure shopping cart system.
       </blockquote>
       <br>
       <br>
       <b>New Installation</b><br>
    
       <br>
       <form method=POST action="install.html">
    
          Admin User: <input type=text name=auser> Admin Pass: <input type=text name=apass><br>
       <input type=hidden name=addonname value="osCommerce">
       Install at this url: http://domain.com/<input type=text name=url>
       <input type=submit value="Install">
    
       <br>
       (You must install in a top level directory.  Example: 'http://domain.com/osCommerce' is a valid place to 
       install, but 'http://domain.com/user/andy/osCommerce' is not.
       </form>
    
       <br>
       <b>Modify an existing Installation</b>
       <br><br>
       <br>
       <b>Upgrade an existing Installation</b>
    
       <form method=POST action="upgrade.html">
       <input type=hidden name=addonname value="osCommerce">
       <select name=url>
       </select>
    
       <input type=submit value="Upgrade to 2.2ms2">
       </form>
       <br><br>
       <b>Remove an  existing Installation</b>
    
       </form>
       <form method=POST action="kill.html">
       <input type=hidden name=addonname value="osCommerce">
       <select name=url>
       </select>
    
       <input type=submit value=Remove>
       </form>
       <br>
    
    This code is horrible and looks like total crap in my custom theme. Here's an example of how I'd like to change the first part:

    Code:
       <h1>osCommerce 2.2ms2 Setup</h1>
       <p>osCommerce is an easy to use and configure shopping cart system.</p>
       <h2>New Installation</h2>
     
    #1 Jeff75, May 18, 2005
    Last edited: May 18, 2005
  2. cPanelBilly

    cPanelBilly Guest

    This is hardcoded and cannot be changed.
     
  3. Jeff75

    Jeff75 Well-Known Member

    Joined:
    Apr 11, 2003
    Messages:
    555
    Likes Received:
    0
    Trophy Points:
    16
    UH! That's what I was afraid of! Whoever works on the code there really needs to read up on a thing called Web Standards and make the code so it's properly marked up and not so bloated since some of the code that is outputted to the user is hardcoded. I have to use all these CSS hacks just to override the formatting of tags that are used in improper places to get it to look right in my custom theme. This is one thing that just drives me nuts about cPanel.
     
    #3 Jeff75, May 18, 2005
    Last edited: May 18, 2005
Loading...

Share This Page