To Have This LightBox Effect for anything using the [attach]id[/attach] code please do the following file edit:
Open includes/class_bbcode.php, find (around line 1767)
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=\""
Replace that with this
Code:
$replace[] = "<a href=\"{$this->registry->options['bburl']}/attachment.php?{$this->registry->session->vars['sessionurl']}attachmentid=\\1&d=$attachment[dateline]\" $addtarget rel=\"lightbox[attachment]\"><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=\""
DEMO: Same as above link, post #14
*Tested on 3.5.4 Only So Far*
Add File Name Caption:
postbit_attachmentthumbnail, after
Code:
rel="lightbot[attachment]"
Add This after For filename, filesize and times Downloaded
Code:
title="$attachment[filename] - $attachment[filesize] - Downloaded $attachment[counter] times"
Other Variables to put in for a nice effect:
Not sure how to do it with the img code. If you can figure it out please share,