Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Indicating new posts/topics plugin request. Coder needed!

I’m not sure i’m doing it right. The idea is good, but nothing seems to happen. Here’s what i have:

In the plugin:

function fel_indicatenew($title)
{
global $topic, $bb_current_user;
if ( bb_is_user_logged_in() )
{
$feluser = bb_get_user($bb_current_user->ID);
if( ($topic->topic_time > $feluser->last_visit) && ( $topic->topic_last_poster != $feluser->ID ) )
{
//$title = '<span style="color: #9d0a0e;">' . $title . '</span>';
$topic->new = true;
}
}
return($title);
}

.. and in the theme’s front-page.php:

<?php if( $topic->new ) : ?>
blah
<?php endif; ?>

I’ve also tried:

<?php if( $topic->new ) { ?>
blah
<?php } ?>

.. but none of these seem to do anything.

Skip to toolbar