MyBB Community Forums

Full Version: newthread template change for specific forums?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey There Guys,

Is it possible to change the 'newthread' template only for specific forums?
I need to do just that, and it is like the main part of the plugin I am developing!

Please help,
Aniruddh
For thead?
There is settings for forums:

[Image: 5a361c26d71135d9e43c9d76e5748700.png]
For thread, via a plugin
Try Xthreads.
Well man, I need it for a plugin, and if I ask a user to install another plugin to make my plugin work, is it not wierd? I need another work around please.
EDIT: trying changing the template for newthread.php if the forum id = the forum which requires the different template.
Just make a global template containing your input field, and then in your plugin, check if it's the forum which should contain that field, if yes, evaluate it.

For example, you can check the forum using:

//We get forum id

$fid = intval($mybb->input['fid']);

if($fid == $mybb->settings['fid_of_your_plugin_field'])
{
//Do your thing
}
O thanks, what I did was create a complete new template, so // Do your thing = changing the newthread template to the one I created right?