How to remove voting panel in my gallery? How to remove voting panel in my gallery?
 

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]

Main Menu

How to remove voting panel in my gallery?

Started by kerjiaw, August 08, 2007, 06:04:18 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kerjiaw

Hi there,
I'm looking for a solution to remove the voting panel from my gallery, can someone help me out please?

my gallery now looks like this: http://www.alexmoi.net/weddings/displayimage.php?album=7&pos=2

I do not want people to vote or comments on my photos.

Thanks a lot.

rgds
Alex Moi

zac

In the properties for each individual album you have the option to disable the ratings for all users.  I did not test this but I guess you could just hack it out altogether by copying this code into your theme (I just put comment tags around the table):

// HTML template for the image rating box
$template_image_rating = <<<EOT
<!--<table align="center" width="{WIDTH}" cellspacing="1" cellpadding="0" class="maintable">
        <tr>
                <td colspan="6" class="tableh2_compact"><b>{TITLE}</b> {VOTES}</td>
        </tr>
        <tr>
                <td class="tableb_compact" width="17%" align="center"><a href="{RATE0}" title="{RUBBISH}" rel="nofollow"><img src="{LOCATION}images/rating0.gif" border="0" alt="{RUBBISH}" /><br /></a></td>
                <td class="tableb_compact" width="17%" align="center"><a href="{RATE1}" title="{POOR}" rel="nofollow"><img src="{LOCATION}images/rating1.gif" border="0" alt="{POOR}" /><br /></a></td>
                <td class="tableb_compact" width="17%" align="center"><a href="{RATE2}" title="{FAIR}" rel="nofollow"><img src="{LOCATION}images/rating2.gif" border="0" alt="{FAIR}" /><br /></a></td>
                <td class="tableb_compact" width="17%" align="center"><a href="{RATE3}" title="{GOOD}" rel="nofollow"><img src="{LOCATION}images/rating3.gif" border="0" alt="{GOOD}" /><br /></a></td>
                <td class="tableb_compact" width="17%" align="center"><a href="{RATE4}" title="{EXCELLENT}" rel="nofollow"><img src="{LOCATION}images/rating4.gif" border="0" alt="{EXCELLENT}" /><br /></a></td>
                <td class="tableb_compact" width="17%" align="center"><a href="{RATE5}" title="{GREAT}" rel="nofollow"><img src="{LOCATION}images/rating5.gif" border="0" alt="{GREAT}" /><br /></a></td>
        </tr>
</table> -->
EOT;


I would recommend just setting it for each individual album though.

Joachim Müller

Zac is right: don't edit the code. No need to edit the code: just disable the rating option in the groups panel for all groups.

kerjiaw

thanks to gaugau and zac! you guys RAWKS man.