Quote:
Originally Posted by Stifmeister2
Hmm it says everyone has joined "01-01-1970".. :S
|
Let me take a look into that.
EDIT: oops, my bad :red:
Forgot to add something to the query, open newmembers.php and find:
PHP Code:
$getnewmembers = $db->query_read("
SELECT user.userid, user.username, avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline, customavatar.width AS avwidth, customavatar.height AS avheight, customprofilepic.userid AS profilepic, customprofilepic.dateline AS profilepicdateline, customprofilepic.width AS ppwidth, customprofilepic.height AS ppheight
FROM " . TABLE_PREFIX . "user AS user
LEFT JOIN " . TABLE_PREFIX . "avatar AS avatar ON(avatar.avatarid = user.avatarid)
LEFT JOIN " . TABLE_PREFIX . "customavatar AS customavatar ON(customavatar.userid = user.userid)
LEFT JOIN " . TABLE_PREFIX . "customprofilepic AS customprofilepic ON (user.userid = customprofilepic.userid)
WHERE user.joindate >= $cutoff
ORDER BY user.joindate DESC
LIMIT " . ($limitlower - 1) . ", $perpage
");
Replace with
PHP Code:
$getnewmembers = $db->query_read("
SELECT user.userid, user.username, user.joindate, avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline, customavatar.width AS avwidth, customavatar.height AS avheight, customprofilepic.userid AS profilepic, customprofilepic.dateline AS profilepicdateline, customprofilepic.width AS ppwidth, customprofilepic.height AS ppheight
FROM " . TABLE_PREFIX . "user AS user
LEFT JOIN " . TABLE_PREFIX . "avatar AS avatar ON(avatar.avatarid = user.avatarid)
LEFT JOIN " . TABLE_PREFIX . "customavatar AS customavatar ON(customavatar.userid = user.userid)
LEFT JOIN " . TABLE_PREFIX . "customprofilepic AS customprofilepic ON (user.userid = customprofilepic.userid)
WHERE user.joindate >= $cutoff
ORDER BY user.joindate DESC
LIMIT " . ($limitlower - 1) . ", $perpage
");