Adding HTML into 'Link-Path Block' Adding HTML into 'Link-Path Block'
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Adding HTML into 'Link-Path Block'

Started by Xenon777, July 10, 2007, 01:43:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Xenon777

Hello Coppermine Dev Team,

I hope I use the right forum to ask my question. I used the search function but couldn´t find anything about it, maybe I used the wrong search terms :(

Maybe someone can give me a clue how to add some code (HTML or JAVA) under the 'Link-Path Block' (don´t know how it´s called, it display the cat, the user and the album name).

Please see attached jpg to see what I mean. I want to add a link above and under this links marked in red lines.

My gallery:

http://www.darkscenario.com/darkgallery/index.php?cat=1

PS: I´m using default classic theme, so my theme.php is empty :)

Regards,
Xenon777

Joachim Müller

The section you refer to (the one highlighted in red in your screenshot) is what we call the "breadcrumb navigation". To add static content to it, edit themes/yourtheme/theme.php, find // HTML template for the breadcrumb
$template_breadcrumb = <<<EOT
and edit as suggested below. If you don't have this section in themes/yourtheme/theme.php, copy// HTML template for the breadcrumb
$template_breadcrumb = <<<EOT
<!-- BEGIN breadcrumb -->
        <tr>
                <td colspan="3" align="left" class="tableh1"><span class="statlink"><b>{BREADCRUMB}</b></span></td>
        </tr>
<!-- END breadcrumb -->
<!-- BEGIN breadcrumb_user_gal -->
        <tr>
                <td colspan="3" class="tableh1">
                <table width="100%" cellpadding="0" cellspacing="0" border="0">
                <tr>
                        <td align="left"><span class="statlink"><b>{BREADCRUMB}</b></span></td>
                        <td align="right"><span class="statlink">{STATISTICS}</span></td>
                </tr>
                </table>
                </td>
        </tr>
<!-- END breadcrumb_user_gal -->

EOT;
from themes/sample/theme.php into a new line before?>of the file themes/yourtheme/theme.php and then apply the edit below:

To edit the section I refered to above and add some HTML, replace the section mentioned above with// HTML template for the breadcrumb
$template_breadcrumb = <<<EOT
<!-- BEGIN breadcrumb -->
        <tr>
                <td colspan="3" align="left" class="tableh1"><span class="statlink"><b>{BREADCRUMB}</b></span></td>
        </tr>
        <tr>
                <td colspan="3" align="left" class="tableb">
                  Your custom HTML goes here
                </td>
        </tr>
<!-- END breadcrumb -->
<!-- BEGIN breadcrumb_user_gal -->
        <tr>
                <td colspan="3" class="tableh1">
                <table width="100%" cellpadding="0" cellspacing="0" border="0">
                <tr>
                        <td align="left"><span class="statlink"><b>{BREADCRUMB}</b></span></td>
                        <td align="right"><span class="statlink">{STATISTICS}</span></td>
                </tr>
                </table>
                </td>
        </tr>
        <tr>
                <td colspan="3" align="left" class="tableb">
                  Your custom HTML goes here
                </td>
        </tr>
<!-- END breadcrumb_user_gal -->

EOT;
and edit as you see fit.

Joachim

P.S. I guess you want to add some JavaScript, not Java. Those are two entirely different animals.
P.P.S You're running cpg1.4.10, while the most recent stable release currently is cpg1.4.12. It's mandatory to upgrade for security reasons.

Xenon777

Wow Joachim, thank you for your great support, you solved my problem.

Now it´s easy to edit, didn´t know that it´s called the "breadcrumb navigation".

ps: Right, I mean JavaScript, not Java. My bad ;)
pps: I will upgrade soon to last stable version.