Need help with custom banner in igames theme Need help with custom banner in igames theme
 

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]

Main Menu

Need help with custom banner in igames theme

Started by JasonR, April 20, 2005, 10:16:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JasonR

I've searched...and I've searched. I've spent over 8 hours on this little tid bit of my project and have come up with nothing but frustration because of my lack of knowledge and experience. Any help would be appreciated.  

I am using the igames theme and I'd like to ad my own custom banner as well as change all the colors to match my Mambo site. Right now I can't get past changing the banner, I'm not sure I'll eve get the colors changed.lol  I searched and found this thread which has been my whole starting point. http://forum.coppermine-gallery.net/index.php?topic=12583.0  I tried to insert the code that Hein offered and customize it for my image but so far, no luck. Here is my code right now.....

<table border="0" cellpadding="0" cellspacing="0" width="100%" class="top_panel">
 <!-- fwtable fwsrc="top_panel.png" fwbase="top_panel" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="1" -->
 <tr>
   <td><table border="0" cellpadding="0" cellspacing="0" width="100%">
       <tr>
         <td background="themes/igames/images/top_panel_r1_c1.jpg">
           <IMG SRC="coppermine/themes/igames/images/custom_banner.jpg"></td>
           <td background="themes/igames/images/top_panel_r1_c4.jpg" ><img src="../../images/spacer.gif" width="1" height="70" border="0" alt="" /></td>
         <td width="50%" background="themes/igames/images/top_panel_r1_c4.jpg" valign="center" align="right">{THEME_SELECT_LIST}&nbsp;{LANGUAGE_SELECT_LIST}&nbsp;</td>
       </tr>
     </table></td>
 </tr>



What I get is only half of my banner showing up and I also get a broken image link icon on top of it, which makes no sense to me. I've also found some odd things happening thru all my trial and error with this tid bit of code and sometimes what looks good in IE doesn't look good in Firefox? I assume once I get it all coded right though, it will work in both.

Here is my Coppermine Gallery with the error showing up right now. http://www.applebytexas.com/coppermine/ I want the banner to stretch all the way across the top of the page.  

Thanks for the help.

Casper

Well, as you are using your own theme, and putting a lot of work into it, I suggest you don't want the theme select you currently have showing.

Your banner is cut off because the cell with the theme select is 50% wide.  You are also using your own banner as background, and trying to put it in the cell.

Try this.  Replace this code;

<table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
          <td background="themes/igames/images/top_panel_r1_c1.jpg">
            <IMG SRC="coppermine/themes/igames/images/custom_banner.jpg"></td>
            <td background="themes/igames/images/top_panel_r1_c4.jpg" ><img src="../../images/spacer.gif" width="1" height="70" border="0" alt="" /></td>
          <td width="50%" background="themes/igames/images/top_panel_r1_c4.jpg" valign="center" align="right">{THEME_SELECT_LIST}&nbsp;{LANGUAGE_SELECT_LIST}&nbsp;</td>
        </tr>
      </table>


With this code;

<table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
          <td width="100%" align="center">
            <IMG SRC="themes/igames/images/custom_banner.jpg"></td>
           
        </tr>
      </table>
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

JasonR

Thanks for the help! You are right about the Theme Select I had showing was left over from me just testing out which theme I wanted. Thanks for reminding me to remove it.

Awesome! The code change worked! I would like my banner shifted to the left so I replaced the <center> code. The only question I have is this....my banner is about 700 pixels wide which leaves blank space on the right in a standard XP resolution. I can easily make the banner wider in Photoshop but if I make it....say 1024 pixels wide, what will that look like if a person views my site with a res. of 800x600 or one of these larger resolutions like 1400 x 1050? I don't know of a real easy way to test my site in different screen resolutions.


Thanks again for the help. You have NO idea how many frustrating hours I spent searching and hoplessly toying with that code. :o