WordPress.org

Ready to get started?Download WordPress

Forums

BuddyPress Album
code only for the owner (2 posts)

  1. simmonsstummer
    Member
    Posted 2 years ago #

    hello!
    how can i add a code under the image in the single file viewable only to the owner?
    thank you.

    http://wordpress.org/extend/plugins/bp-album/

  2. simmonsstummer
    Member
    Posted 2 years ago #

    i was tryng to do something like that... where user_id is the user logged in and the owner_id is the owner of the image... but seems it doesn't find the owner...

    <?php if ($user_id == $owner_id) {
        echo 'questa è una tua foto.';
    } else {
        echo 'questa non è una tua foto'.$user_id;
    }
    ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags