Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Category Alignment Issues on Customized template  (Read 5583 times)

0 Members and 1 Guest are viewing this topic.

CrystalSC

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 3
Category Alignment Issues on Customized template
« on: June 03, 2010, 06:02:04 am »

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:
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!!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Category Alignment Issues on Customized template
« Reply #1 on: June 04, 2010, 09:13:54 am »

  • 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
Logged

CrystalSC

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 3
Re: Category Alignment Issues on Customized template
« Reply #2 on: June 04, 2010, 04:03:39 pm »

  • (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.
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Category Alignment Issues on Customized template
« Reply #3 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.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Category Alignment Issues on Customized template
« Reply #4 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? for detailed step-by-step instructions how to sanitize.
Logged

CrystalSC

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 3
Re: Category Alignment Issues on Customized template
« Reply #5 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.
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Category Alignment Issues on Customized template
« Reply #6 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
Logged
It is a mistake to think you can solve any major problems just with potatoes.

onthepike

  • Guest
Re: Category Alignment Issues on Customized template
« Reply #7 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Category Alignment Issues on Customized template
« Reply #8 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.043 seconds with 19 queries.