 Petit moyen simple pour afficher les notes sous formes d'étoiles avec mydownloads
Dans le fichier mydownloads_download.html
Chercher la ligne avec (je ne peut être précis car j'ai modifié le template):
<{$down.rating}> (<{$down.votes}>)
Remplacer par :
<{if $down.rating > 0 and $down.rating <2}>
<img src="<{$xoops_url}>/modules/mydownloads/images/[b]votreimage1etoile[/b]" align="middle">(<{$down.votes}>)
<{/if}>
<{if $down.rating >=2 and $down.rating <4}>
<img src="<{$xoops_url}>/modules/mydownloads/images/[b]votreimage2etoiles[/b]" align="middle">(<{$down.votes}>)
<{/if}>
<{if $down.rating >=4 and $down.rating <6}>
<img src="<{$xoops_url}>/modules/mydownloads/images/[b]votreimage3etoiles[/b]" align="middle">(<{$down.votes}>)
<{/if}>
<{if $down.rating >=6 and $down.rating <8}>
<img src="<{$xoops_url}>/modules/mydownloads/images/[b]votreimage4etoiles[/b]" align="middle" >(<{$down.votes}>)
<{/if}>
<{if $down.rating >=8 and $down.rating <=10}>
<img src="<{$xoops_url}>/modules/mydownloads/[b]images/votreimage5etoiles[/b]" align="middle">(<{$down.votes}>)
<{/if}>
Remplacez les 'votreimageXétoiles' par le nom de vos images(je ne peux pas vous fournir les images car je fonctionne avec une notation par CD)
Vous pouvez le voir en action ici : Note de 10 : http://www.logicielsgratuits.org/modu ... inglefile.php?cid=2&lid=1 Note de 7 : http://www.logicielsgratuits.org/modu ... glefile.php?cid=8&lid=150
Le systèmes fonctionne sur la dernière version de mydownloads. Je n'ai pas testé sur les autres version mais bon, normalement ca doit fonctionner. |