Registed Users Creating albums Registed Users Creating 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

Registed Users Creating albums

Started by Weatherman, June 15, 2010, 04:35:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Weatherman

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

Joachim Müller

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

Weatherman

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.


Joachim Müller

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

Weatherman

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.

Weatherman

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

Joachim Müller


Weatherman

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.


Timos-Welt

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?

Weatherman

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

Joe Carver

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

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.

Joachim Müller

Quote from: Timos-Welt on June 16, 2010, 04:17:13 PMI 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.

Weatherman

Timos,

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

thanks for all your help

Timos-Welt

>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

Joachim Müller

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.

Joachim Müller

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.

Αndré

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

Timos-Welt

Thanks Joachim, I'll try it out ASAP.