#1 (permalink)  
Old 10-25-2008, 12:22 AM
Registered User
 
Join Date: Oct 2003
Posts: 45
bradandersen
Adding Custome Features (Google Hosted Apps)

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 10-26-2008, 12:01 AM
cpaneldave's Avatar
Staff Member
 
Join Date: Dec 2001
Posts: 746
cpaneldave is on a distinguished road
You can add this by using the cPanel Plugin Generator located here:

http://www.cpanel.net/plugins/devel/installgen.html

Instructions are here:

http://www.cpanel.net/plugins/devel/install.html

Please let me know if you have any questions.
__________________
-Dave
cPanel Inc.

Need support? Submit a request here. These forums are not an official support channel.

www.cpanel.net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 10-26-2008, 05:40 PM
Registered User
 
Join Date: Oct 2003
Posts: 45
bradandersen
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 10-26-2008, 06:58 PM
cpaneldave's Avatar
Staff Member
 
Join Date: Dec 2001
Posts: 746
cpaneldave is on a distinguished road
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.
__________________
-Dave
cPanel Inc.

Need support? Submit a request here. These forums are not an official support channel.

www.cpanel.net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 10-26-2008, 10:19 PM
Registered User
 
Join Date: Oct 2003
Posts: 45
bradandersen
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 10-26-2008, 10:40 PM
Registered User
 
Join Date: Oct 2003
Posts: 45
bradandersen
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 09:58 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc