Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter
Support for Vanilla Forums Cloud product

In this Discussion

Follow Us


GoogleMapDirectory

edited January 2008 in Questions
This discussion is related to the GoogleMapDirectory addon.
GoogleMapDirectory
«13456

Comments

  • I get this error;
    Notice: Undefined variable: row in
    gliving.tv/html/community/extensions/GoogleMapDirectory/default.php on line 130

    When trying to add a new location
  • Darn it, I was sure I'd tested it thoroughly. What browser are you using, I'll try and replicate the error and revise...
  • I am using Camino on the Mac and Firefox 2 on the mac. I will turn the map back on and you can see it on our site, http://gliving.tv/community/extension.php?PostBackAction=GoogleMapDirectory
  • Uploaded version 0.2 of GoogleMapDirectory.
  • Uploaded version 0.2 of GoogleMapDirectory.
  • Hi GMonkey,

    Give this 0.2 version a go. A few revisions noted in the default.php. Let me know what happens. Cheers for your patience on this, its my first extention so bound to be a few teething problems. This is working fine on Firefox and Explorer on PC (some noddy error exceptions on IE, though they don't affect functionality), I don't have your browser so I'll use you as my tester if you don't mind!
  • I have updated to version 0.2 and now the error is gone, but once you add the second loaction, all locations are not visible. The location ballons and links below the map are missing. The data is in the database, just doesn't show on the site.

    A few request, if they are not already part of this extension.

    Mulitple Pages ( 50 or so per page )
    Search
    Categories listed to jump quickly to that section
    Rating
    Reviews
  • OK, is this happening on both Camino and Firefox? I'm just not getting these errors, is there anything in Firefox's error console i can work from? Also ensure you've refreshed your cache and not loading previous javascript etc by mistake. If the locations aren't showing up, it should spit something out about javascript/ajax errors. I'm gonna hook up a mac next week to start testing more.

    As for the requests, no none of those are in the extension at present, and before they are entertained, I'm hoping to find another extension coder to shore up the database stuff and get the foundations solid first. I've started this at a super low version of 0.1 - 0.2 so it can develop a lot before hitting a version 1.
  • I have checked all Mac based browsers and nothing shows up. I have the map on if you would like to try it. http://gliving.tv/community/extension.php?PostBackAction=GoogleMapDirectory

    The data is written to the databse but nothing shows up on the page or map. Also, I do not get any error warnings now, the locations simple don't show up. You can click on the map and add the data.
  • Gmonkey, I think its breaking down due to certain data input. I'll revise the code trying to use Vanilla in built data input functions. Could you post the sql for your table at present so I can get it working with that as my test.
  • Uploaded version 0.2.1 of GoogleMapDirectory.
  • Ok, found a bug in my JSON not escaping double quotes. Hopefully that'll catch your errors GMonkey. I have a feeling that's not the last I'll hear of string literal errors, but not being a guru I learn by what happens in the field...
  • line 73 of default 73, replace:$Head->AddScript("http://maps.google.com/maps?file=api&v=2.69&key=".$Context->Configuration['GOOGLEMAPDIRECTORY_KEY']);
    by $Head->AddScript("http://maps.google.com/maps?file=api&v=2.69&key=".$Context->Configuration['GOOGLEMAPDIRECTORY_KEY'], '');
    Without the second argument, Addscript should add $Configuration['WEB_ROOT'] before ttp://maps.google.com/maps?...
  • Am I not doing something correctly? I am unable to get this to work at all...nothing shows up after installing the extension and inserting my API key obtained from google. Are there additional steps?

    Does anyone have a functioning example that i can view?
  • Okay it works, but it is very easy to break. If a person adds a lot of information with a few paragraphs in the text area, everything stops showing up.

    I added this amount of information:

    Euphoria Loves RAWvolution is LA's hippest cafe and retail store providing all you need to begin and thrive on raw, living foods.Euphoria Loves RAWvolution is LA's hippest cafe and retail store providing all you need to begin and thrive on raw, living foods.

    Euphoria Loves RAWvolution is LA's hippest cafe and retail store providing all you need to begin and thrive on raw, living foods.

    And it broke. So either they should be allowed to add more data, or prevent them from adding too much text. Also, there should be an address text box, so they can give the address of the location.

    This is will be great once it works...
  • Cheers Dinoboff, I'm not great at the whole Vanilla coding thing, as you can tell by the shakey start to this, but the reason I put this up was exactly for bug finding and other coders to help me tidy it up. I had no other way of furthering it.

    I've put a basic example up at http://www.dkltd.net/vanilla

    GMonkey, keep the faith - we will get it going eventually. I too think it'll be a great plugin, but I'm in dire need of the vanilla community's more technical guys help on this. Hopefully it'll gather some momentum and get much more robust. Until then you'll have to put up with me fixing things as they break. Anyone out there got some light to shed on data integrity, vanilla and JSON...? It's giving me headaches.

    i'll add Dinoboff's code and an address box, and get that input above working - it's the paragraph line return that's crashing it. Very strange, but i'll fix it over the weekend. Also it needs a delete action, should I limit this to administrators you think?
  • Well, it appears that my map is there, but the tab in the navigation is not showing up for me. any ideas on where I might start looking to fix this? Would this have anything to do with it? Sorry, i'm not the best coder.
    /*** Add the GoogleMapDirectory Tab ***/
    if(isset($Menu)) {
    $Menu->AddTab($Context->Configuration['GOOGLEMAPDIRECTORY_TABNAME'], 'GoogleMapDirectory', GetUrl($Configuration, 'extension.php', '', '', '', '', 'PostBackAction=GoogleMapDirectory'), '',$Context->Configuration['TAB_POSITION_GOOGLEMAPDIRECTORY']);
    }

  • ThaRiddla, do you have any tab management/page management extensions running? I know the Page Management extension screws with the default manner of adding tabs, but if you are using that, you can simply add a tab and give the url of

    <YourDomain>/extension.php?PostBackAction=GoogleMapDirectory
  • I've tried every which way with the directories, but just get the javascript message:

    "The Google Maps API key used on this web site was registered for a different web site. You can generate a new key for this web site at http://www.google.com/apis/maps/."

    Anybody else encountered this?
  • ThaRiddla, do you have any tab management/page management extensions running?
    That was it. Thanks! I didn't need my domain, BTW....just extension.php?PostBackAction=GoogleMapDirectory
  • Spot, you need to generate your own API key for your own domain, its free and instantaneous. The link to google's api key generator is on the readme file that comes with the extension.

    Also, GMonkey, I've now fixed the data integrity using base64 encoding. I've got a few more tweaks to add then i'll get a new version up. Hopefully I'll get some time over the weekend.
  • Davidk43

    Cool I look forward to the new one. Seems to break also if you add more than 5 location options and or use 2 or more words to describe the locations. Example: Organic Grocer, Fine Dinning, so on, breaks the map once you post 2 locations.

    Have you seen the maps with special icons for each location type?
    http://www.giveittomeraw.com/la/
  • Uploaded version 0.3 of GoogleMapDirectory.
  • OK version 0.3 now. I've added address and telephone numbers, with a little formatting to the popups on the map. Also location creators can now delete their own markers - though the last person to edit becomes the creator - I'll change this, its an interim solution, as I'm not sure of the best place for deletes and at what level they should be. It's a little unclear as should someone be able to delete what someone else has edited? Perhaps just have admin only delete's? Or is that something admins can't be bothered with? Any thoughts on this, anyone?

    I've also added Dinoboff's ammendment and tidied up the table and some naming stuff.

    Most importantly of all i've encoded all input fields with base64 now which should address the problems above. Probably shouldn't have released this without that but I didn't have much knowledge of it before I started looking into these problems. Obviously I'm not foolish enough to declare this issue fixed just yet!

    GMonkey, yes i've played with putting different icons onto maps but think it'd be too awkward in this instance, its not just a case of letting users pin a gif/png to a category type, as they need to declare the pin point of an image etc, it gets messy quickly and you'd end up with markers not correctly place on a map if not done correctly. We could perhaps have a standard, say a marker as now with topical images overlayed, not affecting the dimensions and pinpoint of the marker, possibly something for the future but I think it'd muddy things right now.

    i had some problems with uploading this over the previous version, I ended up manually deleting the old table in the database first. Perhaps someone out there could look at that side of housekeeping for me..?
  • Davidk43,

    Okay we have the map up and it is working great. People have started adding new locations. The only issue maybe how long of an entry they add. Maybe the text ballon could expand sideways a little? You can check it out here: http://gliving.tv/community/extension.php?PostBackAction=GoogleMapDirectory
  • Works great for me, been up a few days and 20 locations added already with no problems although nobody's tried putting much in the text balloon as its not needed yet. Different icons might be nice even just different coloured markers could be quite handy but no point giving yourself too much work just yet!
  • Yep, I'll add a settings variable for width of balloon in next revision, though I would say that's kind of why a had a Discussion Thread url, so you could write a short sharp description then link out to a vanilla thread for more info and chat.
  • Davidk43,

    Hmm the thread idea is good, but I don't think that is clear. Maybe there there should be a text box above the links, so we can have some text explaining how to use the map..
  • Also, when you click on the "Add Location" the map goes to your default location, instead of where you are....so if you've already found somewhere to place a location you have to find it again. if that can be a variable as well, it would be great.
«13456
Sign In or Register to comment.