forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: Carolynne on November 16, 2016, 01:57:13 am

Title: Menu: change "my gallery" to "latest uploads"
Post by: Carolynne on November 16, 2016, 01:57:13 am
I do apologize if this question has been answered. I have searched to try to find my answer but am having no luck. In essence what I want to do is have a link a user's navigation menu that takes each individual user to all of their uploads.

Basically I would like to change the menu option of "My Gallery" to the "Latest uploads" of each specific user. So when a user is logged in and they click "My gallery" (is there a way to change this text as well?), it will take them to their latest uploads. Exactly as if they were in their profile and click on "Click here to see all uploads by USER."

In my theme.php file, I have tried to replace: '{MY_GAL_TGT}' => "index.php?cat=$my_gallery_id", with: '{MY_GAL_TGT}' => "thumbnails.php?album=lastupby&uid='.$userID.'", but that doesn't work to go to a specific user's uploads.

Does anyone know how to do this? Thanks.

Gallery link: https://creativescrapbooker.ca/sketchy
Title: Re: Menu: change "my gallery" to "latest uploads"
Post by: Αndré on June 30, 2017, 03:56:40 pm
In my theme.php file, I have tried to replace: '{MY_GAL_TGT}' => "index.php?cat=$my_gallery_id", with: '{MY_GAL_TGT}' => "thumbnails.php?album=lastupby&uid='.$userID.'", but that doesn't work to go to a specific user's uploads.

You need to replace it with
Code: [Select]
'{MY_GAL_TGT}' => "thumbnails.php?album=lastupby&uid=".USER_ID,