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: differnet flash banner depending on users language  (Read 4989 times)

0 Members and 1 Guest are viewing this topic.

rgloverd

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
differnet flash banner depending on users language
« on: April 01, 2005, 11:23:29 pm »

Hi,
I want to be able to put a flash menu in the header (this part is easy) But the problem comes is that I want a different flash menu to be displayed when the language of Welsh is chosen and just a standard english one if any other language is choosen, any ideas?
Thanks,
Richard
« Last Edit: April 07, 2005, 02:33:37 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: differnet flash banner depending on users language
« Reply #1 on: April 02, 2005, 12:14:45 am »

Use a custom header (see docs), and decide which menu to add based on the value of $CONFIG['lang']
Logged

rgloverd

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: differnet flash banner depending on users language
« Reply #2 on: April 02, 2005, 12:36:10 am »

Thanks,
I will have a go
Logged

rgloverd

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: differnet flash banner depending on users language
« Reply #3 on: April 06, 2005, 10:49:07 pm »

Could you please give me some more detail on how to do this I have looked at the FAQ docs, but I am new to PHP, I am a java coder by trade, any help would be great,
Thanks,
Richard
Logged

Nibbler

  • Guest
Re: differnet flash banner depending on users language
« Reply #4 on: April 06, 2005, 10:55:27 pm »

Look in your theme.php for the theme you wish to modify and find the pageheader function. Then under

Code: [Select]
'{ADMIN_MENU}' => theme_admin_mode_menu(),
add

Code: [Select]
'{MY_NEW_HEADER}' => $CONFIG['lang'] == 'welsh' ? 'your welsh banner code' : 'your other banner code'
And then in the corresponding template.html file you add the placeholder tag

Code: [Select]
{MY_NEW_HEADER}
in the place on the page you wish the header to be displayed.
Logged

rgloverd

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: differnet flash banner depending on users language
« Reply #5 on: April 07, 2005, 10:57:03 am »

Thanks for all the help, it now looks really good,

Richard
Logged
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 20 queries.