Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: 061 on July 24, 2005, 09:01:25 AM

Title: showing boards arranged in colums of two instead of rows
Post by: 061 on July 24, 2005, 09:01:25 AM
how can i arrange boards into columns of 2 so that i can get some thing  like this

(http://img311.imageshack.us/img311/7474/what7ee.gif)

this is just like coppermine galleries display...i tried to get it from there but i cant understand coppermine template system  ::)
any help will be gr8
thanks
Title: Re: showing boards arranged in colums of two instead of rows
Post by: 061 on July 25, 2005, 11:08:08 AM
can any one help in here?
thanks
Title: Re: showing boards arranged in colums of two instead of rows
Post by: Kindred on July 25, 2005, 11:24:22 AM
you could do this by modifying your theme's BoardIndex.template.php

Look for the section:
         /* Each board in each category's boards has:
            new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
            children (see below.), link_children (easier to use.), children_new (are they new?),
            topics (# of), posts (# of), link, href, and last_post. (see below.) */
         foreach ($category['boards'] as $board)

and after that, modify the table structure to use alternating columns rather than individual rows...
Title: Re: showing boards arranged in colums of two instead of rows
Post by: 061 on July 25, 2005, 12:58:04 PM
Actually the problem is that what modifications I need to put in there. I tried to do that earlier but all boards were appearing in one long continuous column instead of  just 2.
Title: Re: showing boards arranged in colums of two instead of rows
Post by: Douglas on July 26, 2005, 02:51:52 PM
I'd also like to know how to do this, as well, since I've got a site that I'd like to do this for.
Title: Re: showing boards arranged in colums of two instead of rows
Post by: Kindred on July 26, 2005, 02:52:59 PM
well, it would be a theme thing...

Most of the people who make themes get to charge for something specific like this.
Title: Re: showing boards arranged in colums of two instead of rows
Post by: 061 on July 29, 2005, 08:18:58 AM
so any one giving me some idea how can i do this?
:(
Title: Re: showing boards arranged in colums of two instead of rows
Post by: Kindred on July 29, 2005, 09:11:20 AM
use a
$x=1;
foreach...
if (!$x) {
echo '
<tr> <td> one section </td>';
$x=1;
} else {
echo '
<td> second section </td></tr>';
$x=0;
}

that might work...   or you could try using a CASE statement...

As I said, most of the people who do themes would charge money for doing it...
Title: Re: showing boards arranged in colums of two instead of rows
Post by: Grudge on July 31, 2005, 04:41:08 AM
Use the attached template for two columns...
Title: Re: showing boards arranged in colums of two instead of rows
Post by: 061 on August 07, 2005, 12:11:50 PM
(solved)