Help
General ArrowChat talk that doesn't fit any other forum.
User avatar
ALieb
Customer
 
Posts: 9
Joined: 10 Sep 2011, 18:00

 

by ALieb 15 Sep 2011, 11:25

So I recently cleared my cache because some of the things on the site weren't working correctly. After I cleared my cache the chat bar completely disappeared so I enabled the "guests can view bar" option and the bar re-appeared but told me that I needed to login or register for it to work. I have an IPB integration can you think of any reason why I can't see the bar after clearing my cache?
User avatar
BBurgos Martinez
Customer
 
Posts: 7
Joined: 07 Jul 2011, 13:37

 

by BBurgos Martinez 30 May 2012, 14:52

I have run into this problem on my board as well. Like you, I haven't figure the cause of the chat disappearing and appearing.
User avatar
Jason
Customer
 
Posts: 2334
Joined: 12 Dec 2009, 16:06

 

by Jason 30 May 2012, 14:59

The get_user_id() function in the includes/integration.php file should be replace with this:

Code: Select all
   function get_user_id() 
   {
      $userid = NULL;
      
      foreach ($_COOKIE as $key => $val)
      {
         if (preg_match("/member_id/", $key))
         {
            $cookie_name = $key;
         }
      }
      
      if (isset($_COOKIE[$cookie_name]))
      {
         $userid = $_COOKIE[$cookie_name];
      }

      return $userid;
   }
User avatar
Staff Bot
ArrowChat Team
 
Posts: 8996
Joined: 07 Nov 2012, 13:41

 

by Staff Bot 16 Dec 2014, 00:26

[b]This thread has been locked because the last post is greater than six months old. There is a good chance that the information in this thread is outdated. Please open a new topic if you wish to discuss this further.[/b]