Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthornoarchal
    • CommentTimeMar 11th 2006
     
    searched but didn't see a post about this.

    i would like to add captions underneath the image when you click on it from the thumbnail page. i don't really like just having it as the alt tag. i would rather have it displayed underneath the image as well.

    http://1919hemphill.org/gallery is my new gallery.

    thanks a lot in advnace!
    • CommentAuthorT2
    • CommentTimeJun 16th 2006
     
    noarchal,
    In gallery.php around line 199 (I think), look for
    <table style="width: 100%;">
    <tr>
    <td>
    <h2 class="date">'.date($config["date_format"],$date_taken).'</h2>
    </td>
    <td style="text-align: right;">
    <h2 id="picture_caption">';

    $output .= (trim($row["caption"]) != '') ? stripslashes($row["caption"]) : '';

    $output .= '
    </h2>
    </td>
    </tr>
    </table>';
    Copy this code and paste it right after this (a little further down the page):
    <div id="picture-holder">
    <a accesskey="v" href="'.$config["baseurl"].'images/'.$row["path"].'">'.$imgtag.'</a>
    </div>';

    $output .= '

    I'm going by memory here, but this should do it.

    Regards,
    T2