i see a little thing to adjust: if are 0 PM to read, than not display you have 0 pm msg on forum, info, and display it only if there are new PM. It is easy like just substituting code on
views/login_form_include_iframe_mode_links.php
or
views/login_form_include_noiframe_mode_links.php
Code: Select all
echo __( '<li>You have ' , 'wp-w3all-phpbb-integration' ) . '<a href="'.$w3all_url_to_cms.'/ucp.php?i=pm&folder=inbox">' . $phpbb_user_session[0]->user_unread_privmsg . '</a>' . __( ' unread forum\'s pm' , 'wp-w3all-phpbb-integration' ) . '</li>';
Code: Select all
if($phpbb_user_session[0]->user_unread_privmsg > 0){
echo __( '<li>You have ' , 'wp-w3all-phpbb-integration' ) . '<a href="'.$w3all_url_to_cms.'/ucp.php?i=pm&folder=inbox">' . $phpbb_user_session[0]->user_unread_privmsg . '</a>' . __( ' unread forum\'s pm' , 'wp-w3all-phpbb-integration' ) . '</li>';
}
You can also exclude info to display, just commenting out one of info (or maybe change order)
Code: Select all
echo '<ul class="" style="list-style:none;margin:auto auto auto 0px">';
echo __( '<li>Hello ' , 'wp-w3all-phpbb-integration' ) . $phpbb_user_session[0]->username . '</li>';
echo __( '<li>You have ' , 'wp-w3all-phpbb-integration' ) . '<a href="'.$w3all_url_to_cms.'/ucp.php?i=pm&folder=inbox">' . $phpbb_user_session[0]->user_unread_privmsg . '</a>' . __( ' unread forum\'s pm' , 'wp-w3all-phpbb-integration' ) . '</li>';
echo __( '<li>Forum\'s posts count: ' , 'wp-w3all-phpbb-integration' ) . $phpbb_user_session[0]->user_posts . '</li>';
echo __( '<li>Registered on: ' , 'wp-w3all-phpbb-integration' ) . date_i18n( 'd M Y', $phpbb_user_session[0]->user_regdate + ( 3600 * get_option( 'gmt_offset' )) ) . '</li>';
echo '</ul>';
Code: Select all
//echo __( '<li>Hello ' , 'wp-w3all-phpbb-integration' ) . $phpbb_user_session[0]->username . '</li>';
look also that to get this inline with your theme, you would may like to change:
Code: Select all
<ul class="" style="list-style:none;margin:auto auto auto 0px">