About this topic

  • Posted by jadenblack 1 year ago. There are 4 posts. The latest reply is from byron.
  • This topic is not resolved
  1. Hi Byron,

    As with everyone around here, I'm very grateful for your contribution to the WP community! Thank you.

    I am building a site for an Art Bazaar retail event. Prospective artists apply to be in the show every year and submit an application. On the site, once they create an account, and fill out an application form, I want them to upload photos using PhotoSmash.

    I can use a custom post as part of the app process with the shortcode [photosmash]. This does a great job of creating a gallery and letting them upload photos.

    What I really need though is for the photo upload to be on a page, just like the other app steps. Then at the end I'm dynamically creating a post that contains static information of everything that is submitted as a persistent and consolidated view of the application.

    My problem occurs in that if I use the short code on a page, the new gallery is associated with that page, and not the post that is created at the end of the process. And I have found no way to transfer the gallery id when I dynamically create the post.

    I think there are a couple ways to go, but I have some questions that could make my work more painless. I was hoping you might have quick answers before I dig into the plugin files looking for gold :-)

    1. Is there a way to create a gallery in php, instead of just the shortcode on a post/page load? I'm thinking this could achieve questions 2 or 3 below.

    2. Is there a way to retrieve/save the gallery id upon creation?

    3. Is there a way to dynamically set or update the post id associated with a gallery?

    4. I wasn't able to find anywhere on your site a list of shortcode parameters. I've seen a few in post forums (author=id, etc) but does a list exist?

    5. If none of the above, what are you thoughts on retrieving gallery information based on title, author, etc. to determine the correct previously created gallery to display on a page or post?

    I'm not sure if this issue is beyond the scope of help on this forum, but any pointing in the right direction is greatly appreciated.

    Thanks, Jaden

  2. Hi Jaden,

    Sorry for the delay in answering.

    I think a lot of what you need could be solved by PhotoSmash Extend ($25 cost). Extend will allow you to create new posts for each image upload based on a very flexible layout that can include tags for creating new galleries as well. For the upcoming edition of PhotoSmash, I improved this by allowing galleries to be specified by name...so the gallery shortcode could look like [photosmash name="more_mages[post_id]"] in the layout for creating the new posts, and when it creates the new post it would like like: [photosmash name="more_mages21"]. But this improvement is only needed if you need more than one Gallery on the new page. The Current version of PhotoSmash and PhotoSmash Extend will let you create new posts and new galleries attached to and displayed on those posts.

    So, combining this capability with Custom Fields, you can create an application that will display virtually anything you want (see stlouie.com for an example)...pages with images, galleries, text, fields, forms, you name it.

    Let me know if that sounds like what you're looking for. Here's an oldish post on Extend: http://smashly.net/blog/photosmash-extend-is-nearly-ready/ It is actually ready today, but I'm not heavily promoting it as I'm still building out features/documentation.

    BB

  3. Hi Byron,

    Thanks for the info on this. I think I have everything working by just using the standard shortcode on a highly customized post template, then converting it back to a regular post at the end of the registration. That said, the extended version looks interesting and we will either purchase it or make a donations (to all plugins we are using) at the launch of the site, including to you.

    I've got a new problem however so I opened a new forum post about use SSL.

    Jaden

  4. Cool...thanks!

RSS feed for this topic