S_POSTER_ONLINE is all the time empty

Support for Administration, Installation, Update & Conversion
Locked until 1.1.0 was released.

S_POSTER_ONLINE is all the time empty

Postby GlouGlou » Sun Apr 29, 2012 4:05 pm

Gallery Version: 1.1.6
phpBB Version: 3.0.10
Gallery-Link: http://localhost

PHP Version: 5.2.17
Database Version: Mysqli 5.0.51a


Error description and message
Hi nick,

I'm just seeing that's the variable S_POSTER_ONLINE is all the time empty and never displayed if the poster of the image is online WHEN the image doesn't have none comment. So impossible to see if poster is online/offline.
But, when a comment is posted, the S_POSTER_ONLINE is ok.

Any way to fix this ?
Thx.
GlouGlou
Posts 20 - 30
Posts 20 - 30
 
Posts: 25
Topics: 7
Images: 0
Joined: Mon Aug 15, 2011 5:32 pm
phpBB.com: GlouGlou

Re: S_POSTER_ONLINE is all the time empty

Postby GlouGlou » Sat May 12, 2012 1:56 am

Any way to fix this ?
Thx.
GlouGlou
Posts 20 - 30
Posts 20 - 30
 
Posts: 25
Topics: 7
Images: 0
Joined: Mon Aug 15, 2011 5:32 pm
phpBB.com: GlouGlou

Re: S_POSTER_ONLINE is all the time empty

Postby nickvergessen » Sat May 12, 2012 10:40 am

I will fix it when I got time for it...
cheers nickvergessen :geek:

Member of phpBB Development-Team
No Support via PM
User avatar
nickvergessen
Administrator
Administrator
 
Posts: 5748
Topics: 217
Images: 139
Joined: Mon Oct 15, 2007 4:15 pm
phpBB.de: nickvergessen
phpBB.com: nickvergessen

Re: S_POSTER_ONLINE is all the time empty

Postby GlouGlou » Sat May 12, 2012 10:38 pm

Ok thx nick.
GlouGlou
Posts 20 - 30
Posts 20 - 30
 
Posts: 25
Topics: 7
Images: 0
Joined: Mon Aug 15, 2011 5:32 pm
phpBB.com: GlouGlou

Re: S_POSTER_ONLINE is all the time empty

Postby GlouGlou » Thu Aug 16, 2012 1:32 am

No time to fix this :(
GlouGlou
Posts 20 - 30
Posts 20 - 30
 
Posts: 25
Topics: 7
Images: 0
Joined: Mon Aug 15, 2011 5:32 pm
phpBB.com: GlouGlou

Re: S_POSTER_ONLINE is all the time empty

Postby nickvergessen » Sat Aug 25, 2012 10:42 pm

Can you please create a ticket for this and test:

gallery/image_page.php

find:
Code: Select all
}

if (phpbb_gallery::$auth->acl_check('m_status', $album_id, $album_data['album_user_id']) || ($image_data['image_contest'] != phpbb_gallery_image::IN_CONTEST))
{
   $user_id = $image_data['image_user_id'];

before add:
Code: Select all
   $sql = 'SELECT session_user_id, MAX(session_time) as online_time, MIN(session_viewonline) AS viewonline
      FROM ' . SESSIONS_TABLE . '
      WHERE ' . $db->sql_in_set('session_user_id', (int) $image_data['image_user_id']) . '
      GROUP BY session_user_id';
   $result = $db->sql_query($sql);

   $update_time = $config['load_online_time'] * 60;
   while ($row = $db->sql_fetchrow($result))
   {
      $user_cache[$row['session_user_id']]['online'] = (time() - $update_time < $row['online_time'] && (($row['viewonline']) || $auth->acl_get('u_viewonline'))) ? true : false;
   }
   $db->sql_freeresult($result);
cheers nickvergessen :geek:

Member of phpBB Development-Team
No Support via PM
User avatar
nickvergessen
Administrator
Administrator
 
Posts: 5748
Topics: 217
Images: 139
Joined: Mon Oct 15, 2007 4:15 pm
phpBB.de: nickvergessen
phpBB.com: nickvergessen

Re: S_POSTER_ONLINE is all the time empty

Postby GlouGlou » Sun Aug 26, 2012 3:02 pm

Just testing and seems to work fine ;)
Thx so much.
GlouGlou
Posts 20 - 30
Posts 20 - 30
 
Posts: 25
Topics: 7
Images: 0
Joined: Mon Aug 15, 2011 5:32 pm
phpBB.com: GlouGlou


Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests