using block in block code, can i change the coding so in my 1st column the photos which run top to bottom can run side to side.
if you look at photo below you will see the 1st colum of 3 photos that run top to bottom, i want to change the block in block coding so the 1st column pics run across the top from side to side.
also have no idea how to change the coding.
cheers
<a href="http://i249.photobucket.com/albums/gg236/tuffstreeters/simpleportalblockinblock.jpg" target="_blank"><img src="http://i249.photobucket.com/albums/gg236/tuffstreeters/th_simpleportalblockinblock.jpg" border="0" alt="Photobucket" ></a>
This depends on what you are using to create this block. Why are you using block-in-block?
Quote from: AngelinaBelle on May 29, 2012, 09:32:38 AM
This depends on what you are using to create this block. Why are you using block-in-block?
Block in block was the only block i could find, that sort of worked.
Is there is a better block to use?
im using board news blocks.
using this block from SiNaN
$columns = 2;
$block_ids = array(49, 50, 52, 53);
$block_data = array();
foreach ($block_ids as $block)
{
$block_data[$block] = current(getBlockInfo(false, $block, false, false));
$block_data[$block]['style'] = sportal_parse_style('explode', $block_data[$block]['style'], true);
}
echo '
<table style="width: 100%;">
<tr>';
$counter = 0;
foreach ($block_data as $data)
{
if ($counter != 0 && $counter % $columns == 0)
{
echo '
</tr>
<tr>';
}
echo '
<td style="width: ', ceil((100 / $columns)), '%; vertical-align: top;">
', template_block($data), '
</td>';
$counter++;
}
echo '
</tr>
</table>';
I"m not sure what is what here.
Probably it would be easier if you would create a test page.
On that test page, just show the one block you want to fine-tune.
When you are done with that one block, then we can turn to the effects of block-in-block.
How does that sound?
hi, ok ill try explain what im after.
Member post say 10 photos in the forum.
The very 1st photo appears on portal as a thumbnail.
thanx
Are you using the gallery block?
Quote from: AngelinaBelle on June 01, 2012, 08:32:50 AM
Are you using the gallery block?
no using the board news block for now. I wanted to keep the photos in the forum.
Try a search on boxynews, and see if this custom block does what you want.
Please try this WITHOUT block-in-block while you are working through it. If you ned more complicatins later, you can add it later.