coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: bit bit spears on February 17, 2004, 04:05:49 AM

Title: what do i need to edit
Post by: bit bit spears on February 17, 2004, 04:05:49 AM
what do i need to edit to move the picture information to show up next to the image, instead of below it? i just need to know what file/line(s) i need to edit. thanks!
Title: what do i need to edit
Post by: bit bit spears on February 24, 2004, 06:26:29 AM
*bump*
Title: what do i need to edit
Post by: bit bit spears on February 24, 2004, 11:52:44 PM
*bump*
Title: what do i need to edit
Post by: Casper on February 25, 2004, 12:28:15 AM
I think you need to edit this section in theme.php (default theme shown)

EOT;
// HTML template for intermediate image display
$template_display_picture = <<<EOT
        <tr>
                <td align="center" class="tableb" height="{CELL_HEIGHT}" style="white-space: nowrap; padding: 0px;">
                        <table cellspacing="2" cellpadding="0" style="border: 1px solid #000000; background-color: #FFFFFF; margin-top: 30px; margin-bottom: 30px;">
                                <tr>
                                        <td>
                                                {IMAGE}
                                                {ADMIN_MENU}
                                        </td>
                                </tr>
                        </table>
<!-- BEGIN img_desc -->
                        <table cellpadding="0" cellspacing="0" class="img_caption_table">
<!-- BEGIN title -->
                                <tr>
                                        <th>
                                                {TITLE}
                                        </th>
                                </tr>
<!-- END title -->
<!-- BEGIN caption -->
                                <tr>
                                        <td>
                                                {CAPTION}
                                        </td>
                                </tr>
<!-- END caption -->
                        </table>
<!-- END img_desc -->
                </td>
        </tr>


You need to change the html so they are not in different tables, but in different cells within the same row of a table.

I think this will make the page rather wide though.
Title: what do i need to edit
Post by: bit bit spears on February 26, 2004, 04:51:18 AM
thanks-but i already did this lol

i really want the section:

'Image Information' (or Picture Information) to be shown on the side of the image-and have not found any html of this...
Title: what do i need to edit
Post by: Joachim Müller on February 26, 2004, 07:14:31 AM
then post what changes you did to the code, using the bit of code casper told you to modify, and a link to a page that has your modifications in it... You can't expect people here to do all the work for you...

GauGau
Title: what do i need to edit
Post by: bit bit spears on February 27, 2004, 12:12:23 AM
you don't get it-

i have everything nice where i want it-except i don't know where the html is for the 'Picture DETAILS' (or information) i guess i won't do anything.
Title: what do i need to edit
Post by: Casper on February 27, 2004, 12:31:47 AM
If what I put isn't what you need, then the other place to try is displayimage.php.

perhaps what you need is to place this code elsewhere, althought I don't know how;
function theme_html_picinfo(&$info)
{
    global $lang_picinfo;

    $html = '';

    $html .= "        <tr><td colspan=\"2\" class=\"tableh2_compact\"><b>{$lang_picinfo['title']}</b></td></tr>\n";
    $template = "        <tr><td class=\"tableb_compact\" valign=\"top\" nowrap>%s:</td><td class=\"tableb_compact\">%s</td></tr>\n";
    foreach ($info as $key => $value) $html .= sprintf($template, $key, $value);

    return $html;
}