problem with center blocks

Kein Support auf phpBB Styles direkt!
No support directly to phpBB Styles!

Post Reply

Topic author
kourosh
Active Member
Posts: 6
Joined: 3. December 2009 02:13

problem with center blocks

Post 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

Topic author
kourosh
Active Member
Posts: 6
Joined: 3. December 2009 02:13

Re: problem with center blocks

Post 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?
User avatar

Marc
Dev
Posts: 2504
Joined: 17. July 2008 21:08
phpBB.de User: marc1706
phpBB.com User: Marc
Location: Clausthal-Zellerfeld / München
Contact:

Re: problem with center blocks

Post 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.

Topic author
kourosh
Active Member
Posts: 6
Joined: 3. December 2009 02:13

Re: problem with center blocks

Post 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
User avatar

Mike
Former Team Member
Posts: 1862
Joined: 3. July 2008 23:59
Location: Schwarzwald / FDS
Contact:

Re: problem with center blocks

Post 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:

Code: Select all

style="padding-right:
change it to

Code: Select all

style="padding-left:
this is for the left side. the right side has "padding-left" but need to be "padding-right"

It will only work with rtl...
kein Support per PN / Messenger
no Support via PM / Messenger
User avatar

Marc
Dev
Posts: 2504
Joined: 17. July 2008 21:08
phpBB.de User: marc1706
phpBB.com User: Marc
Location: Clausthal-Zellerfeld / München
Contact:

Re: problem with center blocks

Post 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:

Code: Select all

padding-left
Replace it with:

Code: Select all

padding-right

Topic author
kourosh
Active Member
Posts: 6
Joined: 3. December 2009 02:13

Re: problem with center blocks

Post by kourosh »

problem solved
tank you
Post Reply

Return to “Styles Support”