About this topic

  • Posted by luv_tahoe 5 months ago. There are 2 posts. The latest reply is from byron.
  • This topic is resolved
  1. Hello,
    Just found this plugin and really like it!

    How can I reference custom fields so that I can include them in the popup (I'm using thickbox) after clicking a thumbnail?

    For instance... including a description, price, etc below the image caption

    on line 1756 of bwb-photosmash.php, I modified the code to read:
    (my custom field is image_description)

    if($img){
    $imgtitle = str_replace("'","",$img['image_caption']);
    $imgdesc = str_replace("'","",$img['image_description']);
    $imgtext = $imgtitle.' - '.$imgdesc;
    $ret = "<img src='".PSIMAGESURL.$img['file_name']."'".$img['imgclass'] ."alt='".$imgtext."' />";
    }

    No success, though. Any ideas?

  2. Hi luv_tahoe,

    I think you can accomplish what you're trying with the standard plugin. So, I'd recommend that you start fresh with the unaltered plugin. What you want is a Custom Layout...you can build these in the Layouts Editor (first have to turn on Advanced menu options in PhotoSmash Settings / Advanced). In the layouts editor, take a look at the preloaded Std_Widget layout to get a sense of how to build a custom layout. Then, you can use your custom fields like:

    title='[image_description] - [image_price]'

    I think title in the href is how you get stuff to show up in the Thickbox popups.

    Hope that helps,
    Byron

RSS feed for this topic

Reply

You must log in to post.