Advanced search  

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

Pages: [1]   Go Down

Author Topic: Some stats at top of the page  (Read 4716 times)

0 Members and 1 Guest are viewing this topic.

will

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 263
Some stats at top of the page
« on: June 01, 2006, 07:22:46 pm »

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
« Last Edit: June 08, 2006, 07:18:23 pm by GauGau »
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Some stats at top of the page
« Reply #1 on: June 01, 2006, 07:45:10 pm »

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

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 263
Re: Some stats at top of the page
« Reply #2 on: June 01, 2006, 08:00:55 pm »

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:
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Some stats at top of the page
« Reply #3 on: June 01, 2006, 10:12:56 pm »

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

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 263
Re: Some stats at top of the page
« Reply #4 on: June 01, 2006, 11:03:41 pm »

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

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Some stats at top of the page
« Reply #5 on: June 02, 2006, 12:12:35 am »

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

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Some stats at top of the page
« Reply #6 on: June 03, 2006, 11:33:15 am »

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


Code: [Select]
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...)

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

will

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 263
Re: Some stats at top of the page
« Reply #7 on: June 08, 2006, 05:31:27 pm »

Fantastc Stramm, works brilliantly

Thank you ;D
Logged
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 20 queries.