Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Place film_strip below Rate this file in displayimage.php  (Read 2386 times)

0 Members and 1 Guest are viewing this topic.

spade

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 5
Place film_strip below Rate this file in displayimage.php
« on: October 30, 2004, 10:37:01 am »

Hi,
I like to change the order in which things are displayed by displayimage.php
Is it possible to move the film_strip to the bottom below the Rate this file option? BTW should it not say "Rate this Photo?"
I like to make it clearer what is supposed to be rated.
I have checked the code of that page and can't see where the rating box comes from.
Thanks for any helpful advise.
Kind regards,
Frank
« Last Edit: October 31, 2004, 07:56:03 am by GauGau »
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Place film_strip below Rate this file in displayimage.php
« Reply #1 on: October 30, 2004, 01:08:46 pm »

Open your theme/theme.php, and find;

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

    $picinfo = isset($HTTP_COOKIE_VARS['picinfo']) ? $HTTP_COOKIE_VARS['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 $comments;
    endtable();
}

Change it to;

Code: [Select]
starttable();
    echo $picture;
    endtable();
   
    }
    starttable();
    echo $votes;
    endtable();

    $picinfo = isset($HTTP_COOKIE_VARS['picinfo']) ? $HTTP_COOKIE_VARS['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 $comments;
    endtable();
if ($CONFIG['display_film_strip'] == 1) {
        echo $film_strip;
}

Note, not tested but should work.

The words did say 'picture' in older versions, but since coppermine can display video and audio files, among others, it was changed to reflect this.

If you want it to say pictures, open your language file, search for 'rate this file', and change it there.
Logged
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

spade

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 5
Re: Place film_strip below Rate this file in displayimage.php
« Reply #2 on: October 31, 2004, 01:08:36 am »

Thanks for the great help. It worked just fine. BTW: the closing braked had to be moved as well...
Code: [Select]
    if ($CONFIG['display_film_strip'] == 1) {
        echo $film_strip;
    }
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 20 queries.