Advertisement:

Author Topic: [HowTo] Add 2 column support for child boards  (Read 16364 times)

Offline sombra

  • Full Member
  • ***
  • Posts: 596
Re: [HowTo] Add 2 column support for child boards
« Reply #20 on: November 26, 2008, 09:38:13 PM »
ok i will chek this out and tahnks for the fast reply other thing

and the bold letters and the nice chekmark on the first pic on every chield board how can i do somthing like that

Offline sombra

  • Full Member
  • ***
  • Posts: 596
Re: [HowTo] Add 2 column support for child boards
« Reply #21 on: November 26, 2008, 09:45:49 PM »
made the test and here it is

http://i38.tinypic.com/2chn9z7.jpg
http://i36.tinypic.com/992kg9.jpg

theres one thats in the midle and dosent get align

and for how much lines did you do it?

and why is there ones with bold letters and other dont have it
« Last Edit: November 26, 2008, 09:50:31 PM by sombra »

Offline Antechinus

  • SMF Friend
  • SMF Master
  • *
  • Posts: 25,655
  • Master of BBC Abuse
Re: [HowTo] Add 2 column support for child boards
« Reply #22 on: November 26, 2008, 09:55:36 PM »
The "Child Boards" text is already in bold, just like in your first pic. It's the same arrangement.
If you want icons in front of each child board you can do that too but it's more messing around and you'll need to make your own images.

Do this bit:

Code: [Select]
$children[] = $child['new'] ? '<strong>' . $child['link'] . '</strong>' : $child['link'];
Like this:

Code: [Select]
$children[] = $child['new'] ? '<img style="margin-right:5px;" src="' . $settings['images_url'] . '/onk.gif" alt=""/><b>' . $child['link'] . '</b>' : '<img style="margin-right:5px;" src="' . $settings['images_url'] . '/offk.gif" alt=""/>' . $child['link'];

Load two images (call them onk.gif and offk.gif) into the themes images folder and they will act like your normal on and off gifs for main boards.

Offline Antechinus

  • SMF Friend
  • SMF Master
  • *
  • Posts: 25,655
  • Master of BBC Abuse
Re: [HowTo] Add 2 column support for child boards
« Reply #23 on: November 26, 2008, 09:57:55 PM »
The ones in bold are child boards that have new posts in them. That is a standard feature of SMF.   ::)

I didn't set any limit on lines at all. All it does is split whatever child boards you have into two columns.
If you don't want the child board links to turn bold when there are new posts in the child boards that is easy to do, but seriously have you ever used child boards before and not noticed that SMF does that by default? Every SMF theme does that for every child board.

The last code I gave you has them set to stay not-bold because the images do the job of indicating when there are new posts.

Give me a link to the theme.
« Last Edit: November 26, 2008, 10:03:43 PM by antechinus »

Offline sombra

  • Full Member
  • ***
  • Posts: 596
Re: [HowTo] Add 2 column support for child boards
« Reply #24 on: November 26, 2008, 10:10:25 PM »
im new in this of webs and more on smf

im just looking for somthing so it can be more noticible or divided the subboards and that make them look nice and easy to lokate what can you recomend me?

and sorry for my bad english

and thanks for all the help

http://todoilegal.net/index.php?action=collapse;c=2;sa=collapse;#c2

and note i wont be using so much sub boards hehe

Offline Antechinus

  • SMF Friend
  • SMF Master
  • *
  • Posts: 25,655
  • Master of BBC Abuse
Re: [HowTo] Add 2 column support for child boards
« Reply #25 on: November 26, 2008, 10:11:40 PM »
Here's a screenshot from my localhost with eight child boards. As you can see they stack into two even columns. If you have one child board out of line that means you have somehow bollixed the code. Take another look at it and make sure you have copied it correctly.

Offline Antechinus

  • SMF Friend
  • SMF Master
  • *
  • Posts: 25,655
  • Master of BBC Abuse
Re: [HowTo] Add 2 column support for child boards
« Reply #26 on: November 26, 2008, 10:16:36 PM »
im new in this of webs and more on smf

im just looking for somthing so it can be more noticible or divided the subboards and that make them look nice and easy to lokate what can you recomend me?

and sorry for my bad english

and thanks for all the help

http://todoilegal.net/index.php?action=collapse;c=2;sa=collapse;#c2

and note i wont be using so much sub boards hehe

What exactly do you want? You asked for the child boards in two columns so I gave you the code for that. It works. If you want images in front of each one I gave you the code for that too. It works as well.

The board you said was out of line (the MP3 child board) looks fine to me. It's in line with the others.
So what is the problem now? Decide what you want and I'll give you the code for it.
« Last Edit: November 26, 2008, 10:22:07 PM by antechinus »

Offline sombra

  • Full Member
  • ***
  • Posts: 596
Re: [HowTo] Add 2 column support for child boards
« Reply #27 on: November 26, 2008, 10:19:35 PM »
ok nvm seems like you dont understand what i want thanks for the help

Offline Antechinus

  • SMF Friend
  • SMF Master
  • *
  • Posts: 25,655
  • Master of BBC Abuse
Re: [HowTo] Add 2 column support for child boards
« Reply #28 on: November 26, 2008, 10:23:44 PM »
I have already given you code that will make the child boards look like that first screenshot you posted. If that is what you still want then you have the code for it already. If you want something else then you'll have to explain what you want or nobody is going to be able to help you.

Offline sombra

  • Full Member
  • ***
  • Posts: 596
Re: [HowTo] Add 2 column support for child boards
« Reply #29 on: November 26, 2008, 10:34:18 PM »
Quote
im just looking for somthing so it can be more noticible or divided the subboards and that make them look nice and easy to lokate what can you recomend me?

i was trying to tell you that meybe this wont do me well couse i dont have so much boards that what woud you recomend for me

Offline Antechinus

  • SMF Friend
  • SMF Master
  • *
  • Posts: 25,655
  • Master of BBC Abuse
Re: [HowTo] Add 2 column support for child boards
« Reply #30 on: November 26, 2008, 11:00:13 PM »
Make a picture (cut and paste bits) and get it how you like it, then start another thread and ask how to get that result. That's the best way of dealing with it. If you don't know what you want nobody else has any chance.

Offline KahneFan

  • SMF Hero
  • ******
  • Posts: 1,850
  • Gender: Male
    • I Post You Post
Re: [HowTo] Add 2 column support for child boards
« Reply #31 on: December 06, 2008, 04:19:48 AM »
antechinus, is it possible to give the entire front page 3 colums? I have attached a boardindex.template that I've been playing with, no where near complete, will you see if you think it would be possible to have...

Cat
B-1
B-1
B-1
X6

to become

Cat1 | Cat3 | Cat5
B-1a | B-3a | B-5a
B-1b | B-3b | B-5b
B-1c | B-3c | B-5c

Cat2 | Cat4 | Cat6
B-2a | B-4a | B-6a
B-2b | B-4b | B-6b
B-2c | B-4c | B-6c



Offline Antechinus

  • SMF Friend
  • SMF Master
  • *
  • Posts: 25,655
  • Master of BBC Abuse
Re: [HowTo] Add 2 column support for child boards
« Reply #32 on: December 06, 2008, 04:27:02 AM »
Oh it's possible alright. Virtually anything is possible. Have you thought about how that would look on a standard 1024 monitor?

Offline KahneFan

  • SMF Hero
  • ******
  • Posts: 1,850
  • Gender: Male
    • I Post You Post
Re: [HowTo] Add 2 column support for child boards
« Reply #33 on: December 06, 2008, 04:31:54 AM »
I won't be using the standard layout fpr board info.

Offline Antechinus

  • SMF Friend
  • SMF Master
  • *
  • Posts: 25,655
  • Master of BBC Abuse
Re: [HowTo] Add 2 column support for child boards
« Reply #34 on: December 06, 2008, 04:48:23 AM »
I didn't think you would be. It would be totally impractical. I assume you're planning on arranging it more or less like portal front page blocks do with recent topics. Jade has already done a two column theme and three isn't all that different.

This isn't something that really interests me at the moment as I can see it tying up quite a bit of time which I'd rather spend on other things. I'm rather busy at the moment. Also it's quite off topic for this thread. You'd be better off starting a separate thread about it since this one has been ticked off as solved anyway, which means people aren't likely to pay much attention to it.

Offline KahneFan

  • SMF Hero
  • ******
  • Posts: 1,850
  • Gender: Male
    • I Post You Post
Re: [HowTo] Add 2 column support for child boards
« Reply #35 on: December 06, 2008, 10:44:20 AM »
Gotcha. I'll check out the two column theme.

Offline Antechinus

  • SMF Friend
  • SMF Master
  • *
  • Posts: 25,655
  • Master of BBC Abuse
Re: [HowTo] Add 2 column support for child boards
« Reply #36 on: December 06, 2008, 03:46:58 PM »
From memory she didn't release it. She just did it as a mod of Shadow People for one of her forums.

Offline NightLon

  • Semi-Newbie
  • *
  • Posts: 64
Re: [HowTo] Add 2 column support for child boards
« Reply #37 on: March 09, 2009, 06:50:50 PM »
can some one make mine V (2.0 RC1) WITH 2 COLUMS... ;/

this is my boardindex...

Offline Maxtor

  • Jr. Member
  • **
  • Posts: 354
Re: [HowTo] Add 2 column support for child boards
« Reply #38 on: November 02, 2009, 08:58:36 PM »
this code doenst work for this mode: http://custom.simplemachines.org/themes/index.php?lemma=118 (Black Rain). Anyone?

Offline coldy316

  • Jr. Member
  • **
  • Posts: 164
  • Gender: Male
  • G'day mate, how ya doin
Re: [HowTo] Add 2 column support for child boards
« Reply #39 on: December 03, 2009, 05:13:35 AM »
Okay I need to know if this will work on smf 2.0rc2 curve and if so is it possible Antechinus that you can
edit my BoardIndex.template.php please..  But I would like 3 columns . I'm new at this and I'm frighten
that i may stuff it up..

I am using the default core theme for smf 2.0rc2 curve
Would you believe it that i live in gods country
Australia