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]: Help with PHP Code - Fruity Theme  (Read 3428 times)

0 Members and 1 Guest are viewing this topic.

sovev

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
[Solved]: Help with PHP Code - Fruity Theme
« on: July 19, 2004, 09:36:17 pm »

I'm fairly new to this PHP malarky so excuse my ignorance  :-[ I've tried finding an answer by serching the forum but have had no joy- I got lost tried to edit the theme.php on my /themes/fruity dir  :\'(

Basically I want to edit the main menu on my gallery (http://www.sovev.com/gallery) so that it has an extra "Main Site" button which links back to my main site (http://www.sovev.com). Can anyone offer any help/code?

(BTW it's running the latest coppermine release)
« Last Edit: July 21, 2004, 06:39:07 pm by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Help with PHP Code - Fruity Theme
« Reply #1 on: July 19, 2004, 10:10:05 pm »

you were on the right track: edit themes/fruity/theme.php, find
Code: [Select]
// HTML template for main menu
$template_main_menu = <<<EOT
                <span class="topmenu">
and after it a new line with
Code: [Select]
                        <a href="yourpage.html" title="Title that appears when user mouses over link">your link text</a>
GauGau
Logged

sovev

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Help with PHP Code - Fruity Theme
« Reply #2 on: July 21, 2004, 05:56:48 pm »

You're a star, thanks! ;D
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.