WordPress.org

Ready to get started?Download WordPress

Forums

WP Photo Album Plus
[resolved] Help required for photo name & few enhancements (9 posts)

  1. crazycolour
    Member
    Posted 1 year ago #

    First of all I would like to thankful for the great plugin & support.

    1) I am change the following code in the wppa-album-admin-autosave.php file

    <input type="text" style="width:100%;" id="pname-<?php echo $photo['id'] ?>" onchange="wppaAjaxUpdatePhoto(<?php echo $photo['id'] ?>, 'name', this); wppaPhotoStatusChange(<?php echo $photo['id'] ?>); " value="<?php echo esc_attr(stripslashes($photo['name'])) ?>" />

    to

    <input type="text" style="width:100%;" id="pname-<?php echo $photo['id'] ?>" onchange="wppaAjaxUpdatePhoto(<?php echo $photo['id'] ?>, 'name', this); wppaPhotoStatusChange(<?php echo $photo['id'] ?>); " value="<?php echo esc_attr(stripslashes($albuminfo['name'] + " | " + $photo['id'])) ?>" />

    so that my default photo name should be AlbumName | Photo ID

    but in the photo name I am getting only | PhotoID

    2) I also tried to change the code to have the description of one photo to be copied for all the photos in the album, but i was not able to do it, is there any possible to copy the description of one photo to all the photos in the album

    3) Is there any possible to create a album in the upload photos section?

    4) Is there any possible to have Left & right button in the slideshow? If possible let me know how to go about it.

    Thanks in advance.

    http://wordpress.org/extend/plugins/wp-photo-album-plus/

  2. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    1). $albuminfo is not known in function wppa_album_photos($id).
    Add global $albuminfo; both just below function wppa_album_photos($id) { and function _wppa_admin() {.
    I did not test it, but it should work.

    2). There is a New photo description default ( Photo Albums -> Settings admin page Table IX-B3,4 ). This works for new uploads only, but there are plans to make an action to re-apply this onto all photos in a particular album. I.e. this is a planned future enhancement.

    3). No. You must have Album admin rights to create an album in the album admin page, or set Table IX-B6. ( Check also VII-B1: Owners only ).

    4) Use BBB's ( Table II-B13 ). They are invisible, watch the tooltip on hovering the image.

  3. crazycolour
    Member
    Posted 1 year ago #

    Thanks for your support.

    3 Q) Is there any possible to create a album in the upload photos section?
    3 A). No. You must have Album admin rights to create an album in the album admin page, or set Table IX-B6. ( Check also VII-B1: Owners only ).

    But I need a button in the wppa-album-admin-autosave.php file after

    <input type="button" class="button-secundary" style="color:blue; width:90%" onclick="if (confirm('<?php _e('Are you sure you want to clear the ratings in this album?', 'wppa') ?>')) wppaAjaxUpdateAlbum(<?php echo $edit_id ?>, 'clear_ratings', 0 ) " value="<?php _e('Reset ratings', 'wppa') ?>" />

    where button on click should go to the upload form

    <input type="button" class="button-secundary" style="color:blue; width:90%" onclick="if (confirm('<?php _e('Are you sure you want to go to upload photo page?', 'wppa') ?>')) wppa_page_upload; " value="<?php _e('Go to Upload photo page', 'wppa') ?>" />

    Button it is not happening.

    4) I need the visible left & right buttons instead of invisible button.

    Please let me know the changes that i need to do.

    Thanks for your support.

  4. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    3) is not so simple as you think, but i will add this functionality in a near version.

    4) you may modify .../wp-photo-album-plus/images/bbbl.png and bbbr.png

  5. crazycolour
    Member
    Posted 1 year ago #

    Thanks for your update.

    After modifying the images bbbl.png & bbbr.png, The Left & right arrow which i am using is getting stretched or squeezed, Please help me in this regards.

    5) Enhancement to replace the image

    6) is there any possibility to display number of view for the image and no of view for the album

    7) can we shared a sub-album for more then one main parent album
    Ex. Suppose there are 5 albums i want the 4th album (sub-album of 1st album) should be displayed under 1st album and also in the 3rd album (another parent album)

  6. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    5) I made some code changes (4.9.1):
    wppa-slideshow.php line 181 and 182 become:

    $wppa['out'] .= wppa_nltab().'<img id="bbb-'.$wppa['master_occur'].'-l" class="bbb-l bbb-'.$wppa['master_occur'].'" src="'.wppa_get_imgdir().'bbbl.png" style="background-color: transparent; border:none; z-index:83; position: absolute; float:left;  top: 0px; width: '.($wppa['slideframewidth']*0.5).'px; height: '.$wppa['slideframeheight'].'px; box-shadow: none; cursor:default;" onmouseover="wppaBbb('.$wppa['master_occur'].',\'l\',\'show\')" onmouseout="wppaBbb('.$wppa['master_occur'].',\'l\',\'hide\')" onclick="wppaBbb('.$wppa['master_occur'].',\'l\',\'click\')" />';
    $wppa['out'] .= wppa_nltab().'<img id="bbb-'.$wppa['master_occur'].'-r" class="bbb-r bbb-'.$wppa['master_occur'].'" src="'.wppa_get_imgdir().'bbbr.png" style="background-color: transparent; border:none; z-index:83; position: absolute; float:right; top: 0px; width: '.($wppa['slideframewidth']*0.5).'px; height: '.$wppa['slideframeheight'].'px; box-shadow: none; cursor:default;" onmouseover="wppaBbb('.$wppa['master_occur'].',\'r\',\'show\')" onmouseout="wppaBbb('.$wppa['master_occur'].',\'r\',\'hide\')" onclick="wppaBbb('.$wppa['master_occur'].',\'r\',\'click\')" />';

    if you patch as above, or wait until 4.9.1, you can add to a css:

    .bbb-l, .bbb-r {
    height: 32px !important;
    width: 32px !important;
    top: 150px !important;
    }

    This will overrule the sizes and make them static.

    6) I do not understand the question

    7) No, it is like a sub directory, can not have 2 parents. Make a copy of the album.

  7. crazycolour
    Member
    Posted 1 year ago #

    Thanks for your update

    6) I do not understand the question

    Please check this plugin Post Views Count which displays the total view per post, similar to that one i need to display total number of views for each image.

  8. crazycolour
    Member
    Posted 1 year ago #

    Please provide the update for the above question

  9. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    Not implemented

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic