Page 37 of 51

Re: [BETA] Phoogle (Google) Map

Posted: Mon Apr 30, 2007 3:31 am
by BassFace
Got the user groups working: what a chore! :twisted:
Still working on the Search (it's on the page, but doesn't do anything yet).
With User Group select box closed
With User Group select box closed
ScreenShot029.jpg (107.52 KiB) Viewed 253 times
With User Group select box open
With User Group select box open
ScreenShot028.jpg (107.17 KiB) Viewed 249 times

Re: [BETA] Phoogle (Google) Map

Posted: Mon Apr 30, 2007 3:51 am
by Sammy Sandbag
Looks awesome BassFace, keep up the good work!

Re: [BETA] Phoogle (Google) Map

Posted: Tue May 01, 2007 3:03 am
by BassFace
Thanks Sammy! :D
Finally got the username search working, thanks to some kind folks in the Mod Writers discussion area. 8)
Search will yield a map like the buttons in user's Profile or under posts:
Result of a search for 'Skippy'
Result of a search for 'Skippy'
ScreenShot031.jpg (85.34 KiB) Viewed 241 times
And I managed to get the User Group name to show in the heading, where the User's username would appear on an individual map:
User Group result with Heading
User Group result with Heading
ScreenShot030.jpg (92.97 KiB) Viewed 239 times
Now I'd like to make the initial/default map type (Map/Satellite/Hybrid) selectable from the ACP. I think that'll about do it for features. This will be release 1.0.5, but upgrading should be very simple - most changes are in the included Phoogle files, not the phpbb edited files.

Re: [BETA] Phoogle (Google) Map

Posted: Tue May 01, 2007 3:09 pm
by pjjacobs
Very nice BassFace...its come a long way

Re: [BETA] Phoogle (Google) Map

Posted: Wed May 02, 2007 4:57 pm
by BassFace
Cool, the initial/default map type (Map/Satellite/Hybrid) will now be selectable from the ACP. 8) Now to examine setting permissions for usergroups to show on map, and maybe user level permission to view map.

Re: [BETA] Phoogle (Google) Map

Posted: Wed May 02, 2007 5:10 pm
by pjjacobs
BassFace wrote: Cool, the initial/default map type (Map/Satellite/Hybrid) will now be selectable from the ACP. 8) Now to examine setting permissions for usergroups to show on map, and maybe user level permission to view map.


Where can we get the updated files? please

Re: [BETA] Phoogle (Google) Map

Posted: Wed May 02, 2007 6:38 pm
by BassFace
pjjacobs wrote: Where can we get the updated files? please

Nowhere. :razz:
I'll want to try it out on my demo site before I release anything. And if the Permission features happen, this will quickly be replaced by another version with them included.
Again, it should be just overwriting the Phoogle included files, a new entry or two into the lang_ files, and a little sql (for flavor :lol:) to add some new config values to the db. 8) I'll try it out tonight and put together a zip if all goes well.

Re: [BETA] Phoogle (Google) Map

Posted: Thu May 03, 2007 1:33 pm
by SHventures
BassFace,

I played around with your demo. This is the coolest thing I have ever seen. You are the man.

Re: [BETA] Phoogle (Google) Map

Posted: Thu May 03, 2007 1:43 pm
by pjjacobs
Ok, so far only one issue i have come across...if one of the members co-ordinates is wrong, the whole map doesnt load...my one friend for some dumb reason copied his co-ordinates from Google Earth and the whole map didnt show...maybe you must "lock" the co-ordinates field? i.o.w. the co-ordinates only change when you change it on the map

Re: [BETA] Phoogle (Google) Map

Posted: Thu May 03, 2007 4:18 pm
by BassFace
SHventures wrote: BassFace,

I played around with your demo. This is the coolest thing I have ever seen. You are the man.

Thanks! I hope the MODDB team agrees with you! :lol:

Re: [BETA] Phoogle (Google) Map

Posted: Thu May 03, 2007 4:26 pm
by BassFace
pjjacobs wrote: Ok, so far only one issue i have come across...if one of the members co-ordinates is wrong, the whole map doesnt load...my one friend for some dumb reason copied his co-ordinates from Google Earth and the whole map didnt show...maybe you must "lock" the co-ordinates field? i.o.w. the co-ordinates only change when you change it on the map


The only way to do it is to hide that text field. It's a strange thing about html forms - if a field is "hidden", it can still be submitted and it's value modified (via javascript in this instance), but it can't be seen. On the other hand, you can set a field to 'disabled' and it can be seen but not modified like Phoogle map needs it to change the user's location.

Sooo, let's try this...
Open templates/subSilver/profile_add_body.tpl
FIND

Code: Select all

<input name="map_center" type="text" class="post" id="map_center" value="{MAP_CENTER}" size="60" maxlength="60" />
REPLACE WITH

Code: Select all

<input name="map_center" type="hidden" class="post" id="map_center" value="{MAP_CENTER}" size="60" maxlength="60" />
To hide the text that labels that row (which may now look silly with no form field next to it)
FIND

Code: Select all

{L_PHOOGLE_CENTER}:
REPLACE WITH

Code: Select all

&nbsp;
This is probably something I should have done a long time ago actually. :roll:

Re: [BETA] Phoogle (Google) Map

Posted: Sun May 06, 2007 8:52 pm
by BassFace
The v1.0.3 demo site (link in my sig) is now running the new features - let me know ASAP if you find any problems. Thanks! 8)

Re: [BETA] Phoogle (Google) Map

Posted: Mon May 07, 2007 12:56 pm
by freddie
using wildcards is not possible to search after a user, is it easy to implement ?

Re: [BETA] Phoogle (Google) Map

Posted: Mon May 07, 2007 2:24 pm
by mgutt
How many users can be displayed on a map?

100 / 500 / 1000 / 5000 / 10000 ?

Re: [BETA] Phoogle (Google) Map

Posted: Mon May 07, 2007 7:21 pm
by BassFace
freddie wrote: using wildcards is not possible to search after a user, is it easy to implement ?

I don't know for certain, but it would probably involve regular expressions - ugh! :?