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: Making registered users able to create public galleries in categories.  (Read 5479 times)

0 Members and 1 Guest are viewing this topic.

plastikaa

  • Coppermine newbie
  • Offline Offline
  • Posts: 8

Basically each month I create a new category for the month, I then want to be able to let all registered users create galleries in these folders. How do i set this up? At the moment only me, the admin, can create albums.
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Making registered users able to create public galleries in categories.
« Reply #1 on: February 14, 2005, 11:56:17 pm »

At the moment, and for some time to come, you can't.  it is something we are looking at for the future, but would not be an easy change to the current setup.

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

plastikaa

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Making registered users able to create public galleries in categories.
« Reply #2 on: February 15, 2005, 09:16:39 am »

Is there any alternative/similar solution anyone knows of that could possibly give the same result? It seems a little strange than only admins can create galleries.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Making registered users able to create public galleries in categories.
« Reply #3 on: February 15, 2005, 09:23:03 am »

No
Logged

plastikaa

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Making registered users able to create public galleries in categories.
« Reply #4 on: February 15, 2005, 08:16:55 pm »

Cant i just make the link to the galllery edit menu viewable to users by placing it in the same bit as the myprofile or something. Then how can i edit the page albmgr.php so that registered users haebv access to it. I cant see why this would be so hard to change.

EDIT: Okay i copied the link to edit the albums so its viewable by everyone who is registered (via the themes.php files.I also replaced the code in albmgr.php from:

Code: [Select]
if (!(GALLERY_ADMIN_MODE || USER_ADMIN_MODE)) cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);

to

Code: [Select]
if (USER_ID){

} else {
{
   $redirect = $redirect . "login.php";
   header("Location: $redirect");

   exit();
        }
}

This is so all unregistered members are redirected to the registration page and it also removes the admin only setting to view the page. Its got me a little way as it doesnt tell me Im not allowed to view the page but instead tells me I dont have access to perform these operations. Does anyone know where I might be able to find the place where I can edit the access rights to perform these operations?
« Last Edit: February 15, 2005, 08:38:19 pm by plastikaa »
Logged

plastikaa

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Making registered users able to create public galleries in categories.
« Reply #5 on: February 15, 2005, 09:32:31 pm »

Update:

I removed this also from albmgr.php:
Code: [Select]
else cpg_die(ERROR, $lang_errors['perm_denied'], __FILE__, __LINE__);
the reusult is now the add new albums bit appears but the drop down menu to choose category doesn't. I get the following error:

Quote
Warning: mysql_fetch_array(): 15 is not a valid MySQL result resource in /home/plastika/public_html/pics/include/functions.inc.php on line 114

Any ideas/suggestions? I think its almost working now.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Making registered users able to create public galleries in categories.
« Reply #6 on: February 16, 2005, 08:45:32 am »

if it was that easy, we would have added this feature in the past already. If you don't accept a "no" for an answer and decide to accomplish what others haven't been able to do, you're on your own with any problems you encounter.

Joachim
Logged

Mr Teroo

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Making registered users able to create public galleries in categories.
« Reply #7 on: February 27, 2005, 09:24:52 pm »

You're a rude f**ker Joachim! He was only asking a civil question. Do you need a poo or something?
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Making registered users able to create public galleries in categories.
« Reply #8 on: February 28, 2005, 12:07:55 am »

Thanks for stopping by to troll.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Making registered users able to create public galleries in categories.
« Reply #9 on: February 28, 2005, 09:13:40 am »

interesstingly enough "Mr Teroo" is on the same IP address range as "plastikaa" ;)

Joachim
Logged

Mr Teroo

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Making registered users able to create public galleries in categories.
« Reply #10 on: February 28, 2005, 03:05:18 pm »

Sorry mate - no conspiracy theory here, just coincidence.

Seriously though, you should try being polite when people ask reasonable questions. You just come across as an arse otherwise.

Take Care

Mr Teroo
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Making registered users able to create public galleries in categories.
« Reply #11 on: February 28, 2005, 06:18:21 pm »

thanks for the netiquette lesson, I'll consider it next time when I come across a user who requires something that is hard or impossible to achieve: I won't tell him so, but let him try to work it out. At least people learn something this way...

Joachim
Logged
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 19 queries.