Roundcube Community Forum

 

cPanel Addons (Password, Forward & Vacation) for v0.2

Started by Nemesis02, May 15, 2008, 11:10:03 PM

Previous topic - Next topic

Nemesis02

UPDATED FOR v0.2-stable

Current Version: 1.1.1

This addon gives Roundcube the ability to change passwords, forward email and create vacation messages or also known as auto-responders.

Tested on Roundcube v0.2-stable and works.
Has been tested and works with cPanel 11 w/ X3 theme.

This addon does NOT require any additional libraries, such as curl.  It works with pure PHP.

If you find this plugin/modification to Roundcube useful and would like to make
a donation via paypal.  Please feel free to do so, send all donations to:
[email protected]

Thanks.

Update:
v1.1.1 - Updated README for v0.2-stable
v1.1 - updated to work with v0.2-beta & Rev 2076.
v1.0 - initial release

Note:
  • If you do not use the X3 theme for cPanel and your hosting provider uses a custom theme.  Visit http://yourdomain:2095/  which is your webmail.  Your site should forward to like http://yourdomain:2095/webmail//?login=1 once you log in.  In your program/include/cpanel.php file you'll see a variable that says this 'var $path = "webmail/x3/mail";'.  So replace x3 with .
Download: RoundCube Webmail Forum - RoundCube Forum Community Downloads - cPanel Addon (Password, Forward & Vacation) v1.1.1

josesalasg

I am not speak English....

Estimado, necesariamente tengo que usar el Cpanel para poder usar el vacation ??
Lo pregunto para saber de donde bajarlo.

At.

José.

Nemesis02

QuoteI am not speak English....

Estimado, necesariamente tengo que usar el Cpanel para poder usar el vacation ??
Lo pregunto para saber de donde bajarlo.

At.

José.

Quote from: TranslationI am not speak English....

I'm guessing i need to use cPanel to use the vacation? I ask to know where to download it.

At.

José.

Hola, mi espanol es asi asi, pero si, para este modificacion usa cPanel para comunicar con los servicios.  cPanel es una programa que necessitas pagar por, no es gratis.  Los companias que vende espacio para la internet son los que tambien dar informacion para tu cPanel cuenta cuando compras espacio para la internet.

Roger.

Quote from: TranslationHello, my spanish is a little off, but yes, this modification uses cPanel to communicate with the services.  cPanel is a program that you have to pay for, its not free.  The web hosting companies are the ones that also give you information for your cPanel account when you buy web space.

Roger

emphyrio

This plugin sounds great! Many people on shared hosting are on Cpanel. Little question:
Does it work on the latest stable version of Roundcube as well? Or do I just have to try :-)

Nemesis02

Quote from: emphyrio;12221This plugin sounds great! Many people on shared hosting are on Cpanel. Little question:
Does it work on the latest stable version of Roundcube as well? Or do I just have to try :-)

No, it doesn't work with the latest stable, it works with the latest development release of RoundCube.  There has been many changes to the framework for roundcube, and i decided to do the latest development in anticipation of it becoming the newest stable release.

I haven't really had any problems with the development copy as of yet, but i really haven't used it a lot either, just every day use, checking once or twice a day.

emphyrio

Thanks, I'll install the latest development and try your plugin with that.

Nemesis02

Quote from: emphyrio;12223Thanks, I'll install the latest development and try your plugin with that.

If you're unsure about the development copy, what I'd recommend doing is leaving the stable copy in place, install the development to a seperate folder and do the plugin.

That way if anything goes wrong, you won't loose your stable install.

emphyrio

Did exactly what you recommended: clean install in a new directory. The new tabs are available, unfortunately they don't seem to work. They all say they're succesfull after clicking Save, but the password remains unchanged, forwarder or vacation message aren't set.

I think it's because Bluehost doesn't use X3 theme, but it has a custom developed 'bluehost' theme for Cpanel 11.

Do you have any pointers how I can make the necessary changes to your scripts? I'd love to get it working.

Nemesis02

Quote from: emphyrio;12240Did exactly what you recommended: clean install in a new directory. The new tabs are available, unfortunately they don't seem to work. They all say they're succesfull after clicking Save, but the password remains unchanged, forwarder or vacation message aren't set.

I think it's because Bluehost doesn't use X3 theme, but it has a custom developed 'bluehost' theme for Cpanel 11.

Do you have any pointers how I can make the necessary changes to your scripts? I'd love to get it working.

There's a class that you'll need to change a bit.  Look at:
program/include/cpanel.php

You should see the following line:
var $path "webmail/x3/mail";

It does not use the normal cPanel, it uses the webmail cPanel.  For example, when i visit my webmail, http://www.example.com/webmail it forwards me to http://www.example.com:2095/

Once i successfully log in, it forwards me:
http://www.example.com:2095/webmail/x3/

Now hovering over any of the links across the bottom, for example, forwarding options, shows that it goes to:
http://www.example.com:2095/webmail/x3/mail/fwds.html

which is where the mail at the end comes from at the end of that $path variable.

emphyrio

I just had to change 'x3' to 'bluehost' for $path and I was done :)
Thanks! It works like a charm!

blair.sawler

Thanks for this, I have been looking for the Auto-Responder for quite some time. Can you tell me what the "Server" field is on the latest SVN, or where I can get the documentation on the SVN releases? Sorry if this is posted in the wrong forum.

Any help is appreciated.

Nemesis02

Quote from: blair.sawler;12266Thanks for this, I have been looking for the Auto-Responder for quite some time. Can you tell me what the "Server" field is on the latest SVN, or where I can get the documentation on the SVN releases? Sorry if this is posted in the wrong forum.

Any help is appreciated.

What server field are you talking about?

blair.sawler

Quote from: Nemesis02;12267What server field are you talking about?

It is on the main login screen. I have attached a screen capture.

Nemesis02

Thats if you don't have the config set to a static server, it'll show that.  Since i have mine on static, it doesn't show.

blair.sawler

Quote from: Nemesis02;12269Thats if you don't have the config set to a static server, it'll show that.  Since i have mine on static, it doesn't show.

Okay, thanks. The Stable version does not do that. Do you know where you set the static server?