Username is not displayed Username is not displayed
 

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

Username is not displayed

Started by Fotomanni, March 22, 2004, 09:14:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Fotomanni

Hello,

I have installed a coppermine gallery integrated with phpBB2. All is working fine. At the moment I have only one problem:

My username is not displayed in the thumbnail view and also not in the info below the picture.

Only mine. All other usernames are displayed both in thumbnail view and below the pictures. I have no difference found between me an other users except that I am the administrator.

Any help appreciated.

Bye
Manfred

Nibbler

This is the usual behavior.

To change this, find in picmgmt.inc.php:


            $user_id = GALLERY_ADMIN_MODE ? 0 : USER_ID;
                        $username=$USER_DATA['user_name'] ;


change to:


            $user_id = USER_ID;
                        $username=$USER_DATA['user_name'] ;

Fotomanni

Thanks for your help!

I have changed this and also have changed the owner_id in database and it works fine.

But now I'm wondering what is the reason for this behavior? Why should the administrators name not shown?

Bye Manfred

Joachim Müller

this is expected behaviour, because most people use coppermine not as some community picture gallery, but just to show their very own pics. For this reason, all thumbnails would be labelled with the admin's username (which would look silly on my gallery for example, since there are only <5% or all pic uploaded by users, the rest has been uploaded my me). Maybe we'll built a switch into the config page of a future version of coppermine to enable/disable the display of the admin username underneath each pic. I've added this to my todo-list.

GauGau