Page 1 of 1

Forums on index in TWO columns.

Posted: Fri Sep 17, 2004 12:30 am
by hcteks
Hi folks,

I want to be able to show my forums on the index page in two columns. For example, normally the index page looks like this:

Forum 1
Forum 2
Forum 3
Forum 4

I was hoping to get it took something like this:

Forum 1 || Forum 2
Forum 3 || Forum 4

I imagine this would require some editing in the index.php file, but i have no idea where to start.

Thanks.

Posted: Sat Sep 18, 2004 9:19 pm
by hcteks
bump....

is this possible, anyone?

Re: Forums on index in TWO columns.

Posted: Fri Jun 08, 2007 5:25 pm
by terestres
I want the same. Here an example.
Any ideas?

Thanks a lot :)

Re: Forums on index in TWO columns.

Posted: Sat Jun 09, 2007 7:15 pm
by terestres
bump ;)

http://skipmasta.de/phpBB2/
look at this form :)

Re: Forums on index in TWO columns.

Posted: Mon Jun 11, 2007 7:38 am
by terestres
bump ;)

Re: Forums on index in TWO columns.

Posted: Wed Jun 13, 2007 8:38 pm
by terestres
bump

Re: Forums on index in TWO columns.

Posted: Wed Jun 13, 2007 8:57 pm
by Greenweaver
This requires a MOD to accomplish this as it can not be done with pure style adjustment. Requests for MODs can be placed in this forum:
http://www.phpbb.com/community/viewforum.php?f=17

See this previous topic also:
Topics side by side

Re: Forums on index in TWO columns.

Posted: Wed Jun 13, 2007 9:01 pm
by terestres
ok, thx for respond :)

Re: Forums on index in TWO columns.

Posted: Mon Jun 25, 2007 11:54 am
by Brf
GreenWeaver wrote:This requires a MOD to accomplish this as it can not be done with pure style adjustment.
How about mixing in a little javascript....

Within the forumrow, keep track of left-right and use document.write to create the appropriate table tags....

Code: Select all

<script language="Javascript">
<!--
leftcol=true;
//-->
</script>
<!-- BEGIN forumrow -->
<script language="Javascript">
<!--
if (leftcol)
    {
    document.write("<tr>");
    }
//-->
</script>
..... rest of forumrow (omit <tr> and </tr>.......
<script language="Javascript">
<!--
if (leftcol)
    {
    leftcol=false;
    }
    else
    {
    document.write("</tr>");
    leftcol=true;
    }
//-->
</script>
<!-- END forumrow -->
<script language="Javascript">
<!--
if (!leftcol)
    {
    document.write("<td colspan=5>&nbsp;</td></tr>");
    }
//-->
</script>

Re: Forums on index in TWO columns.

Posted: Mon Jul 02, 2007 7:54 am
by terestres
cool, it works good for my forum :)

many thanks, Brf :)))

Re: Forums on index in TWO columns.

Posted: Mon Jul 02, 2007 11:54 am
by Brf
That is awesome. I just whipped that out off the top of my head....
Now anyone can use 2-column style without a mod to viewforum.php 8-)

I assume you had to double up the header row too...