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: How to add link to the left panel - fotogallery theme -  (Read 3996 times)

0 Members and 1 Guest are viewing this topic.

mfaizalar

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 16
How to add link to the left panel - fotogallery theme -
« on: March 27, 2008, 01:07:58 pm »

Hi,
I'm using fotogallery theme and trying to add link at the left panel (just below "search" option). Couldn't get the right way how to do so and appreciate if anyone can help me.
Logged

Nibbler

  • Guest
Re: How to add link to the left panel - fotogallery theme -
« Reply #1 on: March 27, 2008, 01:54:28 pm »

See if the custom link config option puts it in the right place. If not, edit the theme's template.html and add in your new link just after the {SUB_MENU} tag.
Logged

mfaizalar

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 16
Re: How to add link to the left panel - fotogallery theme -
« Reply #2 on: March 28, 2008, 08:36:46 am »

Hi Nibbler,
Can you show me how to do it? Or may be you could give one example on that. I'm getting nowhere from your words. ???

I'm using fotogallery theme without any modification. It's a fresh one.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How to add link to the left panel - fotogallery theme -
« Reply #3 on: March 28, 2008, 08:42:20 am »

Post a link to your gallery for a start.
Logged

mfaizalar

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 16
Re: How to add link to the left panel - fotogallery theme -
« Reply #4 on: March 28, 2008, 10:55:11 am »

Post a link to your gallery for a start.

Unfortunately, I still don't have link for my gallery. All this while, I'm using offline server. What if I zip the package and send it to u personally?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How to add link to the left panel - fotogallery theme -
« Reply #5 on: March 28, 2008, 07:03:08 pm »

Negative.
Logged

mfaizalar

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 16
Re: How to add link to the left panel - fotogallery theme -
« Reply #6 on: April 09, 2008, 06:02:33 am »

Hey,
I've found where to put the link at. I put the link name in config section. But then, only one link allowed. How can I put more links (using this feature)?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How to add link to the left panel - fotogallery theme -
« Reply #7 on: April 09, 2008, 07:35:00 am »

Do as I suggested...
Logged

steveeh131047

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Posts: 217
Re: How to add link to the left panel - fotogallery theme -
« Reply #8 on: April 09, 2008, 12:01:38 pm »

If you're not already using the {CUSTOM_HEADER} option, here's a simple (but not very elegant) way to add the extra menu items:-

1) Edit the theme template.html to put {CUSTOM_HEADER} where you want the extra menu items to appear:
Code: [Select]
    <td bgcolor="#F0F0F0" valign="top" nowrap="nowrap"><div class="topmenu">{SYS_MENU}</div><div class="topmenu">{SUB_MENU}{CUSTOM_HEADER}
2) Using a text editor (like Notepad) create a file called something like "extra_menu_items.php" in your fotogallery themes folder. Type in this code and edit it to suit your links:
Code: [Select]
<?php

echo <<<EOT
   <a href="path/to/first/target/" title="Go to aaa">Link 1</a>
   <a href="path/to/second/target/" title="Go to bbb">Link 2</a>
   <a href="path/to/third/target/" title="Go to ccc">Link 3</a>
   <a href="path/to/fourth/target/" title="Go to ddd">Link 4</a>
EOT;

?>

3) Use "Config>>Themes settings>>Path to custom header include" to point to the new PHP file. You'll need to enter something like:
Quote
themes/fotogallery/extra_menu_items.php
Then save the new configuration and try it out.

Steve
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 15 queries.