I figured it out by myself.
If someone needs to know, here is how I did it. But words of warning at first. I don’t know anything about php. I just tried things and eventually it worked out. So if something goes wrong with your gallery, pls don’t blame me.
Here is tutorial.
1. Open nggfunctions.php to your text editor
2. Find the place where it says “function nggCreateGallery”
3. Few lines below it says
global $nggRewrite;
Change it to
global $wpdb, $nggRewrite;
4. After
‘$ngg_options = nggallery::get_option(‘ngg_options’);’
add
$galleryID = $wpdb->escape($galleryID);
$gallerycontent = $wpdb->get_row("SELECT * FROM $wpdb->nggallery WHERE gid = '$galleryID' ");
5. Find
if (is_array($picturelist)) {
$out ='<div class=”ngg-galleryoverview” id=”ngg-gallery-‘. $galleryID .'”>’;
and add in the middle
<font style="color:#fff">'.$gallerycontent->title.'</font>
so that it looks like this:
if (is_array($picturelist)) {
$out = '<font style="color:#fff">'.$gallerycontent->title.'</font><div class="ngg-galleryoverview" id="ngg-gallery-'. $galleryID .'">';
6. Save the changes.
You can change to font color/styling to fit your website design. The title of the gallery should now show up on the top of your gallery thumbnails. If it doesn’t show up, or something goes wrong, don’t ask me because I honestly don’t have the faintest idea how it works. This all is just trial and error to me.
– T –