---
title: "user rank icons broken"
url: "https://www.typo3.net/d/95783-user-rank-icons-broken"
source: "typo3.net"
tags: ["Extensions","Bilder","Frage"]
created: "2010-01-12"
last_reply: "2010-01-14"
replies: 2
solved: false
page: 1
pages: 1
lang: "de"
---

# user rank icons broken

Extensions · 2 Antworten · gestartet 2010-01-12

## Eröffnungsbeitrag

**rookie_37** · 2010-01-12 · [Beitrag #1](https://www.typo3.net/d/95783-user-rank-icons-broken/1)

hallo profis!

seit dem update auf mm_forum 1.8 werden die icons für die userranks nicht mehr angezeigt. es hat anscheinend damit zu tun, dass der ordner uploads/tx_mmforum (wo die icons für die userranks liegen) standardmässig durch ein "deny from all" htaccess geschützt ist.

genau dieses problem wird im bugtracker (#5775) beschrieben und herr helmich hat folgenden lösungsansatz geschildert:

> I tested this issue. On my testing environment, the path is generated correctly (although with four leading "../"s, too). The actual problem is, that the uploads/tx_mmforum directory is by default protected by a "deny from all" htaccess. This means that all direct access to the ranking images will be denied.
>
> I have experimented a bit, and this problem can be solved -- at least in the frontend -- with the following construct:
>
> ```php
> $icon = $this->cObj->IMAGE(array('file' => 'uploads/tx_mmforum/'.$rank['icon'], 'file.' => array('params' => '-quiet')));
> ```
>
> This forces the user rank icon to be rendered through Imagemagick, therefore circumventing the .htaccess in the uploads directory (however, the upload path is still hardcoded -- it should be read from TCA -- but that's a different issue).

nun mein frage als rookie: wohin gehört diese php-zeile?
besten dank für hinweise ;-)

## Antworten

### [#2](https://www.typo3.net/d/95783-user-rank-icons-broken/2) · Backdraft007 · 2010-01-14

Wenn ich das richtig sehe, wird

```typoscript
$icon = $this->cObj->stdWrap($icon,$this->conf['ranks.']['icon_stdWrap.']).' ';
```

in der Datei class.tx_mmforum_ranksfe.php ersetzt.

Zumindest funktioniert es dann bei mir.

### [#3](https://www.typo3.net/d/95783-user-rank-icons-broken/3) · rookie_37 · 2010-01-14

Hey Backdraft007

Vielen Dank für deinen Hinweis - hat auch bei mir geholfen!
Thema dadurch gelöst  :p

---

Quelle: „user rank icons broken“, typo3.net, https://www.typo3.net/d/95783-user-rank-icons-broken
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
