View Full Version : Allowing only 3 subforums per line


rex_b
21st February 2005, 03:58 AM
Is there an easy way to do this? And no I don't want the subforum column hack.

This is what it looks like, notice the subforum image on the first line and not the second with that forum. I just think it would be tidy if it would be a bit more "organized".

Notice how it's just not orderly.

rex_b
22nd February 2005, 04:18 AM
anybody? :)

Thanks

tgmorris
22nd February 2005, 07:11 AM
It's a template edit that adds a "nowrap" option for the style. You also need to change the regular space character to a non-breaking space (   ).

rex_b
22nd February 2005, 07:26 AM
It's a template edit that adds a "nowrap" option for the style. You also need to change the regular space character to a non-breaking space (   ).

What does this mean and how does one do it? hehe

Rex

tgmorris
22nd February 2005, 08:40 AM
This won't limit the number of subforums on a line but it will make it so the new/old indicator stays with the text when it wraps to a new line.

Replace the contents of the forumhome_subforumbit_nopost and forumhome_subforumbit_post templates with
<span style="white-space:nowrap"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/subforum_$forum[statusicon].gif" alt="" /> <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a></span>

rex_b
22nd February 2005, 09:08 AM
Thanks so much. Now how does one eliminate the "/"

rex_b
22nd February 2005, 09:09 AM
nevermind it's the subforumseperator_post templates. :)

Floris
23rd February 2005, 07:52 AM
I think with a conditional calculation you could actually

<start table>

if 1 <row 1>
if 0 <row 2>

</stop table>
as it will loop you will put the ones in the left column and the zeros in the right.
Just like we do the alternative rows (rather then columns)

rex_b
26th February 2005, 04:43 AM
Just look how much better mine look now, it's amazing.

Couch
26th February 2005, 04:55 AM
Looks a lot neater Rex, good job :)

Floris
27th February 2005, 02:18 AM
That looks great! :)