Some stats at top of the page Some stats at top of the page
 

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

Some stats at top of the page

Started by will, June 01, 2006, 07:22:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

will

I have searched but not found an answer to this question, I would like to place some stats from the bottom of the display image page to the top of the page.

Any help will be great ;D

Gizmo

I'm not exactly sure what you're talking about but if you're referring to the File Information shown on the image display page, check out this link and edit to move the file information. http://forum.coppermine-gallery.net/index.php?topic=30739.msg142311#msg142311

If not then can you attach a screenshot and circle what you're speaking about.

Gizmo
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

will

I wanna take the following file information from the bottom of the page to the top just above the picture:

File Size:
Date added:
Dimensions:
Displayed:

Gizmo

Cool. You can use this plugin by Paver to filter the File Information fields and then use the above link to edit the image display page to put these fields where you want them to go.

http://forum.coppermine-gallery.net/index.php?topic=27407.0

Hope this helps.

Gizmo
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

will

Sorted thanks Gizmo

One problem I have is that the image now displays on the left and I want it in the center.

Is there anyway I can get it in the center.

Gizmo

I don't recongize your theme so a link to your gallery would make it easier to say but you can try putting the file info in a table cell and apply a align="center" to it

[edit] - Duh.... it's right on the pic you attached. I'll check it out and see what you got.
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

Stramm

why not just modify the theme.php

add that bit of code... first it shows the nav menu, picinfo, picture, votes and last the comments
move the parts where you want them to appeare


function theme_display_image($nav_menu, $picture, $votes, $pic_info, $comments, $film_strip)
{
    global $CONFIG;

    $width = $CONFIG['picture_table_width'];

    starttable();
    echo $nav_menu;
    endtable();

    $picinfo = isset($_COOKIE['picinfo']) ? $_COOKIE['picinfo'] : ($CONFIG['display_pic_info'] ? 'block' : 'none');
    echo "<div id=\"picinfo\" style=\"display: $picinfo;\">\n";
    starttable();
    echo $pic_info;
    endtable();
    echo "</div>\n";


    starttable();
    echo $picture;
    endtable();
    if ($CONFIG['display_film_strip'] == 1) {
        echo $film_strip;
    }


    echo $votes;




    echo "<div id=\"comments\">\n";
        echo $comments;
        echo "</div>\n";

}


you even can hardcode table settings into it... like you don't like the picinfo table have the standard width, then try eg. that (yoju see that the function call starttable() ahs been removed and replaced with echo...)

    echo '<table align="center" width="450">';
    echo $pic_info;
    endtable();
    echo "</div>\n";

will

Fantastc Stramm, works brilliantly

Thank you ;D