New link New link
 

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

New link

Started by Traxman, April 30, 2005, 10:01:55 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Traxman

Ok I have searched this board up and down. Read the faq and docs over and over.

My question refers to adding links into coppermines gallery navbar.

My gallery is located at:
http://www.gamingdynasty.com/PhotoAlbum/index.php

I have skinned the BlackWidow theme to match my site so I know fairly well the style.css and theme files. I have also added links from my main page and my forum to the gallery and everything is integrated.

Being that I changed the template.html file here it is:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{LANG_DIR}">
<head>
<title>{TITLE}</title>
<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
<meta http-equiv="Pragma" content="no-cache" />
{META}
<link rel="stylesheet" href="themes/black_widdow/style.css" />
<script type="text/javascript" src="scripts.js"></script></head>
<body bgcolor="#000000" text="#FFFFFF">

<table width="90%" cellspacing="0" cellpadding="0" border="0" align="center">
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" class="topbkg">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" width="100%">&nbsp;
<!-- remove this as you do'nt like text titles -->
<!--Removed gallery title and description for personal header--!>
<!--<div align="center" class="headtitle">{GAL_NAME} :: {GAL_DESCRIPTION}</div>--!>
<!-- remove this as you do'nt like text titles -->
</td>

</tr>
</table></td>
</table>
 
 <!-- middle section header -->
 <tr>
   <td> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
       
       <tr>
         <td rowspan="2"><img src="themes/black_widdow/images/button_1.gif" width="15" height="25" alt="" /></td>
         <td background="themes/black_widdow/images/announce_1.gif" width="100%" class="topnav" align="center">{MAIN_MENU}</td>
         <td rowspan="2"> <img src="themes/black_widdow/images/button_4.gif" width="15" height="25" alt="" /></td>
       </tr>
       <tr>
         <td> </td>
       </tr>
     </table></td>
 </tr>
 <!-- middle section header -->
 
 <tr>
   <td height="100%"> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">

       <tr>
         <td background="themes/black_widdow/images/spacer.gif" width="15">&nbsp;</td>
         <td bgcolor="#000000">
           <table width="870" border="0" align="center" cellpadding="0" cellspacing="4" class="bodyline">
             <tr>
               <td ><table width="100%" border="0" align="center">
                   <tr>
                     <td>{ADMIN_MENU}</td>
                   </tr>
                   <tr>
                     <td align="center">{GALLERY}<br /></td>
                   </tr>
                   <tr>
                     <td align="center">{LANGUAGE_SELECT_FLAGS}<br />{LANGUAGE_SELECT_LIST}&nbsp;{THEME_SELECT_LIST}</td>
                   </tr>
                 </table>
 </td>
             </tr>
           </table></td>
         <td background="themes/black_widdow/images/spacer.gif" width="14">&nbsp; </td>
       </tr>
       <tr>
         <td colspan="3"><img src="themes/black_widdow/images/spacer.gif" width="100%" height="17" alt="" /></td>
       </tr>
     </table></td>
 </tr>
</table>
</body>
</html>


I need a link just like the "My Gallery" Link in the navbar.

A test account is provided.

user: test1
pass: test1

If any other info is needed please let me know. I am somewhat experience in coding so I can handle most of the terminolgy.
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.gamingdynasty.com%2FTraxman%2FTraxman2.gif&hash=2cb5deaeb0053f78ba8c7ad7280b5c343bf3155e)

donnoman

You need to edit your theme.php

this is from classic

theme.php; $template_main_menu

// HTML template for main menu
$template_main_menu = <<<EOT
               <span class="topmenu">
<!-- BEGIN album_list -->
                       <a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}"><strong>{ALB_LIST_LNK}</strong></a>
<!-- END album_list -->
<!-- BEGIN my_gallery -->
                       <a href="{MY_GAL_TGT}" title="{MY_GAL_TITLE}">{MY_GAL_LNK}</a> |
<!-- END my_gallery -->



the "<!-- BEGIN custom_name -->" starts the button (the name has significance to coppermine, so don't duplicate or remove names that already exist.

put whatever you want the contents to be, I would copy the contents of my_gallery, then modify to suit.

the "<!-- END custom_name -->" ends that button.

In most themes all buttons are the same so it doesn't matter what button you copy. Though by the looks of it, your first and last button may be different, take note of those differences if you copy those.

so if I were going to make a "forum" button I might do:


// HTML template for main menu
$template_main_menu = <<<EOT
               <span class="topmenu">
<!-- BEGIN album_list -->
                       <a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}"><strong>{ALB_LIST_LNK}</strong></a>
<!-- END album_list -->
<!-- BEGIN forum -->
                       <a href="http://www.gamingdynasty.com/forum2/" title="Forum">Forum</a> |
<!-- END forum -->
<!-- BEGIN my_gallery -->
                       <a href="{MY_GAL_TGT}" title="{MY_GAL_TITLE}">{MY_GAL_LNK}</a> |
<!-- END my_gallery -->







Traxman

Thank you so much. It was a simple edit. Works perfect.
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.gamingdynasty.com%2FTraxman%2FTraxman2.gif&hash=2cb5deaeb0053f78ba8c7ad7280b5c343bf3155e)

Jangla

#3
Does it have to be simple text links in a <span>?  I'd like to have a table in there so I can use icons for each link.  I'm playing around with what I think should go in there but not having much luck so far.

Edit - sorted it now.  :-[

kegobeer

It doesn't have to be in a span.  You can wrap everything inside a table - just make sure you open and close tags inside the <!-- BEGIN --> and <!-- END --> tags.  You don't need to use a table if you want to have icons though.

$template_main_menu = <<<EOT
<!--BEGIN album_list -->
  <a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}"><img src="whatever.jpg">&nbsp;{ALB_LIST_LNK}</a>
<!--END album_list -->
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Joachim Müller

take a look at the theme hardwired or rainy_day that come with coppermine - they have table navigation.