This topic has 5 replies, 2 voices, and was last updated 10 years by frien337.

  • Author
  • #8876
     frien337
    Participant

    Hi Support,

    Can you tell me where the code/page for changing a photo’s visibility on upload is located? Basically the code/page part that generates the image options when a person uploads a photo such as description, visibility options, privacy options, etc.

    Thanks!

    #8940
     Abe
    Keymaster

    Hi,
    This is the file: wp-content/themes/sweetdate/lib/bp-album/includes/bpa.screens.php
    and the function that handles the edit screen: bp_album_screen_edit_content()
    You need PHP knowledge to change that

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #9608
     frien337
    Participant

    HI Abe,

    I tried to edit that file but i don’t see any changes taking place on the front-end. For example, I removed the ability to set the privacy by deleting this code:


    <p>
    <label><?php _e('Visibility','bp-album') ?></label>

    <?php foreach($priv_str as $k => $str){
    if($limit_info[$k]['enabled']) { ?>

    <label><input type="radio" name="privacy" value="<?php echo $k ?>" <?php
    if($limit_info[$k]['current']) echo 'checked="checked" ';
    if (!$limit_info[$k]['current'] && !$limit_info[$k]['remaining'])
    echo 'disabled="disabled" />'.$str.' '.__( '(limit reached)', 'bp-album' );
    else
    echo '/> '.$str;
    ?></label>

    <?php }} ?>
    </p>

    However, the options still show on my page. All caches are disabled/cleared, etc.

    Thanks,
    Ryan

    #9687
     Abe
    Keymaster

    I did just that end if I am on the edit page of an image it works, example /members/admin/album/picture/1/edit/

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #9714
     frien337
    Participant

    Hi Abe,

    I did some more testing and I found that it does work for me if I edit a picture, however, the options still show when I want to upload a new picture (see url “members/admin/album/upload/”). which bit of code handles the uploading of a photo?

    Thanks,
    Ryan

    #9716
     frien337
    Participant

    Thanks Abe,

    That worked perfectly 🙂

Viewing 6 posts - 1 through 6 (of 6 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?