It's probably easy, but I'm stumped...

LEVSwebmaster

Joined: 2005-05-02
Posts: 7
Posted: Sat, 2009-09-19 13:21

Remove this FAQ information from your post before submitting.
Gallery version = 2.2 core 1.2.0
PHP version = 4.4.7 cgi
Webserver = Apache
Database = mysqlt 5.0.45-log, lock.system=flock
Toolkits = Exif, ImageMagick
Acceleration = none, none
Operating system = Linux cgi1502.int.bizland.net 2.6.29.4 #1 SMP Mon Jun 1 13:08:14 EDT 2009 i686
Default theme = siriux
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)
Rows in GalleryAccessMap table = 77
Rows in GalleryAccessSubscriberMap table = 280
Rows in GalleryUser table = 5
Rows in GalleryItem table = 279
Rows in GalleryAlbumItem table = 3
Rows in GalleryCacheMap table = 0

I used to be much better at this webmastering stuff, but I've been out of the loop for a while. I decided that our website (www.vikingship.org) needed updating, which included the a gallery1 version. I won't go into the annoyances about trying to upgrade to g2, because I ended up starting over and I'll just re-upload what pictures I have.

Anyway, to get to my question - I'm trying to make my gallery look like my website, and I've been relatively successful in modifying a local copy of theme.tpl, except that the gallery should be in a white table, and for some reason that part of the table is showing the background (which is the dark blue).
Here's my code - can someone help me out? (I know there are probably a lot of other things to fix too, but be nice, please... :))

Quote:
{*
* $Revision: 15342 $
* If you want to customize this file, do not edit it directly since future upgrades
* may overwrite it. Instead, copy it into a new directory called

"local" and edit that
* version. Gallery will look for that file first and use it if it exists.
*}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="{g->language}">
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<LINK REL=StyleSheet HREF="../stylesheet.css" TYPE="text/css">
<META name="description" content="The Leif Ericson Viking Ship, Inc. is a 501(c) 3 nonprofit educational organization dedicated to the study,

education and promotion of the fact that Leif Ericson was the first European to set foot upon and explore the North American Continent and of Vikings in general, their

times and travels throughout the world.">
<META name="keywords" content="leif ericson, leif erikson, leif ericsson, viking, viking ship, vikingship, viking culture, reenactor, swedish, finnish,

icelandic, norwegian, greenlander, danish">
<title>LEVS: Gallery</title>
</head>
<body bgcolor="#062b6f" LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0><center>
<table width="800" height="140" border="0" cellpadding="0" cellspacing="0" bgcolor="ffffff">
<tr>
<td colspan="6">
<img src="../../images/headertop.gif" width="800" height="110" alt=""></td>
</tr>
<tr>
<td>
<img src="../../images/shipbottom.gif" width="137" height="30" alt=""></td>
<td>
<a href="../index.html">
<img name="id2008_website_header_03" src="../../images/home_w.gif" width="94" height="30" border="0" alt=""></a></td>
<td>
<a href="../../About_Us/index.html">
<img name="id2008_website_header_04" src="../../images/us_w.gif" width="125" height="30" border="0" alt=""></a></td>
<td>
<a href="../../Our_Ships/index.html">
<img name="id2008_website_header_05" src="../../images/ship_w.gif" width="124" height="30" border="0" alt=""></a></td>
<td>
<a href="../../FAQs/index.html">
<img name="id2008_website_header_06" src="../../images/faq_w.gif" width="153" height="30" border="0" alt=""></a></td>
<td>
<a href="../../Merchandise/index.html">
<img name="id2008_website_header_07" src="../../images/merch_w.gif" width="167" height="30" border="0"

alt=""></a></td>
</tr>
</table>
<!--body of text-->
<table width="792" border="5" bordercolor="ffffff" bgcolor="ffffff" cellpadding="10">
<tr>
<td>
{literal}<script type="text/javascript" src="../MPBackLinks.js"></script>{/literal}{if $theme.useFullScreen}
{include

file="gallery:`$theme.moduleTemplate`" l10Domain=$theme.moduleL10Domain}
{elseif $theme.pageType == 'progressbar'}
<div class="header"></div>

<div class="content">
{g->theme include="progressbar.tpl"}
</div>
{else}
<div class="header"></div>
<div class="content">
<div

class="breadcrumb">
{g->block type="core.BreadCrumb" skipRoot=true separator="/"}
</div>

{* Include the appropriate content type for the page we want

to draw. *}
{if $theme.pageType == 'album'}
{g->theme include="album.tpl"}
{elseif $theme.pageType == 'photo'}
{g->theme

include="photo.tpl"}
{elseif $theme.pageType == 'admin'}
{g->theme include="admin.tpl"}
{elseif $theme.pageType == 'module'}
{g->theme

include="module.tpl"}
{/if}

<div class="footer">

</div>
</div>
{/if}
</td>
</tr>
</table>
</center></body>
<center><table align="center">
<tr>
<td>
<p class="footer">P.O. Box 393 Swarthmore, PA 19081-0393
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
<a class="footer" href="LEVScontacts.html">Contact Us</a>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;                     
{literal}<SCRIPT LANGUAGE="JavaScript">

RightNow = new Date();
var TheYear = RightNow.getYear()

if (TheYear >= 100 && TheYear <= 1999)
{TheYear=TheYear + 1900}
else
{TheYear=TheYear}
document.write("Copyright 1992 - " + TheYear)
</Script>{/literal}
</p>
</td>
</tr>
</table></center>
</html>

 
LEVSwebmaster

Joined: 2005-05-02
Posts: 7
Posted: Sat, 2009-09-19 13:22

Oops - I forgot to add the link to my gallery: http://www.vikingship.org/gallery2/main.php

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Sat, 2009-09-19 14:54

Install Firefox and Firebug :)

Also, you should upgrade to 2.3, 2.2 is very old and has known security issues with it.

FAQ: How to upgrade Gallery2?

And for future reference: :)
FAQ: Can I update from G1 -> G2?

hrrrm, a little firefox and firebug isn't doing the quick trick for me.
Got here: http://www.flashyourweb.com/staticpages/index.php?page=gallery2_embed-o-rator

I don't know what that MP backlinks script is or why it's in there doing something Gallery does by default. Also looks like you're editing stuff right now.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22892
Posted: Sat, 2009-09-19 18:26

Looks to me like you removed way too much of the gallery content in theme.tpl. It needs some of the css so it will be right.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Sat, 2009-09-19 18:59

Oh and try #ffffff instead of just ffffff
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
LEVSwebmaster

Joined: 2005-05-02
Posts: 7
Posted: Wed, 2009-09-23 23:28
nivekiam wrote:
Oh and try #ffffff instead of just ffffff
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

That did it!! Scary how simple that was... I'll get to doing the other stuff as well, but that was a HUGE annoyance factor.

Thanks!