Caption Save Error

dac1117dac1117 Registered Users Posts: 123 Major grins
edited October 7, 2011 in SmugMug Support
RE: http://www.dconradstudio.com/Artwork/Vases/19294648_h3Fw2r#1507503987_KzrPBRM

I am trying to include a PayPal link into a photo caption but when I copy/paste the html, it converts the text '&currency_' to '¤cy_' which breaks the link. :scratch

Here is the html I am pasting in:
https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=8XHY9KSYST4WQ&lc=US&item_name=Large Amphora Vase #1&amount=1700.00&currency_code=USD&button_subtype=services&shipping=95.00&bn=PP-BuyNowBF:btn_buynowCC_LG.gif:NonHosted

After the caption is saved, it now looks like this:
https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=8XHY9KSYST4WQ&lc=US&item_name=Large Amphora Vase #1&amount=1700.00¤cy_code=USD&button_subtype=services&shipping=95%2e00&bn=PP%2dBuyNowBF%3abtn_buynowCC_LG%2egif%3aNonHosted

Comments

  • SamirDSamirD Registered Users Posts: 3,474 Major grins
    edited October 7, 2011
    You may have to convert the & to its % equivalent. There's a lot of that already happening. What's the original-original url look like? (without the %20s)
    Pictures and Videos of the Huntsville Car Scene: www.huntsvillecarscene.com
    Want faster uploading? Vote for FTP!
  • dac1117dac1117 Registered Users Posts: 123 Major grins
    edited October 7, 2011
    rogue substitution
    RE: http://www.dconradstudio.com/Artwork/Vases/19294648_h3Fw2r#1507503987_KzrPBRM

    The link in question is auto-generated using PayPal>Merchant Services>Buy Now button and looks like this:

    https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=8XHY9KSYST4WQ&lc=US&item_name=LargeAmphoraVase1&amount=1700.00&currency_code=USD&button_subtype=services&shipping=75.00&bn=PP-BuyNowBF:btn_buynowCC_LG.gif:NonHosted

    My complete html caption looks like this:

    <html><b>Large Amphora Vase #1</b> 2008 <a href="http://dl.dropbox.com/u/17111595/LargeAmphoraVase#1_34NO3S.pdf&quot; target="_blank">Product Brochure</a><br />Wood-fired Ceramic - unique<br /><b>h: </b>21.0 x <b>w: </b>23.0 x <b>d: </b>10.0 in / <b>h: </b>53.34 x <b>w: </b>58.42 x <b>d: </b>25.4 cm<br />8 day anagama firing. Napa Valley CA<br />$1,700 (artist stamp) <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=8XHY9KSYST4WQ&amp;lc=US&amp;item_name=LargeAmphoraVase1&amp;amount=1700.00&amp;currency_code=USD&amp;button_subtype=services&amp;shipping=75.00&amp;bn=PP-BuyNowBF:btn_buynowCC_LG.gif:NonHosted&quot; target="_blank">Purchase</a></html>


    I don't think converting every '&' to its % equivalent is the issue because SmugMug is converting just the one particular case of &currency_ to ¤cy_ and ONLY (as I recently discovered) when I use Tools > Caption / Keyword. When I use the (caption) 'edit' link below the image, everything is fine. It's interesting that as soon as I use 'Tools > Caption / Keyword', the rogue substitution is made on-the-fly.

    I would really like to get to the bottom of this - appreciate all your help! bowdown.gif
  • AllenAllen Registered Users Posts: 10,014 Major grins
    edited October 7, 2011
    Looks good in Firefox and IE here, still not workng for you?
    Al - Just a volunteer here having fun
    My Website index | My Blog
  • dac1117dac1117 Registered Users Posts: 123 Major grins
    edited October 7, 2011
    Allen wrote: »
    Looks good in Firefox and IE here, still not workng for you?

    nope - 'Purchase' link still broken in ff & ie on my end. I did discover that a work-around is to just remove '&currency_code=USD' entirely from the PayPal generated link. Seems that USD is the default anyway.
  • AllenAllen Registered Users Posts: 10,014 Major grins
    edited October 7, 2011
    dac1117 wrote: »
    nope - 'Purchase' link still broken in ff & ie on my end. I did discover that a work-around is to just remove '&currency_code=USD' entirely from the PayPal generated link. Seems that USD is the default anyway.
    Did you try changing
    & to &
    Al - Just a volunteer here having fun
    My Website index | My Blog
  • SamirDSamirD Registered Users Posts: 3,474 Major grins
    edited October 7, 2011
    dac1117 wrote: »
    I don't think converting every '&' to its % equivalent is the issue because SmugMug is converting just the one particular case of &currency_ to ¤cy_ and ONLY (as I recently discovered) when I use Tools > Caption / Keyword. When I use the (caption) 'edit' link below the image, everything is fine. It's interesting that as soon as I use 'Tools > Caption / Keyword', the rogue substitution is made on-the-fly.

    I would really like to get to the bottom of this - appreciate all your help! bowdown.gif
    It seems like the way that tool parses the link is the issue. I think your workaround of dropping the currancy may be the only way to do it. One thing I would try is moving the currancy item to the end of the string. The variables from a url can be rearranged like that.
    Pictures and Videos of the Huntsville Car Scene: www.huntsvillecarscene.com
    Want faster uploading? Vote for FTP!
  • dac1117dac1117 Registered Users Posts: 123 Major grins
    edited October 7, 2011
    Allen wrote: »
    Did you try changing
    & to &

    yes, it works initially, but going into the caption with 'Tools > Caption / Keyword' removed the 'amp;' leaving me again with '&currency_code=USD'. The next time I go into 'Tools > Caption / Keyword', it changes it back again to: '¤cy_code=USD'

    Thanks for your help! It seems my best bet for now is to remove the &currency_code tag before I paste it into my html caption. This is a bit of a hassle since I have so many items that use this auto-generated PayPal link. :cry
  • dac1117dac1117 Registered Users Posts: 123 Major grins
    edited October 7, 2011
    SamirD wrote: »
    ... I would try is moving the currancy item to the end of the string. The variables from a url can be rearranged like that.

    Thanks for the suggestion but it still did the same substitution. Looks like I have to remove it altogether.
  • SamirDSamirD Registered Users Posts: 3,474 Major grins
    edited October 7, 2011
    dac1117 wrote: »
    Thanks for the suggestion but it still did the same substitution. Looks like I have to remove it altogether.
    We tried. ne_nau.gif I'm glad you found a workaround though. thumb.gif
    Pictures and Videos of the Huntsville Car Scene: www.huntsvillecarscene.com
    Want faster uploading? Vote for FTP!
Sign In or Register to comment.