Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Imitated New Message Notification


gerikg
Participant

@gerikg

this is what I got so far…

<a href="<?php echo get_option('home') ?>/members/<?php $user_info = get_userdata($user_ID);echo $user_info->user_login; ?>/messages"><?php if ( bp_message_thread_has_unread() ) : ?>You Have New Messages<?php else: ?>Mailbox<?php endif; ?></a>

It keeps coming out as “Mailbox” when I know I have a new message. Am I doing it right? What am I missing?

Skip to toolbar