![]() |
Limit threads to one per forum in forum thread sideblock
I would like to only allow one thread to display per forum in the forums selected to display in the recent "forum thread sideblock".
Any assistance would be appreciated. |
I believe the code for that is in includes/block/thread.php, function getData(). I don't know how to do what you describe in SQL (but I'm not an expert so maybe there is a way). But I think what you could do is remove the LIMIT from the query, then change the while loop to save an array of forum ids for which you have already found a thread and skip records when needed, and keep a counter of threads found so you can stop when you get to intval($this->config['threads_limit']).
|
All times are GMT. The time now is 09:58 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|