Advanced search  

News:

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

Pages: [1]   Go Down

Author Topic: [Solved]: replace "file x/y" in nav_menu with image title  (Read 3590 times)

0 Members and 1 Guest are viewing this topic.

shovi

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
[Solved]: replace "file x/y" in nav_menu with image title
« on: February 27, 2008, 12:35:00 am »

I searched the boards for this, and can't find anything.

in displayimage.php, how do I change nav_menu to put the file name instead of "File #/#"?  I see exactly where all of this code is generated...the "file" part is "$pic_pos" in theme_html_img_nav_menu()...but don't know what or where to replace that with to get the file name.

thanks in advance for your help.
« Last Edit: February 27, 2008, 05:00:56 pm by Joachim Müller »
Logged

Nibbler

  • Guest
Re: replace "file x/y" in nav_menu with image title
« Reply #1 on: February 27, 2008, 11:35:24 am »

Copy theme_html_img_nav_menu() from the sample theme into your theme.php and modify your copy.

change

Code: [Select]
$pic_pos = sprintf($lang_img_nav_bar['pic_pos'], $human_pos, $pic_count);
to

Code: [Select]
$pic_pos = $CURRENT_PIC_DATA['filename'];
Logged

shovi

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: replace "file x/y" in nav_menu with image title
« Reply #2 on: February 27, 2008, 01:20:03 pm »

bingo...thanks.
Logged

larrpan

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: [Solved]: replace "file x/y" in nav_menu with image title
« Reply #3 on: February 29, 2008, 06:59:37 pm »

So what if i don't want to replace "File" with image title but rather change File to say "Item" .. what am i to change in the codes?  thanks
Logged

shovi

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: [Solved]: replace "file x/y" in nav_menu with image title
« Reply #4 on: February 29, 2008, 07:06:02 pm »

So what if i don't want to replace "File" with image title but rather change File to say "Item" .. what am i to change in the codes?  thanks

that's in your language file, under $lang_img_nav_bar 'pic_pos' => 'FILE %s/%s'

change "FILE" to "ITEM".
Logged

larrpan

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: [Solved]: replace "file x/y" in nav_menu with image title
« Reply #5 on: February 29, 2008, 07:22:46 pm »

 ;DYES! U ROCK MAN! CHEERS
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.