Page 1 of 1
problem with center blocks
Posted: 3. December 2009 02:33
by kourosh
Your Portal Version: 1.0.4
Your phpBB Type: Standard phpBB3
MODs installed: Yes
Your knowledge: Basic Knowledge
Boardlink: http://localhost
What have you done before the problem was there?
What have you already tryed to solve the problem?
changed <!-- DEFINE $S_POSTBODY_TOP = 1 --> to <!-- DEFINE $S_POSTBODY_TOP = 0 --> in _block_config.HML
Description and Message
i have problem with center blocks. there is no distance between center blocks and right/left blocks. i took a picture :
http://www.good-life.ir/Capture.JPG
Re: problem with center blocks
Posted: 3. December 2009 03:09
by kourosh
i just found out that it is a language direction problem!
in ltr direction it works fine but in rtl i have this problem!
so what i have to do to fix it?
Re: problem with center blocks
Posted: 3. December 2009 03:56
by Marc
Well, it is kind of hard to help you without being able to take a look at the board.
If you have Firefox installed, I'd recommend you the add-on Firebug. With that you can take a look at your site and maybe you can find out what is causing this.
Oh, and it would also be helpful to know what phpBB Version you are using. As far as I know, the phpBB Team fixed something with rtl in phpBB 3.0.6.
Re: problem with center blocks
Posted: 3. December 2009 04:24
by kourosh
this may help :
http://good-life.ir/portal.php?style=19
the phpbb version in good-life.ir is 3.0.5 and in localhost is 3.0.6 but i still have the same problem in both versions
Re: problem with center blocks
Posted: 3. December 2009 14:20
by Mike
OK.. it is a Problem with portal_body.html
you can try this:
find:
Code: Select all
<td width="<!-- IF $S_COLUMNS_WIDTH_OVERRIDE -->{$PORTAL_LEFT_COLUMN_OVERRIDE}<!-- ELSE -->{PORTAL_LEFT_COLUMN}<!-- ENDIF -->px" valign="top" style="padding-right:{$BLOCK_DISTANCE};">
in this line find:
change it to
this is for the left side. the right side has "padding-left" but need to be "padding-right"
It will only work with rtl...
Re: problem with center blocks
Posted: 3. December 2009 14:48
by Marc
This is what you need to do with the right column (which is the left column in rtl):
Code: Select all
<td valign="top" style="width: <!-- IF $S_COLUMNS_WIDTH_OVERRIDE -->{$PORTAL_RIGHT_COLUMN_OVERRIDE}<!-- ELSE -->{PORTAL_RIGHT_COLUMN}<!-- ENDIF -->px; padding-left:{$BLOCK_DISTANCE};">
Inline find:
Replace it with:
Re: problem with center blocks
Posted: 3. December 2009 16:29
by kourosh
problem solved
tank you