Home / Forums / DynamiX Support / Slider – Lightbox links to videos.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts

  • Matt Wrycraft
    Participant

    Hi Andy!

    So, after getting my posts workin the slider shortcode, I've noticed that if the original post has a imageeffect shortcode which points to a video via a lightbox image, it doesn't appear properly in the slider.

    The original post has this in it:

    imageeffect type="lightbox"  align="alignleft" width="231"  height="188" alt="Dark Adrenaline Teaser 1" url="/wp-content/uploads/2011/12/da-teaser1.jpg" videourl="http://www.youtube.com/watch?v=zPrU7dSb8N8" titleoverlay="yes"

    This works fine in the post and on the news page etc.

    As soon as I use a slider shortcode (say on the homepage to show the lastest news) I can get a broken image (150/150px), that if I click on WILL open the lightbox/video.  Looking at the source shows:

    img src="http://mirage/wp-content/themes/DynamiX/lib/scripts/timthumb.php?h=150&w=150&zc=0&src=http://www.youtube.com/watch?v=zPrU7dSb8N8" alt="Dark Adrenaline  Teaser 1 Released" width="150" height="150"

    In comparison here is the source for a post that is using an imageeffect to point to a image lightbox (which is working):

    img src="http://mirage/wp-content/themes/DynamiX/lib/scripts/timthumb.php?h=150&w=150&zc=0&src=/wp-content/uploads/2011/12/40498.jpg" alt="Darkest Adrenaline Limited Edition Box Set" width="150" height="150"

    It looks to me like the timthumb.php isn't referencing the image URL for links in the slide for posts that have a lightbox link to videos?

    Andy
    Andy
    Keymaster

    Hi Matt,

    Can you post a link so I can what is happening?


    Matt Wrycraft
    Participant

    Hi Andy

    I can't at the moment because I'm doing all my development work on a MAMP install on my laptop.  Would screenshots help? 

    Andy
    Andy
    Keymaster

    Hi Matt,

    I can't see why you would get that issue – I don't think screenshots would make a difference, the broken image – is that the path to the da-teaser1.jpg if you view the source code or inspect element (using chrome). 


    Matt Wrycraft
    Participant

    Sorry Andy, I made a mistake in my original post. The source code for the original (working) post should actually be:

    img src="http://mirage/wp-content/themes/DynamiX/lib/scripts/timthumb.php?h=188&w=231&zc=0&src=/wp-content/uploads/2011/12/da-teaser1.jpg" alt="Dark Adrenaline Teaser 1" width="231" height="188"

    As you can see, they src= da-teaser1.jpg file.

    In the reference to the post on the home page, that is using a shortcode, the same source is:

    img src="http://mirage/wp-content/themes/DynamiX/lib/scripts/timthumb.php?h=&w=&zc=0&src=http://www.youtube.com/watch?v=zPrU7dSb8N8" alt="Dark Adrenaline  Teaser 1 Released" width="" height=""

    it looks like the timthumb script is ignoring the imageeffect preview image(da-teaser1.jpg) and directly referencing the youtube video, when referenced by the postgallery_slider. 

    As a reminder the actual code in the original post is:

    imageeffect type="lightbox"  align="alignleft" width="231"  height="188" alt="Dark Adrenaline Teaser 1" url="/wp-content/uploads/2011/12/da-teaser1.jpg" videourl="http://www.youtube.com/watch?v=zPrU7dSb8N8" titleoverlay="yes"

    and the code on the homepage (where the image isn't working is:

    postgallery_slider content="textimage" lightbox="yes" categories="General News" undefined id="0" height="400" sortby="date" orderby="DESC" limit="6" timeout="10"/

    Andy
    Andy
    Keymaster

    Ok,

    I'll test out a few variations of the slider gallery with lightbox etc and see if I can replicate this. I've not come across it before so not sure if maybe the timthumb script is just misbehaving on a local server. 


    Matt Wrycraft
    Participant

    Thanks Andy, your support is very much appreciated! 🙂 

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.