Support » Plugin: WP Photo Album Plus » Add #comten,0,12 to thumbnail echo code

  • Resolved Jenny

    (@enigma666666)


    Hi there,

    I still need to get comments and ratings to appear on the pop up slider image of my thumbnail profile albums. If I add #comten,0,12 to existing echo code, it throws an error of No photos found matching your search criteria. and album does not appear anymore.

    I have tried adding the short code in the 4 ways as shown below, but obviously this is not correct.

    global $bp;
    echo do_shortcode( '[wppa type="thumbs" album="#owner,#comten,0,12'.$bp->displayed_user->userdata->user_login.'"][/wppa]' );
    ?>
    global $bp;
    echo do_shortcode( '[wppa type="thumbs" album="#comten,0,12'.$bp->displayed_user->userdata->user_login.'"][/wppa]' );
    ?>
    global $bp;
    echo do_shortcode( '[wppa type="thumbs" album="#owner,#comten,0,12'.$bp->displayed_user->userdata->user_login.'"][/wppa]' );
    ?>
    global $bp;
    echo do_shortcode( '[wppa type="thumbs" album="#owner,#comten,0,12,'.$bp->displayed_user->userdata->user_login.'"][/wppa]' );
    ?>

    If you can point me in the right direction please.

    https://wordpress.org/plugins/wp-photo-album-plus/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jacob N. Breetvelt

    (@opajaap)

    You can not combine #owner and #comten, They both indicate a certain different type of special selection.

    A #comten-type thumbnail can not show the ratings, a default thumbnail can not show the comments…

    What if i add the ratings ( number of and average value ) to the comten display ( optionally ) ? I mean in this kind of display

    We then still have to find out the users album id, to put into the shortcode, but that is not too difficult.

    If they have only one album:

    <?php
    global $bp;
    global $wpdb;
    $album = $wpdb->get_var( $wpdb->prepare( "SELECT id FROM ".WPPA_ALBUMS." WHERE owner = %s LIMIT 1", $bp->displayed_user->userdata->user_login ) );
    echo do_shorrtcode( '[wppa type="thumbs" album="#comten,'.$album.',12][/wppa]' );
    ?>

    If they have more albums, its a little more complex, but also doable.
    Try the above, to see if it works and if its usefull to add the ratings to it.
    Giving ratings will still be possible on slideshows only.

    Thread Starter Jenny

    (@enigma666666)

    Thank you, but unfortunately the code you gave, completely removes the user album from the user profile

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Perhaps there are no comments? It ( album=”#comten … ) only shows commented photos.

    Thread Starter Jenny

    (@enigma666666)

    That is correct. There are currently no comments or ratings, as the comment and rating functionality is not appearing on the pop-up slideshow image. I have ticked ratings and comments functionality in admin album settings.

    So I’m not sure why the ability to rate photos and comment on them, in the pop up slider image, does not appear. Currently only the image and custom fields appear on the pop up slider image. There is no visible functionality to comment or rate photos in the pop up slider. Maybe I am doing something wrong? I need for users to rate each others photos.

    It would also be great if rating results can appear on thumbnail image gallery, below the thumbnail image.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    pop up slider image

    Do you mean lightbox?

    Try the ‘Slideshow’ slideshow: either the slideshow link on the album cover, or from the thumbnail when Table VI-B2 is set to the fullsize photo in a slideshow. That is where commenting and rating takes place. Tick Table II-B7 and 10.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Table II-D4 shows rating results under default thumbnails.

    Thread Starter Jenny

    (@enigma666666)

    VI-B2 set to the fullsize photo in a slideshow fixed the problem, thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Add #comten,0,12 to thumbnail echo code’ is closed to new replies.