Author Topic: rcmail.url for plugins???  (Read 5020 times)

Offline Ruebezahl

  • Jr. Member
  • **
  • Posts: 11
rcmail.url for plugins???
« 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:
Code: [Select]
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

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: rcmail.url for plugins???
« Reply #1 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?

Offline Ruebezahl

  • Jr. Member
  • **
  • Posts: 11
Re: rcmail.url for plugins???
« Reply #2 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.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: rcmail.url for plugins???
« Reply #3 on: July 09, 2013, 01:55:09 AM »
You should be able to use "./?_task=mail&_action=plugin.action" as the url.