Hi,

I was trying to display 4 small ddblock basic slideshows in one row on my website. i created a new block and put the following code, i don't know if the code is correct because i copied it from php code for advanced slideshow and not basic, but it's showing the slideshows correctly:
< ?php
$block1 = module_invoke('ddblock', 'block', 'view','1');
$block2 = module_invoke('ddblock', 'block', 'view','2');
$block3 = module_invoke('ddblock', 'block', 'view','3');
$block4 = module_invoke('ddblock', 'block', 'view','4');
? >
< table width="100%" cellpadding="5" cellspacing="0" border="1" >
< tr >
< td width="25%" >< ?php print $block1['content']; ? >< /td >
< td width="25%" >< ?php print $block2['content']; ? >< /td>
< td width="25%" >< ?php print $block3['content']; ? >< /td>
< td width="25%">< ?php print $block4['content']; ? >< /td>
< /tr>
< /table>

i submitted the new block as php code input type.

the only problem that i'm having is that inside each cell and above the slideshow an html comment is showing as following: < !-- block content. -- > and i dont know how to remove it! when i look at the code in firebug it shows each td like this:
< td width="25%">
< p>< !-- block content. -- > < /p>
< div id="ddblock-1" class="ddblock-contents clear-block ddblock-processed" style="overflow: visible; visibility: visible; position: relative; height: 150px; width: 220px;" >
< /div>
< /td>
i dont know where this paragraph containing the comment came from, and i dont know why the comment is showing as actual text in my page :(
also if i put the input format as html it doesnt apply the php code correctly...

please help if you know...

Thanks.

Comments

ppblaauw’s picture

Status: Active » Postponed (maintainer needs more info)

The block content comment comes from the content template file: ddblock-cycle-block-content.tpl.php. in the module if you only use the basic options of the module. If you also use the advanced options you can find the file in the custom folder you copied to your theme.

You can remove it there to see if that solves the issue.

Why the comment is shown and why there is a paragraph around it I don't understand. Are you using a WYSIWYG editor which adds something ( CAN YOU HAVE LOOK AT THE CODE)?

Hope this helps you further, please let me know.

ppblaauw’s picture

Status: Postponed (maintainer needs more info) » Fixed

Set status to fixed. assume poster solved the issue
seven weeks without activity.
Poster please add your solution for other users.

Status: Fixed » Closed (fixed)

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