From 8e77a6a6fe2e1cbf72bcf359026ba2d2c7e4e81a Mon Sep 17 00:00:00 2001
From: ARNO* <arno@rezo.net>
Date: Sun, 24 Apr 2005 14:56:00 +0000
Subject: [PATCH] logo auteur dans forum avec reduire_image

---
 ecrire/inc_presentation.php3 | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/ecrire/inc_presentation.php3 b/ecrire/inc_presentation.php3
index 54894dea4a..c1f3378692 100644
--- a/ecrire/inc_presentation.php3
+++ b/ecrire/inc_presentation.php3
@@ -1409,6 +1409,13 @@ function afficher_forum($request, $adresse_retour, $controle_id_article = 0) {
 				$logo_auteur = decrire_logo("auton$id_auteur");
 				if ($logo_auteur) {
 					$fichier = $logo_auteur[0];
+	
+					$s = "<div style='position: absolute; $spip_lang_right: 0px; margin: 0px; margin-top: -3px; margin-$spip_lang_right: 0px;'>";
+					$s .= reduire_image_logo(_DIR_IMG.$fichier, 48, 48);
+					$s .= "</div>";
+					$titre_boite = $s.typo($titre_boite);
+
+/*
 					$taille_x = $logo_auteur[3];
 					$taille_y = $logo_auteur[4];
 					$taille = image_ratio($taille_x, $taille_y, 48, 48);
@@ -1418,7 +1425,7 @@ function afficher_forum($request, $adresse_retour, $controle_id_article = 0) {
 					$hash = calculer_action_auteur ("reduire $w $h");
 	
 					$titre_boite = "<div style='position: absolute; $spip_lang_right: 0px; margin: 0px; margin-top: -3px; margin-$spip_lang_right: 0px;'><img src='../spip_image_reduite.php3?img="._DIR_IMG."$fichier&taille_x=$w&taille_y=$h&hash=$hash&hash_id_auteur=$connect_id_auteur' width='$w' height='$h'></div>".typo($titre_boite);
-					
+*/					
 				}
 			}
 		
-- 
GitLab