bitweaver
Wiki
wiki Home
List Pages
wiki Books
Orphan Pages
wiki Rankings
Photos
List Galleries
Forums
Browse forums
Files
List Galleries
Categories
List Categories
Sign In
Message Boards
»
03. Support - Post installation
Newest
Oldest
Threaded
5
10
20
50
100
All
Messages
Hide Comments from Anon
Post Reply
Chris Preston
Joined: 01 Dec 2009
Hide Comments from Anon
Posted:01 Dec 2009 (16:57 UTC)
Lester Caine
Joined: 24 Apr 2004
Re: Hide Comments from Anon
Posted:04 Dec 2009 (20:29 UTC)
Chris Preston
Joined: 01 Dec 2009
Re: Hide Comments from Anon
Posted:07 Dec 2009 (18:11 UTC)
Chris Preston
Joined: 01 Dec 2009
Re: Hide Comments from Anon
Posted:07 Dec 2009 (18:51 UTC)
Lester Caine
Joined: 24 Apr 2004
Re: Hide Comments from Anon
Posted:10 Dec 2009 (12:59 UTC)
Post Reply
Page 1 of 1
1
Post
Title
Login
If you are already registered, please enter your login credentials.
Your Name
Anonymous Post
Content Format
Tiki Wiki Syntax
Allow HTML
{quote format_guid="bithtml" comment_id="12147" user="eno"}While far from a perfect solution; I have fixed this. Editing: bitweaver / wiki / display_bitpage_inc.php {code source=Html4Strict num=TRUE title="Original"}// Comments engine! if( $gBitSystem->isFeatureActive( 'wiki_comments' )) { $comments_vars = array( 'page' ); $comments_prefix_var = 'wiki page:'; $comments_object_var = 'page'; $commentsParentId = $gContent->mContentId; $comments_return_url = WIKI_PKG_URL.'index.php?page_id='.$gContent->mPageId; # Support displaying comments on their own page instead of on content page if( isset( $_REQUEST["comments_page"] ) && ( $_REQUEST["comments_page"] == '1' ) || !empty( $_REQUEST['view_comment_id'] )) { $gBitSmarty->assign( 'comments_page', 1 ); $comments_on_separate_page = 1; $comments_return_url = WIKI_PKG_URL.'index.php?page_id='.$gContent->mPageId.'&comments_page=1'; if ( !empty($_REQUEST['view_comment_id']) ) { $comments_return_url .= '&comments_maxComments=1'; } } include_once( LIBERTY_PKG_PATH.'comments_inc.php' ); } {/code} {code source=Html4Strict num=TRUE title="Modified"} // Comments engine! if( $gBitUser->hasPermission( 'p_liberty_read_comments' ) ) { if( $gBitSystem->isFeatureActive( 'wiki_comments' )) { $comments_vars = array( 'page' ); $comments_prefix_var = 'wiki page:'; $comments_object_var = 'page'; $commentsParentId = $gContent->mContentId; $comments_return_url = WIKI_PKG_URL.'index.php?page_id='.$gContent->mPageId; # Support displaying comments on their own page instead of on content page if( isset( $_REQUEST["comments_page"] ) && ( $_REQUEST["comments_page"] == '1' ) || !empty( $_REQUEST['view_comment_id'] )) { $gBitSmarty->assign( 'comments_page', 1 ); $comments_on_separate_page = 1; $comments_return_url = WIKI_PKG_URL.'index.php?page_id='.$gContent->mPageId.'&comments_page=1'; if ( !empty($_REQUEST['view_comment_id']) ) { $comments_return_url .= '&comments_maxComments=1'; } } include_once( LIBERTY_PKG_PATH.'comments_inc.php' ); } } {/code} This works but leaves a blank Comments title for anon users.{/quote}
Recent Page Changes
welcome to bitweaver.org
Bitweaver Overview
ReleaseTwo Schema Changelog 2006
PressReleaseOne
Spider's Web
Press Release Two
BitcommercePackage
InfiniBand vs Ethernet Performance
InfiniBand for Dummies
Show More…