Awesome, I was in the ballpark but thanks for the details. Very informative, thanks again.3Di wrote: ↑Sun Oct 14, 2018 2:05 amprofKroy wrote: ↑Sun Oct 14, 2018 1:24 am Hey 3Di,
I have a question for you. This may sound odd, but I would like to change the icon colors for the Mark As Read "eye" icon. So I would like to change all the eye icons to green. Then when a user clicks on the green "eye" icon, it will turn red. Can you tell me how I can make that modification? Thank you!
Open
ext/threedi/hlposts/styles/all/template/js/hlposts.js
findreplace withCode: Select all
$iconBack2Top.replaceWith('<span class="top hlposts-margin-fix" title="' + langNewTitle + '"><i class="icon fa-eye fa-fw icon-green" aria-hidden="true"></i></span>');
findCode: Select all
$iconBack2Top.replaceWith('<span class="top hlposts-margin-fix" title="' + langNewTitle + '"><i class="icon fa-eye fa-fw icon-red" aria-hidden="true"></i></span>');
replace withCode: Select all
$iconPostingButton.replaceWith('<button class="button-icon-only highlight-view" title="' + langNewTitle + '" name="marked_read_' + postId + '" disabled><i class="icon fa-eye fa-fw" style="color: #4db355 !important;" aria-hidden="true"></i> <span>' + langNewTitle + '</span></button>');
------------------------Code: Select all
$iconPostingButton.replaceWith('<button class="button-icon-only highlight-view" title="' + langNewTitle + '" name="marked_read_' + postId + '" disabled><i class="icon fa-eye fa-fw" style="color: #d41142 !important;" aria-hidden="true"></i> <span>' + langNewTitle + '</span></button>');
open
ext/threedi/hlposts/styles/all/template/events/viewtopic_body_postrow_back2top_append.html
findreplace withCode: Select all
<i class="icon fa-eye-slash fa-fw icon-red" aria-hidden="true"></i>
---------------------Code: Select all
<i class="icon fa-eye-slash fa-fw icon-green" aria-hidden="true"></i>
open
ext/threedi/hlposts/styles/all/template/events/viewtopic_body_post_buttons_before.html
findreplace withCode: Select all
<i class="icon fa-eye-slash fa-fw icon-red" aria-hidden="true"></i>
Purge the cache then.Code: Select all
<i class="icon fa-eye-slash fa-fw icon-green" aria-hidden="true"></i>
Thanks to your feedback I noticed where the glitch was within the above instructions, here we go with the right codechanges.
To update:- Can see the eye icon
which allows you to chose who can see and use the icon FA 👁
By default nothing changed, you will use it at your pleasure once updated.
The go to permissions and see what you want to do.Disable the extension
Do NOT delete data
Delete the `threedi/hlposts
` folder
Upload the download to `threedi/hlposts
`
Enable the extension
Can mark posts as read
` permission.Just a quick question here - what is it that would make this extension not work with 3.3?3Di wrote:equal or greater than 3.2.1 but less than 3.3.0-dev
Sure thing, this is a paid extension kindly shared by our patreon who has made this possible.
That's tremendously generous! Thanks very much to your patreon (as well as yourselves)!
Many of our extensions are public thanks to the co-operation of our patreons.
I fear that's not the case. I just installed this extension on my phpBB 3.3 forum. Firstly, I had to modify composer.json and ext.php so that the extension matches my version of phpBB, otherwise I couldn't enable it.3Di wrote:It should perfectly work on 3.3 as well, quite sure.