About this topic

  • Posted by TJCreative 1 month ago. There are 6 posts. The latest reply is from byron.
  • This topic is resolved

No tags yet.

  1. Hi, I've got Photosmash installed on a client's Wordpress-powered site where they want visitors to upload photos into galleries, although I'm running into problems setting it up and would appreciate some help/advice.

    So far I've created a gallery for visitors to upload into, set the moderation level, set the thickbox stuff so the image appear nicely and added the shortcode onto a specific page where the gallery should be show - no problem.

    However, the client wants and overall gallery page where several galleries can be seen each containing photos of different events, all of which are open to uploading. So on the main 'PhotoSmash Settings' tab I set one page as a 'Gallery Viewer Page' and all the other gallery types to 'Photo Gallery' and they then appear on the main gallery page. All seems well.

    However, the thickbox effect has gone, and a little "Post" icon has appeared in the corner of every thumbnail. Why is this? I'd have thought that a 'Gallery Veiwer Page' would just be a portal into all the normal photo galleries. Why do I have to change all the galleries to 'Photo Gallery' - why can't they stay as 'Contributor Galleries'?

    Thanks

  2. Hi TJ,

    You can change the "Post" link on the Gallery Viewer Page by tweaking the Layout. Here's a write-up on the Custom Layout: http://smashly.net/photosmash-galleries/how-to/create-custom-layouts/

    When you click into a Gallery from the Gallery Viewer Page, then you should see the images from that gallery, along with the Add Photo link (thickbox).

    'Contributor Galleries' are virtual galleries whose images are selected from "real" galleries (Photo Galleries) for the particular Contributor being queried. You cannot upload to a Contributor Gallery. There have been some request for galleries that are specific to a User. There is not a feature like this at this time. You can simulate it if you get creative, but there isn't a gallery that actually holds the images by a specific contributor.

    The reason that the Gallery Viewer Page doesn't link to a page other than itself is that the placement of a Gallery within a post or page is done through the shortcode. While you can associate a gallery with a Post or Page, there is no guarantee that the post/page specified is the actual place where the gallery will be displayed. So, the only thing I could do was to give you a Gallery Viewer Page that links to itself and when you click in on a gallery, it displays that gallery on the same page.

    Here's the write-up on the Gallery Viewer from the Changelog:

    Added Gallery Viewer - in PhotoSmash Settings, you set which page you’d like the Gallery Viewer to show on (first setting under the Defaults tab). You can tweak the look and feel of the Gallery Viewer by adjusting Custom Layout “gallery_viewer” or by copying the code from that layout and creating your own, in which case you’ll need to specify your layout by using this shortcode in the Page you want your viewer to appear in: [ photosmash gallery_viewer=true layout='my_custom_layout' image_layout='image_view_layout'] The image_layout there is used for displaying images when they are called by the Photosmash image permalinks. Gallery Viewer doubles as index for your galleries…it only shows galleries that contain images, and it doesn’t show virtual galleries. It randomly selects an image from the gallery as the Cover image. You can change this in Gallery Settings. When you click on a gallery from the Gallery Viewer, it will display that gallery on the same page. You can control which layout is used to show the galleries on that page by using the shortcode and adding this attribute: gallery_view_layout=’my_custom_layout’ When that attribute is present, all galleries displayed on the gallery viewer page will use the layout you specify.

    Hope that helps,
    BB

  3. Hi byron, that's really helpful about the custom layouts, thanks. What I still don't understand is this: I add the shortcode [photosmash id=1] to a page and that gallery shows fine, with pagination, an 'add photo' link and the thickbox effect when you click on an image. But if I have multiple galleries and set a page as a gallery viewer, I would expect clicking on one of those galleries to show me the same as above, but now the thumbnails have borders and there's no thickbox.

    In short, why isn't: http://www.rockleyexperience.co.uk/latest-news/gallery/?psmash-gallery=1 the same as http://www.rockleyexperience.co.uk/latest-news/image-gallery/?

    Thanks again, Toby

  4. Hi Toby,

    The reason that they are different is that they are using 2 different layouts to show the gallery. In your gallery_viewer shortcode (if you're not using the shortcode to display it, then you will need to if you want to affect the layout the galleries are shown with), you should set gallery_view_layout = to the same layout that you're using here http://www.rockleyexperience.co.uk/latest-news/image-gallery/ . That should give you the same view.

    If you get both views of the gallery to use the same layout, you shouldn't need to do this, but if you're using a custom layout, you can make the Thickbox effect work by including class='thickbox' in the 'a href' tag for the link to the full-sized image.

    Cheers,
    BB

  5. I see. The code had a rel='lightbox' line but now I've added the thickbox effect it seems to be working ok. Thanks for your help.

  6. Welcome.
    BB

RSS feed for this topic

Reply

You must log in to post.