News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Childboards Only

Started by Bulakbol, April 07, 2009, 03:53:29 AM

Previous topic - Next topic

Dub-T

#40
k I've got this to work with 2.0.2 so this is what you have to do

In install 2 find

<input type="checkbox" name="override_theme"', $context['board']['override_theme'] ? ' checked="checked"' : '', ' class="check" />
</td>
</tr>';


replace it with

<input type="checkbox" name="override_theme"', $context['board']['override_theme'] ? ' checked="checked"' : '', ' class="input_check" />
</dd>
</dl>
</div>';


also find

<input type="checkbox" name="override_theme"', $context['board']['override_theme'] ? ' checked="checked"' : '', ' class="check" />
</td>
</tr>
<tr class="windowbg2">
<td>
<b>', $txt['childboards_only'], ':</b><br />
<span class="smalltext">', $txt['childboards_only_desc'], '</span><br />
</td>
<td valign="top" align="left">
<input type="checkbox" name="hide_topics"', $context['board']['hide_topics'] ? ' checked="checked"' : '', ' class="check" />
</td>
</tr>';


replace it with

<input type="checkbox" name="override_theme"', $context['board']['override_theme'] ? ' checked="checked"' : '', ' class="input_check" />
</dd>
</dl>
</div>';
echo '
<div id="count_posts_div">
<dl class="settings">
<dt>
<strong>', $txt['childboards_only'], ':</strong><br />
<span class="smalltext">', $txt['childboards_only_desc'], '</span><br />
</dt>
<dd valign="top" align="left">
<input type="checkbox" name="hide_topics"', $context['board']['hide_topics'] ? ' checked="checked"' : '', ' class="input_check" />
</dd>
</dl></div>';


n you are done :)

FragaCampos

Thanks a lot for your contribute, Dub-T;)

formen

Hi guys trying to install this mod on 2.0.2 but having no luck.
The codes that i have to change don't seem to be present in the source files i have.

For example in ./Themes/default/ManageBoards.template.php it says find this
<input type="checkbox" name="override_theme"', $context['board']['override_theme'] ? ' checked="checked"' : '', ' class="check" />
</td>
</tr>';


And replace this with
<input type="checkbox" name="override_theme"', $context['board']['override_theme'] ? ' checked="checked"' : '', ' class="check" />
</td>
</tr>
<tr class="windowbg2">
<td>
<b>', $txt['childboards_only'], ':</b><br />
<span class="smalltext">', $txt['childboards_only_desc'], '</span><br />
</td>
<td valign="top" align="left">
<input type="checkbox" name="hide_topics"', $context['board']['hide_topics'] ? ' checked="checked"' : '', ' class="check" />
</td>
</tr>';


But in my ./Themes/default/ManageBoards.template.php file i have
<input type="checkbox" name="override_theme"', $context['board']['override_theme'] ? ' checked="checked"' : '', ' class="input_check" />
</dd>
</dl>
</div>';


In ./Themes/default/MessageIndex.template.php it says find
<div class="tborder marginbottom" id="childboards">

and replace with
<div class="tborder" id="childboards">

But in my ./Themes/default/MessageIndex.template.php file i have
<div class="tborder" id="childboards', $context['current_board'], '_childboards">

Please can someone please tell me how i can get this working please ?


formen

Anyone able to help me get this working please ?

formen

Would be willing to pay for some help as i really need to get this working.

FragaCampos

This is a very important mod and I think it should be part of SMF.

I'm trying to install it in 2.0.3, but it's not working.
I made the change suggested by Dub-T and everything went right there, but I installed with error in MessageIndex.template.php (the one formen wrote about), but I don't see any option at boards configuration.

I believe this is a simple change, can anyone help?

Galaxy Computers

It would be nice it would work for the latest forum versions.
Wade Morris
Amarillo, Texas

Morris Technologies Computer Support Forum

jsx

@Bulakbol

This modification don't work, can't install in SMF 2.0x becasue such a bugs appears:





And I also noticed one bug:



should be write "admin"

margarett

Unfortunately the author is long absent from SM.org so don't expect the package to be fixed... (and due to lack of proper license no one can update it...)
It won't install because it was developed with SMF 2.0RC1 and there were *significant* changes since then, especially in the template files (where this fails).

I might suggest you an alternative for this:
http://www.simplemachines.org/community/index.php?topic=521656.0
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Advertisement: