viewtopic.php?t=52
(click on the attached image on there for a surprise)
Then you just have to make these few changes:
Code: Select all
#
# ----[ OPEN ]----
#
attach_mod/displaying.php
#
# ----[ FIND ]----
#
'IMG_SRC' => append_sid($phpbb_root_path . 'download.' . $phpEx . '?id=' . $attachments['_' . $post_id][$i]['attach_id']),
#
# ----[ REPLACE WITH ]----
#
'IMG_SRC' => $filename,
#
# ----[ OPEN ]----
#
templates/subSilver/overall_header.tpl
#
# ----[ FIND ]----
#
<!-- link rel="stylesheet" href="templates/subSilver/{T_HEAD_STYLESHEET}" type="text/css" -->
#
# ----[ AFTER, ADD ]----
#
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
#
# ----[ OPEN ]----
#
templates/subSilver/viewtopic_attach_body.tpl
#
# ----[ FIND ]----
#
<tr>
<td width="15%" class="attachrow"><span class="genmed"> {postrow.attach.cat_thumb_images.L_DOWNLOADED_VIEWED}:</span></td>
<td width="75%" class="attachrow"><span class="genmed"> {postrow.attach.cat_thumb_images.L_DOWNLOAD_COUNT}</span></td>
</tr>
#
# ----[ REPLACE WITH ]----
#
<!--
<tr>
<td width="15%" class="attachrow"><span class="genmed"> {postrow.attach.cat_thumb_images.L_DOWNLOADED_VIEWED}:</span></td>
<td width="75%" class="attachrow"><span class="genmed"> {postrow.attach.cat_thumb_images.L_DOWNLOAD_COUNT}</span></td>
</tr>
-->
#
# ----[ FIND ]----
#
<a href="{postrow.attach.cat_thumb_images.IMG_SRC}" target="_blank">
#
# ----[ REPLACE WITH ]----
#
<a href="{postrow.attach.cat_thumb_images.IMG_SRC}" rel="lightbox">
-->