Page 1 of 1

Custom Theme layout problem

PostPosted: Sun Jan 28, 2007 4:07 pm
Author: Khimaira
While customizing F1Subice Black for my own use with 1.41 I've created the following problem:

I've added some graphics around the navigation menu which creates a large gap to the right (as shown in screenshot below which shows deleting a comment from a KB article) but only on some pages.

[flash=,:18n9d4wx]http://outland.chimaerica.com/gap.jpg[/flash:18n9d4wx]


This occurs on the toc page of the KB but goes away once you pick a category. Same problem with Acronyms.

It reminds me of what happens when using a different portal layout and leaving a column empty...but I am using the regular portal_body.tpl for the default. System-wide portal-header is enabled, footer is not. When I do enable the system-wide footer then the whole footer disappears...so I know I am doing something wrong with the html...

Most pages look fine (forums look correct).

Below is the basic code generated by slicing the image I wanted in Paint Shop Pro:
Code: Select all
<table>  <tr><td>     <img></td></tr>  <tr><td>     <img></td><td>     <img></td><td>     <img></td></tr>  <tr><td>     <img></td><td>     <img></td><td>     <img></td></tr>  <tr><td>     <img></td><td>     <img></td><td>     <img></td></tr>  </table>  


Any idea where I am messing this up? I know it is this customization that is screwing up some of the pages - if I just go with the plain menu everything looks ok. <img>

Re: Custom Theme layout problem

PostPosted: Tue Jan 30, 2007 11:48 am
Author: Khimaira
Did some testing and this seems to be a problem in IE 6 only (which is what I am still using). If I view the problem pages in IE7 or Firefox 2 the gap is gone. So...not sure if this is still a problem or not. <img>

Re: Custom Theme layout problem

PostPosted: Tue Jan 30, 2007 6:00 pm
Author: Teelk
You've added this code to portal_page_header.tpl I'm assuming? Can I see that file?

Re: Custom Theme layout problem

PostPosted: Wed Jan 31, 2007 2:56 am
Author: Khimaira
Actually, I've added it to the individual block .tpl files I have on the header (menu, recent topics, and online users).

Here is the menu one:

Code: Select all
<table>  <tr><td>     <img></td></tr>  <tr><td></td><td>               {QNAVS}  <table>  </table></td>  <td></td></tr><tr><td>     <img></td><td>     <img></td><td>     <img></td></tr>  <tr><td>     <img></td><td>     <img></td><td>     <img></td></tr>  </table>


Test site is located [url=http]HERE[/url] - it is still a work in progress and is not live <img>

Re: Custom Theme layout problem

PostPosted: Wed Jan 31, 2007 3:15 am
Author: Teelk
It's lookin' good. What I'll do is code a portal_page_header.tpl with adding the code you provided. You'll need to restore the blocks to their originals. Do you want all blocks like that or just that column?

Re: Custom Theme layout problem

PostPosted: Wed Jan 31, 2007 3:37 am
Author: Khimaira
Hmm...I hadn't thought about that. Not sure if it would be too much for all the blocks to look like that. Would it be a lot of trouble to try it both ways? If so, I'm happy with just the header column <img>

And thank you so much for the help!

Oh...right now the titles for the header blocks are part of the images. Will that still be possible to make different for each block or will I just end up using the title as set in the IM Portal block config?

Re: Custom Theme layout problem

PostPosted: Wed Jan 31, 2007 4:01 am
Author: Teelk
"Khimaira";p="20928" wrote:Hmm...I hadn't thought about that. Not sure if it would be too much for all the blocks to look like that. Would it be a lot of trouble to try it both ways? If so, I'm happy with just the header column <img>

And thank you so much for the help!
Once the code is done for portal_page_header.tpl then it's not very hard to change the code in the layout files so all the blocks are like that. Comparing those files, it's all very similar code.

"Khimaira";p="20928" wrote:Oh...right now the titles for the header blocks are part of the images. Will that still be possible to make different for each block or will I just end up using the title as set in the IM Portal block config?
Unfortunately, no. But, you've given me an idea for the next version of IM Portal.

Re: Custom Theme layout problem

PostPosted: Wed Jan 31, 2007 9:10 pm
Author: Teelk
Was wondering if you could provide a copy of the original image. I'd like to reslice it.