How to add link to the left panel - fotogallery theme - How to add link to the left panel - fotogallery theme -
 

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]

Main Menu

How to add link to the left panel - fotogallery theme -

Started by mfaizalar, March 27, 2008, 01:07:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mfaizalar

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.

Nibbler

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.

mfaizalar

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.

Joachim Müller


mfaizalar

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?

Joachim Müller


mfaizalar

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)?

Joachim Müller


steveeh131047

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