Closed (fixed)
Project:
Advanced Forum
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Jun 2011 at 22:38 UTC
Updated:
28 Nov 2011 at 22:20 UTC
A suggestion is to change the option key for "None" for "Collapsible forum containers" from 'none' to ''.
Why?
The if case bellow will never be false, so toogle icon will always be showed.
// advanced_forum.naked.forum-list.tpl.php
// $collapsible can have the value: 'none', 'fade', 'slide' and 'toggle'.
if ($collapsible):
To not have to make if ($collapsible != 'none'): you can make these changes bellow.
// advanced_forum_preprocess_forum_list.inc:15
if ($variables['collapsible'] != 'none') {
//to
if ($variables['collapsible']) {
// settings.inc:110
'none' => t("None"),
//to
'' => t("None"),
If you make those changes, the toogle icon will be hidden when "None" is choosen as effect and it will not have any impact on the javascript.
Comments
Comment #1
mcdruid commentedThanks Scyther.
I didn't do this by changing the key to '' although that would have worked.
I think it's cleaner to set
...in the preprocess function if the 'none' option has been selected.
The D7 branch does something very similar.
Committed to 6.x-2.x branch.
Comment #2
mcdruid commentedoops - realised I should have been setting issues to "fixed" rather than "closed (fixed)"
Comment #3
Scyther commentedMaybe the value of 'None' should also be changed to '- None -' to follow Taxonomy (taxonomy.module:438), CCK (optionwidgets.module:429) and other modules.
What do you think about that mcdruid?
Comment #4
Scyther commentedComment #5
mcdruid commentedThanks; changed to '- None -' and committed to 6.x-2.x branch (eventually).