Recent Topics

1 Jan 18, 2006 23:02    

Right now, I could not find a centralize location with a list of all comments in b2e administration.

So when I receive comments, I can't take a look at them in an organized way... I have to go through all articles to see which ones have been commented/trackbacked...

(PS: email notifications also don't work for me right now but that will be other issue - even when they do, it is good to have centralized place to browse comments)

Am I missing something ?

Thanks

2 Jan 19, 2006 02:14

Each blog should have a link that says "Last comments." It will show the most recent comments for that blog, but that's on the front end rather than the administration page.

3 Jan 19, 2006 08:49

On my homepage (a collection 0f 10 blogs) I have a button with the 'last comments'
On that page, I - as admin - see also a button 'edit' and 'delete' to be able to directly delete 'spam comments'

and normally it is no more difficult than something like :
/index.php?disp=comments (when your index page is showing blog 1)
or
/index.php/conclusion?disp=comments (when your index page is just the plain old index page like it was by installation)

4 Jan 19, 2006 10:05

Topanga wrote:

On my homepage (a collection 0f 10 blogs) I have a button with the 'last comments'
On that page, I - as admin - see also a button 'edit' and 'delete' to be able to directly delete 'spam comments'

Sorry, I can't see this. What do you mean by "Home Page" ? My Home page is http://www.jurisexpert.net/blogs (front-end) and I see nothing in back end anywhere. I use 0.9.0.12

Topanga wrote:

and normally it is no more difficult than something like :
/index.php?disp=comments (when your index page is showing blog 1)
or
/index.php/conclusion?disp=comments (when your index page is just the plain old index page like it was by installation)

/index.php?disp=comments this is working (thanks !), but if I can make your method 1 work... evene better !

5 Jan 19, 2006 10:54

put this in the _lastcomments.php from your skin

<?php
	/**
	 * This is the template that displays the links to the last comments for a blog
	 *
	 */
	if( !defined('DB_USER') ) die( 'Please, do not access this page directly.' );

	if( $disp != 'comments' ) 
	{	// We have not asked for comments to be displayed...
		return false;		// Nothing to do here!
	}
	
	$CommentList = & new CommentList( $blog, "'comment'", $show_statuses, '',	'',	'DESC',	'',	20 );
	
	$CommentList->display_if_empty( '<div class="bComment"><p>'.T_('No comment yet...').'</p></div>' );

	while( $Comment = $CommentList->get_next() )
	{	// Loop through comments:	?>
		<!-- ========== START of a COMMENT ========== -->
		<a name="c<?php $Comment->ID() ?>"></a>
		<div class="bComment">
			<h3 class="bTitle">
				<?php echo T_('In response to:') ?> 
				<a href="<?php $Comment->Item->permalink() ?>"><?php $Comment->Item->title( '', '', false ) ?></a>
			</h3>
			<div class="bCommentTitle">
				<?php $Comment->author() ?>
				<?php $Comment->author_url( '', ' &middot; ', '' ) ?>
			</div>
			<div class="bCommentText">
				<?php $Comment->content() ?>
			</div>
			<div class="bCommentSmallPrint">
				<a href="<?php $Comment->permalink() ?>" title="<?php echo T_('Permanent link to this comment') ?>" class="permalink_right"><img src="<?php imgbase() ?>chain_link.gif" alt="<?php echo T_('Permalink') ?>" width="14" height="14" border="0" class="middle" /></a>
				<?php $Comment->date() ?> @ <?php $Comment->time( 'H:i' ) ?>
				<?php $Comment->edit_link( ' &middot; ' ) // Link to backoffice for editing ?>
				<?php $Comment->delete_link( ' &middot; ' ) // Link to backoffice for deleting ?>
			</div>
		</div>
		<!-- ========== END of a COMMENT ========== -->
		<?php 
	}	// End of comment loop.
?>

offcourse you have to layout it the way you want.

and put this somewhere on your homepage :

<?php if(is_logged_in()) { ?>
							<a href="<?php $admin_url ?>/blogs/admin/b2edit.php" title="<?php echo T_('New post') ?>" class="BlogButton"><?php echo T_('New post') ?></a>		
							<a href="<?php $admin_url ?>/blogs/index.php/conclusion?disp=comments" class="BlogButton"><?php echo T_('Last comments') ?></a>
						<?php } ?>

6 Apr 17, 2006 14:19

How would I go about adding a 'Ban' link to the antispam blacklist for this? I tried a couple of things, but thanks to my limited knowledge I failed with great success.

Is this feature being considered/implemented into the next version?


Form is loading...