Advertisement:

Author Topic: Tidy Child Boards  (Read 137826 times)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,189
Re: Tidy Child Boards
« Reply #100 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...)
No good deed goes unpunished
All helpful urges should be circumvented

Offline Özgür

  • SMF Hero
  • ******
  • Posts: 3,926
  • Gender: Male
  • Özgür | jQuery Lover
    • ozgurce on Facebook
    • @ozgurce on Twitter
    • Özgür Yalçın
Re: Tidy Child Boards
« Reply #101 on: December 30, 2009, 07:29:37 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
Code: [Select]
template_tidy_children()And line is
Code: [Select]
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

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,189
Re: Tidy Child Boards
« Reply #102 on: December 30, 2009, 07:30:44 PM »
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

Offline Mr. Pirate

  • Jr. Member
  • **
  • Posts: 176
Re: Tidy Child Boards
« Reply #103 on: January 01, 2010, 04:41:30 PM »
How can i change it from this


to this


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

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,189
Re: Tidy Child Boards
« Reply #104 on: January 01, 2010, 04:44:02 PM »
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

Offline Mr. Pirate

  • Jr. Member
  • **
  • Posts: 176
Re: Tidy Child Boards
« Reply #105 on: January 01, 2010, 05:34:41 PM »

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

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,189
Re: Tidy Child Boards
« Reply #106 on: January 01, 2010, 05:37:22 PM »
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

Offline Mr. Pirate

  • Jr. Member
  • **
  • Posts: 176
Re: Tidy Child Boards
« Reply #107 on: January 01, 2010, 05:41:19 PM »
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
« Last Edit: January 01, 2010, 05:45:50 PM by seenz »

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,189
Re: Tidy Child Boards
« Reply #108 on: January 01, 2010, 05:45:33 PM »
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

Offline Mr. Pirate

  • Jr. Member
  • **
  • Posts: 176
Re: Tidy Child Boards
« Reply #109 on: January 01, 2010, 05:47:49 PM »
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?

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,189
Re: Tidy Child Boards
« Reply #110 on: January 01, 2010, 05:53:02 PM »
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

Offline Mr. Pirate

  • Jr. Member
  • **
  • Posts: 176
Re: Tidy Child Boards
« Reply #111 on: January 01, 2010, 06:06:54 PM »
so who can help me?

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,189
Re: Tidy Child Boards
« Reply #112 on: January 01, 2010, 06:08:43 PM »
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

Offline Mr. Pirate

  • Jr. Member
  • **
  • Posts: 176
Re: Tidy Child Boards
« Reply #113 on: January 01, 2010, 06:11:16 PM »
well what are your solutions?  :-\

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,189
Re: Tidy Child Boards
« Reply #114 on: January 01, 2010, 06:12:45 PM »
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

Offline Mr. Pirate

  • Jr. Member
  • **
  • Posts: 176
Re: Tidy Child Boards
« Reply #115 on: January 01, 2010, 06:26:58 PM »
ok thats fine can you give me a code for that

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,189
Re: Tidy Child Boards
« Reply #116 on: January 01, 2010, 06:28:37 PM »
So what colour is the dividing line supposed to be?
No good deed goes unpunished
All helpful urges should be circumvented

Offline Mr. Pirate

  • Jr. Member
  • **
  • Posts: 176
Re: Tidy Child Boards
« Reply #117 on: January 01, 2010, 06:32:05 PM »
idk but if you put an <hr /> above the code, the forum will make it that color automatically

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,189
Re: Tidy Child Boards
« Reply #118 on: January 01, 2010, 06:34:45 PM »
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

Offline Mr. Pirate

  • Jr. Member
  • **
  • Posts: 176
Re: Tidy Child Boards
« Reply #119 on: January 01, 2010, 07:06:09 PM »
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