coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: JCphotog on May 08, 2004, 01:32:38 AM

Title: [Solved]: Limit images and albums.
Post by: JCphotog on May 08, 2004, 01:32:38 AM
Hello,

Can anyone suggest advice on limiting the number of images and albums a user can post?
Title: Re: Limit images and albums.
Post by: shutiri on May 08, 2004, 04:57:08 AM
Maybe you could set different groups, with "trusted" members and "untrusted" ones...  And set the upload approval option for the "untrusted" group, for example.

Title: Re: Limit images and albums.
Post by: JCphotog on May 09, 2004, 01:31:17 AM
That could be an interesting way of going about it.  Can you set the upload approval for all users? where is that option found? 
Title: Re: Limit images and albums.
Post by: shutiri on May 09, 2004, 02:14:23 AM
everything is on the config tab of your admin tool,  on "groups"...  you can create them, manage them.  the approval options for public and private albums uploads are the tabs with a (1) and a (2).

then you can add certain users to each group.

shutiri
8)
Title: Re: Limit images and albums.
Post by: Casper on May 09, 2004, 11:37:46 AM
Using the groups settings, you can limit the total webspace used by each member of that group.  This is better than limiting to how many pics er user, as some users would put up huge files. 

Remember, that if you leave a group at '0', this means unlimited.  If you don't want that group to upload at all, just turn off the permission for them to upload.
Title: Re: Limit images and albums.
Post by: JCphotog on May 09, 2004, 10:47:07 PM
Great info!  Thanks for the help!  Can you suggest a good link to a thread on adding a simple link at the top to another page, ie a forum or home page.  I'm currently using the hardwired theme if that is necessary info..  Thanks..
Title: Re: Limit images and albums.
Post by: Joachim Müller on May 09, 2004, 11:46:29 PM
Next time, please post only one question per thread! :(

To add a link to the coppermine navigation, edit themes/hardwired/theme.php and find// HTML template for main menu
$template_main_menu1 = <<<EOT
               <span class="topmenu">
                       <table border="0" cellpadding="0" cellspacing="0">
                               <tr>
and add after it                                        <td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" id="spacer" alt="" /></td>
                                       <td><img name="buttonleftmy" src="themes/hardwired/images/buttonleftmy.gif" width="17" height="25" border="0" id="buttonleftmy" alt="" /></td>
                                       <td background="themes/hardwired/images/buttoncenter.gif">
                                               <a href="your_link_goes_here.html" title="your link title goes here">your link text goes here</a>
                                       </td>
                                       <td><img name="buttonright" src="themes/hardwired/images/buttonright.gif" width="7" height="25" border="0" id="buttonright" alt="" /></td>


GauGau
Title: Re: Limit images and albums.
Post by: JCphotog on May 10, 2004, 12:23:15 AM
Thanks for the help.  I'll give it a shot! with one question.  Would I change the images to fit a button for my link?  Would spacer.gif, and buttonleftmy.gif be changed to images relateing to my new link?

Quote<td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" id="spacer" alt="" /></td>
                                       <td><img name="buttonleftmy" src="themes/hardwired/images/buttonleftmy.gif" width="17" height="25" border="0" id="buttonleftmy" alt="" /></td>
                                       <td background="themes/hardwired/images/buttoncenter.gif">
                                               <a href="your_link_goes_here.html" title="your link title goes here">your link text goes here</a>
                                       </td>
Title: Re: Limit images and albums.
Post by: Casper on May 10, 2004, 01:06:04 AM
No, the code gaugau gave you will give a button that matches the restof the buttons.  All you need to do is change this bit,
<a href="your_link_goes_here.html" title="your link title goes here">your link text goes here</a>
Title: Re: Limit images and albums.
Post by: JCphotog on May 10, 2004, 02:27:16 AM
Ok that makes sense. Thanks.  So, If you do not need to create a new .gif with the text on it, does copermine generate the text some how? 
Title: Re: [Solved]: Limit images and albums.
Post by: Casper on May 10, 2004, 11:23:24 AM
The code above is a standard html hyperlink.  Nothing special.  The other code is where the button is created, as background to the link, again, standard html.
Title: Re: [Solved]: Limit images and albums.
Post by: JCphotog on May 10, 2004, 06:12:44 PM
 ;D its my standard lack of knowledge!  You guys are great.  Thanks.