Moved & Locked topics at the bottom of the topiclist

A perfect place for code snippets to small to be a MOD or a library.
Or for examples on how to use our libraries.
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Elglobo
Past Contributor
Past Contributor
Posts: 120
Joined: 15 Jul 2008, 19:42
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Moved & Locked topics at the bottom of the topiclist

Postby Elglobo » 25 Nov 2010, 11:14

Last edited by Elglobo on 13 Jan 2015, 00:00, edited 2 times in total.
Reason: Minor bug fix

[viziouz]
New member
New member
Posts: 3
Joined: 02 Sep 2009, 21:45
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Moved & Locked topics at the bottom of the topiclist

Postby [viziouz] » 19 Feb 2011, 14:47

One little thing I noticed with this, is that it moves sticky topics too. I have installed the categorize announcements and stickies installed on my board and when I lock a sticky, it moves it under the open topics. Is there a way to prevent this?

User avatar
tumba25
Past Contributor
Past Contributor
Posts: 1058
Joined: 24 Oct 2007, 13:10
Real name: Jari Kanerva
Location: Kokkola, Finland.
Contact:

Re: Moved & Locked topics at the bottom of the topiclist

Postby tumba25 » 19 Feb 2011, 19:55


[viziouz]
New member
New member
Posts: 3
Joined: 02 Sep 2009, 21:45
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Moved & Locked topics at the bottom of the topiclist

Postby [viziouz] » 20 Feb 2011, 14:34

It worked like a charm, tumba25. Sticky moved back to the top of forumview :beer:


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “3.0 Code snippets”

Who is online

Users browsing this forum: Bing [Bot] and 4 guests