Advanced search  

News:

cpg1.5.46 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter recently discovered vulnerabilities. It is important that all users who run version cpg1.5.44 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Menu: change "my gallery" to "latest uploads"  (Read 905 times)

0 Members and 1 Guest are viewing this topic.

Carolynne

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Menu: change "my gallery" to "latest uploads"
« 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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15429
Re: Menu: change "my gallery" to "latest uploads"
« Reply #1 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,
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.