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.

Where are the templates?

Discussion in 'General Discussion' started by MediaHound, Feb 11, 2007.

  1. MediaHound

    MediaHound Active Member

    Joined:
    May 1, 2004
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Florida
    Which folder are the templates located in that are used to render
    :2082/frontend/x/stats/errlog.html
    and
    :2082/frontend/x/stats/lastvisitors.html
    etc.

    I would like to look at the code behind these stats pages and do some editing and also create some similar pages to go alongside these.
    I searched the forum before posting to no avail.
    Thanks in advance.
     
  2. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    /usr/local/cpanel/base/frontend/x/stats/
     
  3. MediaHound

    MediaHound Active Member

    Joined:
    May 1, 2004
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Florida
    Thank you dalem :)
     
  4. MediaHound

    MediaHound Active Member

    Joined:
    May 1, 2004
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Florida
    What I want to do is hyperlink the IP to the geobytes locator, for example:
    http://www.geobytes.com/IpLocator.htm?getlocation&ipaddress=66.176.242.22

    This is the bit of code that makes the fieldsets appear:
    PHP:
    <cpanel Stats="lastvisitors($CPDATA{'DNS'},/var/domlogs/$CPDATA{'DNS'}-access_log,1000)">
    I made a screenshot of the part of the fieldset that I'm talking about:

    [​IMG]

    Could somebody please tell me where to find this portion of code so I can edit the way the IP appears?

    Thanks in advance!
     

    Attached Files:

  5. cPanelBilly

    cPanelBilly Guest

  6. MediaHound

    MediaHound Active Member

    Joined:
    May 1, 2004
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Florida
    Alright, thanks for that.
    Where can I find function declaration that makes those fieldsets appear?
     
  7. cPanelBilly

    cPanelBilly Guest

    This is compiled into the cpsrvd binary and cant be changed or viewed afaik
     
Loading...

Share This Page