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

edited January 2008 in Vanilla 1.0 Help
GoogleMapDirectory
«1345678

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
Sign In or Register to comment.