ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Safecracker and Channel Images

March 23, 2012 11:20am

Subscribe [3]
  • #1 / Mar 23, 2012 11:20am

    pmerritt

    24 posts

    I wonder if anyone can help me with integrating Safecracker and Channel Images codes. I have a section on my website for viewers to upload their own photos. I’m using Channel Images to upload photos. I’d like to limit the photos the client sees to just the photos they’ve uploaded, but all the images that have been uploaded are appearing on the viewers page. I think Channel Images is supposed to automatically limit images by author, but I can’t get it to work and have not yet gotten a response from Channel Images. I’m wondering if there is a way to tag the photos with Safecracker in a way that Channel Images would recognize so that I could use that as a limiting factor. Here are my templates:

    1. Upload template:

    {exp:safecracker channel="photos" return="photos/ci_view/"}
    <input type="hidden" name="title" id="title" value="{username} photo upload">
    {field:my_images}
    <input type="submit" value="Submit">     
    {/exp:safecracker}


    2. View template

    {exp:channel_images:images paginate="bottom" sort="asc" limit="3"}
    <h3>Title: {image:title}</h3>
    <p><a href="http://scapezilla.com/dev/index.php/photos/ci_edit/{image:entry_id}"> Edit Title>></a><br />
    {image:url:default}</p>
    
    <p>Description: {image:description}<br />
    <a href="http://scapezilla.com/dev/index.php/photos/ci_edit/{image:entry_id}"> Edit Description>></a><br />
     <br />
    {/exp:channel_images:images}

    I’d appreciate any suggestions anyone has. Thanks!

  • #2 / Mar 25, 2012 8:44am

    Sean C. Smith

    3818 posts

    Hi pmerritt,

    I’m sorry that you are having trouble with Channel Images and SafeCracker. Unfortunately I do not have a license for Channel Images and thus am unable to test or help. I’m sure that the Channel Images guys will respond to your support request soon./

    Is there anything else I can assist you with?

    Sean

  • #3 / Apr 08, 2012 11:33am

    tylonius

    4 posts

    In the Channel Images field setup (Admin>Channel Fields>Your_Channel>Your_CI_Field), there is a setting on the second tab that allows you to limit the number of images that can be uploaded.

    By default, it is undefined, which allows for unlimited uploads.

    I hope that helps.

    Thanks,

    ty

  • #4 / Apr 09, 2012 9:08am

    pmerritt

    24 posts

    Thanks for the reply. Not sure I’m following exactly…I see that setting on the third tab of the field options. I think that’s what you are referring to. I will give it try and see if that has an effect. I never got a response from the Channel Images guys on whether there was a tag recognized by both Channel Images and Safecracker. I think maybe I was pestering them with too many questions.

  • #5 / Apr 09, 2012 5:29pm

    Shane Eckert

    7174 posts

    Hey pmerritt,

    I am going to move this over to the Community Help Forum where you will get more eyes on it.

    If CI support is a bit slow right now, the community here might be able to lend you a hand.

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases