1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +02:00

More functionality working with new db schema

This commit is contained in:
mcfly
2008-12-10 21:00:48 +00:00
parent 43598f0e3d
commit 1cf4f67cc4
5 changed files with 258 additions and 296 deletions

View File

@@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/forum/forum_class.php,v $
| $Revision: 1.21 $
| $Date: 2008-12-09 21:46:14 $
| $Revision: 1.22 $
| $Date: 2008-12-10 21:00:48 $
| $Author: mcfly_e107 $
+----------------------------------------------------------------------------+
*/
@@ -343,6 +343,23 @@ class e107forum
return $ret;
}
function threadGetUserViewed($uid = USERID)
{
$e107 = e107::getInstance();
if($uid == USERID)
{
$viewed = $e107->currentUser['plugin_forum_user_viewed'];
}
else
{
$tmp = get_user_data($uid);
$viewed = $tmp['plugin_forum_user_viewed'];
unset($tmp);
}
return explode(',', $viewed);
}
function thread_postnum($thread_id)
{