That looks correct. I am not certain why it wouldn’t take your email and override the fake one that I have in there. I will take a look and see if I can duplicate it.
Jesse R.
Consider trying something new and extraordinary.
Illinois Wine
Have you considered donating to MODx lately?
Donate now. Every contribution helps.
The likely result of this error is that your server doesn’t support the use of opening HTTP through FURL, and further that your server doesn’t support CURL.
In the code, could you locate where it says "The server appears to be down." and add this line after it:
Then paste that information when trying to run the snippet back here. That way I can make sure that the address that the snippet is trying to pull information from is correct.
Jesse
Jesse R.
Consider trying something new and extraordinary.
Illinois Wine
Have you considered donating to MODx lately?
Donate now. Every contribution helps.
Great to hear that it is working. Yeah, when I first started doing calls to snippets, I would usually have some very basic syntax error on my part. Usually I would place a ’$’ in the call instead of a ’&’ because PHP uses the former for its variable declarations.
Jesse
Jesse R.
Consider trying something new and extraordinary.
Illinois Wine
Have you considered donating to MODx lately?
Donate now. Every contribution helps.
Well the snippet is working good, although one thing I noted.
Has anyone else noticed that the [+where+] placeholder is quite flaky at times?
73% of the time it Location/[+where+] won’t render at all (not even in the HTML)
25% of the time only the first many events in a list will show the location, all others are blank.
2% of the time I get them all to render.
If you just keep on hitting refresh some render, some don’t.
This this is just a something with my system or can others replicate?
Thanks
Brian
It could very well be a bug. This was my second snippet at parsing XML, and I still probably have a bunch to learn. I will try to take a look at the code I use for grabbing the where information.
Jesse
Jesse R.
Consider trying something new and extraordinary.
Illinois Wine
Have you considered donating to MODx lately?
Donate now. Every contribution helps.
It is definitely reproducible and is definitely a bug. Thanks for finding it, I am going to look at fixing it today if I can figure out how to correct my logic. Please let me know if you find any other bugs. I would like to make sure this works flawlessly.
Jesse
Quote from: betoranaldi at Dec 21, 2006, 01:30 PM
Well the snippet is working good, although one thing I noted.
Has anyone else noticed that the [+where+] placeholder is quite flaky at times?
73% of the time it Location/[+where+] won’t render at all (not even in the HTML)
25% of the time only the first many events in a list will show the location, all others are blank.
2% of the time I get them all to render.
If you just keep on hitting refresh some render, some don’t.
This this is just a something with my system or can others replicate?
Thanks
Brian
Jesse R.
Consider trying something new and extraordinary.
Illinois Wine
Have you considered donating to MODx lately?
Donate now. Every contribution helps.
Ok, so the more I look at it, the more complicated I think it is going to be. Unfortunately, the information for the "where" tag isn’t consistently in the same place when reading the feed from Google. Why the feed places the information for the "where" tag in different places is something Google would have to answer. I believe it has to do with recurring events. If you don’t use recurring events and/or reminders, does the code consistently work for you? I know the original code I based this off of didn’t support recurring events. As such, I will probably have to completely rethink how I am parsing the XML that I am receiving, so the updated snippet will likely be a little farther out, ETA wise.
Jesse
Jesse R.
Consider trying something new and extraordinary.
Illinois Wine
Have you considered donating to MODx lately?
Donate now. Every contribution helps.