coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: mfaizalar on March 27, 2008, 01:07:58 PM

Title: How to add link to the left panel - fotogallery theme -
Post by: mfaizalar 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.
Title: Re: How to add link to the left panel - fotogallery theme -
Post by: Nibbler 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.
Title: Re: How to add link to the left panel - fotogallery theme -
Post by: mfaizalar 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.
Title: Re: How to add link to the left panel - fotogallery theme -
Post by: Joachim Müller on March 28, 2008, 08:42:20 AM
Post a link to your gallery for a start.
Title: Re: How to add link to the left panel - fotogallery theme -
Post by: mfaizalar on March 28, 2008, 10:55:11 AM
Quote from: Joachim Müller on March 28, 2008, 08:42:20 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?
Title: Re: How to add link to the left panel - fotogallery theme -
Post by: Joachim Müller on March 28, 2008, 07:03:08 PM
Negative.
Title: Re: How to add link to the left panel - fotogallery theme -
Post by: mfaizalar 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)?
Title: Re: How to add link to the left panel - fotogallery theme -
Post by: Joachim Müller on April 09, 2008, 07:35:00 AM
Do as I suggested...
Title: Re: How to add link to the left panel - fotogallery theme -
Post by: steveeh131047 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:
    <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:
<?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:
Quotethemes/fotogallery/extra_menu_items.php
Then save the new configuration and try it out.

Steve