Author Topic: frame about  (Read 6199 times)

Offline SecretMoon

  • Newbie
  • *
  • Posts: 5
frame about
« on: April 24, 2023, 12:40:38 PM »

hello I would like to add an iframe window in rounducube but I have this error see in the photo sorry if the information is in French

https://prnt.sc/R9RJCXVQkvlj


here is the code:

Quote
this.boutique_dialog=function(e){var t,a,n=!1,i=$("<iframe>").attr({id:"aboutframe",src:rcmail.url("./&_content=1&_task=boutique&_action=boutique",{_framed:1})}),o=$("#supportlink");o.length&&(t=o.attr("href"))&&(n=o.text(),a=function(e){t.indexOf("mailto:")<0?window.open(t):location.href=t});rcmail.simple_dialog(i,$(e).text(),a,{button:n,button_class:"help",cancel_button:"close",height:400})}

Quote
./&_content=1&_task=boutique&_action=boutique
OR
"./?_task=mail&_action=plugin.action"

can you tell me why this is not working

here is the code in the plugins :

Quote
              // boutique
        if (is_readable($this->home . '/content/boutique.html')) {
            $content['boutique'] = 'self';
        }
        else {
            $default = $rcmail->url(['_task' => 'settings', '_action' => 'boutique', '_framed' => 1]);
            $content['boutique'] = $rcmail->config->get('boutique_boutique_url', $default);
            $content['boutique'] = $this->resolve_language($content['boutique']);
        }