回 帖 发 新 帖 刷新版面

主题:怎样改这个文件,让Discuz 2.5 发贴支持表格和链接的图片直接显示?

怎样改这个文件,让Discuz 2.5 发贴支持表格和链接的图片直接显示?

{template header}
<table cellspacing="0" cellpadding="0" border="0" width="{TABLEWIDTH}" align="center" style="table-layout: fixed">
<tr><td class="nav" width="90%" align="left" nowrap>&nbsp;<a href="index.php">$bbname</a> $navigation &raquo; {lang post_newthread}</td>
<td align="right" width="10%">&nbsp;<a href="#bottom"><img src="{IMGDIR}/arrow_dw.gif" border="0" align="absmiddle"></a></td>        
</tr></table><br>

<script language="JavaScript">
var postminchars = $minpostsize;
var postmaxchars = $maxpostsize;
var disablepostctrl = $disablepostctrl;
function checklength(theform) {
    if (postmaxchars != 0) { message = "{lang board_allowed}: "+postminchars+" {lang to} "+postmaxchars+" {lang bytes}"; }
    else { message = ""; }
    alert("\n{lang post_currlength}: "+theform.message.value.length+" {lang bytes}\n\n"+message);
}
function validate(theform) {
    if (theform.subject.value == "" || theform.message.value == "") {
        alert("{lang post_subject_and_message_isnull}");
        return false;
    }
    if (!disablepostctrl && ((postminchars != 0 && theform.message.value.length < postminchars) || (postmaxchars != 0 && theform.message.value.length > postmaxchars))) {
        alert("{lang post_message_length_invalid}\n\n{lang post_currlength}: "+theform.message.value.length+" {lang bytes}\n{lang board_allowed}: "+postminchars+" {lang to} "+postmaxchars+" {lang bytes}");
        return false;
    }            
    theform.topicsubmit.disabled = true;
    return true;
}
</script>

<!--{if isset($previewpost)}-->
    {template post_preview}
<!--{/if}-->

<form method="post" name="input" action="post.php?action=newthread&fid=$fid&topicsubmit=yes" $enctype onSubmit="return validate(this)">
<input type="hidden" name="formhash" value="{FORMHASH}">

<table cellspacing="0" cellpadding="0" border="0" width="{TABLEWIDTH}" align="center">
<tr><td bgcolor="{BORDERCOLOR}">

<table border="0" cellspacing="{BORDERWIDTH}" cellpadding="{TABLESPACE}" width="100%">
<tr>
<td colspan="2" class="header">{lang post_newthread}</td>
</tr>

<!--{if $discuz_uid}-->
    <tr><td bgcolor="{ALTBG1}">{lang username}:</td>
    <td bgcolor="{ALTBG2}">$discuz_userss <span class="smalltxt">[<a href="logging.php?action=logout">{lang member_logout}</a>]</span></td>
    </tr>
<!--{/if}-->

<!--{if $allowsetviewperm}-->
    <tr>
    <td bgcolor="{ALTBG1}">{lang creditsrequire_view} {lang credit_title}:</td>
    <td bgcolor="{ALTBG2}" class="smalltxt"><input type="text" name="viewperm" size="6" value="$viewperm"> {lang credit_unit} (0 {lang is_unlimited})</td>
    </tr>
<!--{/if}-->

<tr>
<td bgcolor="{ALTBG1}" width="20%">{lang subject}:</td>
<td bgcolor="{ALTBG2}"><input type="text" name="subject" size="45" value="$subject" tabindex="3"></td>
</tr>

<tr>
<td bgcolor="{ALTBG1}">{lang icon}:</td><td bgcolor="{ALTBG2}"><input type="radio" name="iconid" value="0" checked> {lang none} $icons</td>
</tr>

{template post_bbinsert}

<!--{if $poll == 'yes' && $allowpostpoll}-->
    <input type="hidden" name="poll" value="yes">
    <tr>
    <td bgcolor="{ALTBG1}" valign="top">{lang post_poll_options}:<br>
    <span class="smalltxt">{lang post_poll_comment} $maxpolloptions<br><br>
    <input type="checkbox" name="multiplepoll" value="1" <!--{if $multiplepoll}-->checked<!--{/if}-->> {lang post_poll_allowmultiple}
    </span></td><td bgcolor="{ALTBG2}">
    <textarea rows="4" cols="85" name="polloptions" tabindex="5">$polloptions</textarea></td>
    </tr>
<!--{/if}-->

<tr>
<td bgcolor="{ALTBG1}" valign="top">{lang message} <a href="###" onclick="checklength(document.input)" class="smalltxt">[{lang post_check_length}]</a>:<br><br>
<span class="smalltxt">
html {lang is} $allowhtml<br>
<a href="faq.php?page=messages#6" target="_blank">{lang post_smilies}</a> {lang is} $allowsmilies<br>
<a href="faq.php?page=misc#1" target="_blank">{lang post_discuzcode}</a> {lang is} $allowbbcode<br>
{lang post_imgcode} {lang is} $allowimgcode
</span><br><br><br><br>

{template post_sminsert}

</td>
<td align="left" bgcolor="{ALTBG2}" class="smalltxt">
<textarea rows="18" cols="85" name="message" tabindex="4" onSelect="javascript: storeCaret(this);" onClick="javascript: storeCaret(this);" onKeyUp="javascript: storeCaret(this);" onKeyDown="javascript: ctlent();">$message</textarea>
<br><br>
<input type="checkbox" name="parseurloff" value="1" $urloffcheck>&nbsp;{lang disable} {lang post_parseurl}<br>
<input type="checkbox" name="smileyoff" value="1" $smileoffcheck>&nbsp;{lang disable} <a href="faq.php?page=messages#6" target="_blank">{lang post_smilies}</a><br>
<input type="checkbox" name="bbcodeoff" value="1" $codeoffcheck>&nbsp;{lang disable} <a href="faq.php?page=misc#1" target="_blank">{lang post_discuzcode}</a><br>
<input type="checkbox" name="usesig" value="1" $usesigcheck>&nbsp;{lang post_show_sig}<br>
<input type="checkbox" name="emailnotify" value="1">&nbsp;{lang post_email_notify}
<!--{if $ismoderator && $allowtop}-->
    <br><input type="checkbox" name="toptopic" value="1">&nbsp;{lang post_top_thread}
<!--{/if}-->
<!--{if $ismoderator && $allowdigest}-->
    <br><input type="checkbox" name="addtodigest" value="1">&nbsp;{lang post_digest_thread}
<!--{/if}-->
</td>
</tr>

回复列表 (共1个回复)

沙发


<!--{if $allowpostattach && $multiattach}-->
    <tr>
    <td colspan=2 class="header">{lang attachment}  : </td>
    </tr>
    <!--{loop $multiattach $temp}-->
    <tr>
    <td bgcolor="{ALTBG1}">{lang attachment} <span class="smalltxt">({lang lower_than} $maxattachsize_kb kb)</span>:</td>
    <td bgcolor="{ALTBG2}" class="smalltxt">
    <!--{if $allowsetattachperm}-->{lang require} {lang credit_title} <input type="text" name="attachperm[]" value="0" size="5">&nbsp;<!--{/if}-->
    <input type="file" name="attach[]" size="40">
    <!--{if $attachextensions}--><br><br>{lang attachment_allow_exts}: $attachextensions<!--{/if}--></td>
    </tr>
    <!--{/loop}-->
<!--{/if}-->

</table>
</td></tr></table><br>
<center><input type="submit" name="topicsubmit" value="{lang post_newthread}" tabindex="5">
<input type="submit" name="previewpost" value="{lang post_previewpost}" tabindex="6">
</center>
</form>
{template footer}

我来回复

您尚未登录,请登录后再回复。点此登录或注册