Page 1 of 1

News posting issue

PostPosted: Wed Oct 11, 2006 10:48 am
Author: IntegraMOD
I have a question about news posting permissions, which I think has been posted before but I cant find it.

If I create a forum and set its permissions to private hidden then anything that I post in that forum can only been viewed by people to give permission to, that is all ok but when I make a NEWS post in that forum and activate news posts on the portal page then all news posts from every forum is posted on the portal news section irrespective of users permissions to view that post or forum.

The way I think it should work is the same way that recent topics block on the portal page warks and that you can only see news from the forums that you have permissions to view and not from any other closed/hidden/private forums.

Re: News posting issue

PostPosted: Wed Oct 11, 2006 12:11 pm
Author: Helter
well im not prolific in php, but I dont find any reference to auth in the news block. maybe it need code similar to this, found in the recent topics block


Code: Select all
          $is_auth_ary = array();         $is_auth_ary = auth(AUTH_ALL, AUTH_LIST_ALL, $userdata, $forum_data);           if( $portal_config['md_except_forum_id'] == '' )         {             $except_forum_id = ''start'';         }         else         {             $except_forum_id = $portal_config['md_except_forum_id'];         }           for ($i = 0; $i < count($forum_data); $i++)         {             if ((!$is_auth_ary[$forum_data[$i]['forum_id']]['auth_read']) or (!$is_auth_ary[$forum_data[$i]['forum_id']]['auth_view']))             {                 if ($except_forum_id == ''start'')                 {                     $except_forum_id = $forum_data[$i]['forum_id'];                 }                 else                 {                     $except_forum_id .= ',' . $forum_data[$i]['forum_id'];                 }             }         }  

PostPosted: Fri Oct 13, 2006 9:45 am
Author: IntegraMOD
Thaks for the info Helter, I tried placing this in a few places in the noews block but to now avail, any more information of help on how to get this right would be appreciated <img>