[phpBB 3.0.x] Remplacer l'icône de statut par l'image forum

Toutes les documentations phpBB seront ici.
Verrouillé
Avatar du membre
Dakin Quelia
Webmaster
Webmaster
Messages : 565
Enregistré le : ven. 27 nov. 2009 05:47
Localisation : Belgique
Contact :

[phpBB 3.0.x] Remplacer l'icône de statut par l'image forum

Message par Dakin Quelia »

» Remplacer l'icône de statut par l'image forum

A l'aide de cette documentation, vous allez pouvoir modifier l'apparence des icônes de vos forums vous permettant d'avoir directement les images forum à la place des icônes indiquant le statut du forum.

Avant toute chose, je vous conseille de choisir des icônes au même format pour une question d'homogénéité.

Ouvrez le fichier template « styles/{VOTRE_THEME}/template/forumlist_body.html ».

Cherchez:

Code : Tout sélectionner

			<dl class="icon" style="background-image: url({forumrow.FORUM_FOLDER_IMG_SRC}); background-repeat: no-repeat;">
				<dt title="{forumrow.FORUM_FOLDER_IMG_ALT}">
				<!-- IF S_ENABLE_FEEDS and forumrow.S_FEED_ENABLED --><!-- <a class="feed-icon-forum" title="{L_FEED} - {forumrow.FORUM_NAME}" href="{U_FEED}?f={forumrow.FORUM_ID}"><img src="{T_THEME_PATH}/images/feed.gif" alt="{L_FEED} - {forumrow.FORUM_NAME}" /></a> --><!-- ENDIF -->

					<!-- IF forumrow.FORUM_IMAGE --><span class="forum-image">{forumrow.FORUM_IMAGE}</span><!-- ENDIF -->
Remplacez par:

Code : Tout sélectionner

			<dl class="icon" <!-- IF forumrow.FORUM_IMAGE -->style="background-image: url({forumrow.FORUM_IMAGE_SRC}); background-repeat: no-repeat;<!-- ELSE -->style="background-image: url({forumrow.FORUM_FOLDER_IMG_SRC}); background-repeat: no-repeat;<!-- ENDIF -->">
				<dt title="{forumrow.FORUM_FOLDER_IMG_ALT}">
				<!-- IF S_ENABLE_FEEDS and forumrow.S_FEED_ENABLED --><!-- <a class="feed-icon-forum" title="{L_FEED} - {forumrow.FORUM_NAME}" href="{U_FEED}?f={forumrow.FORUM_ID}"><img src="{T_THEME_PATH}/images/feed.gif" alt="{L_FEED} - {forumrow.FORUM_NAME}" /></a> --><!-- ENDIF -->
N'oubliez pas de rafraîchir le template (onglet Styles) et de vider le cache (onglet Général).

Résultat:
Image

Verrouillé

Qui est en ligne

Utilisateurs parcourant ce forum : Aucun utilisateur enregistré et 23 invités