Roundcube Community Forum

 

Put a message into tie Inbox

Started by Ruebezahl, April 08, 2013, 02:44:34 PM

Previous topic - Next topic

Ruebezahl

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

SKaero


Ruebezahl

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

SKaero

How many domains are people using on the system?

Ruebezahl

Had last night another idea to use a jquery based modal window for the output and now just looking for an example.


SKaero

You could take a look at new_user_dialog plugin.

Ruebezahl

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

SKaero

Why don't you look at the show_about function and modify to what you want?