Twitter

Sponsors

By default the NextGen gallery plugin for WordPress displays images by their gallery id and filename. We find it hard to find our desired image in galleries with numerous images based on filename. Most of the time our filenames have no meaning. However, a simple change to a source file will display the description in the selection dropdown menu making searching much easier.

Note: This method depends on having descriptions for your images. Obviously, if you do not fill in descriptions then your dropdown menu is going to display blank listings. Manage galleries allows you to edit numerous details of your images including the description.

We are looking for a file named window.php which is inside the tinymce directory under the admin root.

Open the file in your text editor of choice and navigate to the section that starts with

<!– single pic panel –>

. There will be a second

<!– single pic panel –>

at the end of the section.

All we need to do is to change the id and filename to description. Alternatively, you could use the alttext property instead of description ($picture->alttext).

Here is the original code.

foreach($picturelist as $picture) {
    echo . $picture->pid . ‘ – ‘ . $picture->filename.."\n";
}
 

Here is the modified code.

foreach($picturelist as $picture) {
    echo ‘ ‘. $picture->description .."\n";
}
 

Keep in mind that you are editing a plugin directly. This means that you will need to repeat this step whenever you update your NextGen gallery plugin.

Freecycle™ currently has over 6,827,000 members across the globe. A non-profit movement / organization of people giving and getting items. People passionate about finding homes for items rather than seeing them end up in the landfill.

Using Freecycle is truly simple. The entire mechanism relies on simple email. When you have something to offer, you send an email to the group. See something you want? Just send an email to that person.

We love Netbeans but like many Open Source projects, they release new versions on a regular basis. The community is also very active in fixing bugs. You can report bugs and download a nightly build as soon as the problem is fixed. Each download always installed into its own directory. In the beginning this bothered us because we would end up with many versions of the application installed on our system. In the end, this is in fact a very good thing.

top