Seite 1 von 1

Sterne aus Ratingmodul in Advanced Article List 1.4 auslesen

Verfasst: So 4. Jan 2009, 14:43
von iberion
Hallo,
ich benutze die Advanced Article List v1.4 um Texte und Bilder von Download-Objekten auszulesen. Diese Artikel (Downloads) kann man mit dem i-fekt Rating-Modul auch bewerten.

Nun soll die Artikelliste aber auch die Sterne (jeweils 5 Einzelbilder) auslesen

So sieht das im Rating-Modul aus:

Code: Alles auswählen

echo "
  <p>".mi18n("You have already rated this article.")."</p>
  <p>
   <img src=\"images/stern".$file1.".gif\" alt=\"\" title=\"\"/>
   <img src=\"images/stern".$file2.".gif\" alt=\"\" title=\"\"/>
   <img src=\"images/stern".$file3.".gif\" alt=\"\" title=\"\"/>
   <img src=\"images/stern".$file4.".gif\" alt=\"\" title=\"\"/>
   <img src=\"images/stern".$file5.".gif\" alt=\"\" title=\"\"/>
  </p>
 ";
Das ganze habe ich im Ratingmodul auch schon als einen String
gespeichert und ausgegeben, siehe hier:

Code: Alles auswählen

$ratingImg = "<img src=\"images/stern".$file1.".gif\" alt=\"\" title=\"\"/>
              <img src=\"images/stern".$file2.".gif\" alt=\"\" title=\"\"/>
              <img src=\"images/stern".$file3.".gif\" alt=\"\" title=\"\"/>
              <img src=\"images/stern".$file4.".gif\" alt=\"\" title=\"\"/>
              <img src=\"images/stern".$file5.".gif\" alt=\"\" title=\"\"/>";
 echo "$ratingImg";
Aber was muss ich tun, damit ich das mit der Adv. Article List auslesen kann??

Ich glaube, dass ich CMS_IMG[2] diesen String zuweisen muss, habe allerdings von PHP kaum Ahnung.

Weiss jemand Rat? Ist echt eilig... :wink:

Danke im Voraus.

Gruss,
Torsten

Verfasst: So 4. Jan 2009, 20:22
von Oldperl
Doppelpost gelöscht :roll:

Gruß aus Franken

Ortwin