Gallery module will not work in left position
struesda
Joined: 2004-11-29
Posts: 6 |
Posted: Tue, 2005-08-02 18:53 |
I am running gallery 1.4.4-pl4 and Mambo 4.5.1a Gallery runs fine standalone and I have installed the latest versions of the component and mod_block_random. If I have a page containing both the gallery component (in the content pane) and the random image (in the right position). The gallery component works fine, but the random image (and any other modules that I have installed after it on the page) is not displayed. If I switch the random image block to the left position, then the random image displays fine - but anything else after it on the page (login module, content pane with gallery, etc) is not displayed. If I have a page with the random image block, but not the gallery component - everything works fine. So the problem seems to be with the random image block and the gallery component being put onto the same page - and this causes the page to stop at the random image module and go no further. I have not seen a similar thing in the other forum messages - so does anyone have an idea why this would be a problem - or how to fix it? Thanks, see this page for an example |
|
Posts: 2322
It's almost assuredly that the module you're using is broken, and is not loading the random block correctly.
The random block can not be loaded with a file path (/foo/bar/block_random.php). It has to be loaded via http (http://site/foo/bar/block_random.php) to operate correctly.
Posts: 6
Thanks for the quick response.
How do I determine what file path is being used for loading? Is it in the module code, or from a database field?
Thanks,
Steve T
Posts: 2322
I really couldn't say, since I'm not familiar with the module. If you had to configure the mod and tell it where the file was located, then it's probably in the DB. If you didn't have to, it's likely in the code.
Posts: 6
The code gets the path from the gallery component configuration and then tacks a /block-random.php onto the end of it.
When I replace this with hard coding an URL, the random block no longer loads on any of the pages - and neither does the rest of the page.
So that doesn't seem to work either :-?
Here's the module code - anthing else look wrong?
[/code]
Posts: 6
Followup thought:
I'm guessing that block-random.php and index.php both end up getting included and interpreted.
Is there anything in these two scripts that would conflict with the other - or with the $GALLERY_EMBEDDED_INSIDE or $GALLERY_MODULENAME variable settings of they were set before index.php started?
Posts: 2322
Well, your define is missing a trailing slash, so that would cause an issue.
Posts: 6
Do you mean before the block_random.php ?
I think the bottom include puts the slash in before it adds the $include variable. - unless I am needing more sleep
include(GALLERY_URL . "/$include");
So that would result in
"http://www.gracecommunity.ws/gallery" + "/" + "block-random.php"
which would result in a valid url.