[Solved]: Limit images and albums. [Solved]: Limit images and albums.
 

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

[Solved]: Limit images and albums.

Started by JCphotog, May 08, 2004, 01:32:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JCphotog

Hello,

Can anyone suggest advice on limiting the number of images and albums a user can post?

shutiri

Maybe you could set different groups, with "trusted" members and "untrusted" ones...  And set the upload approval option for the "untrusted" group, for example.


JCphotog

That could be an interesting way of going about it.  Can you set the upload approval for all users? where is that option found? 

shutiri

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)

Casper

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.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

JCphotog

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..

Joachim Müller

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

JCphotog

#7
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>

Casper

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>
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

JCphotog

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? 

Casper

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.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

JCphotog

 ;D its my standard lack of knowledge!  You guys are great.  Thanks.