Quote:
Originally Posted by voter
There is a problem with inline attachments.
When user inserts attachment as
Code:
[ATTACH] ID [/ATTACH]
rel="gallery-thumbs" class="thickbox" do not appear in <a href=""> and I have no glue where and how one need to put that.
Anybody knows where (I guess in a php file) have the standard BBCODES/TAGS like ATTACH FONT IMG being transfered into html code?
|
I found it, it is in includes/class_bbcode.php
Code:
$replace[] = "<a href=\"{$this->registry->options['bburl']}/attachment.php?{$this->registry->session->vars['sessionurl']}attachmentid=\\1&d=$attachment[dateline]\" $addtarget><img src=\"{$this->registry->options['bburl']}/attachment.php?{$this->registry->session->vars['sessionurl']}attachmentid=\\1&thumb=1&d=$attachment[thumbnail_dateline]\" class=\"thumbnail\" border=\"0\" alt=\""
Must be replaced (rel=\"gallery-thumbs\" class=\"thickbox\" must be added) with
Code:
$replace[] = "<a href=\"{$this->registry->options['bburl']}/attachment.php?{$this->registry->session->vars['sessionurl']}attachmentid=\\1&d=$attachment[dateline]\" $addtarget rel=\"gallery-thumbs\" class=\"thickbox\">
<img src=\"{$this->registry->options['bburl']}/attachment.php?{$this->registry->session->vars['sessionurl']}attachmentid=\\1&thumb=1&d=$attachment[thumbnail_dateline]\" class=\"thumbnail\" border=\"0\" alt=\""