I have an idea, and I think I can use this example application for this purpose.
In the next XThreads version, v 1.4, XThreads supports language prefix. It means, if we want to change some default words to make it suitable for our application, we don't need to type it manually in our template. It will make XThreads more flexible and dynamic, especially if we have a non English forum, or, we want to change some custom thread fields from one of our XThreads application to other purpose. So, I think it is better if we make the custom thread fields title more "dynamic" too.
Right now, using this example applications as sample, I have an idea like this:
We need to edit these custom thread fields:
- Textbox for Product Name:
Display Format:
For displaying this custom thread field title, we need to put {$GLOBALS['tplvars']['pfname']} variable in our template.
With this way, when we change the title of this field via Custom Thread Fields Edit Page, we don't need to change it in our template. The variable will "update" it automatically.
We will do the same thing with other custom thread fields.
- Textbox for Developer:
Display Format:
For displaying this custom thread field title, we need to put {$GLOBALS['tplvars']['pfdev']} variable in our template.
- Textbox for Product Version:
Display Format:
For displaying this custom thread field title, we need to put {$GLOBALS['tplvars']['pfversion']} variable in our template.
- Textbox for Release (Year):
Display Format:
For displaying this custom thread field title, we need to put {$GLOBALS['tplvars']['pfrealese']} variable in our template.
- Multiline Textbox for Product Description:
Display Format:
For displaying this custom thread field title, we need to put {$GLOBALS['tplvars']['pfdesc']} variable in our template.
- Listbox for Categories:
Display Format:
For displaying this custom thread field title, we need to put {$GLOBALS['tplvars']['pfcat']} variable in our template.
Now, we need to edit some template, replacing the previous manual typed thread fields title with the variable above:
- pf_forumdisplay_thread
- pf_postbit_first
I didn't update the first post, because I need to know whether it is OK or not to use it
The Live Demo for this application already use the code above.