diff --git a/root/portal/block/attachments.php b/root/portal/block/attachments.php index 593e9945..800523e1 100644 --- a/root/portal/block/attachments.php +++ b/root/portal/block/attachments.php @@ -84,6 +84,7 @@ if( $attach_forums === TRUE ) 'POST_IDS' => (!empty($post_ids[$row['attach_id']])) ? $post_ids[$row['attach_id']] : '', 'POST_MSG_ID' => $row['post_msg_id'], // grab post ID to redirect to post 'U_FILE' => append_sid($phpbb_root_path . 'download/file.' . $phpEx, 'id=' . $row['attach_id']), + 'U_TOPIC' => append_sid($phpbb_root_path . 'viewtopic.'.$phpEx, 'p='.$row['post_msg_id'].'#p'.$row['post_msg_id']), )); } $db->sql_freeresult($result); diff --git a/root/portal/block/search.php b/root/portal/block/search.php index 03716f47..4166fac5 100644 --- a/root/portal/block/search.php +++ b/root/portal/block/search.php @@ -22,7 +22,7 @@ if (!defined('IN_PORTAL')) $template->assign_vars(array( 'S_DISPLAY_PORTALSEARCH' => true, - 'S_SEARCH_ACTION' => "{$phpbb_root_path}search.$phpEx", + 'S_SEARCH_ACTION' => append_sid("{$phpbb_root_path}search.$phpEx"), )); diff --git a/root/styles/prosilver/template/portal/block/attachments.html b/root/styles/prosilver/template/portal/block/attachments.html index 0183b3ea..82dd4785 100644 --- a/root/styles/prosilver/template/portal/block/attachments.html +++ b/root/styles/prosilver/template/portal/block/attachments.html @@ -6,7 +6,7 @@ {L_FILENAME}
-  {attach.REAL_FILENAME}
+  {attach.REAL_FILENAME}
{L_FILESIZE}:{attach.FILESIZE}
{L_DOWNLOADS}:{attach.DOWNLOAD_COUNT}
diff --git a/root/styles/subsilver2/template/portal/block/attachments.html b/root/styles/subsilver2/template/portal/block/attachments.html index 4277a73c..d0f91da4 100644 --- a/root/styles/subsilver2/template/portal/block/attachments.html +++ b/root/styles/subsilver2/template/portal/block/attachments.html @@ -9,7 +9,7 @@ {L_FILENAME} {L_FILESIZE}
-  {attach.REAL_FILENAME}
+  {attach.REAL_FILENAME}
{L_FILESIZE}:{attach.FILESIZE}
{L_DOWNLOADS}:{attach.DOWNLOAD_COUNT}