|
1.打开jsmenu.htm
找到:
{lang my_activities}
在下面加:
我的附件
2.打开my.htm
找到:
{lang my_threads}
后面加上:
我的附件
查找:
改成:
查找:
class=\"current\">{lang my_replys}
下面加上:
class=\"current\">我的附件
最后查找:
{template my_posts}
下面加上:
{template my_attachments}
3.打开my.php
找到:
} elseif($item == \'threads\') {
在上面加:
} elseif($item == \'attachments\') {
require_once \'./include/attachment.func.php\';
$query = $db->query(\"SELECT COUNT(*) FROM {$tablepre}attachments a, {$tablepre}threads t WHERE a.uid=\'$Discuz_uid\' $threadadd AND a.tid=t.tid\");
$num = $db->result($query, 0);
$multipage = multi($num, $tpp, $page, \'my.php?item=attachments\'.($srchfid ? \"&srchfid=$srchfid\" : NULL).$extrafid);
$query = $db->query(\"SELECT a.*, t.subject, t.fid FROM {$tablepre}attachments a, {$tablepre}threads t
WHERE a.uid = \'$discuz_uid\' $threadadd AND a.tid=t.tid ORDER BY a.dateline DESC LIMIT $start_limit, $tpp\");
while($attach = $db->fetch_array($query)) {
$attach[\'dateline\'] = gmdate(\"$dateformat $timeformat\", $attach[\'dateline\'] + $timeoffset * 3600);
$attach[\'forumname\'] = $_DCACHE[\'forums\'][$attach[\'fid\']][\'name\'];
$attach[\'filesize\'] = sizecount($attach[\'filesize\']);
$attachlist[] = $attach;
}
4.请把附件上传到templates/default目录中
5.后台更新. |
|