News:

SMF 2.0.19 has been released! Please update. Read more.

Main Menu

[HowTo] Add 2 column support for child boards

Started by Timeless, June 19, 2008, 07:23:56 PM

Previous topic - Next topic

sombra

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

sombra

#21
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

Antechinus

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:

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

Like this:

$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.
Sources code: making easy front end changes difficult since 1873 :P

Mods & Themes | Revamped theme for this site | Dark theme for this site | GitHub for n00bz

Antechinus

#23
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.
Sources code: making easy front end changes difficult since 1873 :P

Mods & Themes | Revamped theme for this site | Dark theme for this site | GitHub for n00bz

sombra

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

Antechinus

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.
Sources code: making easy front end changes difficult since 1873 :P

Mods & Themes | Revamped theme for this site | Dark theme for this site | GitHub for n00bz

Antechinus

#26
Quote from: sombra 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

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.
Sources code: making easy front end changes difficult since 1873 :P

Mods & Themes | Revamped theme for this site | Dark theme for this site | GitHub for n00bz

sombra

ok nvm seems like you dont understand what i want thanks for the help

Antechinus

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.
Sources code: making easy front end changes difficult since 1873 :P

Mods & Themes | Revamped theme for this site | Dark theme for this site | GitHub for n00bz

sombra

Quoteim 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

Antechinus

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.
Sources code: making easy front end changes difficult since 1873 :P

Mods & Themes | Revamped theme for this site | Dark theme for this site | GitHub for n00bz

KahneFan

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


#eric_on_twit| (video) Creating Themes for SMF | Reset Your Forum
NOTE: No PM's for support please.

Antechinus

Oh it's possible alright. Virtually anything is possible. Have you thought about how that would look on a standard 1024 monitor?
Sources code: making easy front end changes difficult since 1873 :P

Mods & Themes | Revamped theme for this site | Dark theme for this site | GitHub for n00bz

KahneFan

I won't be using the standard layout fpr board info.
#eric_on_twit| (video) Creating Themes for SMF | Reset Your Forum
NOTE: No PM's for support please.

Antechinus

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.
Sources code: making easy front end changes difficult since 1873 :P

Mods & Themes | Revamped theme for this site | Dark theme for this site | GitHub for n00bz

KahneFan

#eric_on_twit| (video) Creating Themes for SMF | Reset Your Forum
NOTE: No PM's for support please.

Antechinus

From memory she didn't release it. She just did it as a mod of Shadow People for one of her forums.
Sources code: making easy front end changes difficult since 1873 :P

Mods & Themes | Revamped theme for this site | Dark theme for this site | GitHub for n00bz

NightLon

can some one make mine V (2.0 RC1) WITH 2 COLUMS... ;/

this is my boardindex...


coldy316

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

Advertisement: