Hi Jochen,

I have a small issue here; After the updating of the most recent versions, I have come across a minor bug.

Case: I have created a block (right sidebar), which calls a small PHP script - "rotate.php". The script is placed in a folder with images, and they rotate(!) when the page is refreshed.

Standing om main pages, it works fine, but expanding a page, as in clicking "Read more", the path to the script is broken:

Normal:
/drupal/sites/all/themes/fourseasons/rotate/rotate.php

Broken:
/drupal/node/sites/all/themes/fourseasons/rotate/rotate.php

When you have the time,

Comments

derjochenmeyer’s picture

it seems it has nothing to do with the theme... ? if you call that script just call it with a leading "/" in the path...

s@ilor’s picture

Hi Jochen,

Thanks for your reply.

I have tested your suggestion with a leading "/", and it doesn't change a thing.

I think it has something to do with the theme. Following the requests for the main content area expanding to the right (if you do not want a right sidebar ...), you accomodated their wishes, and added #contentwrapper and #middle-content to address these issues.

Can we agree on something? If I create a block for the right sidebar, and issue an img url in the body to single image

f.ex. Only local images are allowed. ,

it should produce a visible image? (Doesn't have to be a rotate.php script. Doesn't matter if you call a script, which calls an image, or you call the image straight off.)

Now, it shows just nicely on the frontpage. If I choose the page "Administer" (what I consider a 'main' page), it looks fine. If I click "Blocks" (opening a sub page), or click "Read More" from a front page article (opening a sub page ...), then the path gets broken.

It looks to me as if the main content area is expanding OVER the sidebar area.

However; I have another block in the sidebar ("Polls"), and it's not affected.

Hope this description is of some help. Do not know how to crack this one :-|

s@ilor’s picture

Seems the example, I wanted to show, was stripped out of the previous reply!

How can I show an example of code here, without risking it dissappearing? (how do you make the grey boxes, you use?)

derjochenmeyer’s picture

I have no idea how you call your script ;-) but it has nothing to do with the theme ;-) unless you convince me with a screenshot or actual code that you used...

i suppose your script (rotate.php) creates or returns some kind of path. That path should be absolute! with a leading "/" or better the whole path. You can use base_url() and path_to_theme() (take a look at those functions at api.drupal.org)

try one thing: link to a static image using the absolute path (with a leading "/") e.g. /drupal/sites/all/themes/fourseasons/image/yourimagename.jpg

it should work on all pages.... and if the image is too wide, it will stretch over the right sidebar... thats not an issue of this theme ... ;)

s@ilor’s picture

I'm not a BIGGENER enough to try to load a 3000x2000 px image into my sidebar, thank you very much! :-)

I hate to say it; you are right about the path. I solved it in a slightly different manner, and it looks fine. On all pages!

"If nothing else works, read the manual"; I got a pointer from the instructions in the script.

In case, you want to have a look at the script yourself: http://www.alistapart.com/articles/randomizer/

When I have loaded my site to the Internet, I'll send you a link.

Thanks again,

s@ilor’s picture

Status: Active » Closed (fixed)
derjochenmeyer’s picture

;-) im happy it works ... ;-)