Fork me on GitHub

Block Borders are not aligned - RESOLVED (thanx Mark!)  Bottom

  • its a regular oldschool theme, no AT, no Xanthia, just regular old type.

    Theme Name - Bitrate2 (dont remember where I got it, but it used to be fine!)

    Screenshot of the busted blocks (All blocks are affected, even news story blocks and admin blocks.)

    http://jmcivor.com/brokenblock.jpg

    I'm running pn762

    The block borders are wider than the block allows, pushing the contents/right border to far right, and even underlapping blocks next to it. it looks very ugly. and You'll notice the top left box in the block bar is missing the left line in some parts. Its totally torn up and needs to be fixed asap.

    See all the ugliness here:
    http://jmcivor.com/portal
  • Nobody has any suggestions? (yes I tried reinstalling the theme)

    --
    Currently installed : ZK120

    jmcivor.com
    jlm@jmcivor.com
  • When this happens it is a good idea to make sure the acutal block HTML output is not causing the problem. Do this via a process of elmination - ie deactivate your blocks one by one to see which (if any) are causing the problem.

    -Lobos

    --
    -Lobos
    Professional PHP Framework Services: Concept, Development and Deployment
  • I tried what you said. I have no active blocks on my site now, and they are still misaligned :( (I can tell because the news post block's are messed up still)

    (click thumbnail for full image)


    oh and I should also add that the blocks are NOT misaligned in other themes. I tried extralite and it looked fine.
  • That theme is pretty awful HTML - you'll have a hard time trying to work out any display issues on that given it's level of broken html. You really, really need to spend some timing fixing that theme up - port it into xantha, at....

    My guess on what's changed would be the doctype. .762 defaults to a doctype of



    where as .750 and earlier used




    Notice the lack of the Document type definition (DTD) in the later. Having the doctype forces browsers into standards compliant module and this theme (no suprise given how bad the markup is) doesn't display properly in this mode.

    Fortunately while you clean the theme up you get back to the older doctype. The page wrapper used for old themes (and autothemes) is provided by the header_footer module. This module comes with supplied templates for all doctypes.

    So copy modules/Header_Footer/pntemplates/header_footer_page_html401.htm to themes/Bitrate2/templates/modules/Header_Footer/header_footer_page.htm. Empty out your pnRender compiled templates directory from the pnRender admin panel (or manually empty pnTemp/pnRender_Compiled).

    Once you've done this the header_footer module will use the template in your theme rather than the base one from the module. At this point if what I suspect is the problem actually is then you blocks will display ok. But you still really, really need to do something about that theme - any display issues you have down the line will result in the same feedback.....

    If that doesn't fix it then fix your theme as the first step to identifying the problem....

    -Mark

    --
    Visit My homepage and Zikula themes.
  • Hi Mark, thanks for the reply :)

    I kinda did what you said:

    I copied modules/header_footer/pntemplates/header_footer_page_html401.htm to my bitrate2 theme root directory, because the only folders bitrate 2 had was:
    /htaccess
    /images
    /lang
    /style

    I cleared out the temp pnrender_compiled as well.

    Ofcourse this did not fix it, since the folder structure diddnt match what was needed.

    So this leaves me with:

    Quote

    If that doesn't fix it then fix your theme as the first step to identifying the problem....


    Does this mean manually go through my theme docs changing:



    to



    ?

    :)
  • Please re-read my instructions. The template must be re-named and the structure needs to be exact otherwise it won't work - this is still only a temporary solution while you fix your theme. If a directory doesn't exist create it......

    -Mark

    --
    Visit My homepage and Zikula themes.
  • oh ok. I'll do it again, and this time I'll make the dir's and rename the theme folder

    --
    Currently installed : ZK120

    jmcivor.com
    jlm@jmcivor.com
  • The key part is

    "So copy modules/Header_Footer/pntemplates/header_footer_page_html401.htm to themes/Bitrate2/templates/modules/Header_Footer/header_footer_page.htm. Empty out your pnRender compiled templates directory from the pnRender admin panel (or manually empty pnTemp/pnRender_Compiled)."

    Follow this exactly and we'll see if this works.

    -Mark

    --
    Visit My homepage and Zikula themes.
  • That did it! Thanks Mark!

    Here's what I did exactly and in order:

    1 - created folder Bitrate2/templates/modules/Header_Footer/
    2 - Renamed Bitrate2 folder to Bitrate2_Fixed
    3 - Went to Settings Module with &theme=ExtraLite flag
    4 - Deleted all pnrender_compiled files
    5 - Set Bitrate2_Fixed as the theme

    And now its fixed!

    Although after seeing all the hideous error's you pointed out, I think I'll continue looking for a new theme. But this was the perfect fix I was looking for for right now, thanks Mark!

    --
    Currently installed : ZK120

    jmcivor.com
    jlm@jmcivor.com
  • If you like the theme then spend time fixing it rather than looking for a new one.....

    -Mark

    --
    Visit My homepage and Zikula themes.

This list is based on users active over the last 60 minutes.