About this topic

  • Posted by jonh_mh 1 year ago. There are 4 posts. The latest reply is from byron.
  • This topic is not resolved
  1. Hey again Byron. :)

    Is it possible to call the users favorites on a different page?

    I have a custom profile page that shows the users pictures using a code from this post http://smashly.net/community/topic/add-author-galleries-to-custom-page#post-1042

    I wonder then if is possible to call the user favorites like in a similar way, so the "user pictures" and the "users favorites" would be shown on the users custom profile page?

    Cheers :)

  2. Try: [ photosmash gallery_type='favorites']

    You can load the shortcode up any of the other stuff that usually goes in (layout, images (as in # of images), etc).

    BB

  3. I haven't tried yet and will be able to do it just later on, but wouldn't this shortcode just show the current user favorites pictures?

    I was thinking something like I am logged in and then after clicking to see your profile, I would get your images and your favorite images...So I think I need a place in the code to insert the authors name like on this one.

    <?php

    $gallery_parameters = array( 'author'=> ###, 'gallery_type' => 'contributor' );
    show_photosmash_gallery( $gallery_parameters );

    ?>

    If I am wrong, please just ignore this message... Cheers!

  4. No, Jon, you're right. It would show the current user's images, but I think it gets that from the logged in User's ID, and nothing in the shortcode would let you see an authors favorites. There is a "Most Favorited" option, but that doesn't do it either.

    It will take some reworking. To make that happen.

    BB

RSS feed for this topic