• Welcome to Simple Machines Community Forum. Please login or sign up.

Tidy Child Boards

Started by Arantor, December 09, 2009, 04:00:36 AM

Previous topic - Next topic

Arantor

Thanks - but which version of the mod, which theme edit? And which entry in question? That code is used in multiple places (and I'm sure I just copy/pasted from SMF's own...)
No good deed goes unpunished
All helpful urges should be circumvented

Özgür

Quote from: Arantor on December 30, 2009, 06:59:45 PM
Thanks - but which version of the mod, which theme edit? And which entry in question? That code is used in multiple places (and I'm sure I just copy/pasted from SMF's own...)
Boardindex.template edit. In last version of mod and smf 2.0 RC2.
Function is template_tidy_children()
And line is
foreach($child_block as $child) {
echo '
<li>';

if(!empty($modSettings['tidy_child_boards_icon']))
echo '<img src="', $settings['images_url'], '/', ($child['new'] ? 'on' : 'off'), '.png" width="12" height="12" alt=""> ';
=)
So Long

Arantor

Huh, affects all the edits :(

Thanks for catching it, I'll fix it shortly.
No good deed goes unpunished
All helpful urges should be circumvented

Mr. Pirate

How can i change it from this


to this


where theres a different color box separating child boards from parent boards?

Arantor

Why does everyone figure I know about styles and making it look pretty?


Anyhow, what colour? You need to add something to the CSS file, to a new block for .board_children but until I know the colour, I can't tell you what.
No good deed goes unpunished
All helpful urges should be circumvented

Mr. Pirate


It looks like this without the tidy child boards, so i guess like this

Arantor

So, um, what exactly are you hoping for? To me that area where the child boards are appears to be exactly the same colour?
No good deed goes unpunished
All helpful urges should be circumvented

Mr. Pirate

January 01, 2010, 05:41:19 PM #107 Last Edit: January 01, 2010, 05:45:50 PM by seenz
I just want the line separating child boards from parent boards, and the space where the parent boards is are windowsbg2, and the childboard windowsbg3

Arantor

Hmm, that brings me back to my previous statement, heh.

I don't actually know how best to do that. I'm really not a designer. I also know that I'm not doing things in a table, so it can't look exactly the same.
No good deed goes unpunished
All helpful urges should be circumvented

Mr. Pirate

can you do something like this though?
just like in the picture turn the parent boards space to windowsbg2 and childboards to windowsbg3 with the line separating them?

Arantor

No, because it's in the same container; unlike the usual which splits the containers, I don't.
No good deed goes unpunished
All helpful urges should be circumvented

Mr. Pirate


Arantor

Someone who knows more about templates and graphics, and ultimately CSS, than I do. The only solutions I know are uglier than what you want.
No good deed goes unpunished
All helpful urges should be circumvented

Mr. Pirate

well what are your solutions?  :-\

Arantor

Dropping an <hr /> into it with custom styling just above the newly added code in BoardIndex.template.php and MessageIndex.template.php
No good deed goes unpunished
All helpful urges should be circumvented

Mr. Pirate

ok thats fine can you give me a code for that

Arantor

So what colour is the dividing line supposed to be?
No good deed goes unpunished
All helpful urges should be circumvented

Mr. Pirate

idk but if you put an <hr /> above the code, the forum will make it that color automatically

Arantor

I didn't know what colour the forum theme would make it.

The <hr /> should go in just after <div class="board_children"> in BoardIndex.template.php and MessageIndex.template.php.
No good deed goes unpunished
All helpful urges should be circumvented

Mr. Pirate

ok i added the <hr /> block and now theres a line above the child boards, but theres also a space above the child boards also how can i remove that space without removing the line


Advertisement: