Roundcube Community Forum

Third Party Contributions => API Based Plugins => Topic started by: Ruebezahl on April 08, 2013, 02:44:34 PM

Title: Put a message into tie Inbox
Post by: Ruebezahl on April 08, 2013, 02:44:34 PM
Hello,

i just work on a plugin and i searching for an idea/help how to create a report for all folders. It's not the problem to create this report, it's more a problem how to present this report.
One of my ideas was to place this report as a normal email into user's inbox and i find this solution still charming.

But what is the easiest and best way to do this?

Any help is welcome.

Regards,

Ruebezahl
Title: Re: Put a message into tie Inbox
Post by: SKaero on April 08, 2013, 04:24:41 PM
You could email it to them.
Title: Re: Put a message into tie Inbox
Post by: Ruebezahl on April 09, 2013, 10:37:58 AM
That was my first idea, but where can i get the email-address from?

By the moment i use $rcmail->user->get_username(), which gives back something like mailuser@localhost and this is not a valid address.


Regards
Title: Re: Put a message into tie Inbox
Post by: SKaero on April 09, 2013, 12:05:14 PM
How many domains are people using on the system?
Title: Re: Put a message into tie Inbox
Post by: Ruebezahl on April 10, 2013, 02:12:43 AM
Had last night another idea to use a jquery based modal window for the output and now just looking for an example.

Title: Re: Put a message into tie Inbox
Post by: SKaero on April 10, 2013, 02:48:34 AM
You could take a look at new_user_dialog plugin.
Title: Re: Put a message into tie Inbox
Post by: Ruebezahl on April 22, 2013, 04:57:02 AM
Hello,

not a lot of improvment on my side by the moment.

Looking to the about frame, that's exact what i like to do with my PHP script, but to be honest, i am not the best JS-expert.
I found out that the about-display is created by a function called about_show in ui.js, but how could i use something similar
for my plugin.
So what i have by the moment is:
               $content = $input->show($rcmail->config->get('retention_active', true))
                    . ' ' . html::a(array('href' => '#',
                                          'onclick' => 'UI.show_about(this);return false',
                                          'class' => "about-link",
                                         ),$this->gettext('report'));

and that works well.
What i am looking for is a "show_about" like functionality, where i can present my own content, so running a PHP source on that jquery UI dialog.

Any help is welcome...... :)

Regards
Title: Re: Put a message into tie Inbox
Post by: SKaero on April 25, 2013, 02:56:32 AM
Why don't you look at the show_about function and modify to what you want?