The following is additional/change bit of code in the PHP widget that change the navigation icon of my photoblog from graphic to thumbnail. The code get the next/previous post content, filter the nextgen gallery picture ID from the content, lookup the corresponding gallery ID and document name, look up the path from the gallery ID and finally construct the thumbnail url from the path and document name.
(more…)
This website have been upgrade to latest wordpress release in 2009. So there is a good start very everything new. The user experience this still same as the theme in wordpress 2.6 is still working in wordpress 2.7. The nextgen gallery have been update to ver 1.02 also. The highslide is working well with the new nextgen gallery and no modification is needed. The photo2post need some modification as the new nextgen have some changes in coding . The manage.php and mange-images.php need to have some modification. In manage.php, the following code is added right before the “case ‘import_meta’” line for the photo2post functionality:
(more…)
Got an article about tips on optimization wordpress, so I keep this link here for reference:
http://www.prelovac.com/vladimir/wordpress-optimization-guide
Update on Jan 6, 2009:
The gallery title display is fixed to work with language switcher with changes make to admin\album.php. Inside function getgallerycontainer(), add the following changes in red:
ID: ‘.$gallery->gid.’ || Title: ‘. apply_filters( ‘the_title’, $gallery->title) .’
<p><strong>’.__(‘Title’, ‘nggallery’).’ : </strong>’.apply_filters( ‘the_title’, $gallery->title).’</p>
The above addition make the gallery title pass thru the language switcher filter to display only the title in the selected language.
I have found that the nextgen gallery cannot display the bilingual gallery titles in the album view. Looking at the code in the nextgen gallery’s function.php, there is a filter missing for the display of gallery information. This bit of code is located near the end of function nggShowAlbum($albumID, $sortorder, $mode = “extend”). The following is the changes make to the code:
$out = apply_filters(‘the_content’, apply_filters(‘ngg_show_album_content’, $out, intval($albumID)));
return $out;
The bit of code in red is added so that the gallery information will be filtered by language switcher to make multi language display correctly.