Identification, Images, & Information
For Insects, Spiders & Their Kin
For the United States & Canada
Clickable Guide
Moths Butterflies Flies Caterpillars Flies Dragonflies Flies Mantids Cockroaches Bees and Wasps Walkingsticks Earwigs Ants Termites Hoppers and Kin Hoppers and Kin Beetles True Bugs Fleas Grasshoppers and Kin Ticks Spiders Scorpions Centipedes Millipedes

Calendar
Upcoming Events

Discussion of 2018 gathering

Photos of insects and people from the 2015 gathering in Wisconsin, July 10-12

Photos of insects and people from the 2014 gathering in Virginia, June 4-7.

Photos of insects and people from the 2013 gathering in Arizona, July 25-28

Photos of insects and people from the 2012 gathering in Alabama

Photos of insects and people from the 2011 gathering in Iowa

Photos from the 2010 Workshop in Grinnell, Iowa

Photos from the 2009 gathering in Washington

Fixing broken links to CBIF

CBIF (Canadian Biodiversity Information Facility) has changed its web address, so all the links that used that site to compare moths are broken. Does anyone know how to fix them? The problem may be that the new links have square brackets in them, which confuse our system.

Here's one of the old links:

http://www.cbif.gc.ca/spp_pages/noctuoidea/jpgs/image_e.php?image%5B%5D=108890.jpg%2CPseudoplusia+includens&image%5B%5D=108908.jpg%2CAutographa+precationis

This is how it looked on our page:
both species together for comparison

Here's the new address for that comparison:

http://www.cbif.gc.ca/SpeciesBank/spp_pages/noctuoidea/jpgs/image_e.php?image[]=108890.jpg%2CPseudoplusia+includens&image[]=108908.jpg%2CAutographa+precationis

but I can't make that work.

Any ideas?

Comparing Moths
The links are constructed as follows:

http://www.cbif.gc.ca/SpeciesBank/spp_pages/noctuoidea/jpgs/image_e.php?image[]=NUMBER.jpg,LABEL&image[]=NUMBER.jpg,LABEL

E.g.,

http://www.cbif.gc.ca/SpeciesBank/spp_pages/noctuoidea/jpgs/image_e.php?image[]=108110.jpg,Haploa+contigua&image[]=108111.jpg,Haploa+lecontei

Note that the weird %2C, %5B and %5D are just encoded , [ and ] respectively.

You can click on a province here and check some boxes to create the comparison URL.

Just for fun, here are the 227 pages on BugGuide that still link to the old addresses, which are currently being redirected by their system.

http://bugguide.net/node/view/2636
http://bugguide.net/node/view/4763
http://bugguide.net/node/view/5354
http://bugguide.net/node/view/7823
http://bugguide.net/node/view/7929
http://bugguide.net/node/view/9303
http://bugguide.net/node/view/9417
http://bugguide.net/node/view/9424
http://bugguide.net/node/view/9429
http://bugguide.net/node/view/9430
http://bugguide.net/node/view/9432
http://bugguide.net/node/view/9580
http://bugguide.net/node/view/9581
http://bugguide.net/node/view/9601
http://bugguide.net/node/view/9833
http://bugguide.net/node/view/9842
http://bugguide.net/node/view/10278
http://bugguide.net/node/view/10555
http://bugguide.net/node/view/10636
http://bugguide.net/node/view/10653
http://bugguide.net/node/view/10696
http://bugguide.net/node/view/10727
http://bugguide.net/node/view/10728
http://bugguide.net/node/view/10787
http://bugguide.net/node/view/10805
http://bugguide.net/node/view/10807
http://bugguide.net/node/view/10810
http://bugguide.net/node/view/10811
http://bugguide.net/node/view/10849
http://bugguide.net/node/view/10850
http://bugguide.net/node/view/10851
http://bugguide.net/node/view/10852
http://bugguide.net/node/view/10901
http://bugguide.net/node/view/10951
http://bugguide.net/node/view/10956
http://bugguide.net/node/view/10957
http://bugguide.net/node/view/10986
http://bugguide.net/node/view/10993
http://bugguide.net/node/view/11111
http://bugguide.net/node/view/11177
http://bugguide.net/node/view/11178
http://bugguide.net/node/view/11211
http://bugguide.net/node/view/11212
http://bugguide.net/node/view/11219
http://bugguide.net/node/view/11220
http://bugguide.net/node/view/11283
http://bugguide.net/node/view/11334
http://bugguide.net/node/view/11335
http://bugguide.net/node/view/11336
http://bugguide.net/node/view/11337
http://bugguide.net/node/view/11398
http://bugguide.net/node/view/11540
http://bugguide.net/node/view/11577
http://bugguide.net/node/view/11678
http://bugguide.net/node/view/11682
http://bugguide.net/node/view/11684
http://bugguide.net/node/view/11935
http://bugguide.net/node/view/11965
http://bugguide.net/node/view/11968
http://bugguide.net/node/view/12013
http://bugguide.net/node/view/12032
http://bugguide.net/node/view/12337
http://bugguide.net/node/view/12420
http://bugguide.net/node/view/12471
http://bugguide.net/node/view/13716
http://bugguide.net/node/view/14012
http://bugguide.net/node/view/14014
http://bugguide.net/node/view/14208
http://bugguide.net/node/view/14336
http://bugguide.net/node/view/14605
http://bugguide.net/node/view/14842
http://bugguide.net/node/view/14908
http://bugguide.net/node/view/14961
http://bugguide.net/node/view/15134
http://bugguide.net/node/view/15135
http://bugguide.net/node/view/15287
http://bugguide.net/node/view/17010
http://bugguide.net/node/view/17013
http://bugguide.net/node/view/17334
http://bugguide.net/node/view/18457
http://bugguide.net/node/view/18459
http://bugguide.net/node/view/18463
http://bugguide.net/node/view/18571
http://bugguide.net/node/view/18577
http://bugguide.net/node/view/19008
http://bugguide.net/node/view/19175
http://bugguide.net/node/view/19176
http://bugguide.net/node/view/19545
http://bugguide.net/node/view/19547
http://bugguide.net/node/view/19553
http://bugguide.net/node/view/19809
http://bugguide.net/node/view/20241
http://bugguide.net/node/view/20454
http://bugguide.net/node/view/21320
http://bugguide.net/node/view/21522
http://bugguide.net/node/view/21913
http://bugguide.net/node/view/21964
http://bugguide.net/node/view/25393
http://bugguide.net/node/view/26094
http://bugguide.net/node/view/26425
http://bugguide.net/node/view/26527
http://bugguide.net/node/view/27164
http://bugguide.net/node/view/27250
http://bugguide.net/node/view/27253
http://bugguide.net/node/view/27254
http://bugguide.net/node/view/27255
http://bugguide.net/node/view/27263
http://bugguide.net/node/view/28872
http://bugguide.net/node/view/29128
http://bugguide.net/node/view/29623
http://bugguide.net/node/view/29652
http://bugguide.net/node/view/30598
http://bugguide.net/node/view/30756
http://bugguide.net/node/view/30759
http://bugguide.net/node/view/31996
http://bugguide.net/node/view/32626
http://bugguide.net/node/view/32638
http://bugguide.net/node/view/32640
http://bugguide.net/node/view/33052
http://bugguide.net/node/view/33629
http://bugguide.net/node/view/33631
http://bugguide.net/node/view/33729
http://bugguide.net/node/view/33733
http://bugguide.net/node/view/35549
http://bugguide.net/node/view/35586
http://bugguide.net/node/view/35635
http://bugguide.net/node/view/36120
http://bugguide.net/node/view/36499
http://bugguide.net/node/view/37198
http://bugguide.net/node/view/38011
http://bugguide.net/node/view/38599
http://bugguide.net/node/view/38895
http://bugguide.net/node/view/39206
http://bugguide.net/node/view/39254
http://bugguide.net/node/view/42564
http://bugguide.net/node/view/42675
http://bugguide.net/node/view/43387
http://bugguide.net/node/view/43552
http://bugguide.net/node/view/45034
http://bugguide.net/node/view/48623
http://bugguide.net/node/view/51438
http://bugguide.net/node/view/55766
http://bugguide.net/node/view/72298
http://bugguide.net/node/view/72706
http://bugguide.net/node/view/72710
http://bugguide.net/node/view/74322
http://bugguide.net/node/view/74323
http://bugguide.net/node/view/74538
http://bugguide.net/node/view/76003
http://bugguide.net/node/view/76004
http://bugguide.net/node/view/83291
http://bugguide.net/node/view/87071
http://bugguide.net/node/view/104715
http://bugguide.net/node/view/108251
http://bugguide.net/node/view/141846
http://bugguide.net/node/view/141851
http://bugguide.net/node/view/141852
http://bugguide.net/node/view/145475
http://bugguide.net/node/view/145480
http://bugguide.net/node/view/146640
http://bugguide.net/node/view/146641
http://bugguide.net/node/view/146642
http://bugguide.net/node/view/146643
http://bugguide.net/node/view/148152
http://bugguide.net/node/view/149995
http://bugguide.net/node/view/153481
http://bugguide.net/node/view/153802
http://bugguide.net/node/view/154464
http://bugguide.net/node/view/158802
http://bugguide.net/node/view/161398
http://bugguide.net/node/view/165688
http://bugguide.net/node/view/168916
http://bugguide.net/node/view/168931
http://bugguide.net/node/view/175723
http://bugguide.net/node/view/189018
http://bugguide.net/node/view/189585
http://bugguide.net/node/view/191653
http://bugguide.net/node/view/191654
http://bugguide.net/node/view/192547
http://bugguide.net/node/view/192894
http://bugguide.net/node/view/204322
http://bugguide.net/node/view/204348
http://bugguide.net/node/view/204349
http://bugguide.net/node/view/209669
http://bugguide.net/node/view/209670
http://bugguide.net/node/view/209835
http://bugguide.net/node/view/210154
http://bugguide.net/node/view/210155
http://bugguide.net/node/view/215025
http://bugguide.net/node/view/238793
http://bugguide.net/node/view/239023
http://bugguide.net/node/view/239075
http://bugguide.net/node/view/239078
http://bugguide.net/node/view/242114
http://bugguide.net/node/view/244452
http://bugguide.net/node/view/245844
http://bugguide.net/node/view/245912
http://bugguide.net/node/view/265826
http://bugguide.net/node/view/265827
http://bugguide.net/node/view/265829
http://bugguide.net/node/view/288860
http://bugguide.net/node/view/291876
http://bugguide.net/node/view/305209
http://bugguide.net/node/view/317431
http://bugguide.net/node/view/317441
http://bugguide.net/node/view/318557
http://bugguide.net/node/view/320358
http://bugguide.net/node/view/349868
http://bugguide.net/node/view/398630
http://bugguide.net/node/view/400289
http://bugguide.net/node/view/402029
http://bugguide.net/node/view/501441
http://bugguide.net/node/view/509297
http://bugguide.net/node/view/520049
http://bugguide.net/node/view/538202
http://bugguide.net/node/view/562145
http://bugguide.net/node/view/584029
http://bugguide.net/node/view/623825
http://bugguide.net/node/view/623831
http://bugguide.net/node/view/671274
http://bugguide.net/node/view/756550
http://bugguide.net/node/view/758744
http://bugguide.net/node/view/777058
http://bugguide.net/node/view/779424
http://bugguide.net/node/view/933212
http://bugguide.net/node/view/933215
http://bugguide.net/node/view/1028010

 
Thanks John,
I'm sorry - I didn't explain the problem clearly.

I know how to make comparison pages on CBIF. But what I don't know, is how to put those links on a BG page. With their old links, I could hide that big long ugly link behind some text. But now I can't do that.

This is one of the old links - the ugly long link is hidden.
(compare images of all three species)

If I try that with one of their new links, it doesn't work.

Does that make sense?

 
Hmm
If I understand the problem correctly, you are using BBCode syntax which uses a left square bracket and the letters "url" and an equals sign and then the URL itself, a right square bracket, then the text you want to display, then a left square bracket, a "/url" and a right square bracket. Whew.

The problem with this is that the right square bracket is used both to end the URL (for BBCode) and as part of the actual URL that CBIF wants to use.

There are two solutions. The first is to use regular HTML hyperlink syntax instead of using BBCode.

The second is to use the encoded versions of [ and ] (namely %5B and %5D) in your BBCode link to prevent BBCode link from recognizing the right square bracket.

I have done the same comparison link below, the first using an HTML hyperlink and the second using encoded brackets. If this is not your actual question ask again and I'll try again. :)

this link entered as an HTML hyperlink

this link entered as BBCode

 
I just figured out something else...
A very quick easy fix for the broken links is to insert: SpeciesBank/ after ca/ in the url.
Not all the links are broken - the butterfly links are fine, and there are few links to lists that work. But all the ones that go to pinned moth images are broken.

I'm slowly working my way through your list - although I'm not fixing links in individual people's posts - just on the info pages.

 
fixing links
I fixed all the links on this list that were not individual postings, and that were moth photos. (Butterfly links work fine.) There are still many more broken ones that I run across - I'll fix them when I see them.

 
Thanks John,
That's just what I needed!

Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.