Options

Gallery description - can I put html in?

chet79chet79 Registered Users Posts: 64 Big grins
edited December 30, 2006 in SmugMug Support
I tried to put a html link into a description of one of my galleries, as follows:
<a href="http://www.url.com>Info on xyz gallery</a>

When I go into the gallery, the link works, yet it's not clickable from the main gallery page.
«1

Comments

  • Options
    AndyAndy Registered Users Posts: 50,016 Major grins
    edited September 9, 2006
    chet79 wrote:
    I tried to put a html link into a description of one of my galleries, as follows:
    <a href="http://www.url.com>Info on xyz gallery</a>
    

    When I go into the gallery, the link works, yet it's not clickable from the main gallery page.
    Hi Chet <img src="https://us.v-cdn.net/6029383/emoji/wave.gif&quot; border="0" alt="" >

    Sure you can. Surround it all with

    <html>
    blah blah blah your text and html here
    </html>

    Providing a gallery link will allow me to help you further :D
  • Options
    BarbBarb Administrators Posts: 3,352 SmugMug Employee
    edited September 9, 2006
    chet79 wrote:
    I tried to put a html link into a description of one of my galleries, as follows:
    <a href="http://www.url.com>Info on xyz gallery</a>
    
    When I go into the gallery, the link works, yet it's not clickable from the main gallery page.

    Hi :)

    Be sure and surround your HTML with tags, i.e., <html>blah blah blah</html>.
    Barb
    Smug since 2006
    SmugMug Help
    PhotoscapeDesign
  • Options
    chet79chet79 Registered Users Posts: 64 Big grins
    edited September 9, 2006
    thanks fellas. Like this?
    <html>
    <a href="http://www.url.com>Info on xyz gallery</a>
    </html>
    

    gallery: http://chet.smugmug.com/gallery/1855349
  • Options
    AndyAndy Registered Users Posts: 50,016 Major grins
    edited September 9, 2006
    chet79 wrote:
    thanks fellas. Like this?
    <html>
    <a href="http://www.url.com>Info on xyz gallery</a>
    </html>
    

    gallery: http://chet.smugmug.com/gallery/1855349
    <img src="https://us.v-cdn.net/6029383/emoji/clap.gif&quot; border="0" alt="" >
  • Options
    chet79chet79 Registered Users Posts: 64 Big grins
    edited September 9, 2006
    it didn't seem to help though <img src="https://us.v-cdn.net/6029383/emoji/eek7.gif&quot; border="0" alt="" >

    From the front main galleries (http://chet.smugmug.com/Urbex) page, the text "info on Jaques" isn't clickable.

    I've also put a <br> tag in to put "Info at Jaques" under "Saturday 29 July 2006", and it didn't work.
  • Options
    AllenAllen Registered Users Posts: 10,011 Major grins
    edited September 10, 2006
    chet79 wrote:
    it didn't seem to help though <img src="https://us.v-cdn.net/6029383/emoji/eek7.gif&quot; border="0" alt="" >

    From the front main galleries (http://chet.smugmug.com/Urbex) page, the text "info on Jaques" isn't clickable.

    I've also put a <br> tag in to put "Info at Jaques" under "Saturday 29 July 2006", and it didn't work.
    I discovered the same thing yesterday, kept editing thinking I'd
    done something wrong. Only to discover it only worked once in the
    gallery not on the main page.
    Al
    Al - Just a volunteer here having fun
    My Website index | My Blog
  • Options
    chet79chet79 Registered Users Posts: 64 Big grins
    edited September 10, 2006
    So there's no way of putting a clickable-URL in the main gallery page? :cry
  • Options
    AllenAllen Registered Users Posts: 10,011 Major grins
    edited September 10, 2006
    chet79 wrote:
    So there's no way of putting a clickable-URL in the main gallery page? :cry
    I did not find any so gave up even though it looks odd there.
    Al - Just a volunteer here having fun
    My Website index | My Blog
  • Options
    colourboxcolourbox Registered Users Posts: 2,095 Major grins
    edited September 10, 2006
    <html>
    <a href="http://www.url.com>Info on xyz gallery</a>
    </html>
    

    If that code won't work, it might be because it's missing a closing double quotation mark at the end of the URL.
  • Options
    ivarivar Registered Users Posts: 8,395 Major grins
    edited September 10, 2006
    colourbox wrote:
    <html>
    <a href="http://www.url.com>Info on xyz gallery</a>
    </html>
    
    If that code won't work, it might be because it's missing a closing double quotation mark at the end of the URL.
    <img src="https://us.v-cdn.net/6029383/emoji/15524779-Ti.gif&quot; border="0" alt="" > i think that's what the problem is. add that (see the green bit below), and let us know if that was the problem!
    <html>
    <a href="http://www.url.com[COLOR=Lime]"[/COLOR]>Info on xyz gallery</a>
    </html>
    
  • Options
    chet79chet79 Registered Users Posts: 64 Big grins
    edited September 10, 2006
    good pickup guys, but that's not it... here's my code, directly copied out of my description box:
    Saturday 29 July 2006
    <html><br>
    <a href="http://www.austrade.gov.au/corporate/layout/0,,0_S1-1_-2_5-3_CANB18170-4_-5_-6_-7_,00.html">Info on Jaques</a>
    </html>
    
  • Options
    ivarivar Registered Users Posts: 8,395 Major grins
    edited September 10, 2006
    chet79 wrote:
    good pickup guys, but that's not it... here's my code, directly copied out of my description box:
    Saturday 29 July 2006
    <html><br>
    <a href="http://www.austrade.gov.au/corporate/layout/0,,0_S1-1_-2_5-3_CANB18170-4_-5_-6_-7_,00.html">Info on Jaques</a>
    </html>
    
    Everything has to be within the html tags. Put the "Saturday 29 July 2006" between them aswell. If that doesn't work, can you give us a link to the problem?
  • Options
    chet79chet79 Registered Users Posts: 64 Big grins
    edited September 10, 2006
    didn't work :(

    Here's the main gallery page:
    http://chet.smugmug.com/Urbex

    It's the Jaques Engineering gallery. From the main gallery view, the "Info on Jaques" isn't visible. But once inside the gallery, it is.
  • Options
    ivarivar Registered Users Posts: 8,395 Major grins
    edited September 10, 2006
    chet79 wrote:
    didn't work :(

    Here's the main gallery page:
    http://chet.smugmug.com/Urbex

    It's the Jaques Engineering gallery. From the main gallery view, the "Info on Jaques" isn't visible. But once inside the gallery, it is.
    Now i see what you mean. That's the way it should behave. You have put a <br> in there, combine that with the link, and it takes up too much space to show in the main gallery page. The size is limited in the main view, unlike inside the gallery. I hope this helps.
  • Options
    chet79chet79 Registered Users Posts: 64 Big grins
    edited September 10, 2006
    any suggestions on where I could put the link?
  • Options
    BarbBarb Administrators Posts: 3,352 SmugMug Employee
    edited September 10, 2006
    chet79 wrote:
    any suggestions on where I could put the link?

    Hi :)

    I just made a quick change to your link. See if it's okay the way it is now. I took the <br> out, replaced with a colon.
    Barb
    Smug since 2006
    SmugMug Help
    PhotoscapeDesign
  • Options
    chet79chet79 Registered Users Posts: 64 Big grins
    edited September 10, 2006
    thanks Barb, but it didn't help eek7.gif
  • Options
    jwilkinsonjwilkinson Registered Users Posts: 37 Big grins
    edited September 12, 2006
    When I went back to check my own smugmug area, most of my links in gallery descriptions are working just fine for me with no html pair around them.

    Oddly enough, I did have a couple that i'd put links into before, and they didn't work.
    BUT, when I clicked edit, looked at the code, and just hit save (didn't change anything), then they worked.

    So, there might have been some change, so if you had links in before that aren't working, try just doing and Edit and Save to see if that fixes it.

    Update: well, I *thought* it worked... the links worked while I was logged in, but they disappeared when I looked at the smugmug pages logged out. The links aren't showing there whether you surround them with the HTML pair or not. (they do work on gallery view pages though) Nuts!

    example) "our worship services" is linked
    http://centralpc.smugmug.com/Our%20people (links not showing)
    http://centralpc.smugmug.com/gallery/1880605 (links are showing)


    Now I wish we could assign a Category Description, so we could have a block of description text for each category. It would show up next to the category image on the homepage in the "gallery categories" section, and at the top of the page when in a category page. ...

    And that the home and category pages showed more description text. It's truncating some of mine pretty short... grrr...

    later,
    jeff
  • Options
    AndyAndy Registered Users Posts: 50,016 Major grins
    edited September 12, 2006
    jwilkinson wrote:
    Now I wish we could assign a Category Description, so we could have a block of description text for each category. It would show up next to the category image on the homepage in the "gallery categories" section, and at the top of the page when in a category page. ...

    Wish Granted:

    My FAQ: http://www.dgrin.com/showthread.php?t=26043

    #69 http://www.dgrin.com/showthread.php?p=241923#post241923
  • Options
    dogwooddogwood Registered Users Posts: 2,572 Major grins
    edited September 12, 2006
    andy the genie
    Andy wrote:
    Only three wishes and you wasted one on that? rolleyes1.gif

    Portland, Oregon Photographer Pete Springer
    website blog instagram facebook g+

  • Options
    chet79chet79 Registered Users Posts: 64 Big grins
    edited September 12, 2006
    jwilkinson wrote:
    Update: well, I *thought* it worked... the links worked while I was logged in, but they disappeared when I looked at the smugmug pages logged out. The links aren't showing there whether you surround them with the HTML pair or not. (they do work on gallery view pages though) Nuts!

    example) "our worship services" is linked
    http://centralpc.smugmug.com/Our%20people (links not showing)
    http://centralpc.smugmug.com/gallery/1880605 (links are showing)
    EXACTLY the same thing is happening to me :(:

    Andy?
  • Options
    devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited September 12, 2006
    chet79 wrote:
    didn't work :(
    Hey Chet,

    Unfortunately, SM strips certain HTML out of the Gallery description, but don't despair...YUI to the rescue.

    Add this code to your JS block...
    YE.onAvailable('albumDescription_1855349', function () {this.innerHTML = this.innerHTML.replace(/(Info on Jaques)/,"<a href=\"http://www.austrade.gov.au/corporate/layout/0,,0_S1-1_-2_5-3_CANB18170-4_-5_-6_-7_,00.html\">$1</a>")});
    
    
    Cheers,

    David
    David Parry
    SmugMug API Developer
    My Photos
  • Options
    chet79chet79 Registered Users Posts: 64 Big grins
    edited September 12, 2006
    thanks for that. Where exactly do I stick this code? (sorry a bit new to customising my SM acct).
  • Options
    devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited September 12, 2006
    chet79 wrote:
    thanks for that. Where exactly do I stick this code? (sorry a bit new to customising my SM acct).

    javascript block thumb.gif
    David Parry
    SmugMug API Developer
    My Photos
  • Options
    chet79chet79 Registered Users Posts: 64 Big grins
    edited September 13, 2006
    sorry, but I can't for the life of me find that eek7.gif
  • Options
    jwilkinsonjwilkinson Registered Users Posts: 37 Big grins
    edited September 15, 2006
    Andy wrote:

    Uh, that requires a power or pro account doesn't it?
    We've only got standard.
  • Options
    jwilkinsonjwilkinson Registered Users Posts: 37 Big grins
    edited September 15, 2006
    devbobo wrote:
    Hey Chet,

    Unfortunately, SM strips certain HTML out of the Gallery description, but don't despair...YUI to the rescue.

    Add this code to your JS block...
    YE.onAvailable('albumDescription_1855349', function () {this.innerHTML = this.innerHTML.replace(/(Info on Jaques)/,"<a href=\"http://www.austrade.gov.au/corporate/layout/0,,0_S1-1_-2_5-3_CANB18170-4_-5_-6_-7_,00.html\">$1</a>")});
    
    Cheers, David
    Again, something that requires a power or pro account to do, right?

    Can we get this fixed in a way that works for the standard accounts?
    Why the heck *should* it strip all HTML here? If you really don't want to open it up to allowing just any html, then at least let us use some kind of 'forum code' to add linked text. For Pete's sake, (and mine) this isn't rocket science.
    Why doesn't something important like this work already - and without hacks?

    And please fix the description lengths too while you are at it, so it quits truncating them so short on the homepage. Yeah, I know I could customize that in a power/pro account too...
  • Options
    jwilkinsonjwilkinson Registered Users Posts: 37 Big grins
    edited September 15, 2006
    fwiw, the SM webtricks blog has this entry:

    Using HTML in your bio, caption or description
    http://blogs.smugmug.com/web-tricks/2005/09/02/using-html-in-your-bio-caption-or-description/

    This seems to work fine for links in the description when you are looking at the gallery itself, but, as stated before, when you log out and look at the category pages, homepage, etc, the descriptions there aren't showing the links.

    And it's fooling you by showing them when you *are* logged in.

    So, since it's obviously broken, can we get a fix?
    (for all levels of accounts, not just those who can customize themes)
    Or at least get some SM person to tell us what their intent is here and why it's acting this way? (though I can't imagine this is on purpose)

    thanks,
    jw
  • Options
    chet79chet79 Registered Users Posts: 64 Big grins
    edited September 16, 2006
    jwilkinson wrote:
    So, since it's obviously broken, can we get a fix?
    (for all levels of accounts, not just those who can customize themes)
    Or at least get some SM person to tell us what their intent is here and why it's acting this way? (though I can't imagine this is on purpose)

    same! I do not understand this eek7.gif
  • Options
    chet79chet79 Registered Users Posts: 64 Big grins
    edited September 24, 2006
    anyone? would love to see a fix for this deal.gif
Sign In or Register to comment.