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: How to move File Information in top of the film strip?  (Read 3262 times)

0 Members and 1 Guest are viewing this topic.

s9ds

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
How to move File Information in top of the film strip?
« on: October 02, 2010, 12:53:37 pm »

In my current gallery http://dbzent.com/gallery/displayimage.php?album=255&pid=48687#top_display_media the film strip is showing in top of the File information box, i would like to move the file information to be on top of the film strip. The attached file idea1.jpg, shows what im looking for.

Also i would like to edit the background and size for that table, so it can be display as show in the idea2.jpg, but i guess this can be done by editing the .css of the template.

I am trying to build  something similar to this
http://www.nochelatina.com/Galleries/New-York/Talay/262773/09-27-2010/383189
where the "link to this image" is located under the image and under the facebook, tweeter share links.

Just to mention, i modified the language file so instead of saying "File information" it says "Share this photo" and im also using this plugin from http://forum.coppermine-gallery.net/index.php/topic,66925.0.html, which allows me to hide some file information from the display image file

i will appreciate any help in how i can switch the tables. thank you
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: How to move File Information in top of the film strip?
« Reply #1 on: October 12, 2010, 10:54:15 am »

Have a look at this function:
Code: [Select]
function theme_display_image($nav_menu, $picture, $votes, $pic_info, $comments, $film_strip)
{
    global $CONFIG, $LINEBREAK;

    $superCage = Inspekt::makeSuperCage();

    $width = $CONFIG['picture_table_width'];

    echo '<a name="top_display_media"></a>'; // set the navbar-anchor
    starttable();
    echo $nav_menu;
    endtable();

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


    echo $votes;

    $picinfo = $superCage->cookie->keyExists('picinfo') ? $superCage->cookie->getAlpha('picinfo') : ($CONFIG['display_pic_info'] ? 'block' : 'none');
    echo $LINEBREAK . '<div id="picinfo" style="display: '.str_replace('.gif','.png',$picinfo).';">' . $LINEBREAK;
    starttable();
    echo $pic_info;
    endtable();
    echo '</div>' . $LINEBREAK;

    echo '<a name="comments_top"></a>';
    echo '<div id="comments">' . $LINEBREAK;
        echo $comments;
        echo '</div>' . $LINEBREAK;

}

Just move the lines
Code: [Select]
    $picinfo = $superCage->cookie->keyExists('picinfo') ? $superCage->cookie->getAlpha('picinfo') : ($CONFIG['display_pic_info'] ? 'block' : 'none');
    echo $LINEBREAK . '<div id="picinfo" style="display: '.str_replace('.gif','.png',$picinfo).';">' . $LINEBREAK;
    starttable();
    echo $pic_info;
    endtable();
    echo '</div>' . $LINEBREAK;
to your desired place.

The code for your idea1 is:
Code: [Select]
function theme_display_image($nav_menu, $picture, $votes, $pic_info, $comments, $film_strip)
{
    global $CONFIG, $LINEBREAK;

    $superCage = Inspekt::makeSuperCage();

    $width = $CONFIG['picture_table_width'];

    echo '<a name="top_display_media"></a>'; // set the navbar-anchor
    starttable();
    echo $nav_menu;
    endtable();

    starttable();
    echo $picture;
    endtable();

    $picinfo = $superCage->cookie->keyExists('picinfo') ? $superCage->cookie->getAlpha('picinfo') : ($CONFIG['display_pic_info'] ? 'block' : 'none');
    echo $LINEBREAK . '<div id="picinfo" style="display: '.str_replace('.gif','.png',$picinfo).';">' . $LINEBREAK;
    starttable();
    echo $pic_info;
    endtable();
    echo '</div>' . $LINEBREAK;

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

    echo $votes;

    echo '<a name="comments_top"></a>';
    echo '<div id="comments">' . $LINEBREAK;
        echo $comments;
        echo '</div>' . $LINEBREAK;

}

Just copy that function to the theme.php file of your theme or edit it accordingly if it's already there.
Logged

s9ds

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: How to move File Information in top of the film strip?
« Reply #2 on: October 12, 2010, 08:41:17 pm »

Thank You, it worked perfect
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.