Main Menu
collapse

Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

User Info

Welcome Guest.
Please log in.

Who's Online

  • Dot Guests: 1195
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]


Installation errors? Mod incompatibilities? Upgrade problems? Make your way over to the Install and Upgrade Support board for all your solutions!

using block in block can i make it verticle intead of parallel.(pic)

Started by unoit, May 26, 2012, 05:03:22 AM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

unoit

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>

AngelinaBelle

This depends on what you are using to create this block.  Why are you using block-in-block?
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

unoit

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>';



AngelinaBelle

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?
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

unoit

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


AngelinaBelle

Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

unoit

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.

AngelinaBelle

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.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?