News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Hide child board display on main forum index ?

Started by MoreBloodWine, December 29, 2011, 10:32:36 PM

Previous topic - Next topic

MoreBloodWine

Quote from: Kays on January 03, 2012, 06:35:22 PM
Dang, it used to work for 1.1.x. ::)

Option C. A bit further up the page (~ line 135) look for:


foreach ($category['boards'] as $board)
{


and add after it:


$board['children'] = array();


How would I not have this applied to group 1 / Developer ?

I was thinking something like this but don't know what to use in the rest of it to make it work.

if($context['user']['WHAT TO USE HERE']){
            $board['children'] = array();
}

Basically I need to be able to see the sub boards to test certain things.

Ty.
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


Kays

Group 1 is admin  so you could use $context['user']['is_admin']

Another way is to download my custom permissions mod (link in my sig) and use that.

if (allowedTo(NewPermission))

Then you can enable or disable it in the Admin CP when you want.

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

MoreBloodWine

Quote from: Kays on February 25, 2012, 08:15:27 AM
Group 1 is admin  so you could use $context['user']['is_admin']

Another way is to download my custom permissions mod (link in my sig) and use that.

if (allowedTo(NewPermission))

Then you can enable or disable it in the Admin CP when you want.
Using use is admin would apply it only for me, thing thing is, I need to be able to have the subs seen by me but hidden to everyone else so it would have to be like an is not admin.
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


Kays

So with that, did you mange to accomplish what you wanted to do? ???

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Advertisement: