News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

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