News posting issue

Support for IntegraMOD 140

Moderator: Integra Moderator

News posting issue

PostAuthor: IntegraMOD » Wed Oct 11, 2006 10:48 am

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.
Last edited by IntegraMOD on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
Please do not PM for support
User avatar
IntegraMOD
Administrator
Administrator
 
Posts: 459
Likes: 0 post
Liked in: 0 post
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 0.00
Bank: 100.00
Location: Seattle Wa

Re: News posting issue

PostAuthor: Helter » Wed Oct 11, 2006 12:11 pm

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'];                 }             }         }  
Last edited by Helter on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Success is getting what you want. Happiness is wanting what you get." - Dale Carnegie
User avatar
Helter
Administrator
Administrator
 
Posts: 4554
Likes: 40 posts
Liked in: 116 posts
Images: 0
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 1,959.15
Location: Seattle Wa
IntegraMOD version: phpBB2x

PostAuthor: IntegraMOD » Fri Oct 13, 2006 9:45 am

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>
Last edited by IntegraMOD on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
Please do not PM for support
User avatar
IntegraMOD
Administrator
Administrator
 
Posts: 459
Likes: 0 post
Liked in: 0 post
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 0.00
Bank: 100.00
Location: Seattle Wa


Return to IntegraMOD 140

Who is online

Registered users: App360MonitorBot, Bing [Bot]