Advanced search  

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]

Pages: [1]   Go Down

Author Topic: [Solved]: Limit images and albums.  (Read 3423 times)

0 Members and 2 Guests are viewing this topic.

JCphotog

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 115
[Solved]: Limit images and albums.
« 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?
« Last Edit: May 10, 2004, 10:03:22 am by GauGau »
Logged

shutiri

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 66
Re: Limit images and albums.
« Reply #1 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.

Logged

JCphotog

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 115
Re: Limit images and albums.
« Reply #2 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? 
Logged

shutiri

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 66
Re: Limit images and albums.
« Reply #3 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)
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Limit images and albums.
« Reply #4 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.
Logged
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

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 115
Re: Limit images and albums.
« Reply #5 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..
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Limit images and albums.
« Reply #6 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
Code: [Select]
// HTML template for main menu
$template_main_menu1 = <<<EOT
                <span class="topmenu">
                        <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
and add after it
Code: [Select]
                                       <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
Logged

JCphotog

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 115
Re: Limit images and albums.
« Reply #7 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>
« Last Edit: May 10, 2004, 12:28:50 am by JesseCohen »
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Limit images and albums.
« Reply #8 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,
Code: [Select]
<a href="your_link_goes_here.html" title="your link title goes here">your link text goes here</a>
Logged
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

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 115
Re: Limit images and albums.
« Reply #9 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? 
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: [Solved]: Limit images and albums.
« Reply #10 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.
Logged
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

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 115
Re: [Solved]: Limit images and albums.
« Reply #11 on: May 10, 2004, 06:12:44 pm »

 ;D its my standard lack of knowledge!  You guys are great.  Thanks.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 14 queries.