Advanced search  


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.

Pages: [1]   Go Down

Author Topic: Don't show Vote box  (Read 3464 times)

0 Members and 1 Guest are viewing this topic.


  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Don't show Vote box
« on: October 26, 2003, 03:58:31 pm »

Can someone please tell me if there's a way to get rid of the votes box? I only want people to comment on the picture but no voting.

Thanks for your help.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
Don't show Vote box
« Reply #1 on: October 26, 2003, 07:38:06 pm »

In your special case, find
Code: [Select]
// HTML template for the image rating boxin /themes/yourtheme/theme.php and edit/comment out (using html comment tags <!-- and -->) the stuff that comes after it. Do not delete the whole thing! Just change it to something like
Code: [Select]
$template_image_rating = <<<EOT

                <td colspan="6" class="tableh2_compact"><b>{TITLE}</b> {VOTES}</td>
                <td class="tableb_compact" width="17%" align="center"><a href="{RATE0}" title="{RUBBISH}"><img src="images/rating0.gif" alt="{RUBBISH}" border="0" /><br /></a></td>
                <td class="tableb_compact" width="17%" align="center"><a href="{RATE1}" title="{POOR}"><img src="images/rating1.gif" alt="{POOR}" border="0" /><br /></a></td>
                <td class="tableb_compact" width="17%" align="center"><a href="{RATE2}" title="{FAIR}"><img src="images/rating2.gif" alt="{FAIR}" border="0" /><br /></a></td>
                <td class="tableb_compact" width="17%" align="center"><a href="{RATE3}" title="{GOOD}"><img src="images/rating3.gif" alt="{GOOD}" border="0" /><br /></a></td>
                <td class="tableb_compact" width="17%" align="center"><a href="{RATE4}" title="{EXCELLENT}"><img src="images/rating4.gif" alt="{EXCELLENT}" border="0" /><br /></a></td>
                <td class="tableb_compact" width="17%" align="center"><a href="{RATE5}" title="{GREAT}"><img src="images/rating5.gif" alt="{GREAT}" border="0" /><br /></a></td>



  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Don't show Vote box
« Reply #2 on: October 26, 2003, 08:35:25 pm »

Thanks Gau Gau!
Pages: [1]   Go Up

Page created in 0.018 seconds with 18 queries.