3
Quote:
Depends if you see it as a hack or a feature
I'd like to do like you said, but I can't log in there
Is dev.xoops.org different to
http://www.xoops.org ? do I have to register there too ?
I've been working on it and I think something like
Quote:
$uid = !empty($xoopsUser) ? $xoopsUser->getVar('uid') : 0;
$uname= !empty($xoopsUser) ? $xoopsUser->getVar('uname') : "";
$ip = getenv("REMOTE_ADDR");
$sql = sprintf("INSERT INTO %s (lid, cid, uid, uname, hostname, timestamp) VALUES ( %u, %u, %u, '%s', '%s', %u)", $xoopsDB -> prefix('wfdownloads_downloadedinfo'), $lid, $cid, $uid, $uname, $ip, $datetime);
$xoopsDB -> queryF($sql);
Would do it, but I have to create the right 'wfdownloads_downloadedinfo' table first.
Then I'd need to add a listing hack to the Admin and it's finished.