[Solved]: replace "file x/y" in nav_menu with image title [Solved]: replace "file x/y" in nav_menu with image title
 

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]

Main Menu

[Solved]: replace "file x/y" in nav_menu with image title

Started by shovi, February 27, 2008, 12:35:00 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

shovi

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.

Nibbler

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

change

$pic_pos = sprintf($lang_img_nav_bar['pic_pos'], $human_pos, $pic_count);

to

$pic_pos = $CURRENT_PIC_DATA['filename'];


larrpan

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

shovi

Quote from: larrpan 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

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

change "FILE" to "ITEM".

larrpan