Loading...
 
Features / Usability

Features / Usability


Remove right column for forums only?

posts: 60

Hi!

I want to have the right column in all pages but the forums. (I am using 1.8.4, will be upading to 1.8.5 today).
I did put if statement in tiki-section_options.php, so i wrote:
if($section == "forums")
{
if $$section_top_bar {
$smarty->assign('feature_top_bar', $$section_top_bar);

$smarty->assign('feature_bot_bar', $$section_bot_bar);
$smarty->assign('feature_left_column', $$section_left_column);

} else {
$smarty->assign('feature_top_bar', 'y');

$smarty->assign('feature_bot_bar', 'y');
$smarty->assign('feature_left_column', 'y');

}
}
else
{
if $$section_top_bar {
$smarty->assign('feature_top_bar', $$section_top_bar);

$smarty->assign('feature_bot_bar', $$section_bot_bar);
$smarty->assign('feature_left_column', $$section_left_column);
$smarty->assign('feature_right_column', $$section_right_column);
} else {
$smarty->assign('feature_top_bar', 'y');

$smarty->assign('feature_bot_bar', 'y');
$smarty->assign('feature_left_column', 'y');
$smarty->assign('feature_right_column', 'y');
}
}


But it still displays the right column in the forums...why so?

Thanks a lot in advance!

posts: 4656 Japan

Unless I'm misunderstanding what you want to do, here's an easier way: Go the Admin/Features page (/tiki-admin.php?page=features) and check the box "Layout per section" near the bottom of the page. Then click the "Admin layout per section" link. On that page (/tiki-admin_layout.php), uncheck the box "Right column" under "forums layout options."

So no need to modify the templates, just use the Admin pages to configure the layout.

-- Gary


posts: 60
Thanks a lot :-) That should work!

Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting