this precludes the use of (say) an animated gif for "hot" forum topics.

if it makes sense to people as a fix, I'll create a patch that takes the extention from a admin settings variable.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Morbus Iff’s picture

Status: Active » Closed (won't fix)

This is a user-defined setting, see admin/forum/configure and "forum icon path".

Wesley Tanaka’s picture

Status: Closed (won't fix) » Needs review
FileSize
1.57 KB

Sorry, clearly I wasn't clear enough.

    // default
    $file = variable_get('forum_icon_path', 'misc') ."/forum-$icon.png";

I'm talking about the "png" part of that code.

The current CVS looks like it might limp along well enough to get it working on my site, so I took the plunge and committed it. Since it's easier for me to create patches now, I'm attaching one which explains what I mean (and incidentally would also fix the problem)

Dries’s picture

Status: Needs review » Needs work

I vote against more settings. Let's just make sure this is 100% themable using the theme system.

Dries’s picture

If it is fully themeable, we can probably remove the "Forum icon path" setting too.

Wesley Tanaka’s picture

Status: Needs work » Needs review
FileSize
3.29 KB

reasonable idea

Wesley Tanaka’s picture

FileSize
2.54 KB

a different approach which reduces the burden on the person overriding the theme function.

Dries’s picture

Status: Needs review » Fixed

Committed a modified version of your patch to HEAD. Don't worry about backward compatibility.

Anonymous’s picture

Status: Fixed » Closed (fixed)
drumm’s picture

Version: » 4.6.5
Status: Closed (fixed) » Active

This needs documentation at http://drupal.org/node/25297

Robert Castelo’s picture

Added documentation telling themers that theme_forum_icon() is now available.

Robert Castelo’s picture

Status: Active » Closed (fixed)