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

    (@opajaap)

    Edit album at frontend is at the top of the wishlist and will be implemented in approx a week.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Fixed 5.3.5 apr 28 2014 released

    Thread Starter giovpres

    (@giovpres)

    I’ve updated the plugin but I still not see the edit button in frontend, even enabling the checkbox in Table VII B 1.1 …

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    You need to be either the owner of the album or administrator, OR Table VII-D1 ( Owners only ) not checked, what i do NOT recommend!

    Thread Starter giovpres

    (@giovpres)

    I’m the album administrator but I can’t see the edit button, maybe you mean I can edit album name and description only while I mean edit names and descriptions of all photos of an album…

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Currently you need the wp role administrator, i will change that to the capability of wppa album admin.

    If you can edit plugins, you can patch it in wppa-common-functions.php around line 612:

    .
    	// See for given album data array or album number
    	else {
    
    		// Administrator has always access
    		if ( current_user_can('administrator') ) return true;
    
    		// If all albums are public
    		if ( ! wppa_switch('wppa_owner_only') ) return true;

    change to:

    .
    	// See for given album data array or album number
    	else {
    
    		// Album Administrator has always access
    		if ( current_user_can('wppa_admin') ) return true;
    
    		// If all albums are public
    		if ( ! wppa_switch('wppa_owner_only') ) return true;

    Thread Starter giovpres

    (@giovpres)

    I made this changes but nothing happeans, I tried to change my album in public, administrator, but the edit button still not appears…
    In my website, in gallery page I need to show three photos only, so I not using the album covers, I show three photos of an album and I need to edit them, I see the edit button appears for album cover only…

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Aha! You want it also on the thumbnail display…

    Edit wppa-boxes-html.php

    From line 28 it reads:

    .
    	elseif ($action == 'close') {
    		if ( ! $wppa['is_upldr'] ) {
    			wppa_user_create_html($wppa['current_album'], wppa_get_container_width('netto'), 'thumb');
    			wppa_user_upload_html($wppa['current_album'], wppa_get_container_width('netto'), 'thumb');
    		}

    Change to:

    .
    	elseif ($action == 'close') {
    		if ( ! $wppa['is_upldr'] ) {
    			wppa_user_create_html($wppa['current_album'], wppa_get_container_width('netto'), 'thumb');
    			wppa_user_upload_html($wppa['current_album'], wppa_get_container_width('netto'), 'thumb');
    			wppa_user_albumedit_html($wppa['current_album'], wppa_get_container_width('netto'), 'thumb');
    		}

    i.e. add one line:

    wppa_user_albumedit_html($wppa['current_album'], wppa_get_container_width('netto'), 'thumb');

    If this is what you want, tell me so and i will put it in the next version, so you can update when there is a new version. The return url may be a bit off, but that will be fixed in the next version ( too complicated to display here ).

    Thread Starter giovpres

    (@giovpres)

    Thank you, now I see the edit button but I can edit name and description of album only, I need to edit every photos too (like in slideshow, there it’s perfect)

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Ok, there will be an edit link ( like on the slideshow ) under the thumbnail if you are either admin or the owner of the photo and frontend edit is enabled and you are not blacklisted in version 5.3.7.

    Thread Starter giovpres

    (@giovpres)

    Now it’s wonderful! Thank you!!!!
    To be perfect still missing the Delete button…
    Thank you

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Delete button… In the next version. Promised…

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Edit button in album front-end’ is closed to new replies.