Advanced search  

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

Pages: [1]   Go Down

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

0 Members and 1 Guest are viewing this topic.

Carolynne

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
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: 15764
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.