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: Print the {TITLE} in another location  (Read 3300 times)

0 Members and 1 Guest are viewing this topic.

serg5777

  • Coppermine frequent poster
  • ***
  • Country: ru
  • Offline Offline
  • Gender: Male
  • Posts: 171
    • Широкоформатные обои для рабочего стола
Print the {TITLE} in another location
« on: June 05, 2012, 06:41:12 am »

Where should I take, I have shown by an arrow in the screenshot. Thank you
http://s019.radikal.ru/i634/1206/b3/e77f370decf3.jpg
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Print the {TITLE} in another location
« Reply #1 on: June 05, 2012, 10:05:17 am »

I assume you want to display the picture title in the navigation bar? What should be displayed if there's no picture title set? Nothing? The file name?

Please post your current modification.


Moving from permission to themes board.
Logged

serg5777

  • Coppermine frequent poster
  • ***
  • Country: ru
  • Offline Offline
  • Gender: Male
  • Posts: 171
    • Широкоформатные обои для рабочего стола
Re: Print the {TITLE} in another location
« Reply #2 on: June 05, 2012, 10:43:10 am »

That's right, I need to file name, title pictures :)
Logged

serg5777

  • Coppermine frequent poster
  • ***
  • Country: ru
  • Offline Offline
  • Gender: Male
  • Posts: 171
    • Широкоформатные обои для рабочего стола
Re: Print the {TITLE} in another location
« Reply #3 on: June 05, 2012, 10:44:39 am »

In <<<$template_img_navbar>>>
<td align="center" class="navmenu" width="48">{TITLE}</td>
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Print the {TITLE} in another location
« Reply #4 on: June 05, 2012, 11:45:10 am »

Copy the function theme_html_img_nav_menu from themes/sample/theme.php to your theme's theme.php file if it doesn't exist. Then, find
Code: [Select]
'{LOCATION}' => $location,and below, add
Code: [Select]
'{TITLE}' => $CURRENT_PIC_DATA['title'] ? $CURRENT_PIC_DATA['title'] : $CURRENT_PIC_DATA['filename'],
Logged

serg5777

  • Coppermine frequent poster
  • ***
  • Country: ru
  • Offline Offline
  • Gender: Male
  • Posts: 171
    • Широкоформатные обои для рабочего стола
Re: Print the {TITLE} in another location
« Reply #5 on: June 05, 2012, 12:00:32 pm »

Many thanks Αndrй, as always helped out!  ;)
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Print the {TITLE} in another location
« Reply #6 on: June 05, 2012, 12:42:20 pm »

As always, please
tag your answer as "solved" by clicking on the "Topic Solved" button on the bar at the left hand side at the bottom of your thread.
Logged
Pages: [1]   Go Up
 

Page created in 0.028 seconds with 20 queries.