Mark unread messages into Last Topics using Font Awesome icons

User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Mark unread messages into Last Topics using Font Awesome icons

Post by axew3 »

WP_w3all phpBB Wordpress 1.8.0 or > (note: 1.8.0 patched at date of this post)
Add CSS Font Awesome and mark unread topics/posts with icon, if option
Activate notify Read/Unread Topics/Posts into Last Topics widgets
is active into WP_w3all config page.

If you need to change the icon to display or his color, just open:
views/phpbb_last_topics.php
or
views/phpbb_last_topics_output_shortcode.php
and search for this line:

Code: Select all

$w3all_post_state_ru = (isset($phpbb_unread_topics) && is_array($phpbb_unread_topics) && array_key_exists($value->topic_id, $phpbb_unread_topics)) ? $w3all_post_state_ru = ' &nbsp; <span style="color:#BC2A4D"><i class="fa fa-comment" aria-hidden="true"></i></span>' : '';
change value
fa-comment
to fit the icon you may want to display between available:
Font Awesome list
change the

Code: Select all

<span style="color:#BC2A4D">
to render into another color the showed Font Awesome icon.