Could someone guide me on restricting the NEWS panel from specific membergroups?

Started by rcane, November 27, 2021, 10:08:26 AM

Previous topic - Next topic

rcane

it's the fader.  i had that enabled.  i need to find the fader feature as that's what is set to show

rcane

Quote from: rcane on February 04, 2022, 12:24:41 AMit's the fader.  i had that enabled.  i need to find the fader feature as that's what is set to show

I mean, fader was set in theme settings. enable_news = false isn't affecting that.

rcane

A while back I saw some ideas here on refusing to show the news based on a person's group number.

It worked well for the news when shown in the header but not when using the fader.


is there an equivalent to "enable_news" for the fader?

I am unsure if enable_ is a php command or a function here.
   

Kindred

Theme settings: Show news fader on board index

in BoardIndex.template.php
// Show the news fader?  (assuming there are things to show...)
if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Kindred

can you please not open multiple threads with the same question...

merging your other thread in.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

rcane

Quote from: Kindred on February 04, 2022, 09:16:40 AMcan you please not open multiple threads with the same question...

merging your other thread in.

didn't intend for it that way, but one was about news..the other fader.   syllogistically related, but I couldn't remove the other.

rcane

Quote from: Kindred on February 04, 2022, 09:15:36 AMTheme settings: Show news fader on board index

in BoardIndex.template.php
// Show the news fader?  (assuming there are things to show...)
if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))

The group in question is "10".

The hope would be by adding && !in_array(10, $user_info['groups'])   in there it wouldn't process the news fader if you're in group 10--only showing to anyone NOT in that group.

But, putting in there didn't have an effect on any group.

What did have affect was taking out the "!". 

That removed the fader for everyone, including the admin (group 1).


Advertisement: