本帖最后由 html6 于 2013-5-13 22:42 编辑
一、//后台 - 论坛 - 版块管理 - 版块 - 帖子选项 - 允许使用html代码,然后发帖(帖子 附加选项 文本特性 勾选HTML 代码),插入代码,则无行号,如果不开启html代码,则正常。
偶查了下代码:- <div id="highlighter_592977" class="syntaxhighlighter " style="margin-top: 1em !important; margin-bottom: 1em !important; padding: 1px !important; border: 0px !important; outline: 0px !important; font-size: 16px; vertical-align: baseline !important; background-image: none !important; position: relative !important; float: none !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: 702.0499877929688px; line-height: 1.6em !important; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; min-height: inherit !important; color: rgb(51, 51, 51); "><div class="lines" style="border: 0px !important; outline: 0px !important; font-size: 0.97em; vertical-align: baseline !important; background-image: none !important; position: static !important; float: none !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.6em !important; min-height: inherit !important; "><div class="line alt1" style="border: 0px !important; outline: 0px !important; font-size: 0.97em; vertical-align: baseline !important; background-image: none !important; position: static !important; float: none !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.6em !important; min-height: inherit !important; "><div class="blockcode"><blockquote>article p {<br> margin-bottom: 0.5em;<br>}</blockquote></div></div></div></div>
复制代码
二、//后台 - 论坛 - 版块管理 - 版块 - 帖子选项 - 允许使用html代码,然后发帖(帖子 附加选项 文本特性 勾选HTML 代码),在编辑器中选中图片居中,发布之后仍然居左,默认插入图片是 <p> 标签,居中无效。- <p align="center"><ignore_js_op></ignore_js_op></p>
复制代码 如果将 <p> 标签换成 <div> ,则可以居中- <div style="text-align: center;"><a href="http://codecanyon.net/item/advanced-slider-jquery-xml-slider/132618?ref=NetPremium"></a></div>
复制代码 但存在问题,就是带有超链接的图片,则图片左右空白区域都可以点击。
//让代码模式勾选可选
source\include\post\post_editpost.php 这个文件,打开查找:
$editor['allowswitcheditor'] = 0;
$editor['allowswitcheditor'] = 0;
将2个0 都改成 1 ,只改第二个就是 纯文本勾选,都改则不勾选。
三、//后台 - 论坛 - 版块管理 - 版块 - 帖子选项 - 允许使用html代码,然后发帖(帖子 附加选项 文本特性 勾选HTML 代码),发布之后,再重新编辑帖子纯文本无法勾选。
偶自己找到的解决方法:
//让代码模式勾选可选
source\include\post\post_editpost.php 这个文件,打开查找:- $editor['allowswitcheditor'] = 0;
- $editor['allowswitcheditor'] = 0;
复制代码 将2个0 都改成 1 ,只改第二个就是 纯文本勾选,都改则不勾选。
//默认勾选HTML代码
template\default\forum\post_editor_attribute.htm
查找- <label for="htmlon"><input type="checkbox" name="htmlon" id="htmlon" class="pc" value="1" $htmloncheck />{lang post_html}</label>
复制代码 替换成- <label for="htmlon"><input type="checkbox" name="htmlon" id="htmlon" class="pc" value="1" $htmloncheck checked="checked" />{lang post_html}</label>
复制代码 |