About this topic

  • Posted by davedr 2 years ago. There are 13 posts. The latest reply is from davedr.
  • This topic is resolved
  1. Hi Byron,

    I'm having fun getting Extend installed and working. I was wondering if there was a way to automatically assign a category (and sub category and maybe even sub-sub category) to posts created through Extend's feature of adding a new photo as a post.

    Also, is there a way to display the data collected through custom forms in a custom layout page?

    Thanks!

  2. Hi Dave,

    On categories, yes: in addition to the category dropdown that you can put in a custom form with [post_cat], you can use as many hidden input fields as needed to automatically add all of the categories you want:

    <input type='hidden' name='bwbps-post-cats[]' value='56' />

    The value is the ID of the category.

    On displaying collected data, yes: so part of the beauty of PhotoSmash is that it is a pretty awesome (if I can be so biased) form engine. But people tend to think of it as solely a Photo Gallery. Say you wanted to do a contact form, you could create a gallery that would collect your data. Build custom fields for it, build a custom form for it, tell it to allow "no-image" submission...meaning that it wouldn't require an image. Then you could display the data in a custom layout...you could build a straight table display, or really any display you want. The custom layout, you would tell photosmash what you wanted a single record (and optionally, what you'd like alternating records to look like), then it would display the data...just don't include the [image] or [thumb] field, and it won't show a picture ;-)

    BB

  3. So....

    I'm using the "Category Drop Down - drop down of all WP categories" on the custom fields page and when uploading I get the dropdown with all of the categories, subcategories, etc. When I upload a photo and caption, then publish it, and go to the category, my post (with my photo) isn't there. Also, when I check the post in the editor, it is only marked as "uncategorized".

    What am I doing wrong?

  4. Dave,

    Do you have a URL I can take a look at the form on? Alternatively, you can post the form code here and I can reproduce on my end.

    Here's the code for a quick custom form I threw together to test (this should work fine):

    [image_select]
    Caption: [caption]
    [post_cat single_select=true]
    [submit]

    [loading]
    [message]

    My shortcode to show that form is:
    [photosmash id=5 form='test_form' create_post='image_post']

    BB

  5. Here's what I had (Basically just pulled several of your tags in from the right "help bar" you've included:

    <h2>[category_name]</h2>
    [image_select] - image file selection field<BR>
    [image_select_2] - a 2nd image file selection field<BR>
    [allow_no_image] - allows you to upload without a selected image<BR>
    
    [caption] - Caption<BR>
    [caption_2] - caption for the 2nd image<BR>
    
    [post_cat] - dropdown of categories<BR>
    
    [loading] - 'loading' image<BR>
    
    [submit] - 'submit' button || [done] - 'done' button to hide form<BR><BR>
    [message] - display ajax messages<BR>
    <HR>
    [thumbnail] - displays the returned thumbnail<BR>
    [thumbnail_2] - displays thumbnail for 2nd image<BR>
    
    [preview_post] - display Preview Post links (PhotoSmash Extend only)<BR><BR>
  6. I tried your code above and it seems to work and upload ok, but it's not categorizing the image post per the dropdown in the upload window.

    My site is here: http://hiddenmickeypedia.com/

    Look at the very top of the page. I have two links up there: "galleries" and "upload a mickey". "Upload a Mickey" uses your code from above. Uploads fine, but doesn't categorize. "Galleries" page just lists links to the gallery pages. Images uploaded from here are working ok but the categories are not placed at all.

  7. Dave,
    It looks like the category dropdown has a weird name: bwbps_HMcatname

    Any ideas where that is coming from? It's looking for bwbps-post-cat in the upload handler code.

    BB

  8. Dave,

    Are you using the Category Drop Down from the Custom Fields or are you using the [post-cat] tag (which is a standard field)?

    The Custom Field category drop-down has been superseded by [post-cat].

    BB

  9. Thanks for your continued help on this Byron. That pending Amazon GC is proving it's worth. ;)

    I got rid of the bwbps_HMcatname and am just using your code now on the "Upload a Mickey" page. Still not categorizing. Also, it doesn't seem to be adding the photos to posts any more.

    Do you think I should start over... eliminate everything and create from scratch?

    I made your account an admin in case it's worth you poking around inside. It's a fresh WP install with no live traffic, so I'm not too worried about it.

  10. Cool...that will help! I'll take a look tonight.

    BB

  11. Ok, Dave...you're all set. The problem was that in your upload form shortcode, you were referencing the layout that I used in my shortcode (which doesn't exist in your site). I switched it to Test1, and now all is well.

    I made a few other tweaks while in there, like a post preview (you have to set your members to default to Contributors or they won't be able to see the previews...wp role rights). And a [thumbnail]...both to the upload form.

    So, I tweaked shortcode and upload form, and that was it.

    Cheers,
    Byron

  12. Don't forget to take me off admin ;-)

    BB

  13. YAY! You did such a great job that I'm revoking your admin rights. :)

RSS feed for this topic