> Forums > Active Social > Community Support > Link Images
Last Post 27 Jul 2011 11:13 AM by Marty G. 4 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Marty G
Customers
Marty G
Post Count:20

--
26 Jul 2011 04:35 PM
    • Active Social Version: 1.9.3
    • DotNetNuke Version: 5.6.1
    When trying to add a link I get an assortment of images found on the page to choose from as the link image, but it's not finding the one image from the page that is associated with the primary content of the page.

    Using http://www.nursetogether.com/Lifest...rnia.aspx, I get images from ads and from the list of videos, but not from the article itself.

    It would probably help if I knew how the subset of images from the page gets selected so that we can encourage the link function to find the one we're interested in.

    Can anyone shed some light on that process?

    Thanks,
    Marty
    Ben - DotNetNuke
    DotNetNuke Staff
    Ben - DotNetNuke
    Post Count:1645

    --
    27 Jul 2011 08:45 AM
    I believe this has been explained before, but it can only find images that are loaded on the page as img elements, it will not find images that are loaded as css backgrounds.
    Marty G
    Customers
    Marty G
    Post Count:20

    --
    27 Jul 2011 09:48 AM
    Thanks, I was expecting that it looked for img elements, but it doesn't seem to find all of them. The page I referenced in this post has serveral img elements that are not being picked up.

    In looking at the page source, the code must be ignoring images in the DNN control panel, site logo, and other similar items, but why is it missing the other img elements on the page?

    The 1st image on the page is a banner ad, so maybe the code is skipping ads, but the 2nd image on the page
    is within the article on the page and is not being picked up.

    Does the method require the alt tag to be set? Something/anything else we can do to encourage its discovery??

    Thanks!!
    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7672

    --
    27 Jul 2011 09:52 AM
    It isn't missing anything. It isn't intended to load every image on the page. It will first look to see if the page has a default image set using the open graph protocol. If it does, then this will be the first image in the list. Next it will simply just parse the first 10 images it finds in the page that are within in a certain size. Trying to parse every image within the page simply doesn't perform well.
    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    Marty G
    Customers
    Marty G
    Post Count:20

    --
    27 Jul 2011 11:13 AM
    Hi Will,

    Thanks for the clarifications. I understand much better now!

    One more question: What is the size range used to limit the list, and does it look at the size in the img tag or at the actual file size?
    You are not authorized to post a reply.
    > Forums > Active Social > Community Support > Link Images
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy