Personal Galery question Personal Galery question
 

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

Personal Galery question

Started by heavensportal, September 03, 2015, 07:26:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

heavensportal

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.

Αndré

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

heavensportal

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.

Αndré

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

heavensportal

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.

Αndré

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

heavensportal

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.

Αndré

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.

heavensportal

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.

Αndré

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.

heavensportal

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

Αndré

Create a new PHP file in your gallery root and add this:
<?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.

heavensportal

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.

Αndré

Quote from: Joachim Müller on September 28, 2008, 10:28:42 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.

heavensportal

I knew that sorry, totally frgot. I shall open a new thread for it.