Warning: Table './myalbums_ddblock/watchdog' is marked as crashed and should be repaired query: INSERT INTO watchdog (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '%message in %file on line %line.', 'a:4:{s:6:\"%error\";N;s:8:\"%message\";s:30:\"Function split() is deprecated\";s:5:\"%file\";s:63:\"/home/myalbums/public_html/ddblock/modules/filter/filter.module\";s:5:\"%line\";i:895;}', 3, '', 'http://ddblock.myalbums.biz/node/1792', '', '142.54.172.122', 1398145843) in /home/myalbums/public_html/ddblock/includes/database.mysql.inc on line 128

Warning: Table './myalbums_ddblock/watchdog' is marked as crashed and should be repaired query: INSERT INTO watchdog (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '%message in %file on line %line.', 'a:4:{s:6:\"%error\";N;s:8:\"%message\";s:30:\"Function split() is deprecated\";s:5:\"%file\";s:63:\"/home/myalbums/public_html/ddblock/modules/filter/filter.module\";s:5:\"%line\";i:895;}', 3, '', 'http://ddblock.myalbums.biz/node/1792', '', '142.54.172.122', 1398145843) in /home/myalbums/public_html/ddblock/includes/database.mysql.inc on line 128
Display example slideshow blocks | Dynamic display block slideshow module for Drupal

Display example slideshow blocks

To show the example slideshow block you have several options:

  • A region of your theme.
  • A node.
  • The panels module.

The first two options are described here:

Place an example slideshow block in a region of your theme

  1. Navigate to Administer > Site building > Blocks in the admin menu.
  2. Find one of the: ddblock_if_example_slideshows: uprightxx slideshow blocks in the Disabled section near the bottom of the page.
  3. Select a region in the drop down box next to this block. This will move the block you just created to this region.
  4. Click the Save Blocks button.

Place block in a region

Place the ddblock_if_example_slideshows: uprightxx slideshow blocks in a Node

Important: It is important to enable the PHP filter in the module page to allow embedded PHP code/snippets to be evaluated.

  1. Create a node type (e.g page).
  2. Fill in the Title.
  3. In the body of the node fill in the following code.
    <?php
    $block = module_invoke('views', 'block', 'view','[VIEWS_BLOCK_NAME]');
    print $block['content'];
    ?>
  4. Change [VIEWS_BLOCK_NAME] to the block name of the view: With long block name this will be a hash value (eg: ef50fae2f402df6963bbb6f39927f019, so the code becomes:
    <?php
    $block = module_invoke('views', 'block', 'view','ef50fae2f402df6963bbb6f39927f019');
    print $block['content'];
    ?>

    Note: You can find the name of the views block when you hover on the configure link in the block administration page.

  5. Choose as input format: PHP code
  6. Save the node

Display block in a node

Comments

Hi

I have some problems with this part

-- Choose as input format: PHP code

I can't find the radio button for PHP. how can I enable it?

thanks!

Re: PHP code

You need to enable the PHP filter (core module) - Allows embedded PHP code/snippets to be evaluated.
If you use an additional role besides user 1 to administer the site, the admin role needs permissions to use the filter.

Hope this helps you further, please let me know.

help: can't see the blocks

i follow all the instructions but there is no block showed on the region
i see the content type, and there is no views_ddblock content type there.

for information, i have successfully install this views before and then for a reason i had to reinstall it.
so i remove this views_slideshows module and its example. i also delete all related content and its content-type, thingking that when i reinstall it will shows up again.
i guess i was wrong...

can you help me? what should i do?

Re: help: can't see the blocks

I think best advice is to uninstall the module and reinstall them

Please post an issue in the issue queue of the module.
Comments here are for comments on the documentation, not for solving issues.