Sticky Votes

Sticky Votes

XDinc

Well-known member
XDinc submitted a new resource:

Sticky Votes - Sticky vote block for Question and Suggestion forum types.

Just add following code to extra.less template;

Code:
@media (min-width: {{ property('responsiveMedium') + 1 }}px )
{
    .block {
        .message {
            .message-inner {
                .message-cell--vote {
                    .message-column,
                    .contentVote {
                        position: -webkit-sticky;
                        position: sticky;
                        top: @header-navHeight + @xf-messagePaddingSmall;
                    }
                }...

Read more about this resource...
 
This causes an error with php 8.0 ...

Code:
ErrorException: Template error: [E_WARNING] A non-numeric value encountered internal_data/code_cache/templates/l3/s18/public/extra.less.php:648

Line 648 of that file being this code blocks first line. Comment it out of template extra.less, saving so that the code_cache version is also updated/replaced, and the error no longer occurs.
 
Top Bottom