Separate Sticky Threads
I am aware there are other 'separate sticky' resources available, however this short guide has been made from a combination of other resources available and my own additional unique modifications.
This modification will require you to edit two templates and will provide you with a very simplistic customisable sticky separation bar. Please note that when you upgrade your XenForo software this modification may be overwritten, so it's a good idea make a backup of the changes you have made and to keep this in mind when the time comes to upgrade your forum software. You may have to do this every time you upgrade. The good news is, it only takes a minute to do.
1.) Go to AdminCP and open --> Appearance --> Templates --> thread_list
2.) find
and add this code directly below the above code:
3.) Got to AdminCP and open --> Appearance --> Templates --> discussion_list.css
4.) Scroll down to the very bottom of discussion_list.css and add this code:
Now feel free to customise the code to suite your forum.
Additional Comments On Customisation:
- If you wish to change the height of the block then change "10px" to "30px" or "1px" or whatever value you feel suites your forum.
- A bottom border is enabled because all discussion/thread topic lists do not have top borders, only bottom borders, which means the very top thread will have a missing top border without it. If threads were to have both borders, then the list would have multiple lines doubling over each other, which doesn't look good. Feel free to change to the line colour to the colour your forum uses. Change the bottom border colour by editing the "#ededed" value. You can input any hexadecimal value there and you will most likely find the value you are looking for in your colour palette.
I wish you success.
I am aware there are other 'separate sticky' resources available, however this short guide has been made from a combination of other resources available and my own additional unique modifications.
This modification will require you to edit two templates and will provide you with a very simplistic customisable sticky separation bar. Please note that when you upgrade your XenForo software this modification may be overwritten, so it's a good idea make a backup of the changes you have made and to keep this in mind when the time comes to upgrade your forum software. You may have to do this every time you upgrade. The good news is, it only takes a minute to do.
1.) Go to AdminCP and open --> Appearance --> Templates --> thread_list
2.) find
Kod:
<xen:foreach loop="$stickyThreads" value="$thread">
<xen:include template="thread_list_item" />
</xen:foreach>
and add this code directly below the above code:
Kod:
<xen:if is="{$stickyThreads}">
<hr class="stickySeparator"/>
</xen:if>
3.) Got to AdminCP and open --> Appearance --> Templates --> discussion_list.css
4.) Scroll down to the very bottom of discussion_list.css and add this code:
Kod:
.stickySeparator {
height: 10px;
background-color: #f5f5f5;
border-style:solid;
border-color: #ededed;
border-top-style: none;
border-left-style: none;
border-right-style: none;
padding: 0px;
margin: 0px;
}
Now feel free to customise the code to suite your forum.
Additional Comments On Customisation:
- If you wish to change the height of the block then change "10px" to "30px" or "1px" or whatever value you feel suites your forum.
- A bottom border is enabled because all discussion/thread topic lists do not have top borders, only bottom borders, which means the very top thread will have a missing top border without it. If threads were to have both borders, then the list would have multiple lines doubling over each other, which doesn't look good. Feel free to change to the line colour to the colour your forum uses. Change the bottom border colour by editing the "#ededed" value. You can input any hexadecimal value there and you will most likely find the value you are looking for in your colour palette.
I wish you success.