coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: kerjiaw on August 08, 2007, 06:04:18 AM

Title: How to remove voting panel in my gallery?
Post by: kerjiaw on August 08, 2007, 06:04:18 AM
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
Title: Re: How to remove voting panel in my gallery?
Post by: zac on August 08, 2007, 07:15:53 AM
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.
Title: Re: How to remove voting panel in my gallery?
Post by: Joachim Müller on August 08, 2007, 08:36:32 AM
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.
Title: Re: How to remove voting panel in my gallery?
Post by: kerjiaw on August 09, 2007, 06:02:48 AM
thanks to gaugau and zac! you guys RAWKS man.