ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Links In Gallery Captions

July 18, 2007 7:23am

Subscribe [1]
  • #1 / Jul 18, 2007 7:23am

    ShelaghG

    51 posts

    I’m in the (very slow) process of transferring all my photos from Gallery to EE’s Gallery module.  I’ve just posted a photo which includes a link in the caption but when I view the photo the link shows up as

    <a >chapelry</a>

      Where has the \ before the ” come from and how do I get rid of it?  You can see the entry at http://www.thewholeshebang.org/index.php/gallery/image_full/199/

    Thanks - Shelagh

  • #2 / Jul 18, 2007 10:19am

    Robin Sowell

    13255 posts

    I just did a test- couldn’t duplicate.  It’s likely a setting issue.  Go into the prefs for that gallery, look in ‘Caption formatting prefs’- it’s likely you’ve got autolinking on.  If so, turn it off- see if that does the trick.  That’s my first bet.

  • #3 / Jul 18, 2007 10:26am

    ShelaghG

    51 posts

    Auto-link was on, but turning it off hasn’t made any difference.  I’ve had a look at the entry in the db vie phpMyAdmin and the \ characters aren’t there, it must be something EE is putting in.

  • #4 / Jul 18, 2007 10:44am

    Robin Sowell

    13255 posts

    It looks like it’s trying to escape the quotes, but EE automatically handles magic quote diffs.  What build/version are you running?  And for those caption prefs- what formatting do you have it set to?

  • #5 / Jul 18, 2007 11:05am

    ShelaghG

    51 posts

    Formatting is set to xhtml.  I’m running version 1.6.0, build 20070705.  Interestingly in a couple of other captions I’ve used ” when quoting people and they’re fine - it’s only as part of a url it’s a problem.

  • #6 / Jul 18, 2007 11:53am

    Robin Sowell

    13255 posts

    Dang- I’m just not replicating, though the behavior looks a little different on my 20070708 build vs my 0627.  There have been some changes with xss cleaning- I can’t swear this will fix it, but go ahead and upgrade to the latest.  It will eliminate the possibility, at least.  You’re urls are also ended up with the < encoded- hm.

    If you edit the entry- is the link exactly like you typed it?  Want to try pasting the contents of the template?  It’s definitely doing odd things.  If I don’t spot anything template wise that gives a hit, I’d say upgrading to the latest build is the next step.

  • #7 / Jul 18, 2007 1:09pm

    ShelaghG

    51 posts

    If I edit the entry, everything looks as I typed it.  The template is the default template, I haven’t touched any of them yet.

    {assign_variable:gallery_name="photos"}
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    
    <head>
    <title>{exp:gallery:entries gallery="{gallery_name}" limit="1" log_views="off"}{title}{/exp:gallery:entries}</title>
    <meta http-equiv="Content-Type" content="text/html; charset={charset}" />
    
    <link rel='stylesheet' type='text/css' media='all' href='{stylesheet=gallery/gallery_css}' /> 
    <style type='text/css' media='screen'>@import "{stylesheet=gallery/gallery_css}";</style>
    </head>
    
    <body>
    
    <div id="content">
    
    
    <table cellpadding='0' cellspacing='0' border='0' width='98%'>
    <tr>
    <td>
    
    <div class="breadcrumb">
    
    </div>
    {/if}
    
    <div class="stats">
    This image has been viewed {views} {if views == 1}time{/if}{if views != 1}times{/if}
    </div>
            
    </div>
    </div>
    
    <div class="caption">
    {caption}
    </div>
    
    
    {/exp:gallery:entries}
    
    
    <div class="spacer"> </div>
    
    <div class="powered"><a href="http://expressionengine.com/">Powered by ExpressionEngine</a></div>
    
    </div>
    
    </body>
    </html>
  • #8 / Jul 18, 2007 2:34pm

    Lisa Wess

    20502 posts

    Can you post the code for the image as entered in the caption field? I’d like to test this on my site.

  • #9 / Jul 18, 2007 2:49pm

    ShelaghG

    51 posts

    Here you go 😊

    <a href="http://www.british-history.ac.uk/report.asp?compid=50822">chapelry</a>
  • #10 / Jul 18, 2007 2:59pm

    Lisa Wess

    20502 posts

    Even more fun, I can’t replicate this: http://www.lisajill.net/mementos/flashback/512/

    Now you’re on 20070705 and I’m on 20070708 - so lets get on the first same build by you updating and see if it helps, we can go from there.

    My settings are attached.

  • #11 / Jul 18, 2007 3:02pm

    ShelaghG

    51 posts

    I just go to the download centre and grab the latest build?  Do I need to grab MSM again too?

  • #12 / Jul 18, 2007 3:05pm

    Lisa Wess

    20502 posts

    Nope, just the latest build of EE, and follow the build update instructions.

  • #13 / Jul 18, 2007 3:20pm

    ShelaghG

    51 posts

    Yay!  I upgraded and now the link shows correctly :D As always, thanks for your help.

  • #14 / Jul 18, 2007 3:41pm

    Lisa Wess

    20502 posts

    You see what a difference 3 days makes?!?!? Glad you got that sorted =)

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases