Page 1 of 1

All blocks on the right

Posted: 25. April 2010 16:55
by jbygden
Your Portal Version: 1.0.5
Your phpBB Type: Premodded phpBB
MODs installed: Yes
Your knowledge: Advanced Knowledge

What have you done before the problem was there?


What have you already tryed to solve the problem?
I can solve the problem by copying the include of the left column to the same place as the include of the right column in portal_body.html, but I have to edit out the definition of the left column all together and enable the left column in the ACP for the blocks within portal_left.html to show on the right.

(BTW: it says tryed to the left here, it should really say tried)


Description and Message
There must be a better way to remove all blocks from the left column and add them to the right than having to edit out the left column in portal_body.html and enable the left column in the ACP.

Or am I mistaken?

Re: All blocks on the right

Posted: 25. April 2010 17:10
by Marc
If you want to move a block from the left column to the right column, you'll also have to move the block include in portal.php.

Re: All blocks on the right

Posted: 25. April 2010 19:26
by jbygden
Marc wrote:If you want to move a block from the left column to the right column, you'll also have to move the block include in portal.php.
Aha, now I see. I'll try that.

Re: All blocks on the right

Posted: 25. April 2010 19:32
by jbygden
jbygden wrote:
Marc wrote:If you want to move a block from the left column to the right column, you'll also have to move the block include in portal.php.
Aha, now I see. I'll try that.
Hmm, now I ended up with all blocks from the left twice in the right column.

Why are the left/right includes in 2 places? Wouldn't it be enough in either portal.php or portal_body.html?

Re: All blocks on the right

Posted: 25. April 2010 22:36
by Marc
No. We need the PHP files to execute the necessary code. The HTML files just display the results of the PHP Code.

I don't get why you have the blocks of the left column twice in the right column. That would mean you included those files twice in portal_right.html.

Re: All blocks on the right

Posted: 25. April 2010 22:55
by jbygden
Marc wrote:No. We need the PHP files to execute the necessary code. The HTML files just display the results of the PHP Code.

I don't get why you have the blocks of the left column twice in the right column. That would mean you included those files twice in portal_right.html.
I don't know either, but I probably made a typo or included once too many times or something. I started over with fresh, unedited, files and now it seems to work the way I want.

Thanks for pointing out that I needed to edit portal.php as well.

BTW, did you see the comment in my original post about tryed vs tried? On the same note, it says that 1.0.4 is the current version as subtopic on both support forums.

Thanks for a great mod though.

Re: All blocks on the right

Posted: 25. April 2010 23:33
by Marc
Oh, never noticed that. Thanks.