Roundcube Community Forum

Third Party Contributions => API Based Plugins => Topic started by: Ruebezahl on July 05, 2013, 12:01:06 AM

Title: rcmail.url for plugins???
Post by: Ruebezahl on July 05, 2013, 12:01:06 AM
Like to use a iframe for some information about the status of my plugin like the "about" frame:
var frame = $('<iframe>').attr('id', 'aboutframe')
      .attr('src', rcmail.url('settings/about'))
      .attr('frameborder', '1')
      .appendTo(document.body);


What do i need to use in the rcmail.url parameter that i am able to run my own PHP script in this iframe, which is stored in the plugin-folder?

Regards,
Ruebezahl
Title: Re: rcmail.url for plugins???
Post by: SKaero on July 05, 2013, 11:01:07 AM
I'm not really sure what your asking, are you trying to add your plugin to the about page, or are you trying to find out the url structure of RoundCube?
Title: Re: rcmail.url for plugins???
Post by: Ruebezahl on July 06, 2013, 02:35:42 AM
Sorry, need to explain it a littlebit more in detail.

Just wrote a plugin and i like to report now some things. To show the report i decide it's best to do it by an iframe, which pops up after clicking on a link, like the about-frame.
Therefore i need the address of a script, that shows the information in this popup frame. This address must be relative, based on the installation.
There's another problem with this, because when i use fixed address in the JS-script and write out only some line's, everything worked well, but when i access for example some function from the API, i got some error message in the script and nothing is shown.
Title: Re: rcmail.url for plugins???
Post by: SKaero on July 09, 2013, 01:55:09 AM
You should be able to use "./?_task=mail&_action=plugin.action" as the url.