When I was currently building my web site, I come to the issue of having a forum.
I chose Fireboard in my particular case, as I really hate bridges.
Now I had the problem, that in all pages I use one and the same modules. But for the forum, I wanted full width, with no columns at the right.
Well, this is possible to be done with the Joomla! administration by applying the modules to all menu items, except the forum. This works great as a built-in feature of Joomla! But in my case it is expected to regularly add new menu items, which for me would mean that with every new menu item, to edit all the modules and to assign these again and again.
Well, I value my time and wanted to avoid that. Unfortunately the Joomla! core didn’t accepted my feature request of having the option to assign a module to “all pages except the selected” and that’s how I come to the solution bellow.
Open index.php of the template and find:
<jdoc:include type="head" />
Right after that, add the following code:
<?php
function isForum(){
return (JRequest::getCmd('option')=='com_fireboard');
}
?>
After this code, add:
<?php
if ( isForum() ){
$divid = ‘-f’;
}?>
Now find the following code:
<!-- END: CONTENT -->
<?php if ($ja_left || $ja_right || $ja_masscol) { ?>
<!-- BEGIN: COLUMNS -->
And change it to:
<!– END: CONTENT –>
<?php
if ( !isForum() ) { ?>
<?php if ($ja_left || $ja_right || $ja_masscol) { ?>
Now find the following code:
</div><br />
<!-- END: COLUMNS -->
<?php } ?>
And change it to:
</div><br />
<!-- END: COLUMNS -->
<?php } ?>
<?php } ?>
That’s it :), now Joomla! will display the forum on full width and will hide the right columns.