Jump to content

Member Map


Recommended Posts

Posted

Admin options to remove member's markers would be good too.


Agreed, this would be good.

I think I'd rather the pictures shown when clicking on a marker were the profile pics instead of avatars. Since this is about where the members actually are at, I thinking showing their actual pic makes more sense.


Ahhh, the whole "avatar versus photo" business (which is being discussed elsewhere). I personally feel the avatar should be used everywhere on the forum except for the user's profile page, so I respectfully disagree with you here. You see the user's avatar associated with posts, which is where most users spend their time on the forum. Thus, it's easier to make the association when you see the avatar elsewhere (for instance, on these maps).

I also like the idea of an Admin being able to add additional icons. Could be cool for like setting a marker for a meetup or something? I'd probably never do that, but it'd be nice.



That's a great idea, actually--users on my forum have meetups all the time, and there are various gaming events that would be fun to show here. Actually, tying this to the calendar would be a blast. :D

..Al
Posted

I think maybe the group name, and maybe the joined date? Just some common info about that member.



Sounds good.

And yeah, just /membermap/ would be fine, it's very minor, but I like seeing those URLs as opposed to the ?app= ones.



I'll have a look at sorting that out then



Woops :ph34r:

I have a few more feature suggestions too, if you don't mind. For the Admin side, it'd be nice if the settings were linked from the apps main menu, instead of having to go to the settings page. Admin options to remove member's markers would be good too. I think I'd rather the pictures shown when clicking on a marker were the profile pics instead of avatars. Since this is about where the members actually are at, I thinking showing their actual pic makes more sense. I also like the idea of an Admin being able to add additional icons. Could be cool for like setting a marker for a meetup or something? I'd probably never do that, but it'd be nice.



All good ideas, what about if the user doesn't have a personal photo set, then use their avatar ?
Posted

Once you've set the permissions up in the ACP, there's an add location button at the top of the map.

Oh, It's communicating with Google, it will alert you to any errors. Otherwise I'm afraid it's Alex that has done the AJAX, you'll need to wait for his reply.

Posted

How can I add my location ? :ermm:



I click on button and shows a popup to type something... nothing happens. Loading... loading...




Any Javascript errors?
Posted

Ok. But what should I type in popup ? My name ? City name ?



Your full or partial address, you could just type your city if you don't want your exact location shown.


Bug Fix
Quirk: You can't any any location west of Texas.
Run in PhpMyAdmin or Mysql Toolbox


ALTER TABLE ibf_member_map MODIFY lat FLOAT( 10, 6 ), MODIFY lon FLOAT( 10, 6 );


change ibf_ for the prefix you use if different. - Thanks to AtariAge for finding this one.

Posted

My Australian are ending up 6000 miles away in the ocean after putting in their address.

When they got to Google Maps and put in their address, they and up in the right place.

The U.S. users are ending up in the correct place.

Posted

Yeah, I don't want to open up that whole avatar vs. photo can of worms, it's just something that seems to me would be more of a place where photos would be displayed. But if that's not the consensus, that's OK. :)

EDIT: On the popup, it'd be nice if you could also pop up the user's popup card from there too, just include the little icon beside their name like it has it in posts. That way, we can find people on the map and quickly do things like add them as friends, search for posts, see their rep, etc.

Posted

Ems, please see the post direct above yours and run that query.




(I must have been writing at the same time.)

Did that... do they have to re-enter (update) their address?
Posted

If there is one mod, that I think could do well on this forum, this is it :)

Mind you I can also see a fair percentage of people putting a fake location in the system - a few remote islands may suddenly get forum residents LOL

Posted

Maybe I am just being thick here, but how do we....

a) remove the pin for Invision HQ
b) change the default icon?
c) if you have added the Invision HQ manually, is it possible to add our own locations manually?

Thanks :)

Posted

Yeah, I don't want to open up that whole avatar vs. photo can of worms, it's just something that seems to me would be more of a place where photos would be displayed. But if that's not the consensus, that's OK. :)



EDIT: On the popup, it'd be nice if you could also pop up the user's popup card from there too, just include the little icon beside their name like it has it in posts. That way, we can find people on the map and quickly do things like add them as friends, search for posts, see their rep, etc.



You have far too many good ideas (w00t) :thumbsup:


Maybe I am just being thick here, but how do we....



a) remove the pin for Invision HQ


b) change the default icon?


c) if you have added the Invision HQ manually, is it possible to add our own locations manually?



Thanks :)



  • You can remove it in the skin file
  • To change the icons you need to edit the skin file
  • That might be possible in a future version
Posted

Nice mod!

I built myself a member map a few years back with the help from the guys at the Google Maps Newsgroup, its just a standard external web page that I link to.
Someone suggested I make it an application add-on so that its integrated but I wouldn't have a clue how to do that, I've never made a mod.

However, you are welcome to use it for any inspiration or features on your map.

You can find it here.

Regards,
Graham

Posted

That's a great idea, actually--users on my forum have meetups all the time, and there are various gaming events that would be fun to show here. Actually, tying this to the calendar would be a blast. :D



..Al



I've noted this down for a future release to look at hooking into the calendar system (if installed).


Nice mod!



I built myself a member map a few years back with the help from the guys at the Google Maps Newsgroup, its just a standard external web page that I link to.


Someone suggested I make it an application add-on so that its integrated but I wouldn't have a clue how to do that, I've never made a mod.



However, you are welcome to use it for any inspiration or features on your map.



You can find it [url="http://millennium-thisiswhoweare.net/tiwwa/tiwwa_member_map.php"]here[/url].



Regards,


Graham



That looks pretty good, the main difference here is that you are using an XML file to load the markers, whilst a good idea I'm not sure that it gives you the ability to filter the results. I'll have a closer look over the next few days.
Posted

You'll need to add a class publicSessions__membermap to the /extensions/coreExtensions.php file. It's been reported to me that when people go to the Online list and someone is in the Member Map, they're getting this error:

Fatal error: Class 'publicSessions__membermap' not found in /home/mccune/public_html/forums/***/applications/members/modules_public/online/online.php  on line 250

Posted

You'll need to add a class publicSessions__membermap to the /extensions/coreExtensions.php file. It's been reported to me that when people go to the Online list and someone is in the Member Map, they're getting this error:



Fatal error: Class 'publicSessions__membermap' not found in /home/mccune/public_html/forums/***/applications/members/modules_public/online/online.php  on line 250



Added that to my list of bug fixes/enchancements
Posted

You'll probably figure this out on your own, but to make the Online List stuff work properly, you need to also create an /extensions/coreVariables.php file, with this content:

<?php


/* Resets */

$_RESET = array();


/* Make sure our module and section are set */

if ( !isset( $_REQUEST['module'] ) && ( isset( $_REQUEST['app'] ) && $_REQUEST['app'] == 'membermap' ) )

{

	$_RESET['module']  = 'membermap';

	$_RESET['section'] = 'map';

}

Since your app only has one module and section, and neither is explicitly set in $this->request, they won't ever get saved to the sessions table, and thus the Online List stuff will never really load the stuff from /extensions/coreExtensions.php to parse it. Here's a quick class for that that I whipped up:

class publicSessions__membermap

{

	public function getSessionVariables()

	{

		/* Return */

		return array();

	}



	public function parseOnlineEntries( $rows )

	{

		/* Got rows? */

		if ( !is_array( $rows ) || !count( $rows ) )

		{

			return $rows;

		}


		/* Loopy loo */

		foreach ( $rows as $row )

		{

			/* In some other app? */

			if ( $row['current_appcomponent'] != 'membermap' )

			{

				$final[ $row['id'] ] = $row;

				continue;

			}


			/* Guess not... */

			$row['where_line'] = "Viewing the Member Map";

			$row['where_link'] = 'app=membermap';


			/* Add to our array */

			$final[ $row['id'] ] = $row;

		}


		/* Return */

		return $final;

	}

}

Posted

You'll probably figure this out on your own, but to make the Online List stuff work properly, you need to also create an /extensions/coreVariables.php file, with this content:



Since your app only has one module and section, and neither is explicitly set in $this->request, they won't ever get saved to the sessions table, and thus the Online List stuff will never really load the stuff from /extensions/coreExtensions.php to parse it. Here's a quick class for that that I whipped up:




Thanks Michael :thumbsup:
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...