-
Author
-
December 28, 2013 at 21:10 #8876frien337Participant
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!
December 31, 2013 at 19:04 #8940AbeKeymasterHi,
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 thatHi 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.January 12, 2014 at 21:17 #9608frien337ParticipantHI 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,
RyanJanuary 14, 2014 at 10:37 #9687AbeKeymasterI 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.January 14, 2014 at 12:46 #9714frien337ParticipantHi 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 -
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.