links in emails from Jamroom Support missing links now
Using Jamroom
Probably the same problem, but the link to the post is missing in New Reply emails from our jrForum 1.6.0
updated by @ultrajam: 08/05/15 11:38:14AM
function jrFramer_html_purifier_listener($_data,$_user,$_conf,$_args,$event)
{
if (isset($_conf['jrFramer_active']) && $_conf['jrFramer_active'] == 'on') {
$_data->set('HTML.SafeIframe', true);
$_data->set('URI.SafeIframeRegexp', '%(.*)%');
// ADDITIONAL TESTING CODE
$_elem = $_data->get('HTML.AllowedElements');
// Set additional elements
$_elem['abbr'] = 1;
$_elem['blockquote'] = 1;
$_elem['cite'] = 1;
$_elem = implode(',', array_keys($_elem));
$_data->set('HTML.AllowedElements', $_elem);
$_attr = $_data->get('HTML.AllowedAttributes');
// Set additional attributes
$_attr['abbr.title'] = 1;
$_attr['cite.title'] = 1;
$_attr['blockquote.class'] = 1;
// this needs to be present in the function in util.php as well
$_attr['blockquote.data-content'] = 1;
$_attr = implode(',', array_keys($_attr));
$_data->set('HTML.AllowedAttributes', $_attr);
}
return $_data;
}
$pc->autoFinalize = false;
<blockquote class="blockquote-reverse" data-content="test-content-12">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
<footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
</blockquote>
$def->addAttribute('a', 'data-lightbox', 'Text');
$def->addAttribute('blockquote', 'data-content', 'Text');
$pc->autoFinalize = false;
function ujEditorTemplates_html_purifier_listener($_data, $_user, $_conf, $_args, $event)
{
$_elem = $_data->get('HTML.AllowedElements');
// Set additional Bootstrap elements
$_elem['abbr'] = 1;
$_elem['blockquote'] = 1;
$_elem['cite'] = 1;
// ...plus a load more of these...
$_elem = implode(',', array_keys($_elem));
$_data->set('HTML.AllowedElements', $_elem);
$_attr = $_data->get('HTML.AllowedAttributes');
// Set additional Bootstrap attributes
$_attr['abbr.title'] = 1;
$_attr['cite.title'] = 1;
$_attr['blockquote.class'] = 1;
// ...plus a load more of these...
$_attr = implode(',', array_keys($_attr));
$_data->set('HTML.AllowedAttributes', $_attr);
return $_data;
}
$_data->set('HTML.AllowedElements', $_elem);