Making Child board links invisible in category

Started by bburg5, February 22, 2009, 12:37:01 PM

Previous topic - Next topic

bburg5

Is their any way to make the chlid boards visible by all members, linked from outside page and invisble once in boards?

I have a link on my forum that goes to a external url on my site, You then have the options of clicking one of the 50 states and it directing you back to the forum to a child board. Long way of going to the child board, but I do not want 50 child boards listed under a category. Click link www.ffwaterfowl.com/Field_Report_Map.html and it will take you to my page and then click "Ohio". The page then takes you to the child boards. All that works, but when you go back to the main forum page the Ohio child board shows up. Is their any way to hide this link so that it will not make the category look crowded and still be viewed by all members?

Let me know if this does not make sense as I will try to explain it again.

Thanks

karlbenson

You would need to remove them from the template directly

To remove them inside a board.
Themes/default/MessageIndex.template.php

to remove from the boardindex
Themes/default/BoardIndex.template.php

bburg5

I hate to ask, but where or what would I look for in those files?

Thanks

Antechinus

Code is the same in both templates.

<tr>
<td colspan="3" class="windowbg', !empty($settings['seperate_sticky_lock']) ? '3' : '', '">
<span class="smalltext"><b>', $txt['parent_boards'], '</b>: ', implode(', ', $children), '</span>
</td>
</tr>';


Change to:

';

bburg5

I deleted both the way you stated and they still remain.

Here are the files and the link to my test page www.ffwaterfowl.com/Test/index.php

Thanks

Antechinus

My bad. Wasn't thinking this morning. These should work.

bburg5

#6
Great Thank You so much! It works just the way I wanted it to.

Now I have an issue when I add child boards to child boards. They do not show up like I want, but now they are no longer aligned in the boards. I have included a screen shot of what is happening.

Thanks again for your help.....

Antechinus

That'll be a problem with MessageIndex.template.php.
If your theme has its own copy of that file please attach it to a post.

bburg5

The original MessageIndex.template.php file is attached to the third post. I have since replaced the files in those themes with the files you sent me back. Let me know if this does not work as I will delete the theme and reinstall to get the original file back.

Thanks

Antechinus

Should read more carefully. :D  I'll take another look at the file. I must have missed something. Do you have a download link for that theme so I can double check any edits?

Antechinus

Actually scratch that. I think I spotted the problem.

Find this:

foreach ($context['boards'] as $board)
{
echo '
<tr>
<td ' , !empty($board['children']) ? 'rowspan="2"' : '' , ' class="windowbg" width="6%" align="center" valign="top"><a href="', $scripturl, '?action=unread;board=', $board['id'], '.0">';


Change the rowspan to 1.

bburg5

Thank You very much for the help. I dable in these codes alittle, but you guys are great.

Everything is working great!!!

Antechinus



Felix J

#14
I did also want to hide child boards within parent board, but I don't understand how to do it even after reading this thread. I don't want to hide childs boards on board index though.

I would like to get some help, but for smf 2.0...

Thanks

kiddoman


Advertisement: