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.

Adding Custome Features (Google Hosted Apps)

Discussion in 'User Experience' started by bradandersen, Oct 24, 2008.

  1. bradandersen

    bradandersen Active Member

    Joined:
    Oct 6, 2003
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    I've moved email hosting to Google Hosted Apps for all of my customers and I'd like to have a "Feature" as part of the Feature Manager so that I can add a Google Mail Icon to the user's control panel. That Icon should simply link to mail.%domain% or google.com/a/%domain%. It would be nice to have it open in a new window as well.

    Does anybody have any idea how to add an Icon with a "dynamic" link to the skin?

    Thanks,
    Brad
     
  2. DaveUsedToWorkHere

    DaveUsedToWorkHere Well-Known Member

    Joined:
    Dec 28, 2001
    Messages:
    689
    Likes Received:
    1
    Trophy Points:
    18
  3. bradandersen

    bradandersen Active Member

    Joined:
    Oct 6, 2003
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Excellent

    That is great, but what would I put in the "Access URL" if I wanted to open "http://google.com/a/%domain%". Or, does it have to be an HTML file and how could I generate that?

    Thanks,
    Brad
     
  4. DaveUsedToWorkHere

    DaveUsedToWorkHere Well-Known Member

    Joined:
    Dec 28, 2001
    Messages:
    689
    Likes Received:
    1
    Trophy Points:
    18
    You should put the full URL of the content you wish to access if it's not on the same server.


    If it's located on the same server inside the theme, the URL relative to https://IP:2083/frontend/theme/ should be used.
     
  5. bradandersen

    bradandersen Active Member

    Joined:
    Oct 6, 2003
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Thanks

    Hi Dave,

    Thanks, but is there any way to substitute items into the URL? Items like email address, domain name, username, etc. so that they can be different URLs for each user? I want to point to http://google.com/a/%domain_name% like http://google.com/a/cpanel.net

    Or, if I point at a file like /googleapps.php, is there a way to get access to these types of variables? Can I <?php include> anything?

    Thanks,
    Brad
     
  6. bradandersen

    bradandersen Active Member

    Joined:
    Oct 6, 2003
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Solved

    Here is the solution for the URL:

    http://google.com/a/$CPDATA{'DNS'}

    Does anybody know all of the different $CPDATA variables that are available for the plugin?

    This would be great information to include in the API documentation.

    Thanks,
    Brad
     
Loading...

Share This Page