Allow public user to create albums Allow public user to create 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

Allow public user to create albums

Started by b0s, September 04, 2014, 12:49:56 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

b0s

Hi
I have a small setup in an friendly internal only network and would like to go "everyone can access everything".
I have managed to let public users upload and view existing albums, but I would also like them to be able to add new (public)albums. Is this possible?
Also public users get "You don't have permission to access this page." when they try to "edit files" of an album.
Thank you in advance!

ron4mac

If you are comfortable doing it, you could modify the core file bridge/udb_base.inc.php

Around line 126, modify the function, load_guest_data(), to accommodate your goals.

b0s

Thank you! This works when I set $USER_DATA['user_id'] = 1; and set a user name. But the albums still show up under admin user... any ideas about that?

ron4mac

Don't use the admin user id.  Except for the concept of 'public' albums, it would seem to fulfill your needs if you create a global user account (perhaps with the username 'public'), and then set $USER_DATA['user_id'] to the id number for that global account.

b0s

Thats the thing... I am not using admin user. I am using another user under $USER_DATA['user_id'], but the albums are still created under HOME > Category > admin.

ΑndrĂ©

Please share your modifications so we can test ourselves.