diff options
| -rw-r--r-- | BitBoard.php | 7 | ||||
| -rw-r--r-- | BitBoardTopic.php | 17 | ||||
| -rw-r--r-- | modules/mod_recent_posts.php | 6 |
3 files changed, 20 insertions, 10 deletions
diff --git a/BitBoard.php b/BitBoard.php index 74e0596..6fa19b4 100644 --- a/BitBoard.php +++ b/BitBoard.php @@ -1,13 +1,13 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_boards/BitBoard.php,v 1.35 2007/09/10 15:17:24 squareing Exp $ - * $Id: BitBoard.php,v 1.35 2007/09/10 15:17:24 squareing Exp $ + * $Header: /cvsroot/bitweaver/_bit_boards/BitBoard.php,v 1.36 2007/09/11 19:40:03 spiderr Exp $ + * $Id: BitBoard.php,v 1.36 2007/09/11 19:40:03 spiderr Exp $ * * BitBoard class to illustrate best practices when creating a new bitweaver package that * builds on core bitweaver functionality, such as the Liberty CMS engine * * @author spider <spider@steelsun.com> - * @version $Revision: 1.35 $ $Date: 2007/09/10 15:17:24 $ $Author: squareing $ + * @version $Revision: 1.36 $ $Date: 2007/09/11 19:40:03 $ $Author: spiderr $ * @package boards */ @@ -536,6 +536,7 @@ WHERE map.`board_content_id`=lc.`content_id` AND ((s_lc.`user_id` < 0) AND (s.`i * @return the link to display the page. */ function getDisplayUrl( $pBitBoardId = NULL, $pParamHash = NULL ) { + global $gBitSystem; $ret = NULL; if( empty( $pBitBoardId ) && @BitBase::verifyId( $this->mBitBoardId )) { $pBitBoardId = $this->mBitBoardId; diff --git a/BitBoardTopic.php b/BitBoardTopic.php index 9d88011..7baf69c 100644 --- a/BitBoardTopic.php +++ b/BitBoardTopic.php @@ -1,13 +1,13 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_boards/BitBoardTopic.php,v 1.37 2007/09/10 15:17:24 squareing Exp $ - * $Id: BitBoardTopic.php,v 1.37 2007/09/10 15:17:24 squareing Exp $ + * $Header: /cvsroot/bitweaver/_bit_boards/BitBoardTopic.php,v 1.38 2007/09/11 19:40:03 spiderr Exp $ + * $Id: BitBoardTopic.php,v 1.38 2007/09/11 19:40:03 spiderr Exp $ * * Messageboards class to illustrate best practices when creating a new bitweaver package that * builds on core bitweaver functionality, such as the Liberty CMS engine * * @author spider <spider@steelsun.com> - * @version $Revision: 1.37 $ $Date: 2007/09/10 15:17:24 $ $Author: squareing $ + * @version $Revision: 1.38 $ $Date: 2007/09/11 19:40:03 $ $Author: spiderr $ * @package boards */ @@ -445,14 +445,20 @@ WHERE * @param pExistsHash the hash that was returned by LibertyAttachable::pageExists * @return the link to display the page. */ - function getDisplayUrl() { + function getDisplayUrl( $pTopicId=NULL ) { + global $gBitSystem; $ret = NULL; + + if( empty( $pTopicId ) ) { + $pTopicId = $this->mRootId; + } + if( @$this->verifyId( $this->mRootId ) ) { if( $gBitSystem->isFeatureActive( 'pretty_urls' ) || $gBitSystem->isFeatureActive( 'pretty_urls_extended' ) ) { $rewrite_tag = $gBitSystem->isFeatureActive( 'pretty_urls_extended' ) ? 'view/':''; $ret = BOARDS_PKG_URL.$rewrite_tag."topic/".$pTopicId; } else { - $ret=BOARDS_PKG_URL."index.php?t=".$this->mRootId; + $ret=BOARDS_PKG_URL."index.php?t=".$pTopicId; } } return $ret; @@ -529,6 +535,7 @@ WHERE function sendNotification($user) { global $gBitSystem; +return; $mail_subject= "Topic Reply Notification - ".$this->mInfo['title']; $host = 'http://'.$_SERVER['HTTP_HOST']; //TODO: use a template for this diff --git a/modules/mod_recent_posts.php b/modules/mod_recent_posts.php index 9c233c9..31146e2 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.6 2007/04/22 17:08:51 bitweaver Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_boards/modules/mod_recent_posts.php,v 1.7 2007/09/11 19:40:04 spiderr Exp $ * @package boards * @subpackage modules */ @@ -17,7 +17,9 @@ include_once( BOARDS_PKG_PATH.'BitBoardPost.php' ); global $gBitSmarty, $gQueryUserId, $gBitSystem, $moduleParams; -extract( $moduleParams ); +if( !empty( $moduleParams ) ) { + extract( $moduleParams ); +} $listHash = array( 'user_id' => $gQueryUserId, 'sort_mode' => 'created_desc', 'max_records' => $module_rows ); if( !empty( $module_params['b'] ) ) { |
