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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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