How do you exit out of the coppermine program How do you exit out of the coppermine program
 

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

How do you exit out of the coppermine program

Started by dukhunter99, February 16, 2005, 05:48:22 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dukhunter99

On my website, how do I allow users to exit the photogallery and go back to the other parts of my website. I notice there is no exit button or link. ???

donnoman

Add a link back to your main website by placing it somewhere on the template.

Edit template.html.

If you want your button to intermingle with the rest of the buttons you will have to edit $template_main_menu inside your theme.php.


dukhunter99

I'm sorry but I know very little about HTML Coding. I know how to get to the file you are talking about but I don't know where to stick the language. I also would like to use the same style button as the program. I'm using the rainy day theme. ???

Joachim Müller

#3
edit themes/rainy_day/theme.php with a plain text editor (notepad.exe is fine), find$template_main_menu1 = <<<EOT
                <span class="topmenu">
                        <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
and add after it (in a new line)                                        <td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" id="spacer" alt="" /></td>
                                        <td><img name="button1_r1_c1" src="themes/rainy_day/images/button1_r1_c1.gif" width="5" height="25" border="0" id="button1_r1_c1" alt="" /></td>
                                        <td background="themes/rainy_day/images/button1_r1_c2.gif">
                                                <a href="the_other_page.html" title="the text that is suppossed to apear when you mouse over the link">the link text</a>
                                        </td>
                                        <td><img name="button1_r1_c3" src="themes/rainy_day/images/button1_r1_c3.gif" width="5" height="25" border="0" id="button1_r1_c3" alt="" /></td>


Joachim

dukhunter99

Thanks GauGau

It worked great. Much Appreciated. This is a great program. Will recommend to others!

Thanks Again! ;D

dukhunter99

#5
Sorry to do this but I gave the wrong theme that I needed the html coding for. What would the coding be to put an exit link in the classic theme. Sorry about the confusion!

donnoman

same situation:

go into the theme you want to add the button to.

look for $template_main_menu (or $template_main_menu1 if you are trying to modify a split menu theme)

copy the first button block you find ie:

From classic

<!-- BEGIN album_list -->
                       <a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a> ::
<!-- END album_list -->


paste the code right above the same button:

<!-- BEGIN album_list -->
                       <a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a> ::
<!-- END album_list -->
<!-- BEGIN album_list -->
                       <a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a> ::
<!-- END album_list -->


Now modify your newly cloned button taking care to also modify the name of the button between the <!-- and -->'s so you end up with something like this:

<!-- BEGIN my_button -->
                       <a href="http://www.blessed2bless.us/by-steve/end-of-internet.html" title="The Missing Link">Exit</a> ::
<!-- END my_button -->
<!-- BEGIN album_list -->
                       <a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a> ::
<!-- END album_list -->


The name you give your button isn't important as long as it doesn't duplicate an existing button, you don't even REALLy need the remarks before or after your custom button, but they are absolutely mandatory for the builtin menu items.

have fun.