推荐应用

Discuz多国语言翻译

Discuz多国语言翻译

文库系统/文档系统

文库系统/文档系统

美食菜谱发布菜谱

美食菜谱发布菜谱

漫画阅读中心

漫画阅读中心

小说阅读中心

小说阅读中心

语言包切换基本文件

语言包切换基本文件

成语闯关

成语闯关

谷歌登錄Google登錄

谷歌登錄Google登錄

轻APP

轻APP

网上祭祀祭拜扫墓

网上祭祀祭拜扫墓

手机MP4视频上传

手机MP4视频上传

彩票开奖号码公布

彩票开奖号码公布

DZX泰语/傣语

DZX泰语/傣语

DZX日文版(日本语)

DZX日文版(日本语)

【模版注释】dzx2.5 template\default\forum\discuzcode.htm 注释

发布于 2013-04-16

{eval
function tpl_hide_credits_hidden($creditsrequire) {
global $_G;
}
{$_G[username]}{lang guest}{lang post_hide_credits_hidden}


{eval
}



function tpl_hide_credits($creditsrequire, $message) {
}
{lang post_hide_credits}

$message




{eval
}



function tpl_codedisp($code) {
$randomid = 'code_'.random(3);
}
  1. $code
{lang discuzcode_copyclipboard}


{eval
}



function tpl_quote() {
}
\\1


{eval
}



function tpl_free() {
}
\\1


{eval
}



function tpl_hide_reply() {
global $_G;
}

{lang post_hide}

\\1



{eval
}



function tpl_hide_reply_hidden() {
global $_G;
}
{$_G[username]}{lang guest}{lang post_hide_reply_hidden}


{eval
}



function attachlist($attach) {
global $_G;
$attach['refcheck'] = (!$attach['remote'] && $_G['setting']['attachrefcheck']) || ($attach['remote'] && ($_G['setting']['ftp']['hideurl'] || ($attach['isimage'] && $_G['setting']['attachimgpost'] && strtolower(substr($_G['setting']['ftp']['attachurl'], 0, 3)) == 'ftp')));
$aidencode = packaids($attach);
$widthcode = attachwidth($attach['width']);
$is_archive = $_G['forum_thread']['is_archived'] ? "&fid=".$_G['fid']."&archiveid=".$_G[forum_thread][archiveid] : '';
$pluginhook = !empty($_G['setting']['pluginhooks']['viewthread_attach_extra'][$attach[aid]]) ? $_G['setting']['pluginhooks']['viewthread_attach_extra'][$attach[aid]] : '';
}




$attach[attachicon]






$attach[filename]


$attach[filename]







$attach[attachsize], {lang readperm}: $attach[readperm], {lang downloads}: $attach[downloads], {lang attachcredits}: $_G[getattachcredits]






{lang price}: $attach[price] {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][unit]}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]} [{lang pay_view}]

[{lang attachment_buy}]





{$attach[description]}



$pluginhook





{eval
}



function imagelist($attach, $firstpost = 0) {
global $_G;
$attach['refcheck'] = (!$attach['remote'] && $_G['setting']['attachrefcheck']) || ($attach['remote'] && ($_G['setting']['ftp']['hideurl'] || ($attach['isimage'] && $_G['setting']['attachimgpost'] && strtolower(substr($_G['setting']['ftp']['attachurl'], 0, 3)) == 'ftp')));
$aidencode = packaids($attach);
$widthcode = attachwidth($attach['width']);
$is_archive = $_G['forum_thread']['is_archived'] ? "&fid=".$_G['fid']."&archiveid=".$_G[forum_thread][archiveid] : '';
$attachthumb = getimgthumbname($attach['attachment']);
$pluginhook = !empty($_G['setting']['pluginhooks']['viewthread_attach_extra'][$attach[aid]]) ? $_G['setting']['pluginhooks']['viewthread_attach_extra'][$attach[aid]] : '';
}









$attach[filename]
($attach[attachsize], {lang downloads}: $attach[downloads])

{lang set_cover}








{lang readperm}: $attach[readperm]
{lang price}: $attach[price] {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][unit]}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]][title]} [{lang pay_view}]

[{lang attachment_buy}]




{$attach[description]}


$pluginhook




$attach[imgalt]

$attach[imgalt]










{$attach[description]}


$attach[imgalt]








{eval
}



function attachinpost($attach, $post) {
global $_G;
$firstpost = $post['first'];
$attach['refcheck'] = (!$attach['remote'] && $_G['setting']['attachrefcheck']) || ($attach['remote'] && ($_G['setting']['ftp']['hideurl'] || ($attach['isimage'] && $_G['setting']['attachimgpost'] && strtolower(substr($_G['setting']['ftp']['attachurl'], 0, 3)) == 'ftp')));
$aidencode = packaids($attach);
$widthcode = attachwidth($attach['width']);
$is_archive = $_G['forum_thread']['is_archived'] ? '&fid='.$_G['fid'].'&archiveid='.$_G[forum_thread][archiveid] : '';
$attachthumb = getimgthumbname($attach['attachment']);
$musiccode = getstatus($post[status], 7) && fileext($attach['attachment']) == 'mp3' ? (browserversion('ie') > 8 || browserversion('safari') ? '' : parseaudio($attach['url'].$attach['attachment'], 400)) : '';
}