blocks for right region always showing in left side

ajayg - January 14, 2007 - 19:43
Project:SpreadFirefox
Version:5.x-0.1
Component:Code
Category:bug report
Priority:critical
Assigned:Mad Maks
Status:closed
Description

tried latest 5.x.0.1 theme with drupal 5Rc1. Even though I have blocks defined for right column (and they do show as defined under right column in blocks admin) they actually always show on the left side of page.

#1

ajayg - January 14, 2007 - 19:48
Title:right region not working» same problem in both IE 6 and firefox

it behaves same in both IE 6 and firefox. So this is not browser specific.

#2

ajayg - January 14, 2007 - 19:49
Title:same problem in both IE 6 and firefox » blocks for right region alwaus showing in left side.

#3

ajayg - January 15, 2007 - 02:02
Title:blocks for right region alwaus showing in left side.» blocks for right region always showing in left side.

corrected typo

#4

ajayg - January 15, 2007 - 06:15

Here is a solution
in the page.tpl.php
find

@import url(

<?php
print "/" .path_to_theme()."/modules.css";
?>
);
@import url(
<?php
print "/" .path_to_theme()."/nav.css";
?>
);
@import url(
<?php
print "/" .path_to_theme()."/layout.css";
?>
);
and change to
@import url(
<?php
print base_path() .path_to_theme()."/modules.css";
?>
);
@import url(
<?php
print base_path() .path_to_theme()."/nav.css";
?>
);
@import url(
<?php
print base_path() .path_to_theme()."/layout.css";
?>
);

#5

Mad Maks - January 15, 2007 - 07:13

can you please check this bug with RC2? i had just added the "/" because it was missing in my configuration with drupal 5rc2

#6

ajayg - January 16, 2007 - 19:19

Yes it is very much there. Just tested with drupal 5.0 released.

Actually the "/" that you added is likley the problem as it is trying to goto absolute path. What is required is "base_path()" so it know the relative path and not the absolute path. Basically it is not finding layout.css (and other CSS) to load.

#7

ajayg - January 16, 2007 - 19:20
Title:blocks for right region always showing in left side.» messed up code above

I am new here so didn't know how to post. the code above is messed up. What I meant is

replace "/" with base_path()

#8

ajayg - January 17, 2007 - 05:04
Title:messed up code above» blocks for right region always showing in left side

#9

Mad Maks - January 17, 2007 - 07:47

thank you for testing. i now how to handle paths in themes but i had a problem in my setup and the fix for that is also committed in the cvs. i will change it today please check if it is fixed after landed the patch.

thanks again

MM
p.s. never changed the subject, please. only when you have a better title for the issue

#10

Mad Maks - January 17, 2007 - 18:51

patch is landed, please verify.

#11

Mad Maks - January 17, 2007 - 18:55
Status:active» fixed

#12

ajayg - January 22, 2007 - 19:39
Status:fixed» active

Sorry Not yet fixed. Just tested with release version of D5 with the latest theme here. Still exact same issue with page.tpl.php. It still goes to absolute path and theme does not work if drupal is install in a subdirectory. you need change "/" to base_path() when including CSS file. Otherwise it can't find there.

#13

Mad Maks - January 23, 2007 - 08:05
Assigned to:Anonymous» Mad Maks
Status:active» fixed

you have downloaded the same version as the last time. you need to download the latest version (at some reason it doesn't show up at the project page, only on the release page.

http://ftp.osuosl.org/pub/drupal/files/projects/spreadfirefox-5.x-1.x-de...

#14

ajayg - January 24, 2007 - 16:44

You are right. Once I downloaded from the link you gave above, in that version, it is working as expected and no longer have that problem.

#15

Anonymous - February 7, 2007 - 16:45
Status:fixed» closed

#16

thierry_gd - April 9, 2007 - 13:47
Status:closed» active

Problem fixed for IE, still existing in firefox 2.0.3

#17

Mad Maks - January 20, 2008 - 18:07
Status:active» closed

i do not see any problem in Fx 2.0.x

 
 

Drupal is a registered trademark of Dries Buytaert.