Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Images not displaying from Wyvern in Low Variables [With Patch]

Status Resolved
Add-on / Version
Severity Trivial
EE Version 17

Michael Marcacci

Dec 10, 2012

When using Wyvren in Low Variables, `allow_img_url` seems disabled no matter what. I couldn’t find a way around this, so I patched the ft.wyvern.php file. Is there a better way to fix this? If not, here’s my patch:


Changed Line 143

function replace_tag($data, $params = '', $tagdata = '')

to

function replace_tag($data, $params = '', $tagdata = '', $typography = array() )

————————

After line 169:

$this->EE->load->library('typography');

added

$typography = array_merge(array(
            'auto_links'    => @$this->row['channel_auto_link_urls'],
            'allow_img_url' => @$this->row['channel_allow_img_urls']
        ), $typography);

————————

Changed original lines 176/177 (now lines 181/182) from:

'auto_links'    => @$this->row['channel_auto_link_urls'],
                'allow_img_url' => @$this->row['channel_allow_img_urls']

to

'auto_links'    => $typography['auto_links'],
                'allow_img_url' => $typography['allow_img_url']

————————

Changed original line 224 (now line 229) from:

return $this->replace_tag($data, $params, $tagdata);

to

return $this->replace_tag($data, $params, $tagdata, array('allow_img_url' => 'y'));

Hope that helps somebody!!

- Mike

 

#1

BoldMinded (Brian)

Good patch, thanks for sending it. Will include it in the next release.

Login to reply