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.

Show cPanel content in a cms

Discussion in 'User Experience' started by Shorty Phil, Jan 31, 2012.

  1. Shorty Phil

    Shorty Phil Registered

    Joined:
    Jan 31, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    Hey everyone ok basicly what im wanting to do is show the cpanel for my server within my cms site BUT I dont want to do a straight iframe where as it shows everything at the specified URL.

    All i want to actually show within my site is the cpanel content without the header footer or background..

    Does anyone know a way i can do this please

    I really dont want to re brand cpanel to look like my site as i would like to keep my cpanel theme how it is for when customers log in directly to there cpanel via THERE SITE url and not via my hosting cms site.
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    What you could do is wrap <cpanelif> tags around everything you want to hide (e.g. <cpanelif !$FORM{‘HIDESTUFF’}=et=1> .. code for all the stuff to hide ... </cpanelif>)

    Some more information about operators and how to access GET parameters is available via: Available cPanel Plugin Variables

    The trick would be to somehow maintain that GET parameter from page to page without breaking some landing pages (e.g. "This MySQL database was created successfully").

    This could be done via the branding editor, but you would need to repeat this for every branding you want to have available, which is time consuming.

    Alternatively, you could try to re-create the functionality of cPanel by using our JSON and XML-APIs but that's also time-consuming.
     
  3. Shorty Phil

    Shorty Phil Registered

    Joined:
    Jan 31, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    could you link me to the XML and APis section please also is there any more documentation about the first route you spoke about amd would this edit be a single page edit with the wraps or would this need to be done and every single page? Is there anything that can be done to the page HTML? like add something in there that i can trigure somehow using code in the cms to show only what i request?
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    The XML API documentation can be found at cPanel & WHM's SDK but if you scroll down on that page you'll find a PHP Class that can make things easier. Keep in mind, these are APIs, so they provide no user interface for you - you need to supply your own user interfaces if you go this route.

    As for hiding some things from the cPanel interface when it is being accessed via an iFrame, that is what I mentioned above with the cpanelif tags.
     
Loading...

Share This Page