I am puzzled to find that I could not update the image title and description in the old nextgen gallery v1.0. After much investigation without sucess, I took the plunge and upgrade to the latest v1.10. As I have make some modification to the nextgen gallery code to suite my needs, upgrading to new version is really my last option. Wow, it works. Then I change the codes accordingly and everything seems to work fine now.
I have make one more modification to the nextgen gallery code to make the album display comply with langauage switcher plug in. It is just an addition of filter to the nggshowalbum() function in the nggfunction.php as follow:
$out = apply_filters(‘the_content’, apply_filters( ‘ngg_show_album_content’, $out, $album->id ));
(more…)
In order to make a rss feed for the photoblog, I need a plugin that could handle the single pic short code in nextgen gallery and turn out the image url in the rss feed. It turn out that the wp-piclens-plus plugin could do the magic. The following addition in red in the wp-piclens-plus mrss.php make the media rss feed of only photoblog post to include a thumbnail of the image so that it could work with services like photoring and vfxy. So, finally the following photoblog feeds works:
(more…)
In the hope of improving the google image ranking, I have changed the nextgen gallery code to make the single picture displayed via [SinglePic not found] short code to have post/image tags instead of image title. The following in blue is the additional bit of code in have added to nggfunctions.php inside nggSinglePicture function :
(more…)
A small project to add the fuction of cross posting from wordpress blog to other blog that accept email posting. The objective is cross post the photo blog portion of this website to Flickr. Therefore, I have started by search for plugin that provide this fucntion. It seems that there are only plugin that could do cross posting with text only. So, I select the post2mail plugin and start working on the modification.
The first thing is to add the capabilities to attached the photo to the email send out. The code include below in blue. Then add a filter to limit only post from photoblog category to be send out. This is a bit tricky as I cannot get the “get_the_category” fuction working. Instead, I have add a check on the post content to make sure it contain the ‘[singlepic=’ as a signiture for photob log post.
(more…)