News:

Wondering if this will always be free?  See why free is better.

Main Menu

help for felblog

Started by ttuu, May 19, 2009, 02:57:00 PM

Previous topic - Next topic

ttuu

A few boards on my forum are only accessible to logged in members. In these areas I have been seeing the following errors in my log:

2: in_array() : Wrong datatype for second argument
File: forum/Sources/FelBlog.php
Line: 1612

AND

8: Undefined index: FelBlog
File: forum/Sources/FelBlog.php
Line: 1607

For your convenience, here are lines 1607 and 1612 of felblog.php (the Topical lines is red color):

// check right for actions
function AllowedToBlog($act, $userID = '')
{
   global $context, $user_info, $ID_MEMBER, $txt;

   $access = (AllowedTo('admin_forum') ? true : false);
   if(!$access)
   {
      if($act == 'manager')
      {
         if($userID == '')
            $self = (!$user_info['is_guest'] && ((isset($_GET['uid']) && $_GET['uid'] == $ID_MEMBER) || !isset($_GET['uid'])));
         else
            $self = $userID == $ID_MEMBER;
         $groups = $self ? $context['FelBlog']['blog_acs'] : array();
      }
      elseif(in_array($act, array('unread', 'tracked')))
         $groups = $user_info['is_guest'] ?  array() : $context['FelBlog']['blog_rd_acs'];
      elseif(in_array($act, array('list', 'view')))
         $groups = $context['FelBlog']['blog_rd_acs'];
      elseif($act == 'cmnt')
         $groups = $context['FelBlog']['blog_wr_acs'];

      foreach($user_info['groups'] as $g)
         $access = (in_array($g, $groups) ? true : $access);
   }
   return $access;
}


anyone can help me?
thanks.

marzi

Have you tried to get help/ask this same question/ on the Feline networks web site?

ttuu

the http://feline-networks.com site is in Maintenance Mode evrytime.


Advertisement: