Requirement: The latest
XThreads Version (at least v1.32).
Now, XThreads has a fantastic conditional feature. Amazing. Really really amazing!
This is a simple example application that use that feature.
Adding a reason for closed thread.
Now, we need to put
{$GLOBALS['threadfields']['ctr']} variable in our
forumdisplay_thread template or
template_prefix_forumdisplay_thread template if we use template prefix for the forum.
Find this code:
Add this variable before the code above:
So, the code will be like this:
Do that with search_results_threads_thread template too if we want the reason displayed in search result.
Screenshot:
Threadlist and search result
Live Demo:
http://mynie.6te.net/demo/forumdisplay.php?fid=33