forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: CrystalSC on June 03, 2010, 06:02:04 am

Title: Category Alignment Issues on Customized template
Post by: CrystalSC on June 03, 2010, 06:02:04 am
Hello. I have read THIS (http://forum.coppermine-gallery.net/index.php/topic,52358.0.html) previous thread re: category alignment and I tried changing the alignment commands from center to left but it has not corrected my categories.

My gallery is here: http://thenewdeep.com/screencaps/login.php
test log in is :  user: test member  pass: 123abc

Here is a screen shot of the alignment issues. (I'm sorry to link it but for some reason the attachments aren't working for me.)
http://img.photobucket.com/albums/v13/CrystalPistol/tobedeletedlater/GalleryAlignment.jpg

It is also occurring on subcategories as seen in this screen shot.
http://img.photobucket.com/albums/v13/CrystalPistol/tobedeletedlater/SubCatAlignment.jpg

I have a simple, minimalist design utilized on my site so to customize my gallery (I'm using the water drop theme) I simply plopped the template.html into the head and body sections of a page.
Here's the gallery section of the body code:
Code: [Select]
<div class="section-content">
<br/>
<br/>
  <table width="100%" border="0" cellpadding="20" cellspacing="20">
    <tr>
      <td valign="top" style="border: 1px solid #CCD7E0; background-color: #FFFFFF;">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="100%" align="center">
<h1>{GAL_NAME}</h1>
              <h3>{GAL_DESCRIPTION}</h3><br />
              {SYS_MENU}<br />{SUB_MENU}
            </td>
          </tr>
        </table>
        <img src="images/spacer.gif" width="1" height="15" alt="" />
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td valign="top">
              {ADMIN_MENU}
              {GALLERY}
              <div style="text-align:center;">
              <div>
  {LANGUAGE_SELECT_FLAGS}<br />
  {THEME_SELECT_LIST}{LANGUAGE_SELECT_LIST}
  </div>
  </div>
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
  {CUSTOM_FOOTER}{VANITY}
</div>

</div>
<br/>
<br/>
<div id="footer">

Any tips on how to correct this are very much appreciated! Thanks!!
Title: Re: Category Alignment Issues on Customized template
Post by: Joachim Müller on June 04, 2010, 09:13:54 am
Title: Re: Category Alignment Issues on Customized template
Post by: CrystalSC on June 04, 2010, 04:03:39 pm
Title: Re: Category Alignment Issues on Customized template
Post by: phill104 on June 04, 2010, 04:57:06 pm
Eeeek, you are using your hosts installer. For various reasons* we cannot support that but don't fear, a simple upgrade using a fresh copy downloaded from this site will make it a genuine version.

Simply follow the upgrading instructions found in the docs - http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#14


* One big reason is that your host may have added their own code which we do not know and don not want to learn. Another is that it is usually out of date anyway.
Title: Re: Category Alignment Issues on Customized template
Post by: Joachim Müller on June 05, 2010, 11:42:30 am
It seems my ftp has been hacked. That's a malicious script added onto my index and php pages that I did not add. I am working to remove those.
Read up Yikes, I've been hacked! Now what? (http://forum.coppermine-gallery.net/index.php/topic,51927.0.html) for detailed step-by-step instructions how to sanitize.
Title: Re: Category Alignment Issues on Customized template
Post by: CrystalSC on June 06, 2010, 09:47:54 pm
Okay, I have run the update.php
I believe the malicious script is gone.
I have attached my zipped theme folder.

The alignment issue is there regardless of whether there is a category description or not.
Title: Re: Category Alignment Issues on Customized template
Post by: phill104 on June 06, 2010, 11:49:46 pm
Again, did you use your hosts updater/installer to update? It appears so given the message at the bottom of your page and that you are still 2 versions behind. We are currently on version 1.4.27 and you are running version 1.4.25
Title: Re: Category Alignment Issues on Customized template
Post by: onthepike on June 07, 2010, 04:33:15 am
Your custom Water Drop template calls for "section-content" that apparently wraps your gallery as part of the following:

Code: [Select]

<div class="main">
<div class="section">
<div class="section-content">

But I cannot find "section-content" in either http://thenewdeep.com/style.css or themes/water_drop/style.css stylesheets. Perhaps I'm missing something? Tried to verify with MetaPad, NotePad and WinMerge. I didn't look for it elsewhere, however.

May or may not be related. I'm having a hard time following two different stylesheets in two locations.

Still, you need to upgrade to 1.4.27 as suggested above. Probably won't resolve this issue using a custom theme, but will most probably prevent potential hijacking issues (at least, those which have been identified and addressed).

Have you tried validating your theme through the Markup Validation Service?

http://validator.w3.org/

Take a look and see what turns up. Go from there.
Title: Re: Category Alignment Issues on Customized template
Post by: Joachim Müller on June 07, 2010, 09:33:43 am
Validation fails, see http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fthenewdeep.com%2Fscreencaps%2Flogin.php - it returns 12 errors for me. This looks more difficult to fix than it actually is. Probably all error messages will go away if you fix the first 7 issues that can be fixed easily. Anyway, to pressurize you a bit to actually perform the update you won't get an update on your actual issue in this thread unless you have updated as suggested. Report back if you have.