• You need 5 posts to download resources. You can only download 2 resources per day. To remove these limits consider upgrading.

XF Separate sticky threads from normal ones

Nick

Developer
Banned User
LV
0
 
Joined
Feb 7, 2023
Messages
491
Reaction score
128
Awards
14
This tutorial will allow you to separate sticky threads from normal ones. Lets begin

1- Go to template forum_view

2- find this code

Code:
<xf:macro template="thread_list_macros" name="item" arg-thread="{$thread}" arg-forum="{$forum}" />
                            </xf:foreach>
                        </div>


3- Place this code below the above code and hit save.

Code:
<xf:if is="{$stickyThreads}">
            <hr class="stickySeparator"/>
        </xf:if>


4- Now go to template extra.less and add this

Code:
.stickySeparator {
  height: 12px;
  background-color: #ececec;
  border-style:solid;
  margin: 0px;
}


Hit save and you are good to go. 

You can play with the css code in case you want to change the color or the hight of the bar as I did below in the screenshot.

Here is the after math.

image.png

Hope you enjoy. If you need help just lmk.

Also since xenforo has updated try looking for this code and just follow the above tutorial.

Code:
<xf:ad position="forum_view_below_stickies" arg-forum="{$forum}" />

 
Top