Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions bbcode_google/Changelog
Original file line number Diff line number Diff line change
@@ -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 <oliver@riesen.org>

- 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
Expand Down
2 changes: 1 addition & 1 deletion bbcode_google/README
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 4 additions & 4 deletions bbcode_google/bbcode_google.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "";

Expand Down Expand Up @@ -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"]) &&
Expand Down Expand Up @@ -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)
{
Expand Down Expand Up @@ -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'];

Expand Down
Binary file modified bbcode_google/google.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified bbcode_google/icon.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion bbcode_google/info.txt
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion bbcode_google/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down
27 changes: 21 additions & 6 deletions google_maps/Changelog
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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)

Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
7 changes: 6 additions & 1 deletion google_maps/README
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Module : Google Maps Module
Version : 2.0.5
Version : 2.0.7
Author : Maurice Makaay <maurice@phorum.org>

This module implements Google Maps functionality in the user profile.
Expand Down Expand Up @@ -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
----------------
Expand Down
2 changes: 1 addition & 1 deletion google_maps/addon/usermap.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
: $user['display_name']);
$plot['info'] =
"<a href=\"#\" onclick=\"parent.document.location.href='".addslashes($url)."';" .
"return false\">$name</a>";
"return false\">$name<\/a>";

// Provide a hook for modules to influence the info window.
if (isset($PHORUM['hooks']['google_maps_user_info']))
Expand Down
4 changes: 2 additions & 2 deletions google_maps/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}
}
Expand All @@ -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']);
}
}
Expand Down
2 changes: 1 addition & 1 deletion google_maps/info.txt
Original file line number Diff line number Diff line change
@@ -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 <maurice@phorum.org>
link: http://www.phorum.org/phorum5/read.php?16,119681
Expand Down
16 changes: 16 additions & 0 deletions google_maps/lang/german-informal-female.iso-8859-1.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

// This file ist part of the German Language Files Package
// Get the complete package here:
// http://www.phorum.org/phorum5/read.php?65,129717

// Diese Datei ist Teil des Deutschen Sprachpakets
// Das komplette Paket gibt es hier:
// http://www.phorum.org/phorum5/read.php?65,129717

include(str_replace('-informal-female', '-informal-male', __FILE__));

$PHORUM['DATA']['LANG']['mod_google_maps']['ProfileTitle'] = 'Standort dieser Teilnehmerin:';
$PHORUM['DATA']['LANG']['mod_google_maps']['UserMapTitle'] = 'Standorte unserer Teilnehmerinnen';

?>
16 changes: 16 additions & 0 deletions google_maps/lang/german-informal-female.utf-8.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

// This file ist part of the German Language Files Package
// Get the complete package here:
// http://www.phorum.org/phorum5/read.php?65,129717

// Diese Datei ist Teil des Deutschen Sprachpakets
// Das komplette Paket gibt es hier:
// http://www.phorum.org/phorum5/read.php?65,129717

include(str_replace('-informal-female', '-informal-male', __FILE__));

$PHORUM['DATA']['LANG']['mod_google_maps']['ProfileTitle'] = 'Standort dieser Teilnehmerin:';
$PHORUM['DATA']['LANG']['mod_google_maps']['UserMapTitle'] = 'Standorte unserer Teilnehmerinnen';

?>
18 changes: 18 additions & 0 deletions google_maps/lang/german-informal-male.iso-8859-1.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

// This file ist part of the German Language Files Package
// Get the complete package here:
// http://www.phorum.org/phorum5/read.php?65,129717

// Diese Datei ist Teil des Deutschen Sprachpakets
// Das komplette Paket gibt es hier:
// http://www.phorum.org/phorum5/read.php?65,129717

include(str_replace('-informal-male', '', __FILE__));

$PHORUM['DATA']['LANG']['mod_google_maps']['CCIntroduction'] = 'Du kannst in der Karte Deinen Standort (Wohnort) markieren. Die Markierung kannst Du mit einem Doppelklick setzen und mit der Maus verschieben. Alternativ kannst Du auch die Suche benutzen.';
$PHORUM['DATA']['LANG']['mod_google_maps']['IncompatibleBrowser'] = 'Entschuldige, Dein Browser ist inkompatibel. Die f�r Google Maps ben�tigten Funktionen fehlen.';
$PHORUM['DATA']['LANG']['mod_google_maps']['NoSearchResults'] = 'Entschuldige, es wurde kein Ergebnis f�r Deine Suchanfrage gefunden.';
$PHORUM['DATA']['LANG']['mod_google_maps']['YourLocation'] = 'Dein Standort';

?>
18 changes: 18 additions & 0 deletions google_maps/lang/german-informal-male.utf-8.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

// This file ist part of the German Language Files Package
// Get the complete package here:
// http://www.phorum.org/phorum5/read.php?65,129717

// Diese Datei ist Teil des Deutschen Sprachpakets
// Das komplette Paket gibt es hier:
// http://www.phorum.org/phorum5/read.php?65,129717

include(str_replace('-informal-male', '', __FILE__));

$PHORUM['DATA']['LANG']['mod_google_maps']['CCIntroduction'] = 'Du kannst in der Karte Deinen Standort (Wohnort) markieren. Die Markierung kannst Du mit einem Doppelklick setzen und mit der Maus verschieben. Alternativ kannst Du auch die Suche benutzen.';
$PHORUM['DATA']['LANG']['mod_google_maps']['IncompatibleBrowser'] = 'Entschuldige, Dein Browser ist inkompatibel. Die für Google Maps benötigten Funktionen fehlen.';
$PHORUM['DATA']['LANG']['mod_google_maps']['NoSearchResults'] = 'Entschuldige, es wurde kein Ergebnis für Deine Suchanfrage gefunden.';
$PHORUM['DATA']['LANG']['mod_google_maps']['YourLocation'] = 'Dein Standort';

?>
31 changes: 31 additions & 0 deletions google_maps/lang/german.iso-8859-1.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

// This file ist part of the German Language Files Package
// Get the complete package here:
// http://www.phorum.org/phorum5/read.php?65,129717

// Diese Datei ist Teil des Deutschen Sprachpakets
// Das komplette Paket gibt es hier:
// http://www.phorum.org/phorum5/read.php?65,129717

$PHORUM['DATA']['LANG']['mod_google_maps'] = array
(
'CCIntroduction' => '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'
);

?>
34 changes: 0 additions & 34 deletions google_maps/lang/german.php

This file was deleted.

31 changes: 31 additions & 0 deletions google_maps/lang/german.utf-8.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

// This file ist part of the German Language Files Package
// Get the complete package here:
// http://www.phorum.org/phorum5/read.php?65,129717

// Diese Datei ist Teil des Deutschen Sprachpakets
// Das komplette Paket gibt es hier:
// http://www.phorum.org/phorum5/read.php?65,129717

$PHORUM['DATA']['LANG']['mod_google_maps'] = array
(
'CCIntroduction' => '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'
);

?>
Loading