Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jan 2012
    Posts
    2
    cPanel/Enkompass Access Level

    Reseller Owner

    Default Show cPanel content in a cms

    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. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Show cPanel content in a cms

    Quote Originally Posted by Shorty Phil View Post
    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.
    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. #3
    Registered User
    Join Date
    Jan 2012
    Posts
    2
    cPanel/Enkompass Access Level

    Reseller Owner

    Default Re: Show cPanel content in a cms

    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. #4
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Show cPanel content in a cms

    Quote Originally Posted by Shorty Phil View Post
    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?
    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.

Similar Threads & Tags
Similar threads

  1. Integrating WHM and cPanel Into My CMS
    By mrmbarnes in forum cPanel Developers
    Replies: 1
    Last Post: 06-29-2011, 09:55 PM
  2. Intergrating WHM and cPanel Into a CMS
    By mrmbarnes in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-02-2011, 09:04 PM
  3. www and without www show different content
    By seachen in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-13-2008, 03:46 AM
  4. don't want to show folder content
    By cosmin in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 09-05-2002, 12:55 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube