WordPress.org

Ready to get started?Download WordPress

Forums

Front-end Editor
[resolved] editable image problem (10 posts)

  1. youngmicroserf
    Member
    Posted 3 years ago #

    Is this a utilization mistake or is something not working?

    I'm trying to create an editable image on a custom post type. The image is on a different server, the ID comes from the WP database. This is the code I'm using

    editable_image('$image_id', 'http://not_WP_server.tld/userimages/'.$image_id.'.jpg');

    Using this code, the image gets output ok, but clicking on it will not call the upload box.

    Am I doing something wrong?

    Thanks!

  2. scribu
    Member
    Plugin Author

    Posted 3 years ago #

    Try the development version. If it still doesn't work, read the FAQ.

  3. youngmicroserf
    Member
    Posted 3 years ago #

    Tried the development version, read the FAQ (well, I had before, that is where I got the code that I'm using), but this issue persists. I wonder if it could be a JS error, since clicking on the element doesn't cause any reaction in firebug, so I didn't really know where to start looking for possible problems that may cause this.

    This is the code that is output by the editable_image function and the code above -

    <img id='1180194155' src='http://not_WP_server.tld/userimages/1180194155.jpg' />

    Maybe you'll have another idea...

    thanks!

  4. scribu
    Member
    Plugin Author

    Posted 3 years ago #

    Ah, then it's a permission problem. You have to have the 'edit_themes' capability.

  5. youngmicroserf
    Member
    Posted 3 years ago #

    Scribu, thanks - I had the capability (admin). Didn't work...

  6. youngmicroserf
    Member
    Posted 3 years ago #

    [duplicate removed]

  7. scribu
    Member
    Plugin Author

    Posted 3 years ago #

    In WP Admin -> Settings -> Front-end Editor, do you have "Theme images" checked?

  8. youngmicroserf
    Member
    Posted 3 years ago #

    Scribu,

    oooooops. facepalm. Sorry. Yeah. Thought I had activated all the fields, but apparently the right column of checkboxes wasn't actually activated. Since I thought I did that, I didn't even think of the most obvious thing to check. Works now. Perfect!!! Thanks man!

  9. jayc
    Member
    Posted 3 years ago #

    Running multisite 3.0:

    editable_images() works when I'm logged into site as admin, but not as siteowner. Have theme images checked - Any pointers appreciated.

    Thanks.

  10. scribu
    Member
    Plugin Author

    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic