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: Personal Galery question  (Read 6007 times)

0 Members and 1 Guest are viewing this topic.

heavensportal

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 259
    • The Fantasy Attic
Personal Galery question
« on: September 03, 2015, 07:26:44 pm »

I was wondering if there is a way to either have a personal gallery created by the system for new members (bridged gallery) or if there is a way for an admin to create a personal gallery for the member.

I would not mind the second option since I have several members that do not grasp how to create one---english not native language and they get confused.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Personal Galery question
« Reply #1 on: September 04, 2015, 10:52:32 am »

As Coppermine doesn't know when a new user is registered in your board, we have 2 options to automatically solve this:
1. Check on each Coppermine page load if the personal gallery exists and create it if not
2. Create a simple script which checks for new users in your board and then add corresponding albums in the user galleries category - and call this script by a cronjob in an interval of your choice
Logged

heavensportal

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 259
    • The Fantasy Attic
Re: Personal Galery question
« Reply #2 on: September 04, 2015, 10:19:09 pm »

I don't mind making their personal gallery myself, it helps them out.

But how do I create it and still let them have things showup in their name and not mine. If I turn off controls for admin I see the create buttons but they will show in my gallery.

I have not tried to go into admn/categories to try there.

Could you please tell me how to create a personal gallery for a member.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Personal Galery question
« Reply #3 on: September 05, 2015, 11:33:05 pm »

So you really prefer to create the personal gallery yourself, manually?
Logged

heavensportal

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 259
    • The Fantasy Attic
Re: Personal Galery question
« Reply #4 on: September 05, 2015, 11:42:19 pm »

Well at times it is needed for the members that do not understand even the simplist instructions...due to language or other reasons.

So if I could find a way to create their personal gallery for them when needed would be nice. Today I just bit the bullet by changing the password to the members account and logged in as them to create the gallery. then let them know what the word was so they could get back in and change it.

It is one way but If there is another way where I do not need to change their password, would be nice.

Thank you for your patience we me.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Personal Galery question
« Reply #5 on: September 05, 2015, 11:43:46 pm »

So automatically create a personal gallery for each (new) user is no option?
Logged

heavensportal

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 259
    • The Fantasy Attic
Re: Personal Galery question
« Reply #6 on: September 05, 2015, 11:48:55 pm »

not really since some are only lurkers or only post in the forum not the gallery....those at times do very uch later on try to do the gallery thing, when they get enough confidence.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Personal Galery question
« Reply #7 on: September 08, 2015, 02:40:16 pm »

This works in an unbridged gallery:
- Create a new album
- Open the album's properties
- At "Album category", select the user inside the "User galleries" category
- Click "Update album"

Please confirm if this also works in a bridged gallery. If so, please try to upload to that album as the corresponding user (works as expected in an unbridged gallery). Currently, the user will get an error message when he tries to edit the file details, at least with my current settings. But this could be fixed by updating the album owner in the database (or create a simple script for that).

Please check the behavior in your gallery and let me know the result.
Logged

heavensportal

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 259
    • The Fantasy Attic
Re: Personal Galery question
« Reply #8 on: September 08, 2015, 10:07:37 pm »

Yes it does work like you said.

The new user album will show in the "my Gallery" link for the user but it does not show in the list of user galleries.

They do not have any perms --- the error comes up and you think there is no image uploaded but it is showing in  the gallery...

The member can upload to the album so I would need to go to database and change the owner id.


Thanks, it is rare that I have to do something for our members like this but great to know I can do it this way or by changing their password and logging as them.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Personal Galery question
« Reply #9 on: September 08, 2015, 10:42:18 pm »

I'll create a simple script for you, which you can run to update the owner of albums in the personal gallery automatically, if you like. Just let me know.
Logged

heavensportal

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 259
    • The Fantasy Attic
Re: Personal Galery question
« Reply #10 on: September 08, 2015, 11:53:12 pm »

simple is good...thank you I would like it very much for when this is needed again.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Personal Galery question
« Reply #11 on: September 09, 2015, 10:10:39 am »

Create a new PHP file in your gallery root and add this:
Code: [Select]
<?php
define
('IN_COPPERMINE'true);
require(
'include/init.inc.php');
pageheader();
cpg_db_query("UPDATE {$CONFIG['TABLE_ALBUMS']} SET owner = category - ".FIRST_USER_CAT." WHERE category > ".FIRST_USER_CAT);
echo 
'Done.';
pagefooter();

Currently, everyone can execute that file, as there's no need for permission/admin check in my opinion.
Logged

heavensportal

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 259
    • The Fantasy Attic
Re: Personal Galery question
« Reply #12 on: September 09, 2015, 10:39:34 pm »

Oh thank you so much. I will do that soon.

We do not allow voting for popular images...that way our judges will not be influenced by anything but the art and the contest.... so we have no need to show the Top Rated link...How can I comment it out or remove it?

In a much older ersion they were listed in a file to do that but it was so long ago and I can not remember which one at all.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Personal Galery question
« Reply #13 on: September 10, 2015, 09:23:13 am »

10. One question per thread
We have a strict "One question/issue per thread rule", which helps both supporters/moderators to keep track of open/closed issues as well as users who search the board or browse it, looking for answers to their question.
Logged

heavensportal

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 259
    • The Fantasy Attic
Re: Personal Galery question
« Reply #14 on: September 10, 2015, 09:24:41 am »

I knew that sorry, totally frgot. I shall open a new thread for it.
Logged
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 19 queries.