• Resolved hoomix

    (@hoomix)


    Hi
    As always, thanks for this awesome app.
    When I load the album. Then I forever want to put in the post,in the WPPA+ Shortcode Generator, I have spent a long time until I was loading my new album. Is any way? The pitch change in The Album(s) to be used: at The first ID number, then the name of the album?
    See this link:http://i.imgur.com/VJ8gDNR.png I mean, this is the picture I showed.If the ID number instead of the name of the album Album
    The new album will be uploaded easily finds.There is no way to change the location of the album name and the album ID?

    https://ww.wp.xz.cn/plugins/wp-photo-album-plus/

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

    (@opajaap)

    I will change it in the next version like this:

    In the shortcode generator: If Table IX-B4: ‘Album sel hierarchic’ is ticked, the album sequence in the selection box is alphabetic to the names of the albums.
    If the box is UNticked, the album sequence is by descemding timestamp ( i.e. latest created/modified/uploaded album at the top ).

    This way it was designed initially.

    Thread Starter hoomix

    (@hoomix)

    I hope this changes soon do. but now can not change something in CSS at fix it?
    But the next question.
    I’ve used before NextGen ,How can I convert my albums NextGen to WPPA+?

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Edit wppa-tinymce-shortcodes.php line 77:

    // Prepare albuminfo
    	$albums = $wpdb->get_results( "SELECT <code>id</code>, <code>name</code> FROM <code>&quot;.WPPA_ALBUMS.&quot;</code> ORDER BY <code>timestamp</code> DESC", ARRAY_A );
    	if ( wppa_switch( 'wppa_hier_albsel' ) ) {
    		$albums = wppa_add_paths( $albums );
    	}
    	else {
    		foreach ( array_keys( $albums ) as $index ) $albums[$index]['name'] = __( stripslashes( $albums[$index]['name'] ) );
    	}
    	$albums = wppa_array_sort( $albums, 'name' );

    Change to:

    // Prepare albuminfo
    	$albums = $wpdb->get_results( "SELECT <code>id</code>, <code>name</code> FROM <code>&quot;.WPPA_ALBUMS.&quot;</code> ORDER BY <code>timestamp</code> DESC", ARRAY_A );
    	if ( wppa_switch( 'wppa_hier_albsel' ) ) {
    		$albums = wppa_add_paths( $albums );
    		$albums = wppa_array_sort( $albums, 'name' );
    	}
    //	else {
    //		foreach ( array_keys( $albums ) as $index ) $albums[$index]['name'] = __( stripslashes( $albums[$index]['name'] ) );
    //	}

    You can import nextgen galleries on the Photo Albums -> Import admin screen.

    1. Select: Local and press the Set local / remote button ( if not yet set to local ).
    2. Select at ‘Import photos from’ — Ngg Galleries — [galleryname].
    3. Do not select an album and leave the checkboxes checked:
    [] Import into album [galleryname].
    [] Use backup if available.
    4. Press the ‘Start Ajax’ button.

    Thread Starter hoomix

    (@hoomix)

    hi
    Both CSS code you gave me are the same,Does not change.I see to Editing wp-photo-album-plus/wppa-tinymce-shortcodes.php (inactive)
    Select plugin to edit:
    // Prepare albuminfo
    $albums = $wpdb->get_results( “SELECT id, name FROM ".WPPA_ALBUMS." ORDER BY timestamp DESC”, ARRAY_A );
    if ( wppa_switch( ‘wppa_hier_albsel’ ) ) {
    $albums = wppa_add_paths( $albums );
    }
    else {
    foreach ( array_keys( $albums ) as $index ) $albums[$index][‘name’] = __( stripslashes( $albums[$index][‘name’] ) );
    }
    $albums = wppa_array_sort( $albums, ‘name’ );
    …………………………………………………..
    CSS code that you gave me, I replaced I was faced with this change
    http://i.imgur.com/dZQDsJ1.png
    To test that it works or not. I’ve uploaded a new album.
    I encountered the same problem again.

    View post on imgur.com

    Thread Starter hoomix

    (@hoomix)

    now i change CSS so and fix it.

    // Prepare albuminfo
    $albums = $wpdb->get_results( “SELECT name, id FROM ".WPPA_ALBUMS." ORDER BY timestamp DESC”, ARRAY_A );
    if ( wppa_switch( ‘wppa_hier_albsel’ ) ) {
    $albums = wppa_add_paths( $albums );
    }
    else {
    foreach ( array_keys( $albums ) as $index ) $albums[$index][‘id’] = __( stripslashes( $albums[$index][‘id’] ) );
    }
    $albums = wppa_array_sort( $albums, ‘id’ );
    —————————————————————–
    Now the name of the album and then Id number is.
    Albums are listed in order of ID number, not the name of an album.The new album was uploaded easily find you on the list.

    Thread Starter hoomix

    (@hoomix)

    But I’m almost 300 albums uploaded by NextGen.
    It is very hard to WPPA+ converted a rebound albums.
    Procedure that all Albums suddenly turned to WPPA+?

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    The shortcode generator:

    I patched it.

    De-activate and delete the plugin, then re-install as if it was a new plugin.
    You will loose nothing.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    If not already, fixed in 5.2.2

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘change something in WPPA Shortcode Generator’ is closed to new replies.