what do i need to edit what do i need to edit
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

what do i need to edit

Started by bit bit spears, February 17, 2004, 04:05:49 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bit bit spears

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!

bit bit spears


bit bit spears


Casper

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.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

bit bit spears

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...

Joachim Müller

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

bit bit spears

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.

Casper

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;
}
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here