Page 2 of 11

Re: [BETA] Google User Map

Posted: Sun Sep 23, 2007 10:40 pm
by .:: Chico ::.
jcc264 wrote:New Version

BETA 3
wow, like it!

contragulations!

Re: [BETA] Google User Map

Posted: Mon Sep 24, 2007 5:58 am
by Dr.Death
Nice MOD ! Good work!

Re: [BETA] Google User Map

Posted: Mon Sep 24, 2007 7:20 am
by Wauziweb
Since BETA3 I get the ERR:
Call to undefined function curl_init() in .../forum3/user_map.php on line 39
:shock:

Re: [BETA] Google User Map

Posted: Mon Sep 24, 2007 7:31 am
by Dr.Death
Maybe your PHP Version is not uptodate or this function was restricted by your host.

http://de3.php.net/manual/en/function.curl-init.php

Re: [BETA] Google User Map

Posted: Mon Sep 24, 2007 7:50 am
by Wauziweb
I think curl functions blocked by the host!

...are there any work arounds!?
Because last version worked well (mainly...)

Re: [BETA] Google User Map

Posted: Mon Sep 24, 2007 8:50 am
by mrTablet
Help!
After updating from Beta 2 to Beta 3 my members don't show on the map. No problem before updating.

Re: [BETA] Google User Map

Posted: Tue Sep 25, 2007 7:01 am
by jcc264
here is the quick fix
the if statement is changed and the curl_init function call is moved

Code: Select all

	if (function_exists('curl_init')) 
	{
		$ch = curl_init();// initialize curl handle
		curl_setopt($ch, CURLOPT_URL, "http://maps.google.com/maps/geo?q=".$location."&output=csv&key=".$google_key); // set url to post to
		curl_setopt($ch, CURLOPT_FAILONERROR, 1);              // Fail on errors
		curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); // return into a variable
		curl_setopt($ch, CURLOPT_PORT, 80);            //Set the port number
		curl_setopt($ch, CURLOPT_TIMEOUT, 15); // times out after 15s
		$gsite = curl_exec($ch);
	}
	else

Re: [BETA] Google User Map

Posted: Tue Sep 25, 2007 7:17 am
by mrTablet
jcc264 wrote:here is the quick fix
the if statement is changed and the curl_init function call is moved

Code: Select all

	if (function_exists('curl_init')) 
	{
		$ch = curl_init();// initialize curl handle
		curl_setopt($ch, CURLOPT_URL, "http://maps.google.com/maps/geo?q=".$location."&output=csv&key=".$google_key); // set url to post to
		curl_setopt($ch, CURLOPT_FAILONERROR, 1);              // Fail on errors
		curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); // return into a variable
		curl_setopt($ch, CURLOPT_PORT, 80);            //Set the port number
		curl_setopt($ch, CURLOPT_TIMEOUT, 15); // times out after 15s
		$gsite = curl_exec($ch);
	}
	else
The fix didn't solve the problem. Sill no members on the map. I'm back to Beta 2.

Re: [BETA] Google User Map

Posted: Tue Sep 25, 2007 10:20 am
by spy2000
Hi,

Can someone help me how to set map dimensions, i am using similar theme of this forum (prosilver based) & current map is bit larger for my theme ...
i found the below line and updated it in user_map.html file but nothing happend.
<div id="map" style="width: 900px; height: 500px"></div>


another issue is, when i apply the mod, the map icon is placed near the board index button not FAQ button, it is working fine with prosilver but not with this forums theme

Thanks & regards

Re: [BETA] Google User Map

Posted: Wed Sep 26, 2007 2:54 am
by jcc264
linky to your install of the mod plz

Re: [BETA] Google User Map

Posted: Wed Sep 26, 2007 12:50 pm
by spy2000
click here then click the link named `Harita` (next to FAQ button)

please ignore map icon place problem i have fixed it via working overall.html file, but google map is still larger than i expect.

Thanks

Re: [BETA] Google User Map

Posted: Wed Sep 26, 2007 5:09 pm
by jcc264
try clearing your cache

Re: [BETA] Google User Map

Posted: Wed Sep 26, 2007 5:16 pm
by jcc264
also 870px width should work with your style, just make sure you clear your cache in the admin pannel

Re: [BETA] Google User Map

Posted: Thu Sep 27, 2007 5:49 am
by spy2000
Thank you but still same, i have changed it as width: 300px; & clear the cache however nothing happened, it does not affect the map :roll:

Re: [BETA] Google User Map

Posted: Thu Sep 27, 2007 12:49 pm
by jcc264
what browser are you using?