pragmaMx Support Forum

pragmaMx => Individuelle Anpassungen => Thema gestartet von: algebre in 01 Juni 2007, 23:42:06

Titel: module weather
Beitrag von: algebre in 01 Juni 2007, 23:42:06
hi
nice weather module
you can see it here (http://demo-pragmamx.22web.net/modules.php?name=meteo)
Titel: Re: module weather
Beitrag von: moskote01 in 02 Juni 2007, 00:11:55
Thank you for sharing :)
Titel: Re : module weather
Beitrag von: algebre in 02 Juni 2007, 00:23:53
who can translate these three lines to german?

<?php
define
("_SELECT_CUNTRY","Click on the country wished to visualize weather information <br />then on the city for more information. ");
define("_INSTALL_FLASH_PLAYER","*** To see this application you must have flash player updated  *** ");
define("_FLASH_PLAYER_LINK"," To update or download flash player click here.");
?>

Titel: Re: module weather
Beitrag von: moskote01 in 02 Juni 2007, 00:48:17
<?php
define
("_SELECT_CUNTRY","Klicken Sie auf das Land für das Sie Wetterinformationen m&ouml;chten <br />Danach w&auml;hlen Sie die Stadt um mehr Informationen zu erhalten. ");
define("_INSTALL_FLASH_PLAYER","*** Um diesen Service nutzen zu k&ouml;nnen ben&ouml;tigen Sie den neuesten Flash-player  *** ");
define("_FLASH_PLAYER_LINK"," F&uuml;r ein update oder download der neusten Flash-player Version klicken Sie bitte hier.");
?>
Titel: Re : module weather
Beitrag von: algebre in 02 Juni 2007, 01:01:34
thank you
this archive contain 3 languages
Titel: Re : module weather
Beitrag von: algebre in 02 Juni 2007, 03:23:09
small bug fix :BD:
Titel: Re: module weather
Beitrag von: StegRene in 02 Juni 2007, 10:37:13
.... what Country-Code i have use for Austria ?
___________________________________________

Aaaahhh - i see, you select the country with the aktive language.
Can i change this?

We in Austria speak german, but we don´t want to see the german weather ;)


It´s a nice module, but sorry for my bad english ;)
Titel: Re : module weather
Beitrag von: algebre in 02 Juni 2007, 11:52:39
hi
open modules/meteo/index.php
line 28
$country = 'AT'; // DE, BNL, BE, DE, GB ... ,
Austria = AT
Titel: Re: module weather
Beitrag von: StegRene in 02 Juni 2007, 12:17:35
I´ll try it with AT and AUT, but it´s open allways germany ;)
Look at here: http://viennaffairs.at/modules.php?name=meteo
Titel: Re : module weather
Beitrag von: algebre in 02 Juni 2007, 12:24:30
this bug is fixed in second edition
Titel: Re : module weather
Beitrag von: algebre in 02 Juni 2007, 12:25:13
country code list ( in french)

http://www.bnf.fr/PAGES/infopro/produits/pdf/codepays.pdf

you can find on the net this list in your language
Titel: Re : module weather
Beitrag von: algebre in 02 Juni 2007, 12:27:37
line 25-to-30
replace this code :(first version)
$country = strtoupper(_DOC_LANGUAGE);
if ($country != 'FR'  && $country != 'DE') {
//Pour choisir un autre pays en démarrage, changez:  $country = 'BNL';  ou encore $country = 'DE'; etc.
$country = ''; // DE, BNL, BE, DE, GB ... ,
}
$lien = 'http://weather.eu.msn.com/f5/loader19.swf?mode=continent&amp;continent='.$continent.'&amp;lang='.$country.'&amp;defaultCountry='.$country.'&amp;lang='.$country.''; // ne pas modifier -ici-


by:

second version
$lg = strtoupper(_DOC_LANGUAGE);
if ($lg != 'FR'  && $lg != 'DE') {
//Pour choisir un autre pays en démarrage, changez:  $country = 'BNL';  ou encore $country = 'DE'; etc.
$country = 'AT'; // DE, BNL, BE, DE, GB ... ,
}else $country = $lg;
$lien = 'http://weather.eu.msn.com/f5/loader19.swf?mode=continent&amp;continent='.$continent.'&amp;lang='.$lg.'&amp;defaultCountry='.$country.'&amp;lang='.$lg.''; // ne pas modifier -ici-
Titel: Re: module weather
Beitrag von: StegRene in 02 Juni 2007, 13:17:24
I think, i have the second version ..............

Look here:


$lg = strtoupper(_DOC_LANGUAGE);
if ($lg != 'FR'  && $lg != 'DE') {
//Pour choisir un autre pays en démarrage, changez:  $country = 'BNL';  ou encore $country = 'DE'; etc.
$country = 'AT'; // DE, BNL, BE, DE, GB ... ,
}else $country = $lg;
$lien = 'http://weather.eu.msn.com/f5/loader19.swf?mode=continent&amp;continent='.$continent.'&amp;lang='.$lg.'&amp;defaultCountry='.$country.'&amp;lang='.$lg.''; // ne pas modifier -ici-


.......... but in generated html-code i found:


<script type="text/javascript">
// <![CDATA[
var fo = new FlashObject("http://weather.eu.msn.com/f5/loader19.swf?mode=continent&amp;continent=Europe&amp;lang=DE&amp;defaultCountry=DE&amp;lang=DE", "meteo", "593", "392", "7");
fo.write("flashcontentmeteo");
// ]]>
</script>
Titel: Re : module weather
Beitrag von: algebre in 02 Juni 2007, 13:44:54
replace with this static code
$lg = strtoupper(_DOC_LANGUAGE);
//Pour choisir un autre pays en démarrage, changez:  $country = 'BNL';  ou encore $country = 'DE'; etc.
$country = 'AT'; // DE, BNL, BE, DE, GB ... ,
$lien = 'http://weather.eu.msn.com/f5/loader19.swf?mode=continent&amp;continent='.$continent.'&amp;lang='.$lg.'&amp;defaultCountry='.$country.'&amp;lang='.$lg.''; // ne pas modifier -ici-
Titel: Re: module weather
Beitrag von: StegRene in 02 Juni 2007, 13:50:04
Thats the solution! Fine!

:thumbup: a very great modul !
Titel: Re: module weather
Beitrag von: goodssale in 08 Juli 2007, 09:01:59
guten morgen,
eine frage, ich habe das module installiert bekomme aber die rechten blöcke nicht weg.
in der index.php in zeile 20 ist doch schon $index = 0;
ich habe das mx-rainbow theme.

kann mir bitte jemand auf die sprünge helfen.
grüße heinz

HAT SICH ERLEDIGT HABE IN EINSTELLUNGEN RECHTE BLÖCKE IMMER ANZEIGEN EINGESTELLT :puzzled: :puzzled: :mad2:
Titel: Re: module weather
Beitrag von: David555 in 09 Juli 2007, 13:03:04
Servus zusammen,
bei mir lädt die Flash Datei immer nur bis zum dritten Punkt und dann tut sich nichts mehr?! Egal auf welche Seite dieses Modul installiert ist, immer das gleiche Phänomen.

Würde das Modul gerne mal zu Gesicht bekommen  ;)

Ade
Titel: Re: module weather
Beitrag von: Oscar175 in 09 Juli 2007, 14:17:02
Zitat von: David555 in 09 Juli 2007, 13:03:04
Servus zusammen,
bei mir lädt die Flash Datei immer nur bis zum dritten Punkt und dann tut sich nichts mehr?! Egal auf welche Seite dieses Modul installiert ist, immer das gleiche Phänomen.

Würde das Modul gerne mal zu Gesicht bekommen  ;)

Ade

Hi, das hatte ich auch, bis ich meinen Werbeblocker ausgeschaltet hatte. Hast du vielleicht auch so etwas?
LG Benjamin
Titel: Re: module weather
Beitrag von: David555 in 09 Juli 2007, 14:46:32
Achso, vermutlich Kaspersky  ;) Ich probiers gleich mal!
Titel: Re : module weather
Beitrag von: algebre in 09 Juli 2007, 17:52:20
hi
Titel: Re: module weather
Beitrag von: David555 in 09 Juli 2007, 18:13:48
Danke für eure Tipps. Bei mir war Kaspersky schuld. Hab den Bannerblocker jetzt so eingestellt, dass er die Verbindung zulässt. Echt genial das Modul, ist auch schon auf meiner Seite im Einsatz.
DANKE

Servus