Advanced search  

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

Pages: [1]   Go Down

Author Topic: Adding HTML into 'Link-Path Block'  (Read 2657 times)

0 Members and 1 Guest are viewing this topic.

Xenon777

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Adding HTML into 'Link-Path Block'
« on: July 10, 2007, 01:43:11 pm »

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
« Last Edit: July 11, 2007, 10:23:53 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Adding HTML into 'Link-Path Block'
« Reply #1 on: July 10, 2007, 07:06:52 pm »

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
Code: [Select]
// 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
Code: [Select]
// 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
Code: [Select]
?>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
Code: [Select]
// 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.
Logged

Xenon777

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Adding HTML into 'Link-Path Block'
« Reply #2 on: July 11, 2007, 09:32:41 am »

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.

Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.