How to limit each user to only one album? How to limit each user to only one album?
 

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 limit each user to only one album?

Started by JohnCage, August 24, 2006, 12:02:35 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JohnCage

Hello,

I want to limit each user to have only 1 album.
Why ?
We have 13.000 members (artists) and I think that 13.000 albums is enough ;o)

Could you please help me?

Thanks
JC

Abbas Ali

Edit albmgr.php

Replace


                                        <td align="center" style="background-color: #D4D0C8; width: 80px; height: 21px; border-top: 1px solid White; border-left: 1px solid White; border-right: 1px solid #808080; border-bottom: 1px solid #808080;"><a href="javascript:Album_Create();" style="color: Black; font-weight: bold;"><?php echo $lang_albmgr_php['new'?></a>
                                        </td>


with


<?php
if (GALLERY_ADMIN_MODE || (!GALLERY_ADMIN_MODE && count ($rowset) < 1)) {
?>

                                        <td align="center" style="background-color: #D4D0C8; width: 80px; height: 21px; border-top: 1px solid White; border-left: 1px solid White; border-right: 1px solid #808080; border-bottom: 1px solid #808080;"><a href="javascript:Album_Create();" style="color: Black; font-weight: bold;"><?php echo $lang_albmgr_php['new'?></a>
                                        </td>
<?php ?>


Note: This will just hide the New button. However, users who know their way around can overcome this.

Abbas
Chief Geek at Ranium Systems