Advanced search  

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]

Pages: [1]   Go Down

Author Topic: How do you exit out of the coppermine program  (Read 3144 times)

0 Members and 1 Guest are viewing this topic.

dukhunter99

  • Coppermine regular visitor
  • **
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 53
    • Fun Factor Photo Booth
How do you exit out of the coppermine program
« on: February 16, 2005, 05:48:22 am »

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. ???
« Last Edit: February 17, 2005, 02:18:22 am by kegobeer »
Logged

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: How do you exit out of the coppermine program
« Reply #1 on: February 16, 2005, 06:03:47 am »

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.

Logged

dukhunter99

  • Coppermine regular visitor
  • **
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 53
    • Fun Factor Photo Booth
Re: How do you exit out of the coppermine program
« Reply #2 on: February 16, 2005, 06:42:30 am »

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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How do you exit out of the coppermine program
« Reply #3 on: February 16, 2005, 08:57:15 am »

edit themes/rainy_day/theme.php with a plain text editor (notepad.exe is fine), find
Code: [Select]
$template_main_menu1 = <<<EOT
                <span class="topmenu">
                        <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
and add after it (in a new line)
Code: [Select]
                                        <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
« Last Edit: February 17, 2005, 08:50:20 am by GauGau »
Logged

dukhunter99

  • Coppermine regular visitor
  • **
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 53
    • Fun Factor Photo Booth
Re: How do you exit out of the coppermine program
« Reply #4 on: February 17, 2005, 12:32:31 am »

Thanks GauGau

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

Thanks Again! ;D

dukhunter99

  • Coppermine regular visitor
  • **
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 53
    • Fun Factor Photo Booth
Re: How do you exit out of the coppermine program
« Reply #5 on: February 17, 2005, 06:23:07 am »

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!
« Last Edit: February 17, 2005, 06:48:10 am by dukhunter99 »
Logged

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: How do you exit out of the coppermine program
« Reply #6 on: February 17, 2005, 07:20:49 am »

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
Code: [Select]
<!-- 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:
Code: [Select]
<!-- 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:
Code: [Select]
<!-- 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.