Mark unread messages into Last Topics using Font Awesome icons

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

If you wish to attach one or more files enter the details below.

Maximum filesize per attachment: 1 MiB.

Expand view Topic review: Mark unread messages into Last Topics using Font Awesome icons

Mark unread messages into Last Topics using Font Awesome icons

by axew3 » Wed Jan 31, 2018 11:09 pm

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.

Top