News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Show news only to members and only when there are news.

Started by Owdy, June 19, 2006, 01:28:49 PM

Previous topic - Next topic

Owdy

How do i merge these 2:

// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']) && $context['random_news_line'] != '')
echo '

                 // Show a random news item? (or you could pick one from news_lines...)
  if ($context['user']['is_logged'])
echo '


I wanna show news only when there are some and only to members. Thanks.
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Rudolf


// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']) && $context['random_news_line'] != '' && $context['user']['is_logged'])
echo '


It's so obvious.
Maybe I'm misunderstanding you.
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

Owdy

Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Advertisement: