Ce tuto vous permettra d'afficher une image de statut hors ligne.
Placez votre image nommée icon_user_offline.gif dans le dossier styles/votre style/imageset/fr/
Ensuite dans ce même répertoire ouvrez le fichier imageset.cfg
Cherchez :
- Code: Tout sélectionner
img_icon_user_offline = icon_user_offline.gif
Remplacez par :
- Code: Tout sélectionner
img_icon_user_offline = icon_user_offline.gif*58*58
Passons au css.
Dans colours.css.
Cherchez :
- Code: Tout sélectionner
.online { background-image: url("{IMG_ICON_USER_ONLINE_SRC}"); }
Ajoutez APRÈS :
- Code: Tout sélectionner
.offline { background-image: url("{IMG_ICON_USER_OFFLINE_SRC}"); }
Dans content.css.
Cherchez :
- Code: Tout sélectionner
.online { background-image: none; background-position: 100% 0; background-repeat: no-repeat; }
Remplacez par :
- Code: Tout sélectionner
.online, .offline { background-image: none; background-position: 100% 0; background-repeat: no-repeat; }
Passons maintenant au html.
Dans le fichier viewtopic_body.html
Cherchez :
- Code: Tout sélectionner
<!-- IF postrow.S_ONLINE and not postrow.S_IGNORE_POST --> online<!-- ENDIF -->
Remplacez par :
- Code: Tout sélectionner
<!-- IF postrow.S_ONLINE and not postrow.S_IGNORE_POST --> online<!-- ELSE --> offline<!-- ENDIF -->
Dans le fichier memberlist_view.html
Cherchez :
- Code: Tout sélectionner
<!-- IF S_ONLINE --> online<!-- ENDIF -->
Remplacez par :
- Code: Tout sélectionner
<!-- IF S_ONLINE --> online<!-- ELSE --> offline<!-- ENDIF -->
Dans le fichier ucp_pm_viewmessage.html
Cherchez :
- Code: Tout sélectionner
<!-- IF S_ONLINE --> online<!-- ENDIF -->
Remplacez par :
- Code: Tout sélectionner
<!-- IF S_ONLINE --> online<!-- ELSE --> offline<!-- ENDIF -->
Il ne reste plus qu'à rafraîchir votre style au complet et à vider le cache.
A bientôt...