MyBB Community Forums

Full Version: how do i display description only to forum id 2
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Add custom php code to forum description,
so I got a php code, and the plugin to display the php code in the theme, now how do I display that code in a particular forum's description.
For example, I was thinking to do so:

<?php 
if ($forum['id'] == 2) {
 echo 'This is description for ID2';
}
else
{
{$forum['description']}
}
You can choose any specific descriptions for each single forum and subforum.
Your mentioned code example seems to makes no sense in general.

Is it about your plugin only?
So, do you want to have two different descriptions for one forum in case of different scenarios. Then I guess it would make sense to make changes to this plugin.

Please precize what you are going to achive.

[ETS]