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.

Custom script include to CP fron page

Discussion in 'General Discussion' started by predtech, May 17, 2005.

  1. predtech

    predtech Registered

    Joined:
    May 15, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Custom script included to CP front page

    I would like to include into CP front page (where "General account information" and "General server information" appears) my customs script which displays user's financial status.

    I tried to do it by adding to my custom skin (frontend/skinName/index.html some Perl or PHP code.
    It doesn't work, only regular HTML displayed but script code is displayed as a plain text.

    I there a way to add some custom script (by include ot other way) to CP fronpage (method to include gererated HTML page doesn't work to me)?
    I can't find where (or it's binare compiled).
    Thanks
     
    #1 predtech, May 17, 2005
    Last edited: May 17, 2005
  2. RAIS2

    RAIS2 Well-Known Member

    Joined:
    Jul 16, 2004
    Messages:
    186
    Likes Received:
    0
    Trophy Points:
    16
    HTML skins wont parse PHP when its included. Your best bet is to use a PHP skin ( as including PHP code will then parse correctly ), or to create an alternative way of displaying that information.
     
  3. predtech

    predtech Registered

    Joined:
    May 15, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    My question as really stupid. I looked for a difficult when it's easy.
    In fact I had just to change extention for CP index file to .php
    Thanks
     
Loading...

Share This Page