diff --git a/bbcode_google/Changelog b/bbcode_google/Changelog index e60017c..cddfc8b 100644 --- a/bbcode_google/Changelog +++ b/bbcode_google/Changelog @@ -1,6 +1,22 @@ Changelog: ---------- +2016-04-20 v1.1.2 Oliver Riesen-Mallmann (oliver@riesen.org) + + - Obsolete assignment by reference (&new) removed; see: + http://www.phorum.org/phorum5/read.php?61,156894,157057#msg-157057; + thanks to Fabian Bastin + (http://www.phorum.org/phorum5/profile.php?61,3024). + +2015-09-18 v1.1.1 Oliver Riesen + + - Google icon updated, see: + http://googleblog.blogspot.de/2015/09/google-update.html + + - URL in info.txt added. + + - Performance improvements. + 2007-11-02 v1.1.0 - Branched off the 5.1.x version of the module. From now on, 1.1.0 and diff --git a/bbcode_google/README b/bbcode_google/README index 2a19c6d..42aeea6 100644 --- a/bbcode_google/README +++ b/bbcode_google/README @@ -1,5 +1,5 @@ Module : BBcode Google -Version : 1.1.0 +Version : 1.1.1 Author : Maurice Makaay This module will turn [google]search words[/google] into a link that diff --git a/bbcode_google/bbcode_google.php b/bbcode_google/bbcode_google.php index 90de98e..f9ba1b5 100644 --- a/bbcode_google/bbcode_google.php +++ b/bbcode_google/bbcode_google.php @@ -9,7 +9,7 @@ // The function that is used for generating the CSS for this module. function mod_bbcode_google_css() { - $PHORUM = $GLOBALS['PHORUM']; + global $PHORUM; $padding_left = "5px"; $background = ""; @@ -39,7 +39,7 @@ function mod_bbcode_google_css() // Register the additional CSS code with Phorum. function phorum_mod_bbcode_google_css_register($data) { - $PHORUM = $GLOBALS['PHORUM']; + global $PHORUM; // Do not add the built-in styling in case the built-in style is disabled. if (isset($PHORUM["mod_bbcode_google"]["builtin_style"]) && @@ -73,7 +73,7 @@ function phorum_mod_bbcode_google_javascript_register($data) // Format the Google links in the message body. function phorum_mod_bbcode_google_format($data) { - $PHORUM = $GLOBALS["PHORUM"]; + global $PHORUM; foreach($data as $message_id => $message) { @@ -129,7 +129,7 @@ function phorum_mod_bbcode_google_format($data) // be enabled for this to work. function phorum_mod_bbcode_google_editor_tool_plugin() { - $PHORUM = $GLOBALS['PHORUM']; + global $PHORUM; if (empty($PHORUM["mod_bbcode_google"]["enable_editor_tool"])) return; $lang = $PHORUM['DATA']['LANG']['bbcode_google']; diff --git a/bbcode_google/google.png b/bbcode_google/google.png index 52dd094..32893b7 100644 Binary files a/bbcode_google/google.png and b/bbcode_google/google.png differ diff --git a/bbcode_google/icon.gif b/bbcode_google/icon.gif index 433759c..6805bc5 100644 Binary files a/bbcode_google/icon.gif and b/bbcode_google/icon.gif differ diff --git a/bbcode_google/info.txt b/bbcode_google/info.txt index 40fee79..df4aa6a 100644 --- a/bbcode_google/info.txt +++ b/bbcode_google/info.txt @@ -1,6 +1,7 @@ title: BBcode Google desc: This module will turn [google]search words[/google] into a link that will search for the search words on Google. -version: 1.1.0 +version: 1.1.2 +url: http://www.phorum.org/phorum5/read.php?62,123949 require_version: 5.2.2 category: bbcode diff --git a/bbcode_google/settings.php b/bbcode_google/settings.php index 3b6c6b3..76441be 100644 --- a/bbcode_google/settings.php +++ b/bbcode_google/settings.php @@ -26,7 +26,7 @@ } include_once "./include/admin/PhorumInputForm.php"; - $frm =& new PhorumInputForm ("", "post", "Save"); + $frm = new PhorumInputForm ("", "post", "Save"); $frm->hidden("module", "modsettings"); $frm->hidden("mod", "bbcode_google"); diff --git a/google_maps/Changelog b/google_maps/Changelog index c35e335..2619a4c 100644 --- a/google_maps/Changelog +++ b/google_maps/Changelog @@ -1,6 +1,21 @@ Changelog: ---------- +2015-08-05 v2.0.7 (Oliver Riesen) + + - Fixed conversion of module v1 user settings data to v2 user settings + data. Longitude was replaced by Latitude during conversion. + + - Added conversion script for module v1 user settings data. + +2015-08-05 v2.0.6 (Oliver Riesen) + + - Fixed handling of http/https in javascript links to Google. + + - Escaping ampersand in URL. + + - Language files from German Language Files Package added. + 2011-04-11 v2.0.5 (Maurice Makaay) - Restored the functionality of searching for the user's location @@ -14,7 +29,7 @@ Changelog: customized module template. - Fixed the usermap addon for MSIE8 and before. The markers did not - show up due to a javascript issue. + show up due to a javascript issue. 2011-04-01 v2.0.4 (Maurice Makaay) @@ -72,9 +87,9 @@ Changelog: 2010-10-20 v1.2.0 (Thomas Seifert) - - Added retrieving the city and country of the user on saving their - position. This makes it possible to show the city and/or country - e.g. on the read page. + - Added retrieving the city and country of the user on saving their + position. This makes it possible to show the city and/or country + e.g. on the read page. (requires json_decode and a way to do remote access) - Dropped support for the (ancient) Real Names module for Phorum 5.1. @@ -209,10 +224,10 @@ Changelog: - If a user saved some profile data on another control center page than the page on which the Google map was, then the location info would get lost. This bug is now fixed. - Thanks to Bert Körn for reporting this problem. + Thanks to Bert Körn for reporting this problem. - Added language support (german_du.php). - Also thanks to Bert Körn for this one. + Also thanks to Bert Körn for this one. - Changed Stammgast -> Benutzer in the German language file and created a german_sie.php based on german_du.php. diff --git a/google_maps/README b/google_maps/README index 0cdde6c..459aaac 100644 --- a/google_maps/README +++ b/google_maps/README @@ -1,5 +1,5 @@ Module : Google Maps Module -Version : 2.0.5 +Version : 2.0.7 Author : Maurice Makaay This module implements Google Maps functionality in the user profile. @@ -75,6 +75,11 @@ Contents: - Go to the Modules administration and enable the module "Google Maps". + - Convert module v1 user settings data to v2 user settings data with + conversion-v1-user-settings-to-v2.php in the scripts directory of + google_maps. Do not call this script from a browser. Yos have to call it + from your server command line. + 3. Customization ---------------- diff --git a/google_maps/addon/usermap.php b/google_maps/addon/usermap.php index 805b77b..04b6026 100644 --- a/google_maps/addon/usermap.php +++ b/google_maps/addon/usermap.php @@ -62,7 +62,7 @@ : $user['display_name']); $plot['info'] = "$name"; + "return false\">$name<\/a>"; // Provide a hook for modules to influence the info window. if (isset($PHORUM['hooks']['google_maps_user_info'])) diff --git a/google_maps/api.php b/google_maps/api.php index b52530b..1479c1f 100644 --- a/google_maps/api.php +++ b/google_maps/api.php @@ -189,7 +189,7 @@ function mod_google_maps_upgrade_userdata($d) $d['center'], $m )) { $d['map_latitude'] = $m[1]; - $d['map_longitude'] = $m[1]; + $d['map_longitude'] = $m[2]; unset($d['center']); } } @@ -200,7 +200,7 @@ function mod_google_maps_upgrade_userdata($d) $d['marker'], $m )) { $d['marker_latitude'] = $m[1]; - $d['marker_longitude'] = $m[1]; + $d['marker_longitude'] = $m[2]; unset($d['marker']); } } diff --git a/google_maps/info.txt b/google_maps/info.txt index 04e66d5..49af706 100644 --- a/google_maps/info.txt +++ b/google_maps/info.txt @@ -1,6 +1,6 @@ title: Google Maps desc: This module implements Google Maps functionality in the user profile. The user can indicate in the control center where he/she lives and this location can be displayed to others on the profile viewing screen. -version: 2.0.5 +version: 2.0.7 require_version: 5.2.16 author: Maurice Makaay link: http://www.phorum.org/phorum5/read.php?16,119681 diff --git a/google_maps/lang/german-informal-female.iso-8859-1.php b/google_maps/lang/german-informal-female.iso-8859-1.php new file mode 100644 index 0000000..5dfc96d --- /dev/null +++ b/google_maps/lang/german-informal-female.iso-8859-1.php @@ -0,0 +1,16 @@ + diff --git a/google_maps/lang/german-informal-female.utf-8.php b/google_maps/lang/german-informal-female.utf-8.php new file mode 100644 index 0000000..5dfc96d --- /dev/null +++ b/google_maps/lang/german-informal-female.utf-8.php @@ -0,0 +1,16 @@ + diff --git a/google_maps/lang/german-informal-male.iso-8859-1.php b/google_maps/lang/german-informal-male.iso-8859-1.php new file mode 100644 index 0000000..b338766 --- /dev/null +++ b/google_maps/lang/german-informal-male.iso-8859-1.php @@ -0,0 +1,18 @@ + diff --git a/google_maps/lang/german-informal-male.utf-8.php b/google_maps/lang/german-informal-male.utf-8.php new file mode 100644 index 0000000..db70491 --- /dev/null +++ b/google_maps/lang/german-informal-male.utf-8.php @@ -0,0 +1,18 @@ + diff --git a/google_maps/lang/german.iso-8859-1.php b/google_maps/lang/german.iso-8859-1.php new file mode 100644 index 0000000..b4ca0ce --- /dev/null +++ b/google_maps/lang/german.iso-8859-1.php @@ -0,0 +1,31 @@ + 'Sie können in der Karte Ihren Standort (Wohnort) markieren. Die Markierung können Sie mit einem Doppelklick setzen und mit der Maus verschieben. Alternativ können Sie auch die Suche benutzen.', + 'CCMenuItem' => 'Standort', + 'Clear' => 'Standort löschen', + 'GetMyLocation' => 'Meinen aktuellen Standort verwenden', + 'IncompatibleBrowser' => 'Entschuldigen Sie, Ihr Browser ist inkompatibel. Die für Google Maps benötigten Funktionen fehlen.', + 'Location' => 'Standort', + 'NoLocationSet' => 'Kein Standort ausgewählt.', + 'NoSearchResults' => 'Entschuldigen Sie, es wurde kein Ergebnis für Ihre Suchanfrage gefunden.', + 'ProfileTitle' => 'Standort dieses Teilnehmers:', + 'Search' => 'Standort suchen', + 'YourLocation' => 'Ihr Standort', + // usermap addon + 'UserMapTitle' => 'Standorte unserer Teilnehmer', + 'UserMapNoUsers' => 'Leider sind noch keine Standorte vorhanden.', + // Language for reverse geocoding (retrieving the name of the city) + 'geocoding_lang' => 'de' +); + +?> diff --git a/google_maps/lang/german.php b/google_maps/lang/german.php deleted file mode 100644 index 1bd7bc0..0000000 --- a/google_maps/lang/german.php +++ /dev/null @@ -1,34 +0,0 @@ - "Ihr Standort:", - "CCMenuItem" => "Standort", - "CCIntroduction" => "Sie können in der Karte unten Ihren " . - "Standort auswählen an dem Sie wohnen. " . - "Die Markierung können Sie mit einem " . - "Doppelklick platzieren und mit der Maus " . - "verschieben. Alternativ können Sie die " . - "Suche benutzen. Siehe Hilfe.
" . - "Beispiel: \"Platz der Republik 1, " . - "11011 Berlin, Germany\"", - "Search" => "Standort suchen", - "Clear" => "Standort löschen", - "GetMyLocation" => "Meinen Standort verwenden", - "Location" => "Standort", - "NoLocationSet" => "Kein Standort ausgewählt", - "IncompatibleBrowser" => "Sorry, Ihr Browser ist inkompatibel." . - "Die benötigten Funktionen fehlen " . - "für Google Maps.", - "NoSearchResults" => "Sorry, es wurden keine Ergebnisse für " . - "Ihre Suchanfrage gefunden.", - "ProfileTitle" => "Standort dieses Benutzers:", - - // usermap addon - "UserMapTitle" => "Standorte unserer Benutzer", - "UserMapNoUsers" => "Leider sind noch keine Standorte vorhanden", - - // Language for reverse geocoding (retrieving the name of the city) - "geocoding_lang" => "de" -); -?> diff --git a/google_maps/lang/german.utf-8.php b/google_maps/lang/german.utf-8.php new file mode 100644 index 0000000..76e2bd8 --- /dev/null +++ b/google_maps/lang/german.utf-8.php @@ -0,0 +1,31 @@ + 'Sie können in der Karte Ihren Standort (Wohnort) markieren. Die Markierung können Sie mit einem Doppelklick setzen und mit der Maus verschieben. Alternativ können Sie auch die Suche benutzen.', + 'CCMenuItem' => 'Standort', + 'Clear' => 'Standort löschen', + 'GetMyLocation' => 'Meinen aktuellen Standort verwenden', + 'IncompatibleBrowser' => 'Entschuldigen Sie, Ihr Browser ist inkompatibel. Die für Google Maps benötigten Funktionen fehlen.', + 'Location' => 'Standort', + 'NoLocationSet' => 'Kein Standort ausgewählt.', + 'NoSearchResults' => 'Entschuldigen Sie, es wurde kein Ergebnis für Ihre Suchanfrage gefunden.', + 'ProfileTitle' => 'Standort dieses Teilnehmers:', + 'Search' => 'Standort suchen', + 'YourLocation' => 'Ihr Standort', + // usermap addon + 'UserMapTitle' => 'Standorte unserer Teilnehmer', + 'UserMapNoUsers' => 'Leider sind noch keine Standorte vorhanden.', + // Language for reverse geocoding (retrieving the name of the city) + 'geocoding_lang' => 'de' +); + +?> diff --git a/google_maps/lang/german_du.php b/google_maps/lang/german_du.php deleted file mode 100644 index 8fbfe35..0000000 --- a/google_maps/lang/german_du.php +++ /dev/null @@ -1,34 +0,0 @@ - "Dein Standort:", - "CCMenuItem" => "Standort", - "CCIntroduction" => "Du kannst in der Karte unten Deinen Standort " . - "auswählen an dem Du wohnst. Die " . - "Markierung kannst Du mit einem Doppelklick " . - "platzieren und mit der Maus verschieben. " . - "Alternativ kannst Du die Suche benutzen. " . - "Siehe Hilfe.
" . - "Beispiel: \"Platz der Republik 1, " . - "11011 Berlin, Germany\"", - "Search" => "Standort suchen", - "Clear" => "Standort löschen", - "GetMyLocation" => "Meinen Standort verwenden", - "Location" => "Standort", - "NoLocationSet" => "Kein Standort ausgewählt", - "IncompatibleBrowser" => "Sorry, Dein Browser ist inkompatibel " . - "die benötigten Funktionen fehlen " . - "für Google Maps.", - "NoSearchResults" => "Sorry, es wurden keine Ergebnisse für " . - "Deine Suchanfrage gefunden.", - "ProfileTitle" => "Standort dieses Benutzers:", - - // usermap addon - "UserMapTitle" => "Standorte unserer Benutzer", - "UserMapNoUsers" => "Leider sind noch keine Standorte vorhanden", - - // Language for reverse geocoding (retrieving the name of the city) - "geocoding_lang" => "de" -); -?> diff --git a/google_maps/maptool/mapframe.php b/google_maps/maptool/mapframe.php index 554cf67..704d738 100644 --- a/google_maps/maptool/mapframe.php +++ b/google_maps/maptool/mapframe.php @@ -66,7 +66,7 @@ #map { height: 100%; width: 100%; } Google Map interface - +