Hallo,
vielleicht mag auch ratings rgsendnews nicht?
im bugtracker ist das js von ratings für mootools drin, dann geht beides
georg
Hallo,
vielleicht mag auch ratings rgsendnews nicht?
im bugtracker ist das js von ratings für mootools drin, dann geht beides
georg
Möglichweise ist es auch anders herum.
Ich habe mir das ganze mal angeschaut und nach der Anleitung von Olaf Kolbig eingerichtet. Aber bei mir funktioniert es immer noch nicht. Vielleicht hab ich aber noch etwas bei mootools falsch eingestellt.
vielleicht, ich kanns schwer wissen was du tust
Er schreibt ja:
Include mootools in Ext: class.tx_ratings_api.php, function addHeaderParts()
(Explanation in t3mootools-manual, section "Configuration")
Also habe ich versucht den Code
// checks if t3mootools is loaded
if (t3lib_extMgm::isLoaded('t3mootools')) {
require_once(t3lib_extMgm::extPath('t3mootools').'class.tx_t3mootools.php');
}
// if t3mootools is loaded and the custom Library had been created
if (defined('T3MOOTOOLS')) {
tx_t3mootools::addMooJS();
// if none of the previous is true, you need to include your own library
// just as an example in this way
} else {
$GLOBALS['TSFE']->additionalHeaderData['rgsmoothgallery'] = '<script src="'.$this->getPath($this->conf['pathToMootools']).'" type="text/javascript"></script>';
}
in die Funktion zu packen. Aber das hat nicht funktioniert. In der t3mootools.txt Datei steht Ajax auf jeden Fall drinne
script=res/send.js
components=Window.DomReady,Fx.Slide,Element.Form,XHR,Ajax,Element.Selectors,Fx.Style,Fx.Styles,Fx.Elements
Ich denke mal der obige PHP Schnipsel ist zwingend notwendig?
hallo,
nö die fkt ist nicht notwendig, einfach im template von ratings das mootools-script und die mootools bibliothek einbinden statt prototype
georg
Vielen Dank für deine Hilfe.
Jetzt bin ich schonmal soweit dass das Fenster von rgsendnews wieder ein- und ausklappt. Aber leider passiert immer noch nichts wenn ich auf Abschicken klicke.
Ich hab jetzt im TS folgende Zeilen eingefügt:
includeLibs.t3mootools = EXT:t3mootools/class.tx_t3mootools.php
page.5 = USER
page.5.userFunc = tx_t3mootools->addMooJS
Ich habe jetzt folgende Daten im Header stehen
<script type="text/javascript" src="typo3temp/javascript_8e0d29d858.js"></script>
<script type="text/javascript" src="typo3conf/ext/t3mootools/res/mootoolsv1.11.js"></script>
<script type="text/javascript" src="typo3/sysext/cms/tslib/media/scripts/jsfunc.layermenu.js"></script>
<script type="text/javascript" src="typo3conf/ext/rgsendnews/res/send.js"></script><link rel="stylesheet" type="text/css" href="typo3conf/ext/rgsendnews/res/styles.css" />
<link rel="stylesheet" href="typo3conf/ext/ratings/res/styles.css" />
<script type="text/javascript" src="typo3conf/ext/ratings/res/rating.js"></script>
Also der Teil mit dem Prototype ist auf jeden Fall draußen. Aber wie gesagt wird der Artikel nicht versendet.
Fällt jemandem noch irgend etwas ein wo ich was vergessen haben könnte?
und in ratings.js steht der code ausn bugtracker?
georg
Ja den habe ich in ratings.js eingefügt.
function tx_ratings_submit(id, rating, ajaxData, check) {
$('tx-ratings-display-' + id).style.visibility = 'hidden';
$('tx-ratings-wait-' + id).style.visibility = 'visible';
var myAjax = new Ajax("index.php?eID=tx_ratings_ajax", {
method: 'post',
data: 'ref=' + id + '&rating=' + rating + '&data=' + ajaxData +
'&check=' + check,
update: 'tx-ratings-' + id
});
myAjax.request();
}
hallo!
konntest du das problem lösen - ich hab nämlich jetzt auch sowas in der richtung 🙁
danke!
lösung könnte hier sein: