Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Unexpected block placement!!! HELP!!!
  • Posted: 16.03.2003, 02:21
     
    Serenarules
    rank:
    Freshman Freshman
    registered:
     February 2003
    Status:
    offline
    last visit:
    01.07.04
    Posts:
    39
    Alright, here's the deal...

    I wrote my own theme based on PostNukeBlue. It works perfect in all modules except one. When viewing an article w/comments it displays the right block 'Related Link' BETWEEN the article and the comments. I don't even see how this is possible unless that module is broken.

    Here is some code from the theme:

    Code

    function themeheader(){

        $slogan = pnConfigGetVar('slogan');
        $sitename = pnConfigGetVar('sitename');
        $banners = pnConfigGetVar('banners');
        $type = pnVarCleanFromInput('type');

        include("themes/$GLOBALS[thename]/header.html");

        echo "

            <TABLE width='150' bgcolor='#c0c0c0' border='0' cellspacing='1' cellpadding='2'>

        \n"
    ;

        blocks('left');

        echo "

                </TABLE>
            </TD>
            <TD align='center' valign='top' width='100%' bgcolor='#800000'>

        \n"
    ;

        //echo pnBannerDisplay();

        if($GLOBALS['index'] == 1){ blocks('centre'); }

    }

    function themefooter(){
       
        $slogan = pnConfigGetVar('slogan');

        if($GLOBALS['index'] == 1){

            echo "

                </TD>
                <TD align='left' valign='top' bgcolor='#000000'>
                    <TABLE width='175' bgcolor='#c0c0c0' border='0' cellspacing='1' cellpadding='2'>

            \n"
    ;

            blocks('right');

            echo "

                </TABLE>

            \n"
    ;

        }

        include("themes/$GLOBALS[thename]/footer.html");

    }


    header.html ends with an opening tag and footer.html starts with a closing tag. Basically, it constructs two, or three, cells for a row in the master table. I've been through it repeatedly and cannot find anything wrong with it. No misspellings, no logic errors. And yet, the stupid title and content rows for the 'Related Links' block appear between the article and the comments.

    Here's the link for viewing:

    http://www.skeletalh…ead&order=0&thold=0

    I made the main cell dark red so I could more easily determine cell boundaries.
  • Posted: 16.03.2003, 04:03
     
    Serenarules
    rank:
    Freshman Freshman
    registered:
     February 2003
    Status:
    offline
    last visit:
    01.07.04
    Posts:
    39
    I moved the and
    tags into the leftblock.html and rightblock.html files and it works now, with a little tweaking, and that fixed it. Though it's not totally what I wanted, I can live with it.
  • Posted: 16.03.2003, 04:03
     
    Raleigh
    registered:
     June 2002
    Status:
    offline
    last visit:
    06.08.05
    Posts:
    572
    Did you fix it? I looked at it with IE 6 and with netscape 7 and the right block looks to be appearing in the right place.
  • Posted: 16.03.2003, 04:05
     
    Raleigh
    registered:
     June 2002
    Status:
    offline
    last visit:
    06.08.05
    Posts:
    572
    oops... didn't see your follow up when I posted that...
  • Posted: 16.03.2003, 04:13
     
    Serenarules
    rank:
    Freshman Freshman
    registered:
     February 2003
    Status:
    offline
    last visit:
    01.07.04
    Posts:
    39
    I tend to get ignored, so thank you for taking a look.

    :D
  • Posted: 26.11.2004, 10:56
     
    lukeweb
    rank:
    Freshman Freshman
    registered:
     February 2004
    Status:
    offline
    last visit:
    26.11.04
    Posts:
    3
    I know this topic is ancient, but I have the same problem - and would appreciate some help on how to fix it.
    Cheers.
  • Posted: 26.11.2004, 12:00
     
    Simon
    rank:
    Steering Committee Steering Committee
    registered:
     December 2002
    Status:
    offline
    last visit:
    09.11.08
    Posts:
    13413
    Check either the themearticle function, or the themearticle templates in themes/yourtheme/

    --
    Regards,
    Simon

    itbegins.co.uk - Zikula Consulting

    Please read the Support Guide
  • Posted: 06.12.2004, 08:36
     
    DonGawgon
    rank:
    Freshman Freshman
    registered:
     December 2004
    Status:
    offline
    last visit:
    03.08.05
    Posts:
    15
    I also have the same problem. I created a custom theme based on the PostNukeBlue Xanthia theme and, when viewing articles, the right blocks (PostCalender, Other Stories, Category Menu) displays below the left block. This problem also appears on the PostNuke and PostNukeSilver themes. The problem also appears in the PostNukeBlue updated by the maintainer of NukeWrapper (forgot his name) but not in non PostNuke* themes. The thethemearticle function seems to be just a stub so where/how do I look to implement a fix? In the mean time, I removed the right-block call from master.htm.

    Code

    // Legacy Function: Displays the Article Page when "Read More" is clicked
    // why did they not remove all of these deprecated variables ??
    function themearticle ($_deprecated, $_deprecated, $_deprecated, $_deprecated,
            $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated,
            $info, $links, $preformat) {

        global $engine;
       
        $engine->do_themearticle($info, $links, $preformat);
    }

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula