Category Alignment Issues on Customized template Category Alignment Issues on Customized template
 

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

Category Alignment Issues on Customized template

Started by CrystalSC, June 03, 2010, 06:02:04 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

CrystalSC

Hello. I have read THIS 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:
<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!!

Joachim Müller


  • Board rules / Forum policies: Add Attachments
  • Upgrade, as you're running behind in version count
  • Get rid of the output after your closing tag (after </html>). Seems to be something your webhost is injecting, so you might as well consider changing webhosts and maybe pay more for webhosting
  • Zip your custom theme folder and attach the archive to your next posting

CrystalSC


  • Quote from: CrystalSC on June 03, 2010, 06:02:04 AM(I'm sorry to link it but for some reason the attachments aren't working for me.)
  • 1.4 is the only option my host gave as an install option. I'll check into that.
  • I wasn't sure what output you were referring to so I took a look. 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.
  • again, cannot attach yet. will do so when I can.

phill104

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.
It is a mistake to think you can solve any major problems just with potatoes.

Joachim Müller

Quote from: CrystalSC on June 04, 2010, 04:03:39 PM
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? for detailed step-by-step instructions how to sanitize.

CrystalSC

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.

phill104

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
It is a mistake to think you can solve any major problems just with potatoes.

onthepike

Your custom Water Drop template calls for "section-content" that apparently wraps your gallery as part of the following:


<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.

Joachim Müller

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.