Ergebnis 1 bis 12 von 12

Thema: Rating Modul wird ohne Grafik dargestellt

  1. #1
    Contao-Fan Avatar von Ripperz
    Registriert seit
    22.09.2012.
    Ort
    Hamburg
    Beiträge
    707

    Standard Rating Modul wird ohne Grafik dargestellt

    Hallo,
    ich nutze das Rating Modul. Im BE habe ich das Modul mit den entsprechenden Bildern (hover/leerer/voller stern) bestückt. Im Frontend werden mir aber nur 10 checkbox felder angezeigt. Wie beschrieben befinden sich die SimpleAjaxFrontend.php und SimpleAjax.php im contao root-verzeichniss.

    Woran kann das liegen das die Darstellung nicht richtig ist?

  2. #2
    Contao-Urgestein Avatar von folkfreund
    Registriert seit
    09.04.2010.
    Beiträge
    1.928

    Standard

    JQuery im Seitenlayout aktiviert? Ich meine mich zu erinnern, dass das gebraucht wird.

    folkfreund

  3. #3
    Gesperrt
    Registriert seit
    20.07.2009.
    Ort
    Recife, Pernambuco, Brasilien
    Beiträge
    90

    Standard

    Bei mir hat das aktivieren von "MooTools laden" geholfen!

    Gruß Carlos

  4. #4
    Contao-Fan Avatar von Ripperz
    Registriert seit
    22.09.2012.
    Ort
    Hamburg
    Beiträge
    707

    Standard

    Hallo,
    also das Mootool ist aktiviert rating_mootool.jpg

    Im Frontend siehst das ganze so aus frontend_rating.jpg

    Das Attribute sieht dann so aus rating_mm.jpg

    Sicherlich habe ich irgendwo eine Einstellung falsch gesetzt oder vergessen einzufügen. Ich bin aber die Demo durchgegangen und habe verglichen. Habt ihr eine Idee?

  5. #5
    Contao-Urgestein Avatar von KlausGrenoble
    Registriert seit
    27.01.2013.
    Ort
    Grenoble
    Beiträge
    2.362

    Standard

    Und wenn Du das Häkchen rausnimmst für "halbe Wertungen" ?
    Man weiss ja nie.

  6. #6
    Contao-Fan Avatar von Ripperz
    Registriert seit
    22.09.2012.
    Ort
    Hamburg
    Beiträge
    707

    Standard

    hallo Klaus,
    habe es getestet, hat aber nichts gebracht...

  7. #7
    Contao-Urgestein Avatar von KlausGrenoble
    Registriert seit
    27.01.2013.
    Ort
    Grenoble
    Beiträge
    2.362

    Standard

    Vielleicht das hier:
    http://de.contaowiki.org/MetaModels
    Hinweis: Das Attribut Rating benötigt die Extension SimpleAjax von leo-unglaub. Das Rating Attribut wird seit einiger Zeit nicht mehr in der Nightly ausgeliefert.

  8. #8
    Contao-Yoda Avatar von MacKP
    Registriert seit
    15.06.2009.
    Ort
    Duisburg
    Beiträge
    13.292
    User beschenken
    Wunschliste
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Hmm jquery ist nicht notwendig dafür.
    Guck mal ob du nen JS-Error bekommst (Firebug Konsole oder was auch immer du gerne nutzt).
    Ansonsten (wie auch schon in anderen Threads): Bitte einen Link zu dem Projekt, damit man sich das anschauen kann...

    Viele Grüße
    Contao Pool | C-C-A | MetaModels | [Internetseite -> Mediendepot Ruhr]
    [Arbeitet bei -> Paus Design & Medien]
    "I can EXPLAIN it to you, but I can't UNDERSTAND it for you."

  9. #9
    Contao-Fan Avatar von Ripperz
    Registriert seit
    22.09.2012.
    Ort
    Hamburg
    Beiträge
    707

    Standard

    Hi MacKP
    das Projekt ist leider derzeit local, daher kann ich leider keinen Link schicken.

    Mit der Konsole kenne ich mich nicht so gut aus. Aber er zeigt an:

    SyntaxError: syntax error
    <!]]>


    Un der Fehhler soll hier sein (die Zeile die Fett ist)

    var starRater=new MooStarRating({
    form: "rating_attribute_5_1",
    radios: "rating_attribute_5_1_rating",
    half: true,
    imageEmpty: 'http://localhost/contao_live_21117_mm/tl_files/bilder/star-empty.png',
    imageFull: 'http://localhost/contao_live_21117_mm/tl_files/bilder/star-full.png',
    imageHover: 'http://localhost/contao_live_21117_mm/tl_files/bilder/star-hover.png',
    width: 16,
    tip: "Bewerten als<em>[VALUE]/ 10</em></i>",
    tipTarget: $('rating_attribute_5_1_tip'),
    tipTargetType: "html"
    Reicht das?

  10. #10
    Contao-Fan Avatar von Ripperz
    Registriert seit
    22.09.2012.
    Ort
    Hamburg
    Beiträge
    707

    Standard

    Hallo MacKP,
    ich habe jetzt mal im Frontend die Demo mit meinem verglichen.
    Bei meiner fehlt die verlinkung. Das im render definierte template mm_atr_rating ist aber identisch, daher bin ich etwas ratlos wo da etwas fehlt. Hast du eine Idee?

    Meine verison
    PHP-Code:
    <form name="rating_attribute_5_2">
    <
    input type="radio" value="0.5" name="rating_attribute_5_2_rating">
    <
    input type="radio" value="1" name="rating_attribute_5_2_rating">
    <
    input type="radio" value="1.5" name="rating_attribute_5_2_rating">
    <
    input type="radio" value="2" name="rating_attribute_5_2_rating">
    <
    input type="radio" value="2.5" name="rating_attribute_5_2_rating">
    <
    input type="radio" value="3" name="rating_attribute_5_2_rating">
    <
    input type="radio" value="3.5" name="rating_attribute_5_2_rating">
    <
    input type="radio" value="4" name="rating_attribute_5_2_rating">
    <
    input type="radio" value="4.5" name="rating_attribute_5_2_rating">
    <
    input type="radio" value="5" name="rating_attribute_5_2_rating">
    <
    input type="radio" value="5.5" name="rating_attribute_5_2_rating">
    <
    input type="radio" value="6" name="rating_attribute_5_2_rating">
    <
    input type="radio" value="6.5" name="rating_attribute_5_2_rating">
    <
    input type="radio" value="7" name="rating_attribute_5_2_rating">
    <
    input type="radio" value="7.5" name="rating_attribute_5_2_rating">
    <
    input type="radio" value="8" name="rating_attribute_5_2_rating">
    <
    input type="radio" value="8.5" name="rating_attribute_5_2_rating">
    <
    input type="radio" value="9" name="rating_attribute_5_2_rating">
    <
    input type="radio" value="9.5" name="rating_attribute_5_2_rating">
    <
    input type="radio" value="10" name="rating_attribute_5_2_rating">
    <
    span id="rating_attribute_5_2_tip" class="ajax_rating_tip"></span>
    </
    form>
    </
    div

    Metamodel Demo
    PHP-Code:
    <form class="star_hwq8el3a" name="rating_attribute_34_12">
    <
    input type="radio" value="0.5" name="rating_attribute_34_12_rating" style="display: none;">
    <
    input type="radio" value="1" name="rating_attribute_34_12_rating" style="display: none;">
    <
    input type="radio" value="1.5" name="rating_attribute_34_12_rating" style="display: none;">
    <
    input type="radio" value="2" name="rating_attribute_34_12_rating" style="display: none;">
    <
    input type="radio" value="2.5" name="rating_attribute_34_12_rating" style="display: none;">
    <
    input type="radio" value="3" name="rating_attribute_34_12_rating" style="display: none;">
    <
    input type="radio" value="3.5" name="rating_attribute_34_12_rating" style="display: none;">
    <
    input type="radio" value="4" name="rating_attribute_34_12_rating" style="display: none;">
    <
    input type="radio" value="4.5" name="rating_attribute_34_12_rating" style="display: none;">
    <
    input type="radio" value="5" name="rating_attribute_34_12_rating" style="display: none;">
    <
    input type="radio" value="5.5" name="rating_attribute_34_12_rating" style="display: none;">
    <
    input type="radio" value="6" name="rating_attribute_34_12_rating" style="display: none;">
    <
    input type="radio" value="6.5" name="rating_attribute_34_12_rating" style="display: none;">
    <
    input type="radio" value="7" name="rating_attribute_34_12_rating" style="display: none;">
    <
    input type="radio" value="7.5" name="rating_attribute_34_12_rating" style="display: none;">
    <
    input type="radio" value="8" name="rating_attribute_34_12_rating" style="display: none;">
    <
    input type="radio" value="8.5" name="rating_attribute_34_12_rating" style="display: none;">
    <
    input type="radio" value="9" checked="checked" name="rating_attribute_34_12_rating" style="display: none;">
    <
    input type="radio" value="9.5" name="rating_attribute_34_12_rating" style="display: none;">
    <
    input type="radio" value="10" name="rating_attribute_34_12_rating" style="display: none;">
    <
    class="star" style="background-repeat: no-repeat; display: inline-block; width: 8px; height: 16px; background-position: 0px 0px; cursor: pointer; background-image: url("http://localhost/metamodels/system/modules/metamodelsattribute_rating/html/star-full.png");"></a>
    <class="star" style="background-image: url("http://localhost/metamodels/system/modules/metamodelsattribute_rating/html/star-full.png"); background-repeat: no-repeat; display: inline-block; width: 8px; height: 16px; background-position: -8px 0px; cursor: pointer;"></a>
    <class="star" style="background-image: url("http://localhost/metamodels/system/modules/metamodelsattribute_rating/html/star-full.png"); background-repeat: no-repeat; display: inline-block; width: 8px; height: 16px; background-position: 0px 0px; cursor: pointer;"></a>
    <class="star" style="background-image: url("http://localhost/metamodels/system/modules/metamodelsattribute_rating/html/star-full.png"); background-repeat: no-repeat; display: inline-block; width: 8px; height: 16px; background-position: -8px 0px; cursor: pointer;"></a>
    <class="star" style="background-image: url("http://localhost/metamodels/system/modules/metamodelsattribute_rating/html/star-full.png"); background-repeat: no-repeat; display: inline-block; width: 8px; height: 16px; background-position: 0px 0px; cursor: pointer;"></a>
    <class="star" style="background-image: url("http://localhost/metamodels/system/modules/metamodelsattribute_rating/html/star-full.png"); background-repeat: no-repeat; display: inline-block; width: 8px; height: 16px; background-position: -8px 0px; cursor: pointer;"></a>
    <class="star" style="background-image: url("http://localhost/metamodels/system/modules/metamodelsattribute_rating/html/star-full.png"); background-repeat: no-repeat; display: inline-block; width: 8px; height: 16px; background-position: 0px 0px; cursor: pointer;"></a>
    <class="star" style="background-image: url("http://localhost/metamodels/system/modules/metamodelsattribute_rating/html/star-full.png"); background-repeat: no-repeat; display: inline-block; width: 8px; height: 16px; background-position: -8px 0px; cursor: pointer;"></a>
    <class="star" style="background-image: url("http://localhost/metamodels/system/modules/metamodelsattribute_rating/html/star-full.png"); background-repeat: no-repeat; display: inline-block; width: 8px; height: 16px; background-position: 0px 0px; cursor: pointer;"></a>
    <class="star" style="background-image: url("http://localhost/metamodels/system/modules/metamodelsattribute_rating/html/star-full.png"); background-repeat: no-repeat; display: inline-block; width: 8px; height: 16px; background-position: -8px 0px; cursor: pointer;"></a>
    <class="star" style="background-image: url("http://localhost/metamodels/system/modules/metamodelsattribute_rating/html/star-full.png"); background-repeat: no-repeat; display: inline-block; width: 8px; height: 16px; background-position: 0px 0px; cursor: pointer;"></a>
    <class="star" style="background-image: url("http://localhost/metamodels/system/modules/metamodelsattribute_rating/html/star-full.png"); background-repeat: no-repeat; display: inline-block; width: 8px; height: 16px; background-position: -8px 0px; cursor: pointer;"></a>
    <class="star" style="background-image: url("http://localhost/metamodels/system/modules/metamodelsattribute_rating/html/star-full.png"); background-repeat: no-repeat; display: inline-block; width: 8px; height: 16px; background-position: 0px 0px; cursor: pointer;"></a>
    <class="star" style="background-image: url("http://localhost/metamodels/system/modules/metamodelsattribute_rating/html/star-full.png"); background-repeat: no-repeat; display: inline-block; width: 8px; height: 16px; background-position: -8px 0px; cursor: pointer;"></a>
    <class="star" style="background-image: url("http://localhost/metamodels/system/modules/metamodelsattribute_rating/html/star-full.png"); background-repeat: no-repeat; display: inline-block; width: 8px; height: 16px; background-position: 0px 0px; cursor: pointer;"></a>
    <class="star" style="background-image: url("http://localhost/metamodels/system/modules/metamodelsattribute_rating/html/star-full.png"); background-repeat: no-repeat; display: inline-block; width: 8px; height: 16px; background-position: -8px 0px; cursor: pointer;"></a>
    <class="star" style="background-image: url("http://localhost/metamodels/system/modules/metamodelsattribute_rating/html/star-full.png"); background-repeat: no-repeat; display: inline-block; width: 8px; height: 16px; background-position: 0px 0px; cursor: pointer;"></a>
    <class="star" style="background-image: url("http://localhost/metamodels/system/modules/metamodelsattribute_rating/html/star-full.png"); background-repeat: no-repeat; display: inline-block; width: 8px; height: 16px; background-position: -8px 0px; cursor: pointer;"></a>
    <class="star" style="background-image: url("http://localhost/metamodels/system/modules/metamodelsattribute_rating/html/star-empty.png"); background-repeat: no-repeat; display: inline-block; width: 8px; height: 16px; background-position: 0px 0px; cursor: pointer;"></a>
    <class="star" style="background-image: url("http://localhost/metamodels/system/modules/metamodelsattribute_rating/html/star-empty.png"); background-repeat: no-repeat; display: inline-block; width: 8px; height: 16px; background-position: -8px 0px; cursor: pointer;"></a>
    <span id="rating_attribute_34_12_tip" class="ajax_rating_tip"></span>
    </
    form>
    </
    div

  11. #11
    Contao-Fan Avatar von Ripperz
    Registriert seit
    22.09.2012.
    Ort
    Hamburg
    Beiträge
    707

    Standard

    Keiner hier der helfen kann?

  12. #12
    Contao-Yoda Avatar von MacKP
    Registriert seit
    15.06.2009.
    Ort
    Duisburg
    Beiträge
    13.292
    User beschenken
    Wunschliste
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Puh.. irgendwie ist da echt was faul bei dir...
    der Teil -> <!]]>
    dürfte nicht da sein. komt der eventuell irgendwo aus deinem HTML Code oder so?

    Bitte guck doch mal, das du die Install hoch schiebst, damit man sich das anschauen kann. So kann man da leider nix machen. Das kommt so im MM Code nicht vor (in keinem Template der aktuellen Versionen).

    Viele Grüße
    Contao Pool | C-C-A | MetaModels | [Internetseite -> Mediendepot Ruhr]
    [Arbeitet bei -> Paus Design & Medien]
    "I can EXPLAIN it to you, but I can't UNDERSTAND it for you."

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Lesezeichen

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •