Hi,
obviously the lightbox plugin can not work.
The javascript for lightbox relies on a
rel=lightbox
in the link for the image. That is not rendered by the parser.
There might be many other possibilies, but for example, when we change this function in inc/parser/xhtml.php it will work:
function _formatLink($link){
//make sure the url is XHTML compliant (skip mailto)
if(substr($link['url'],0,7) != 'mailto:'){
$link['url'] = str_replace('&','&',$link['url']);
$link['url'] = str_replace('&','&',$link['url']);
}
//remove double encodings in titles
$link['title'] = str_replace('&','&',$link['title']);
// be sure there are no bad chars in url or title
// (we can't do this for name because it can contain an img tag)
$link['url'] = strtr($link['url'],array('>'=>'%3E','<'=>'%3C','"'=>'%22'));
$link['title'] = strtr($link['title'],array('>'=>'>','<'=>'<','"'=>'"'));
$ret = '';
$ret .= $link['pre'];
$ret .= '<a href="'.$link['url'].'"';
if(!empty($link['class'])) $ret .= ' class="'.$link['class'].'"';
if(!empty($link['target'])) $ret .= ' target="'.$link['target'].'"';
if(!empty($link['title'])) $ret .= ' title="'.$link['title'].'"';
if(!empty($link['style'])) $ret .= ' style="'.$link['style'].'"';
if(!empty($link['more'])) $ret .= ' '.$link['more'];
// CKO:
$ret .= ' rel="lightbox"';
$ret .= '>';
$ret .= $link['name'];
$ret .= '</a>';
$ret .= $link['suf'];
return $ret;
}
Obviously the functions needs to be extended. Is it possible to overwrite it with a plugin?
Regards
Cornelius