11-05-2010, 07:20 AM
Now, we can filter threads by the default MyBB thread prefix using XThreads.
Then, we need to edit our forumdisplay_thread template:
Find:
Then, we need to edit our forumdisplay_thread template:
Find:
Code:
|
Replace with:
HTML Code
|
With the modification above, we can filter threads by thread prefix (click the thread prefix).
Additional Info:
The filter format should be like this:
Code:
|
Example:
We want to display threads which has thread prefix id = 2 only. So, the filter format should be like this:
Code:
|
And, we can use an array for this too. The format should be like this:
Code:
|
Example:
We want to display threads which has thread prefix id = 1, threads which has thread prefix id = 2 and threads which has thread prefix id = 3. The filter format should be like this:
Code:
|
With this concept, as an optional, we can place the thread prefix filter in our forumdisplay_threadlist template manually.
Example:
HTML Code
|