[ABD] Google User Map

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
.:: Chico ::.
Registered User
Posts: 463
Joined: Fri Aug 03, 2007 6:35 am
Location: Rio de Janeiro
Contact:

Re: [BETA] Google User Map

Post by .:: Chico ::. » Sun Sep 23, 2007 10:40 pm

jcc264 wrote:New Version

BETA 3
wow, like it!

contragulations!

User avatar
Dr.Death
QA Team
Posts: 363
Joined: Fri Apr 25, 2003 10:04 am
Location: Germany
Contact:

Re: [BETA] Google User Map

Post by Dr.Death » Mon Sep 24, 2007 5:58 am

Nice MOD ! Good work!
Doc.

Wauziweb
Registered User
Posts: 37
Joined: Tue Mar 20, 2007 8:14 am
Location: DE
Contact:

Re: [BETA] Google User Map

Post by Wauziweb » Mon Sep 24, 2007 7:20 am

Since BETA3 I get the ERR:
Call to undefined function curl_init() in .../forum3/user_map.php on line 39
:shock:
live-board: http://forum.mini-aussies.com/
mods: ajax shoutbox / visitors today / upcoming birthdays / recent topics / tracker / user map / imageshack / welcome pm

User avatar
Dr.Death
QA Team
Posts: 363
Joined: Fri Apr 25, 2003 10:04 am
Location: Germany
Contact:

Re: [BETA] Google User Map

Post by Dr.Death » Mon Sep 24, 2007 7:31 am

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
Doc.

Wauziweb
Registered User
Posts: 37
Joined: Tue Mar 20, 2007 8:14 am
Location: DE
Contact:

Re: [BETA] Google User Map

Post by Wauziweb » Mon Sep 24, 2007 7:50 am

I think curl functions blocked by the host!

...are there any work arounds!?
Because last version worked well (mainly...)
live-board: http://forum.mini-aussies.com/
mods: ajax shoutbox / visitors today / upcoming birthdays / recent topics / tracker / user map / imageshack / welcome pm

User avatar
mrTablet
Registered User
Posts: 34
Joined: Fri Jun 22, 2007 6:59 am

Re: [BETA] Google User Map

Post by mrTablet » Mon Sep 24, 2007 8:50 am

Help!
After updating from Beta 2 to Beta 3 my members don't show on the map. No problem before updating.

jcc264
Registered User
Posts: 46
Joined: Sun Dec 17, 2006 3:29 am
Location: State College, PA
Contact:

Re: [BETA] Google User Map

Post by jcc264 » Tue Sep 25, 2007 7:01 am

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
Johnny C
http://www.theworstwebsiteever.org

What is the definition of an engineer?
Someone who solves a problem you didn't know you had, in a way you don't understand.

User avatar
mrTablet
Registered User
Posts: 34
Joined: Fri Jun 22, 2007 6:59 am

Re: [BETA] Google User Map

Post by mrTablet » Tue Sep 25, 2007 7:17 am

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.
Last edited by mrTablet on Wed Sep 26, 2007 12:59 pm, edited 2 times in total.

User avatar
spy2000
Registered User
Posts: 14
Joined: Fri Sep 14, 2007 7:34 am

Re: [BETA] Google User Map

Post by spy2000 » Tue Sep 25, 2007 10:20 am

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

jcc264
Registered User
Posts: 46
Joined: Sun Dec 17, 2006 3:29 am
Location: State College, PA
Contact:

Re: [BETA] Google User Map

Post by jcc264 » Wed Sep 26, 2007 2:54 am

linky to your install of the mod plz
Johnny C
http://www.theworstwebsiteever.org

What is the definition of an engineer?
Someone who solves a problem you didn't know you had, in a way you don't understand.

User avatar
spy2000
Registered User
Posts: 14
Joined: Fri Sep 14, 2007 7:34 am

Re: [BETA] Google User Map

Post by spy2000 » Wed Sep 26, 2007 12:50 pm

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
Last edited by spy2000 on Sat Oct 13, 2007 8:41 pm, edited 1 time in total.

jcc264
Registered User
Posts: 46
Joined: Sun Dec 17, 2006 3:29 am
Location: State College, PA
Contact:

Re: [BETA] Google User Map

Post by jcc264 » Wed Sep 26, 2007 5:09 pm

try clearing your cache
Johnny C
http://www.theworstwebsiteever.org

What is the definition of an engineer?
Someone who solves a problem you didn't know you had, in a way you don't understand.

jcc264
Registered User
Posts: 46
Joined: Sun Dec 17, 2006 3:29 am
Location: State College, PA
Contact:

Re: [BETA] Google User Map

Post by jcc264 » Wed Sep 26, 2007 5:16 pm

also 870px width should work with your style, just make sure you clear your cache in the admin pannel
Johnny C
http://www.theworstwebsiteever.org

What is the definition of an engineer?
Someone who solves a problem you didn't know you had, in a way you don't understand.

User avatar
spy2000
Registered User
Posts: 14
Joined: Fri Sep 14, 2007 7:34 am

Re: [BETA] Google User Map

Post by spy2000 » Thu Sep 27, 2007 5:49 am

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:

jcc264
Registered User
Posts: 46
Joined: Sun Dec 17, 2006 3:29 am
Location: State College, PA
Contact:

Re: [BETA] Google User Map

Post by jcc264 » Thu Sep 27, 2007 12:49 pm

what browser are you using?
Johnny C
http://www.theworstwebsiteever.org

What is the definition of an engineer?
Someone who solves a problem you didn't know you had, in a way you don't understand.

Locked

Return to “[3.0.x] Abandoned MODs”