Advanced search  

News:

cpg1.5.46 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter recently discovered vulnerabilities. It is important that all users who run version cpg1.5.44 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Registed Users Creating albums  (Read 8624 times)

0 Members and 1 Guest are viewing this topic.

Weatherman

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Registed Users Creating albums
« on: June 15, 2010, 04:35:10 pm »

I'm setting up a new gallery  using 1.5.6 and I'm having problems with registered users not being able to create albums in a category.

As far as I can see I have the permissions correct, when I go to  create / order my albums and select club trips then click the new album button nothing appears as it does when your an administrator.

http://www.joelspictures.com/bridgnorthcanoe.com/Gallery/index.php

Temp Admin Account
username -: testadmin
password -: test

Test User Account
username -: testuser
password -: test

Any help appreciated
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Registed Users Creating albums
« Reply #1 on: June 15, 2010, 06:15:07 pm »

Aaaargh, never post an admin account, not even temporarily. I have logged in and changed the password of that account. Delete that account asap.
Logged

Weatherman

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Registed Users Creating albums
« Reply #2 on: June 15, 2010, 07:47:27 pm »

Thanks.

It didn't really matter about  the Admin account as this is a mirror copy of the original, I posted it so hopefully someone could have looked at the permissions to check they were right. I have now deleted as suggested.

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Registed Users Creating albums
« Reply #3 on: June 16, 2010, 07:42:23 am »

Regular users (non-admins) can't create albums inside categories created by the admin by default unless you do as suggested below. Non-admins can only create albums within their personal gallery.
To allow non-admin users to create albums within a particular category, go to the category control panel and use the "Allow group to create Album" dropdown to specify what user group is allowed to create albums within that specific category as suggested in http://documentation.coppermine-gallery.net/en/albums.htm#album_admin_user
Logged

Weatherman

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Registed Users Creating albums
« Reply #4 on: June 16, 2010, 09:56:34 am »

Thanks

As far as i know this is already configured correctly. I have checked the database and the settings are correct in categorymap

If you go in with the test account it allows you to select the category club trips to put an album into, which it doesn't do when you cant create and album, but will not let you create an album in there.
Logged

Weatherman

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Registed Users Creating albums
« Reply #5 on: June 16, 2010, 10:18:17 am »

Problem solved

One of the plug-ins was conflicting with this, as soon as I uninstalled all the plug-ins it started working again.

If I find out which one it was I will post to let people know.

Thanks for help
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Logged

Weatherman

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Registed Users Creating albums
« Reply #7 on: June 16, 2010, 10:26:50 am »

Ok the problem appears to be when you install JSmin's plugin to combine and compress javascript files. 

I'm not quite sure what this is doing but as soon as its installed the ability for users to upload files does not work.

Logged

Timos-Welt

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 800
    • Timos-Welt
Re: Registed Users Creating albums
« Reply #8 on: June 16, 2010, 02:18:37 pm »

I cannot reproduce this. JSMin does what it should, but doesn't produce any errors here when creating albums or uploading pics:
http://cpg15xdev.spaetbier.de
Login: kullermichwund
Pass: rumms
Weatherman: Did you clear the JSmin cache?
Logged

Weatherman

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Registed Users Creating albums
« Reply #9 on: June 16, 2010, 03:46:09 pm »

Timos,

I re-installed the plugin and tried clearing the cache which didn't work, I then tried completely removing it from server and putting it back on and it still produced the same error.

Ive reinsatated the testuser account pasword test, if you would like to have a look ill leave the plugin installed for the next 24 hours.

It may be it does not like using that with one of the other plugins installed as well if I get time to go through them ill have a look.

I've turned on debug mode as well if this helps you out
Logged

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1498
  • aka 'i-imagine'
    • Home Page
Re: Registed Users Creating albums
« Reply #10 on: June 16, 2010, 04:10:08 pm »

You might be using an outdated version of the plugin.

See the support/announcement thread for the latest changes.
http://forum.coppermine-gallery.net/index.php/topic,63223.0.html

This advice also applies to all users of all plugins!

Timos-Welt

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 800
    • Timos-Welt
Re: Registed Users Creating albums
« Reply #11 on: June 16, 2010, 04:17:13 pm »

Try to do what is written in this post, this should fix the jsmin problem:
http://forum.coppermine-gallery.net/index.php/topic,63223.msg323209.html#msg323209

It's all webserver dependent. JSMin tries to tar.gz the javascript files to make them smaller, which is very effective. Some webhosters do compress every file this way automatically, then it's a 'double' tar.gz and some browsers (e. g. firefox) can't interpret this correctly. I must find a way to identify via PHP if gzip server compression is active to avoid this error in the future, but didn't find a way yet.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Registed Users Creating albums
« Reply #12 on: June 16, 2010, 04:42:07 pm »

I must find a way to identify via PHP if gzip server compression is active to avoid this error in the future, but didn't find a way yet.
Is checking for the server variable HTTP_ACCEPT_ENCODING not enough? Maybe you could use phpinfo(INFO_MODULES), buffer the output and search inside the output for the needed string. Alternatively, take a look at get_loaded_extensions. I'm aware that string comparsion can be buggy, but probably better than nothing.
Logged

Weatherman

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Registed Users Creating albums
« Reply #13 on: June 16, 2010, 05:19:38 pm »

Timos,

I've change the codebase.php file as suggested and all seems to be working fine now.

thanks for all your help
Logged

Timos-Welt

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 800
    • Timos-Welt
Re: Registed Users Creating albums
« Reply #14 on: June 16, 2010, 10:40:45 pm »

>Is checking for the server variable HTTP_ACCEPT_ENCODING not enough?

Hi Joachim,

no. It only says "the server is capable of doing GZIP, and the user's browser capable of recieving it". It says nothing about server side gzip compression is enabled or not. And I didn't find any way to find this out via PHP.

On the other hand: Jsmin is not extremely useful if server side compression is enabled. So I would have to do a config page to switch this on or off. But
a) I hate doing config pages from the very heart and
b) I don't understand the config pages you have done (actually that's the reason why I stopped working on EnlargeIt and ThumbRotate plugin). They look very complicated.

I know you do a lot for this project and have little time, and I also know that it's a shame that I have to ask for it, but: Could you do a short tutorial, with cut&paste stuff of some of the functions you regularly use for config pages, so the outcome is a "real" CPG plugin, and the config page is done as it has to be done?  :o
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Registed Users Creating albums
« Reply #15 on: June 17, 2010, 07:25:53 am »

I agree that coming up with a config section for a plugin can be tricky, that's why it has been on my agenda to come up with a tutorial similar to the one you suggested already. I'll see what I can do.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Registed Users Creating albums
« Reply #16 on: July 12, 2010, 09:21:09 am »

Ugh, this has been harder than anticipated: I have finally come up with an additional documentation page that explains how to add config records to a plugin (revision 7758). That page of the documentation currently only resides in the SVN repository at http://coppermine.svn.sourceforge.net/viewvc/coppermine/trunk/cpg1.5.x/docs/en/dev_plugin_steps.htm?revision=7758, but it will of course go into the next release as well. Once that is done, it will be available as well by accessing http://documentation.coppermine-gallery.net/en/dev_plugin_steps.htm. Please let me know if you find the explanations sufficient.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15429
Re: Registed Users Creating albums
« Reply #17 on: July 12, 2010, 09:50:36 am »

Looks good at a first glance. I'll try to run the tutorial when I find some spare time.
Logged

Timos-Welt

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 800
    • Timos-Welt
Re: Registed Users Creating albums
« Reply #18 on: July 12, 2010, 03:21:25 pm »

Thanks Joachim, I'll try it out ASAP.
Logged
Pages: [1]   Go Up
 

Page created in 0.036 seconds with 20 queries.