Roundcube Community Forum

Third Party Contributions => API Based Plugins => Topic started by: HillNET on April 16, 2010, 02:27:59 AM

Title: Getting the logout_redirect plugin working
Post by: HillNET on April 16, 2010, 02:27:59 AM
Hi all,

Running RC 0.3.1, with the logout_redirect plugin (myroundcube, trunk-r-3358 ).

I have installed it as per the instructions, but it does not work. The logout function remains unaffected by the plugin.

I want on logout to redirect the user to another URL and not have the RC logout page. Is this the plugin to do this?

To check that I have understood installing plugins I installed the 'settings' plugin and that shows up fine.

Any suggestions would be welcomed.

--
Roland
Title: Getting the logout_redirect plugin working
Post by: rosali on April 19, 2010, 12:21:20 AM
There is a bug in the plugin:

Add in line 35:

$rcmail = rcmail::get_instance();

The plugin is designed to do the redirct only if a cookie 'ajax_login' is present.
This cookie will be set if the outside login form contains:


There is an example ajax_login.php included to demonstrate how to create an outside login form.
Title: Getting the logout_redirect plugin working
Post by: HillNET on April 19, 2010, 04:40:02 AM
Thanks for your reply.

I had thought it was partly due to my misunderstanding of how the plugin worked.

I'll look into it more based on your response.

--
Roland
Title: Getting the logout_redirect plugin working
Post by: yazo on December 25, 2010, 05:15:33 PM
Notice that alot of people are requesting a solution the redirect (on logout) to any url feature.

Is there any working solution?

thx

Edit:
I tried Rosali's Solution but the php files in question already have these changes included.. and it still doesn't redirect to my url (my home page).

Appreciate a working solution.

Wish there was a video or at the very least someone can write a "step by step" solution to this.

thx again
Title: Getting the logout_redirect plugin working
Post by: rosali on December 27, 2010, 01:05:40 AM
Try attached version.

See usage hints in config file.
Title: Getting the logout_redirect plugin working
Post by: yazo on December 27, 2010, 03:50:20 AM
Quote from: rosali;32013Try attached version.

See usage hints in config file.

First of all thanks rosali for replying.

What do you mean EXACTLY on "See usage hints in config file". :confused:

Can you provide exactly what text to change or add to the config file?


thx again rosali :)
Title: Getting the logout_redirect plugin working
Post by: rosali on December 27, 2010, 03:56:01 AM
Read top of included config.inc.php.dist.