MyBB Community Forums

Full Version: Usermap
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
Yes, you can, when you install the "Usermap Tools"-plugin.

Announce
I just found a litle mistake in the upgrade file of 1.0.2, but I will insert the correction in 1.0.3, so it's fixed.
Usermap 1.0.3 is released!
Usermap 1.0.3 is released and contains the follow changes:
- Better use of the system, which makes it faster
- Language conflict with the Game Section fixed
Paretje, thank you for this plugin, it works fine. However, I do have a question: am I right, that I can not search for Users in the map or did I miss something?
When you mean a real search function to users on the map: no.
Thank you! Smile

Sorry, one more question: when upgrading from 1.0.2 to 1.0.3 existing entries in the database will not be changed!? Existing files on the webspace have to replaced by the new ones!?
I've installed the hack and inserted the API code in the Admin CP, but the map doesn't show... URL is http://forum.spfan.nl/usermap.php.
I see, it's a conflict with the resize images plugin, which uses the same onload attribute:
<body onload="resize_images()"  onload="initialize()" onunload="GUnload()">

OK, I found the solution. This makes that the image_resizer wont be used when there is an other system which outputs onload, in this situation the usermap plugin.

Open inc/plugins/imageresizer.php and find:
	// var_dump($mybb);
	if ($mybb->settings['image_resizer_active'] == "yes")
	{
		$page = str_replace('</head>', imageresizer_javascript().'</head>', $page);
		$page = preg_replace('#<body(.*?)>#', '<body onload="resize_images()"$1>', $page);
	}

Replace with:
	// var_dump($mybb);
	if ($mybb->settings['image_resizer_active'] == "yes")
	{
		preg_match('#'.preg_quote("<body onload=").'#i', $page, $matches);
		if(!$matches[0])
		{
			$page = str_replace('</head>', imageresizer_javascript().'</head>', $page);
			$page = preg_replace('#<body(.*?)>#', '<body onload="resize_images()"$1>', $page);
		}
	}
That code doesn't work. Nothing has changed to the body tag.
Try with this code:
	// var_dump($mybb);
	if ($mybb->settings['image_resizer_active'] == "yes")
	{
		$test_body = strpos($page, "<body onload=");
		if($test_body === false)
		{
			$page = str_replace('</head>', imageresizer_javascript().'</head>', $page);
			$page = preg_replace('#<body(.*?)>#', '<body onload="resize_images()"$1>', $page);
		}
	}
i'm sorry.. i can't help myself anymore.
i tried out so many things and this map is just not working.
i am only able to view big cities in germany... and... that's not all... i can't view "munich" e.g. ... wheather i type in the german or english way... that's soo mean!
second:
the tool isn't working, that should help me to replace the pin and to delete it. i don't know what i'm doing wrong. i tried out version 1.0.3. but there it was only possible to view one location per user. only one. if it wasn't the one u were searching for you hadn't any chance to correct, because the map showed the error "can't find coordinates" all time through. u were just able to see the ma, but not able to search for any locations anymore.

is there anybody who can help me?

the address is http://mia.ebytehost.com

germand should not be a problem 'cause u all know the english version.
the link is pretty easy to find... default way
at the bottom of the page, next to impressum.
hope here's anybody who can help me.
if u want to register... i don't mind. i really need the help.
thanks a lot
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25