News:

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

Main Menu

SSI Multiple Board News (ssi_multiBoardNews)

Started by vbgamer45, December 25, 2009, 01:57:08 AM

Previous topic - Next topic

Arantor



Matthias

Hello,

I have membergroup types free to join or leave. If users join to the group, they get displayed an additional board.
Configured at Administration Center » Boards » Modify Boards » Allowed Groups

When a user joins the group, they won't see the topics. Even an admin does not see the topics, they should see all.
If I use 'perms_override' => true, for testing the topics are shown correctly.

I use this code:

// New Group Topics
$parameters = array(
'limit' => 5,
'length' => 42,
'category' => array(15),
'perms_override' => true,    >>Just for testing
'output_type' => 'array',
);
echo '
<div class="cat_bar">
    <h3 class="catbg">', $txt['welcome_NewGroupTopics'], '</h3>
</div>
<div>
<div class="windowbg2 contentblock">
<p>', $txt['welcome_NewGroupTopics_Description'], '</p>';
$group_topics = ssi_multiBoardNews($parameters);
// If nothing to show
if (empty($group_topics['topics']))
echo'
<div class="startpage_article">
<div style="float:left;"></div><div style="padding-top:15px;">', $txt['welcome_NoGroupTopics'], '</div>
</div>';
else
{
// Loop through all items
foreach ($group_topics['topics'] as $news)
{
// Output the items
echo '
<div>
<div style="float:left;"></div><div><h3><a href="', $news['href'], '">', $news['subject'], '</a></h3></div>
<div>', $news['body'], '</div>
', $news['link'], $news['locked'] ? '' : ' | ' . $news['comment_link'], '
</div>';
if (!$news['is_last'])
echo '
<br />';
}
}
echo '
</div>
</div>';


Does somebody has any idea.
Quality first

Matthias

Quality first

vbgamer45

Probably. I have to see what I need to change.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Advertisement: