Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

GoogleMapDirectory

135678

Comments

  • I just set it up on my local install. I get js errors:
    sa.instance(qb(a)).Qm is not a function on line 121 of maps2.69.api.js

    I already have the MemberGoogleMap extension installed. Does it conflict with your?
  • Yeah ok, so we add four exta fields to the settings page, if they're empty then no restrictions if they aren't then process a "boundaryLimits" function at form submission? I'm happy for that to be added, buro9. I'm working on version 0.4 which incorporates most of the above, should be ready in a week to two, want to get that to me for that release? How's your extension coding? I could do with some guidance, I'm winging this on some very limited knowledge!
  • It might do jimw but I doubt it, I've been careful to not step on their toes naming-wise. Try disabling one or the other to see.
  • Yep, your extension works after I deactivated the MemberGoogleMap extension.
  • aha. Thanks jimw, I'll take a look at that, i must be clashing with something. Seems to be which version of googlemaps is called, can't see why that'd clash, MemberGoogleMap guys, any ideas? Might be some other caching issues, I know Explorer does some crappy things, what browser are you using?
  • My extension coding is limited... I donated a chunk of code for AJAX and JSON loading of Flickr images (prevents server work), but didn't know how to wrap it up.

    But now I've actually got an installation of Vanilla it's not so bad ;) Happy to help out if you need it.

    BTW, You appear to have left a polygon over part of North London. Commenting out drawArea() within Map.js (line 33) took care of it. Were you just playing with paths and shapes? Or did you have more functionality in mind?

    It's in use on http://www.londonfgss.com/ now :)
  • Yeah that was for where the extension started, a Stroud Green local forum. I've been turning the function on and off while playing with VML stuff. I meant to leave it in if other people wanted to use it, but just comment out. Must have forgotten to re-uncomment the line. I'm shoddy at testing, what can I say...

    Your locations made me laugh. Being a London cyclist I know most of them. Small world...!
  • I can't get this to show added locations (they are in the database tho), using the latest version. It just shows a blank map. Is this a php5 thing? I'm still on 4.
  • nope all fine on php4 LoOk HerE, what browser etc are you using? got a link to look at?
  • getting this started @ http://www.renofixed.com

    how do users add listings?
  • iamglenn, that isn't this extension? What are you asking?
  • It'd be really nice if it tied up with the Member Google Map so that it centered on the members location if they had one by default.
  • Nice idea. Although at present the Member Google Map apparently breaks this extension, if we get that ironed out at some point then it could be a possible option.
  • After a little more research with the 2 extensions, I believe I found the conflict. Each is submitting the google js on the GoogleMapDirectory page. With both extensions activated the GoogleMapDirectory page does not work, but the Member Map on the Account page and the view all member page work.

    When I commented out the AddScript line in the Member Google Map extension, there was no conflict on the GoogleMapDirectory page. However, the googlemap on the account page then did not work and neither did the "view all members" page.

    So, it looks like the "if" statement for adding the script needs to be modified. I modified the "if" statement in the Member Google Map extension to look like the following and it worked for me:
    if (($Context->SelfUrl == 'account.php' OR $Context->SelfUrl == 'extension.php' AND ($Context->SelfUrl == 'extension.php' AND ForceIncomingString('PostBackAction','') == 'GoogleMap')) AND isset($Head))
  • cool. thought it was somewhere around there. So we need to request/suggest that the MemberGoogleMap only calls the google script if its their extension, not just call it on the extension.php page regardless. Well if someone gives me the nod when that's done, i'll work on something that centres onto it on this extension. My only concern here is that the administrator may want to control the focus of the map, so perhaps I'd also need a setting to turn that on and off at the admin level.

    I've just finished a bunch of revisions including pretty much all of the previous requests, even a basic search on title and description now. I think I'll wait for buro9's (let me know if you're to busy buro9, and i'll push on with it) boundary limit function then I'll release version 0.4.
  • @david

    here's direct link: http://www.renofixed.com/talk/?Page=reno_map

    did i do something wrong?
    i want the users to be able to add listings and to view the list below the map, also to have some navigation controls on the map.


    great extenstion!
  • Davidk43,

    We found another issue that may come up. After adding a location, another person can come along and change it and after saving their changes, they can delete it completely. This should be an admin function only.

    Also, could there be a way to add an address and it would find the location by it's self? So you wouldn't have to search for the spot on the map.
  • Hi GMonkey, yeah this is what i was banging on about when I said a 'half-assed' attempt at delete's. New version has a setting on the admin side to determine whether all users can delete, or just creators or just admin. i've been offline for a bit but back now, so expect version 0.4 over the next week. iamglenn, yeah i saw that link, its just not this extension is it? I'm not getting what you're doing here..!
  • Uploaded version 0.4 of GoogleMapDirectory.
  • OK quite a few changes in this version. I've tried to include a smoother upgrade path so existing data doesn't get trashed, may be worth backing up that table somewhere first though. As there's now a new field in "LastEditedByID" I've passed over the current UserID used as "Created by", this is just to get existing entries going, so all existing entries will read as Created by and Last edited by the same person until edited by someone else in the new version.

    Version 0.4
    - Location on main map now passes over to addLocation page.
    - Fixed Explorer bugs to do with vml by turning off the rectangle for the moment - may revisit this at some stage.
    - Added some explanation about Discussion Thread, toyed with prefixing URL but thread might be elsewhere so why limit?
    - A little more tweaking to settings names. All now strictly prefixed by GOOGLEMAPDIRECTORY_
    - Aligned error notices to vanilla.css styles.
    - Now has Creator(User) and LastEditedBy ID fields.
    - Improved delete process, now based on Administrator/Location Creator/Any Member, Admin can always delete.
    - Search functionality now integrated, searches on titles and description. Basic but a start.
    - Added an upgrade route for existing installations, probably needs work.
Sign In or Register to comment.