Allan
01/08/2007, 23h54
Description
Ce mod permet d'afficher votre avatar ou bon vous semble (testé sur le forumhome et navbar)
Remerciements et support / Thanks and support
Ce Hack a été traduit en français pour vBulletin-Ressources (http://www.vbulletin-ressources.com/forum/../) avec l'autorisation explicite de son auteur. / This Hack was translated into French for vBulletin-Ressources (http://www.vbulletin-ressources.com/forum/../) with the explicit authorization of its author.
vBulletin-Ressources (http://www.vbulletin-ressources.com/forum/../) et son équipe offrira du support vis-à-vis des hacks traduits, bien sûr, dans la mesure du possible de chacun, autant en terme de temps que de connaissances/ vBulletin-Ressources (http://www.vbulletin-ressources.com/forum/../) and its team will offer support for the translated hacks, of course, as far as possible for everyone, as much in term of time that knowledge.
vBulletin-Ressources (http://www.vbulletin-ressources.com/forum/../) remercie l'auteur du hack pour avoir fourni son autorisation. / vBulletin-Ressources (http://www.vbulletin-ressources.com/forum/../) thanks the author for the hack to have provided its authorization.Conception
Auteur du Hack / Author Of Hack : Fred
Version vBulletin Requise / Version vBulletin Required : vB 3.6.x
Testé / Tested: oui (3.6.7)
Copyright © 2006 vBulletin-Ressources (http://www.vbulletin-ressources.com/forum/../).com - Tous droits réservés Uniquement pour nos traductions/ Copyright © 2006 vBulletin-Ressources (http://www.vbulletin-ressources.com/forum/../).com - All Rights Reserved Only For Ours TranslationsInstallation
Créer un module en choississant comme hook: "global_start" (voir screen), avec à l'intérieur ceci:
require_once('./includes/functions_user.php');
$userid = $vbulletin->userinfo['userid'];
$avatarurl = fetch_avatar_url($userid);
if (empty($avatarurl)) {
$show['avatar'] = false;
}
else {
$show['avatar'] = true;
}
Placer ce code dans le template visé
<if condition="$show['avatar']">
<img src="$avatarurl[0]">
<else />
<img src="l'image quand l'utilisateur n'a pas d'avatar" border="0" alt="Mon avatar les loulous" />
</if>
PS: Je suis le posteur, Fred en est le créateur, merci à lui ;)
Ce mod permet d'afficher votre avatar ou bon vous semble (testé sur le forumhome et navbar)
Remerciements et support / Thanks and support
Ce Hack a été traduit en français pour vBulletin-Ressources (http://www.vbulletin-ressources.com/forum/../) avec l'autorisation explicite de son auteur. / This Hack was translated into French for vBulletin-Ressources (http://www.vbulletin-ressources.com/forum/../) with the explicit authorization of its author.
vBulletin-Ressources (http://www.vbulletin-ressources.com/forum/../) et son équipe offrira du support vis-à-vis des hacks traduits, bien sûr, dans la mesure du possible de chacun, autant en terme de temps que de connaissances/ vBulletin-Ressources (http://www.vbulletin-ressources.com/forum/../) and its team will offer support for the translated hacks, of course, as far as possible for everyone, as much in term of time that knowledge.
vBulletin-Ressources (http://www.vbulletin-ressources.com/forum/../) remercie l'auteur du hack pour avoir fourni son autorisation. / vBulletin-Ressources (http://www.vbulletin-ressources.com/forum/../) thanks the author for the hack to have provided its authorization.Conception
Auteur du Hack / Author Of Hack : Fred
Version vBulletin Requise / Version vBulletin Required : vB 3.6.x
Testé / Tested: oui (3.6.7)
Copyright © 2006 vBulletin-Ressources (http://www.vbulletin-ressources.com/forum/../).com - Tous droits réservés Uniquement pour nos traductions/ Copyright © 2006 vBulletin-Ressources (http://www.vbulletin-ressources.com/forum/../).com - All Rights Reserved Only For Ours TranslationsInstallation
Créer un module en choississant comme hook: "global_start" (voir screen), avec à l'intérieur ceci:
require_once('./includes/functions_user.php');
$userid = $vbulletin->userinfo['userid'];
$avatarurl = fetch_avatar_url($userid);
if (empty($avatarurl)) {
$show['avatar'] = false;
}
else {
$show['avatar'] = true;
}
Placer ce code dans le template visé
<if condition="$show['avatar']">
<img src="$avatarurl[0]">
<else />
<img src="l'image quand l'utilisateur n'a pas d'avatar" border="0" alt="Mon avatar les loulous" />
</if>
PS: Je suis le posteur, Fred en est le créateur, merci à lui ;)