yes will be added, together with responsive ajax code to update unread/read pm forums state if on iframe mode or two column page forum.
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>';
REPLACE with:
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>';
}
simple as is. As well it is possible add any other info with easy, included avatar that will be added.
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>';
like this, not display for example the first "Hello username" ...
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">
to class (or id) that your theme use for ul li elements on widget.
yes will be added, together with responsive ajax code to update unread/read pm forums state if on iframe mode or two column page forum.
i see a little thing to adjust: if are 0 PM to read, than not display [i]you have 0 pm msg on forum[/i], info, and display it only if there are new PM. It is easy like just substituting code on
[b]views/login_form_include_iframe_mode_links.php[/b]
or
[b]views/login_form_include_noiframe_mode_links.php[/b]
[code]
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]
REPLACE with:
[code] 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>';
}[/code]
simple as is. As well it is possible add any other info with easy, included avatar that will be added.
You can also exclude info to display, just commenting out one of info (or maybe change order)
[code]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]
[i]like this, not display for example the first "Hello username"[/i] ...
[code]//echo __( '<li>Hello ' , 'wp-w3all-phpbb-integration' ) . $phpbb_user_session[0]->username . '</li>';[/code]
look also that to get this inline with your theme, you would may like to change:
[code]<ul class="" style="list-style:none;margin:auto auto auto 0px">[/code]
to class (or id) that your theme use for ul li elements on widget.