Monday, October 21

Update Your BirdTrax Embed Code

The BirdTrax gadget is now hosted on Google Code, a reliable and fast server which is capable of managing the steady stream of code requests coming from the thousands of websites which use BirdTrax.

So update your embed code! It should currently look something like this:
<script src="//www.gmodules.com/ig/ifr?url=http://hosting.gmodules.com/ig/gadgets/file/101708404408406792358/BirdTrax.xml&amp;up_latlng=42.461381%2C%20-76.50454&amp;up_radius=15&amp;up_daysBack=30&amp;up_locName=Ithaca%2C%20NY&amp;up_districtName=&amp;up_State=Hawaii&amp;up_countryCode=US&amp;up_defaultMode=area&amp;up_defaultview=sightings&amp;up_spuhs=0&amp;up_picture=1&amp;up_hideNavMenu=1&amp;up_showhide=2&amp;up_hide2=european%20starling%2C%20house%20sparrow%2C%20rock%20pigeon&amp;synd=open&amp;w=375&amp;h=450&amp;title=BirdTrax&amp;border=%23ffffff%7C3px%2C1px+solid+%23999999&amp;output=js"></script>
You need to update the script source and its URL attribute from:
//www.gmodules.com/ig/ifr?url=http://hosting.gmodules.com/ig/gadgets/file/101708404408406792358/BirdTrax.xml
to:
https://t5653i60o7fjia2l6tulcflglc5fn3q0-a-sites-opensocial.googleusercontent.com/gadgets/ifr?url=https://birdtrax-explorer.googlecode.com/svn/trunk/birdtrax.xml
If you are unsure how to do this, you can use the BirdTrax Website Embedder Code Generator. Using the code from this tool will do the same thing as is described above.

Please let me know if you have any issues!

18 comments:

  1. I have set up county pages in the Ohio eBird Hot Spot web site and have been using BirdTrax to display the county bird sightings. The new code builder does not seem to support display of county level sightings. Am I missing something?
    Ken Ostermiller

    ReplyDelete
    Replies
    1. Ken, you are correct. This issue is entirely unrelated to the BirdTrax hosting transition. As has happened on multiple occasions in the past, Avian Knowledge Network (AKN) National and Subnational APIs are temporarily down. BirdTrax uses these APIs to grab county and state codes to plug into eBird APIs. It shouldn't be more than a day or two before these APIs are back up and running. Hang in there!

      Delete
  2. I did the update, and I still get just the warning to update or it will disapper by Nov 1. Is it down until then? Ed Pulldn

    ReplyDelete
    Replies
    1. If you still see the warning, you are still using the old version. You need to entirely replace your old code with the new code, and you should not see the warning sign. So, try totally taking off your gadget, then putting a new gadget back in its place with the new code from the code generator. That should fix your issue. Let me know if it doesn't! Zach

      Delete
    2. Zachary, I just replaced all my old code with the new generated code and it's doing the same thing for me (still getting the warning). I tried it a couple of times it still doesn't work. Rob Fowler

      Delete
    3. I did that too, and it still shows the warning. I used the tool on your site. What's up?

      Delete
    4. Rob and Ed,

      If you have replaced the code with the code generator output, there is no way the old gadget could be referenced. You guys aren't on iGoogle, if I might ask? Otherwise I suppose your gadget might be "cached" (meaning stored and not updated for a period of time) -- this however should not be occurring when we change the URL of the gadget. Would you both mind contacting me by email (support@birdventurebirding.com) and sending me the embed code that you are using? Also let me know what site you are testing this on. This may help to figure out what's going on.

      Delete
  3. Given that iGoogle will be retired, can anyone comment on good places to host the gadget for personal use? Are people just creating private blogs for this purpose?

    ReplyDelete
    Replies
    1. Check out my latest post on using Google Sites. This is one suggestion, there are a lot of comments on that post with other suggestions.

      Delete
  4. Code changes worked beautifully for me. Added it a few minutes ago and had no issues. Just a reminder to folks making the changes. Search in your code for the script source and its URL attribute from and then just copy and paste the new one in. Also, I saved the old code using a text editor and made my changes there making notes along the way to keep track of what I changed. Thanks a bunch for posting the updated code.

    ReplyDelete
  5. where do i find the code??????

    ReplyDelete
    Replies
    1. This post describes the code you need to replace in your existing code. If you do not understand how to do this, try using this tool:

      http://www.birdventurebirding.com/2013/01/birdtrax-website-embedder.html

      Delete
  6. My BirdTrax code used to work fine. But the new code from the generator produces no output:
    see: http://privatepaste.com/0e913b35de

    ReplyDelete
    Replies
    1. Darrell, the code in that site works for me. So try running your preferences through the website embedder again, get a new script (it is now slightly more "updated"), and then paste that code into your website. Email me at support@birdventurebirding.com if this still isn't working for you. Zachary

      Delete
  7. The "slightly more updated" version works for me ;)

    ReplyDelete
  8. I've installed the gadget and it works great in m browser on my laptop. However, on the iPhone, when I click on a location, it doesn't go to a map of the site. Any idea? Also, is there a way to make the text in the gadget larger? Thanks.

    ReplyDelete
    Replies
    1. The gadget references a Google Maps URL. If your iPhone does not accept this, it won't work. I'm not sure about the text issue either, since I haven't tested the gadget much at all on mobile devices. This is definitely something for the next application development process!

      Delete

Please leave your comment below. If you have a question or issue which may be specific to your situation only, please email support@birdventurebirding.com. Thank you!