Support » Plugins » [Plugin: Custom Field Template] Fiile upload possibility

Viewing 8 replies - 1 through 8 (of 8 total)
  • Only in the textarea field, you can use media buttons. You can upload files through media buttons. Set mediaButton = true. The code is something like this.

    [Hidden Thought]
    type = textarea
    rows = 4
    cols = 40
    tinyMCE = true
    mediaButton = true

    neat. that is cool. i will have to try that

    if you just want to upload an image you could change it to:

    [Photo Upload]
    type = textarea
    rows = 1
    cols = 1
    mediaButton = true

    i´ve got a problem. i can get a textarea and file-buttons. selecting some media (im my case an img) is no problem with or without tinymce. i get it displayed in the custom field beneath a write panel, but i doesn´t show up, when calling the form with a shortcode. everything else shows up fine. any idea?

    solved

    1800collect

    (@1800collect)

    For some reason when I insert images the HTML still shows up. What am I doing wrong? All HTML shows up, but I don’t want it to.

    I currently have this in the single.php file

    $gallery_photos = htmlspecialchars(get_post_meta($post->ID, "gallery_photos", true));
    
    echo $gallery_photos;

    1800collect

    (@1800collect)

    Errr. I see what I did I had htmlspecialchars() wrapped around it. Duh!

    In the latest version of this plugin, I see there is the option for a file upload field.

    I’ve managed to get it to display and I’m able to browse to my local image file, but when I hit Save, the field is not added.

    Anything I’m missing? Here’s the lines I’ve added:

    [Image]
    type = file
    size = 35

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: Custom Field Template] Fiile upload possibility’ is closed to new replies.