summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2007-03-09 22:27:35 +0000
committerChristian Fowler <spider@viovio.com>2007-03-09 22:27:35 +0000
commitbad306723d1ae2fa190cd9a32423a819504c17d0 (patch)
tree5842564d2626ccf96e4077d6f12c990923eaffb1 /modules
parent6420db98c81163cc7c9e502b3dab83f40fb234e6 (diff)
downloadboards-bad306723d1ae2fa190cd9a32423a819504c17d0.tar.gz
boards-bad306723d1ae2fa190cd9a32423a819504c17d0.tar.bz2
boards-bad306723d1ae2fa190cd9a32423a819504c17d0.zip
add View More link
Diffstat (limited to 'modules')
-rw-r--r--modules/mod_recent_posts.php4
-rw-r--r--modules/mod_recent_posts.tpl3
2 files changed, 5 insertions, 2 deletions
diff --git a/modules/mod_recent_posts.php b/modules/mod_recent_posts.php
index bed0f0a..7d477c3 100644
--- a/modules/mod_recent_posts.php
+++ b/modules/mod_recent_posts.php
@@ -5,7 +5,7 @@
* - b : numeric id of board to show posts from
* - all_boards : display posts from all boards. Default behavior is to auto-track to board you are in.
*
- * @version $Header: /cvsroot/bitweaver/_bit_boards/modules/mod_recent_posts.php,v 1.3 2007/03/09 22:19:25 spiderr Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_boards/modules/mod_recent_posts.php,v 1.4 2007/03/09 22:27:35 spiderr Exp $
* @package boards
* @subpackage modules
*/
@@ -24,6 +24,8 @@ if( !empty( $module_params['b'] ) ) {
} elseif( !empty( $_REQUEST['b'] ) && empty( $module_params['all_boards'] ) ) {
$listHash['board_id'] = $_REQUEST['b'];
}
+$gBitSmarty->assign( 'modRecentPostsBoardId', !empty( $listHash['board_id'] ) ? $listHash['board_id'] : '' );
+
if( BitBase::verifyId( $gQueryUserId ) ) {
$listHash['user_id'] = $gQueryUserId;
}
diff --git a/modules/mod_recent_posts.tpl b/modules/mod_recent_posts.tpl
index 68ec72c..05ea757 100644
--- a/modules/mod_recent_posts.tpl
+++ b/modules/mod_recent_posts.tpl
@@ -1,4 +1,4 @@
-{* $Header: /cvsroot/bitweaver/_bit_boards/modules/mod_recent_posts.tpl,v 1.1 2007/03/08 03:27:56 spiderr Exp $ *}
+{* $Header: /cvsroot/bitweaver/_bit_boards/modules/mod_recent_posts.tpl,v 1.2 2007/03/09 22:27:35 spiderr Exp $ *}
{strip}
{if $gBitSystem->isPackageActive('bitboards') && {$modLastBoardPosts}
{bitmodule title="$moduleTitle" name="last_board_posts"}
@@ -16,6 +16,7 @@
<li></li>
{/section}
</ul>
+ <a href="{$smarty.const.BITBOARDS_PKG_URL}{if $modRecentPostsBoardId}index.php?b={$modRecentPostsBoardId}{/if}">View More...</a>
{/bitmodule}
{/if}
{/strip}