Problem

This is most certainly user-error but I've been looking it at it a few hours, search the closed issued reports and documentation, and still can not seem to fix it. Thank you, in advance, for your help and patience with this drupal newbie. :-)

Using the very good documentation for this module I was able to get the module installed. I was able to create a block using the module which points to a folder in which I have some image files. I have added that block to a content region.

I tried explicitly creating a page which uses the PHP Filter input mode which contains the following PHP:

<?php
$block = module_invoke('ddblock', 'block', 'view', 4);
if (null !== $block) {
    var_dump($block);
}
else {
    print("\$block was null\n");
}
?>

I have tried it with the 4 in quotes and not (in case something was checking types). The page always has the page title followed by '$block was null'. The URL for the block is '/admin/build/block/configure/ddblock/4'. I was expecting the gallery to appear on the page.

Additional Troubleshooting

As an additional test I configured the block to 'Show only on the listed pages'; and I list "admin/*" (without quotes) then the gallery displays successfully on my admin pages. Good - I know the gallery works. However, if I then configure the block to only 'Show on every page except the listed pages' with the same filter (admin/*) the gallery does not appear to show up anywhere. I would have expected this gallery to show up on all pages except the admin pages... no joy.

So it seems there is some other step I am missing. I can see that the gallery can work (previous paragraph) but I can not get it to appear in a page node.

Additional Details

In case it matters I am running drupal-6.15 on PHP version 5.3.0 (WAMP server)
I am also using jquery_update-6.x-1.1.

I also have HTML-Purifier CKEditor and ICME related modules installed.
However, based on closed tickets I reviewed I verified that they are not inserting any HTML into my page.
I can save the page, and then reedit it without anything having changed.

Thanks again for your help!

Comments

mabgfounder’s picture

My 'Additional Troubleshooting' section might be a separate issue altogether. However, one of my statements in that section was not correct and I don't want it to cost anyone time. In that section I claim that the gallery does not appear anywhere when 'Show on every page except the listed pages' is set to 'admin/*' (without quotes). That is not true. For the admin user (user 1) the gallery does show up on the non-admin pages.

All other users never see the gallery. This is true even if I check all of the roles in the block configuration.

I don't know if this is a symptom of the same problem I am having embedded a module_invoke call in a page node. I am including this information just in case it helps.

ppblaauw’s picture

As I understand placing the ddbock slideshow in a region works ok
Placing the slideshow in a page with the block display setting set to 'Show only on the listed pages'; admin/* shows the ddblock on admin pages
Placing the slideshow in a page with the block display setting set to ''Show on every page except the listed pages''; admin/* doesn't show the ddblock on the pages other then admin pages

The code to add your block to a page with input type PHP should be:

$block = module_invoke('ddblock', 'block', 'view','4');
print $block['content'];

From the cases above it looks like the ddblock does not show up at pages other then admin pages.
Do you have given permissions for other users to view ddblock slideshow at the permissons page?
Do you have other permissions modules installed?
Do you have a link to the site?

Also read your additional information in your second post now and I am sure now that you still need to give permissions for other users to view ddblock slideshows at the user permissions page.

Hope this helps you further, please let me know.

PS. I wish all users where this detailed when posting an issue.

mabgfounder’s picture

DOH!

Thank you very much for your prompt and very helpful response. As I expected it was a newbie mistake. It never occurred to me that I would have to turn on permissions to view the slideshows. Once I set them everything starting working as expected.

I am not certain of this project's workflow. Do you need me to close the ticket? If so should its status be set to 'closed', 'fixed' or 'wont fix'?

Happy New Year!

ppblaauw’s picture

Status: Active » Fixed

Added additional text in the Quick configuration in 10 steps part of the tutorial, to configure permissions.

Happy New Year!

mabgfounder’s picture

Thanks again.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.