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+?
Edit wppa-tinymce-shortcodes.php line 77:
// Prepare albuminfo
$albums = $wpdb->get_results( "SELECT <code>id</code>, <code>name</code> FROM <code>".WPPA_ALBUMS."</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>".WPPA_ALBUMS."</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+?
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.
If not already, fixed in 5.2.2