有些网友可能遇到过这样的问题,看到别的网站里有喜欢的图片,想直接复制到自己的论坛里,但是又不想开启HTML语法解析,用了这个Html转换UBB后就可以实现你的梦想,不用一张一张的复制,可以将复制的网页内容在这里转换一下再发表。
首先下载插件模块上传至images/post目录下
然后修改模板,先看Dvbbs7.0.0SP2_ac的修改方法
在后台page_post--template.html(11)中找到
<img class="Dvbbs_Ico" src="images/post/rm.gif" WIDTH="16" HEIGHT="16" unselectable="on"></td>
在下面加入
以下为引用的内容: <td class="Dvbbs_Btn" TITLE="Html代码转UBB" LANGUAGE="javascript" onclick="openEditScript('images/post/html2ubb.htm',500,260);this.className='Dvbbs_TabOn';ondrag='return false;'" onmouseover=this.className='Dvbbs_BtnMouseOverUp'; onmouseout=this.className='Dvbbs_Btn';> <img class="Dvbbs_Ico" src="images/post/html2ubb.gif" WIDTH="16" HEIGHT="16" unselectable="on"> </td> |
最后再到page_dispbbs--template.html(6)里面找到
<img src="images/post/cleancode.gif" alt="清理代码"></td>
在下面加入
以下为引用的内容: <td class="IcoOver" onmouseover=this.className='IcoOverMouseOver'; onmouseout=this.className='IcoOver'><img onclick="javascript:openScript('images/post/html2ubb.htm',500,260)" src="images/post/html2ubb.gif" alt="Html代码转UBB"></td> 然后再看Dvbbs7.1.0_ac的修改方法。 |
后台风格模板page_post template.html(11),找到
<img class="Dvbbs_Ico" src="images/post/rm.gif" WIDTH="16" HEIGHT="16" unselectable="on">
下面一行插入
以下为引用的内容: </td><td class="Dvbbs_Btn" TITLE="Html代码转UBB" LANGUAGE="javascript" onclick="openEditScript('images/post/html2ubb.htm',500,260);this.className='Dvbbs_TabOn';ondrag='return false;'" onmouseover=this.className='Dvbbs_BtnMouseOverUp'; onmouseout=this.className='Dvbbs_Btn';> <img class="Dvbbs_Ico" src="images/post/html2ubb.gif" WIDTH="16" HEIGHT="16" unselectable="on"> 风格模板page_dispbb template.html(3)找到 |
以下为引用的内容: <img src="images/post/cleancode.gif" alt="清理代码"> |
下面一行插入
以下为引用的内容: </td><td class="IcoOver" onmouseover=this.className='IcoOverMouseOver'; onmouseout=this.className='IcoOver'><img onclick="javascript:openScript('images/post/html2ubb.htm',500,260)" src="images/post/html2ubb.gif" alt="Html代码转UBB"> |
(举报)