The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Hacking Polaroid Plugin (5 posts)

  1. smsulliva
    Posted 5 years ago #

    I am trying to get the polaroid plugin to give you the option of using the post_content field as a url link.
    If the post_content field has a URL in it then when you click on the polaroid image it opens up a new page to the url. if the post_content doesn't begin with http:// then it defaults to lightbox.

    Here is the polaroid_gallery.php file that I have modified. I have put comments in the file to show what I changed.

    Anyways, I do have clicked links but now it shows two of the same images and when you click the one that links out it just hangs. I figured when I removed the polaroid-gallery-item class the clickable link doesn't hang..
    Here is the code:

    [Large code excerpt removed by moderator per forum rules. Please use the pastebin for all large code excerpts. It works better anyway.]

  2. smsulliva
    Posted 5 years ago #

    Sorry about that. Here is the code link on pastebin.

  3. smsulliva
    Posted 5 years ago #

    Correction.. I removed the above link. I fixed the duplicate image problem but my image that have a link in the post_content field still just hangs when you click it. The code is here.

  4. smsulliva
    Posted 5 years ago #

    Can anybody tell me why the link hangs when I click on the image. :)

  5. AlyGreen
    Posted 5 years ago #

    Hey, did you end up figuring this out? I want to do the same thing (link image to post), and it's driving me crazy. I tried using the code you posted and couldn't get it to work.

Topic Closed

This topic has been closed to new replies.

About this Topic