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: Removing Rating area and adding text to page  (Read 2565 times)

0 Members and 1 Guest are viewing this topic.

BrianB

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Removing Rating area and adding text to page
« on: June 10, 2006, 12:49:43 am »

I'm using version 1.4.2. I want to remove the Rate the photo box that appears under the intermediate size photo. The FAQ says to remove it from theme.php. I had been able to do this when I was using an older version of CPG, but this version the theme.php files are different. Is there an easy way to remove stuff like this as in the earlier version? Also, I want to add the instruction to the intermediate photo page that the user should click the photo to see the full size photo. In what file and where can I do this?

Thanks,
Brian
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Removing Rating area and adding text to page
« Reply #1 on: June 10, 2006, 02:33:42 am »

If this function isn't already in your theme, copy it from the Sample theme.php and paste it into your theme.php
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();

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

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


    echo $votes;



    $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";

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

}

and remove the line containing
Code: [Select]
    echo $votes;

There's a one issue rule per post so please start another post with your second question.

Cheers,

Gizmo

[edit] You should also upgrade your gallery as per http://forum.coppermine-gallery.net/index.php?topic=32413.0.
« Last Edit: June 10, 2006, 05:01:26 am by 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
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 16 queries.