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.

Help With Theme

Discussion in 'User Experience' started by ukhost, Oct 27, 2002.

  1. ukhost

    ukhost Well-Known Member

    Joined:
    Jan 8, 2002
    Messages:
    222
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    I'm starting work on a theme but am in need of some tags.

    I need to know how to display the following:

    Max Addon Domain
    Max Parked Domain
    Max Email Filters
    Max Auto Responders
    Max Forwarders
    Allocated Bandwidth

    I'd also like to know if it is possible to display the IP address a user is accessing there cPanel through!

    Hope someone can help!

    Kind Regards,

    Neil
     
  2. ukhost

    ukhost Well-Known Member

    Joined:
    Jan 8, 2002
    Messages:
    222
    Likes Received:
    0
    Trophy Points:
    16
    Anybody shed any light on the above?
     
  3. ecoutez

    ecoutez Well-Known Member

    Joined:
    May 23, 2002
    Messages:
    152
    Likes Received:
    0
    Trophy Points:
    0
    Here you go...

    Max Addon Domain: &cpanel print=&$CPDATA{'MAXADDON'}&&
    Max Parked Domain: &cpanel print=&$CPDATA{'MAXPARK'}&&
    Max Email Filters, Max Auto Responders, and Max Forwarders are always unlimited so far as I can tell.
    Allocated Bandwidth is a little tricky. You can use &cpanel print=&$CPDATA{'BWLIMIT'}&& but note that this is in bytes, so you'd have to divide by 1024^2 to display in MB.

    - Jason
     
  4. ukhost

    ukhost Well-Known Member

    Joined:
    Jan 8, 2002
    Messages:
    222
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    Thanks for those, I think your right with the forwarders, responders and filters!

    Maybe it would be a nice addition if limits could be set here too!

    Also being able to set parked and addon domains to unlimited would be an idea!

    Kind Regards,

    Neil
     
  5. Juanra

    Juanra Well-Known Member

    Joined:
    Sep 22, 2001
    Messages:
    777
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Spain
    [quote:998a7b9408][i:998a7b9408]Originally posted by ukhost[/i:998a7b9408]
    I'd also like to know if it is possible to display the IP address a user is accessing there cPanel through![/quote:998a7b9408]

    &cpanel print=&$ENV{'REMOTE_ADDR'}&&
     
  6. ukhost

    ukhost Well-Known Member

    Joined:
    Jan 8, 2002
    Messages:
    222
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    Thanks for those, couldn't get the bandwidth one to show though!

    It's getting late so will look again tomorrow when I'm not so tired!!

    Kind Regards,

    Neil
     
  7. ukhost

    ukhost Well-Known Member

    Joined:
    Jan 8, 2002
    Messages:
    222
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    I have tried to use this tag &cpanel print=&$CPDATA{'BWLIMIT'}&& but it is not displaying anything! :(

    Any suggestions?

    Kind Regards,

    Neil
     
  8. Juanra

    Juanra Well-Known Member

    Joined:
    Sep 22, 2001
    Messages:
    777
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Spain
    [quote:a3e410312f][i:a3e410312f]Originally posted by ukhost[/i:a3e410312f]
    I have tried to use this tag &cpanel print=&$CPDATA{'BWLIMIT'}&& but it is not displaying anything! :(
    Any suggestions?[/quote:a3e410312f]

    Does the account you're testing on have a bwlimit set?
     
  9. ukhost

    ukhost Well-Known Member

    Joined:
    Jan 8, 2002
    Messages:
    222
    Likes Received:
    0
    Trophy Points:
    16
    Doh,

    That would probably help!!

    Works now, was still half asleep!

    Kind Regards,

    Neil
     
Loading...

Share This Page