Zum Inhalt springen

rggooglemap und tt_news

Erstellt am 10. August 2008 · 14 Antworten · letzte Antwort am 14. Oktober 2010

Tags: tt_news, Frage

linajoy ·

Ich habe im TER eine Extension für tt_news mit Rggooglemap veröffentlicht: lonewsaddress

Die Extension ist noch Beta, bitte helft mir im Forge, sie zu verbessern.

lobby ·

Hab das selbe Problem mit den Javascript-Fehlern:

GBrowserIsCompatible is not defined

Konnte das schon wer lösen??

lobby ·

Hab die Lösung für das Problem.
Die Javscript-Datei wurde nicht geladen. Anscheinend macht $GLOBALS["TSFE"]->register["gmap_script_head"] Probleme.

Einfach in Zeile 197 das hier austauschen:

//$GLOBALS["TSFE"]->register["gmap_script_head"] = $map->getHeaderJS() ."\n<script src='{$filename}' type='text/javascript' ></script>";
$GLOBALS['TSFE']->additionalHeaderData[$this->prefixId].= $map->getHeaderJS() ."\n<script src='{$filename}' type='text/javascript' ></script>";
manojan ·
lobby schrieb

Hab die Lösung für das Problem.
Die Javscript-Datei wurde nicht geladen. Anscheinend macht $GLOBALS["TSFE"]->register["gmap_script_head"] Probleme.

Einfach in Zeile 197 das hier austauschen:

//$GLOBALS["TSFE"]->register["gmap_script_head"] = $map->getHeaderJS() ."\n<script src='{$filename}' type='text/javascript' ></script>";
$GLOBALS['TSFE']->additionalHeaderData[$this->prefixId].= $map->getHeaderJS() ."\n<script src='{$filename}' type='text/javascript' ></script>";

It's ok for that but now I have this problem Sometimes the cached Javascript is not replaced. In that case delete all files prefixed with gmap_ in the folder typo3temp.

I delete file but it's the same problem after, how we can make ?

Thanks for answer

bienchen01 ·
manojan schrieb

It's ok for that but now I have this problem Sometimes the cached Javascript is not replaced. In that case delete all files prefixed with gmap_ in the folder typo3temp.

I delete file but it's the same problem after, how we can make ?

Thanks for answer

As a workaround you may look in line 189 of class.tx_lonewsaddress_pi1.php where you can find the following code:

if (!file_exists($filename) or intval($_GET['no_cache']) == 1) {
  $fh=fopen($filename,'w');
  fputs($fh,preg_replace('/<\/?script[^>]*>/i','',$map->getMapJS()));
  fclose($fh);
}

Comment out the first and last line and the js-file will be generated every time.
Not a very nice solution but it works for me.

archyart ·

Hallo habe alle Tipps von euch befolgt:

//$GLOBALS["TSFE"]->register["gmap_script_head"] = $map->getHeaderJS() ."\n<script src='{$filename}' type='text/javascript' ></script>";
$GLOBALS['TSFE']->additionalHeaderData[$this->prefixId].= $map->getHeaderJS() ."\n<script src='{$filename}' type='text/javascript' ></script>";

ausgetauscht.

//if (!file_exists($filename) or intval($_GET['no_cache']) == 1) {
$fh=fopen($filename,'w');
fputs($fh,preg_replace('/<\/?script[^>]*>/i','',$map->getMapJS()));
fclose($fh);
//}

erste und letzte Zeile auskommentiert damit *.js ständig neu geschrieben wird.

Im Firefox funktioniert das wunderbar im IE8 erst nachdem ich die Seite aktualisiere wird der korrekte Datesatz in rggooglemaps angezeigt vorher der letzte annavigierte.

Hat jemand die gleichen Probleme gehabt?