Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

[发布] 不开html发帖插入表格完美版(任意列,任意行) 表格插件已分离

[复制链接]
yggcwx 发表于 2006-7-6 13:12:14 | 显示全部楼层
先顶后用!
回复

使用道具 举报

yggcwx 发表于 2006-7-6 13:34:05 | 显示全部楼层
装了,但怎么用啊?找不到启用的地方!
回复

使用道具 举报

luofairy 发表于 2006-9-11 11:42:59 | 显示全部楼层
。问下楼主,为什么装上了用不了呢,前面显示的还是一堆HTML的代码。。。汗
回复

使用道具 举报

lele1626 发表于 2006-11-13 13:49:49 | 显示全部楼层
谢谢楼大,已经用上了,我家还是4.1版本的就缺这个呢~~

不过,貌似这个在开启了干扰码的论坛使用会有一点点问题,表格内会随机产生可见的(而不是原先隐藏的)怪字符串,表格的框架有时候也会出问题。

当然把干扰码关掉一切问题都没有了,汗………………
回复

使用道具 举报

wushuang8433 发表于 2006-12-19 10:47:33 | 显示全部楼层
修改 templates/default/css.htm

查找:
--></style>

===============================================

问楼主一下,你说的这个在我的那个CSS.HTM里怎么找不到的呢?

望知道的朋友告诉我

我的CSS.HTM里的内容是:
body {
        margin: 0px;
        scrollbar-base-color: {ALTBG1};
        scrollbar-arrow-color: {BORDERCOLOR};
        font: {FONTSIZE} {FONT};
        {BGCODE};
    CURSOR: url('images/dtsb.cur');
        color: {TEXT};
}
legend {
        color: {TEXT};
}
table {
        font: {FONTSIZE} {FONT};
        color: {TABLETEXT};
        empty-cells: show;
        border-collapse: separate !important;
        border-collapse: collapse;
}

input, select, textarea {
        font: {FONTSIZE} {FONT};
        color: {TABLETEXT};
        font-weight: normal;
        background-color: {ALTBG1};
        border: 1px solid {INPUTBORDER};
}
input {
        height: 21px;
}
a {
        text-decoration: none;
        color: {LINK};
}
a:hover {text-decoration: none;position: relative; top: 1.5px; left: 1.5px;}

.checkbox, .radio {
        border: 0px;
        background: none;
        vertical-align: middle;
        height: 16px;
}
.button {
        font: {FONTSIZE} {FONT};
        padding: 0 5px;
        color: {HEADERTEXT};
        {HEADERBGCODE};
        background-repeat: repeat-x;
        background-position: 0 50%;
        outline: 1px solid {BORDERCOLOR};
        border: 1px solid #FFF !important;
        height: 19px !important;
        border: 1px solid {BORDERCOLOR};
        height: 21px;
        line-height: 17px;
}
.lightbutton {
        background: {ALTBG2};
        border: 1px solid {BGBORDER};
        color: {LINK};
}
form {
        margin: 0px;
        padding: 0px;
}
.nav {
        font: {FONTSIZE} {FONT};
        color: {NAVTEXT};
        font-weight: {BOLD};
}
.nav a {
        color: {NAVTEXT};
}
.header {
        font: {FONTSIZE} {SMFONT} !important;
        font-weight: {BOLD} !important;
        font: {SMFONTSIZE} {SMFONT};
        font-weight: {BOLD};
        color: {HEADERTEXT};
        {HEADERBGCODE};
        height: 30px;
        padding-left: 10px;
}
.header td {
        padding-left: 10px;
}
.header a {
        color: {HEADERTEXT};
}
.header input {
        background:none;
        vertical-align: middle;
        height: 16px;
}
.mainborder {
        clear: both;
        height: 8px;
        font-size: 0px;
        line-height: 0px;
        padding: 0px;
        background-color: {MAINBORDER};
}
.headerline {
        font-size: 0px;
        line-height: 0px;
        padding: 0px;
        background: {ALTBG1}
}
#announcement {
        color: {CATTEXT};
        border: 1px solid {CATBORDER};
        {CATBGCODE};
        margin-bottom: 5px;
        padding: 5px 0px;
}
.headermenu {
        {HEADERMENUBGCODE};
        height: 30px;
}
#menu, #menu a {
        color: {HEADERMENUTEXT};
        padding-top: 7px !important;
        padding-top: 6px;
}
.footerline {
        height: 6px;
        background-image: url("{IMGDIR}/footer_line.gif");
}
.footerline div {
        {BGCODE};
        position: relative;
        float: right;
        right: 40px;
}
.absmiddle {
        vertical-align: middle;
}
.msgheader {
        margin:0 2em;
        font-weight: bold;
        background: {MSGHEADER};
        padding: 5px;
        color: {MSGHEADERTEXT}
}
.msgborder {
        margin: 0 2em;
        padding: 10px;
        border: 1px solid {CATBORDER};
        word-break: break-all;
        background: {MSGTEXT};
        overflow: hidden;
}
.category {
        font: {FONTSIZE} {SMFONT} !important;
        font: {SMFONTSIZE} {SMFONT};
        color: {CATTEXT};
        {CATBGCODE};
}
.category td {
        border-bottom: 1px solid {CATBORDER};
}
.tableborder {
        background: white;
        outline: {BORDERWIDTH}px solid {BORDERCOLOR};
        border: 0px !important;
        border: {BORDERWIDTH}px solid {BORDERCOLOR};
}
.spaceborder {
        width: 100%;
        border: {BORDERWIDTH}px solid {BORDERCOLOR};
        padding: 1px;
        clear: both;
}
.singleborder {
        font-size: 0px;
        line-height: {BORDERWIDTH}px;
        padding: 0px;
        background-color: {ALTBG1};
}
.smalltxt {
        font: {FONTSIZE} {SMFONT} !important;
        font: {SMFONTSIZE} {SMFONT};
}
.lighttxt {
        color: {LIGHTTEXT}
}
.outertxt {
        font: {FONTSIZE} {FONT};
        color: {TEXT};
}
.outertxt a {
        color: {TEXT};
}
.todayposts {
        color: {LINK};
}
.option {
        padding: 1px;
        width: {TABLEWIDTH};
        height: 35px;
        border: 1px solid {BGBORDER};
        background-color: {ALTBG1};
}
.submitbutton {
        margin-top: 8px !important;
        margin-top: 6px;
        margin-bottom: 5px;
        text-align: center;
}
.postsubmit {
        border: 1px solid {CATBORDER};
        {CATBGCODE};
        text-align: center;
        padding: 10px 0px;
        margin-top: 6px;
}
.avatar {
        border: 1px solid {CATBORDER};
        {CATBGCODE};
        padding: 3px;
}
.avatar img {
        background: {BGCOLOR};
}
.bold {
        font-weight: {BOLD};
}
.altbg1        {
        background: {ALTBG1};
        font: {FONTSIZE} {FONT};
}
td.altbg1 {
        border-bottom: 1px solid {BGBORDER};
}
.altbg2 {
        background: {ALTBG2};
        font: {FONTSIZE} {FONT};
}
td.altbg2 {
        border-bottom: 1px solid {BGBORDER};
}
.bottom, .bottom td, td.bottom {
        border-bottom: 0px;
}
.spacebottom {
        padding-bottom: 10px;
        background: {ALTBG2};
}
.tdunderline td {
         border-top: 1px solid {BGBORDER};
         border-bottom: 1px solid {BGBORDER};
}
.maintable{
        width: {MAINTABLEWIDTH};
        font: {FONTSIZE} {FONT};
}
.subtable {
        text-align: left;
        padding: 0;
        margin: 0 auto;
}
.simpletable {
        border: {BORDERWIDTH}px solid {BORDERCOLOR};
        padding: 1px;
        clear: both;
}
.simpletable .header {
        {HEADERBGCODE};
        padding-top:7px;
        padding-bottom:0px;
        height: 21px !important;
        height: 30px;
}
.simpletable div {
        padding: {TABLESPACE}px;
}
.left {
        float: left;
        text-align: left;
        padding: 0px;
}
.right {
        float: right;
        text-align: right;
        padding: 0px;
}
.line {
        border-top:1px solid {BGBORDER};
}
.row {
        width: 100%;
        border: none;
        background: {ALTBG2};
        empty-cells: show;
}
.row td {
        padding: {TABLESPACE}px;
        border-bottom: 1px solid {BGBORDER};
}
.row1 {
        width: 100%;
        border: none;
        background: {ALTBG1};
        empty-cells: show;
}
.row1 td {
        padding: {TABLESPACE}px;
        border-bottom: 1px solid {BGBORDER};
}
.newspecial {
        text-align:center;
        font-size:14px;
        font-weight: {BOLD};
}
.newspecialmenu {
        width: 86px !important;
        width: 88px;
}
.signature {
        height: expression(minY = (this.scrollHeight < parseInt(this.currentStyle.minHeight) + 1) ? this.currentStyle.minHeight : maxY = (this.scrollHeight > parseInt(this.currentStyle.maxHeight) + 1) ? this.currentStyle.maxHeight : "auto");
}
.percent {
         height: 10px !important;
         height: 12px;
         border: {BORDERWIDTH}px solid {BORDERCOLOR};
         float: left;
         padding: 0px;
}
.percent div {
        {HEADERBGCODE};
        background-repeat: repeat-x;
        background-position: 0 50%;
        width: 100%;
        height: 8px;
        line-height: 0px;
        font-size: 0px;
        margin: 1px;
        padding: 0px;
}
.percenttxt {
        float:left;
        font: {SMFONTSIZE} {SMFONT};
        padding-top: 2px !important;
        padding-top: 1px;
        color: {HEADERTEXT};
        font-weight: {BOLD};
}
.percenttxt u {
        text-decoration: none;
        font-weight: normal;
        color: {LIGHTTEXT};
}
.paddingmenu td{
        padding: 6px;
}

.f_folder {
        width: 4%;
        text-align: center;
}
.f_icon {
        width: 25px;
        text-align: center;
}
.f_title {
        width: 55%;
}
.subject a, .f_title a {
        color: {TABLETEXT};
}
.f_author {
        width: 12%;
        text-align: center;
}
.f_views {
        width: 8%;
        text-align: center
}
.f_last        {
        width: 17%;
        text-align: center;
}

.t_row {
        margin-top: -1px;
}
.t_user        {
        word-break: break-all;
        padding-left: 8px;
        background: {ALTBG1};
}
.t_msg {
        table-layout: fixed;
        word-wrap: break-word;
        width: 100%;
        height: 100%;
        overflow: hidden;
        background: {ALTBG2}
}
.t_msg td {
        padding:2px 10px;
}
.t_number {
        border: 1px solid {CATBORDER};
        padding: 2px;
        margin: 1px;
        background: {POSTNOTICEBG};
}
.t_infoline {
        background: {POSTNOTICEBG};
}
.t_table {
        border-left: 1px solid {BORDERCOLOR};
        border-top: 1px solid {BORDERCOLOR};
        border-spacing: 0px;
}
.t_table td {
        padding: 4px;
        border-bottom: 1px solid {BORDERCOLOR};
        border-right: 1px solid {BORDERCOLOR};
}

.p_bar {
        margin: 1px 0px;
        clear: both;
}
.p_bar a {
        float: left;
        padding: 1px 4px;
        font-size: 12px;
        text-decoration: none;
}
.p_input {
        border: 0px;
        padding: 0px;
        width: 40px;
        height: 16px !important;
        height: 15px;
        margin: 0px;
        background: {ALTBG2};
}
.p_total {
        background-color: {ALTBG1};
        border: 1px solid {BORDERCOLOR};
        border-right: 0px solid {BORDERCOLOR};
        font-weight: {BOLD};
}
.p_pages {
        background-color: {ALTBG1};
        border: 1px solid {BORDERCOLOR};
        margin-right:1px;
        vertical-align: middle;
        font-weight: {BOLD};
}
.p_num {
        background-color: {ALTBG2};
        border: 1px solid {CATBORDER};
        margin-right:1px;
        vertical-align: middle;
}
a:hover.p_num  {
        background-color: {ALTBG1};
        border: 1px solid {BORDERCOLOR};
        text-decoration: none;
}
.p_redirect {
        background-color: {ALTBG2};
        border: 1px solid {CATBORDER};
        margin-right:1px;
        font-size: 11px !important;
        font-size: 13px;
}
a:hover.p_redirect {
        background-color: {ALTBG1};
        border: 1px solid {BORDERCOLOR};
        text-decoration: none;
}
.p_curpage {
        margin-right:1px;
        border: 1px solid {CATBORDER};
        vertical-align: middle;
        {CATBGCODE};
        color: {CATTEXT};
        font-weight: {BOLD};
}

.wysiwyg {
        font: {MSGFONTSIZE} {FONT};
        border: 1px #DDDDDD solid;
        padding: 4px;
        word-break: break-all;
}
.wysiwyg a {
        text-decoration: underline;
        color: {LINK};
}
.editor        {
        background: {ALTBG1};
        border: 1px solid {BGBORDER};
        border-bottom: 1px solid {BORDERCOLOR};
}
.editor_line {
        border-top:1px solid {BORDERCOLOR};
}
.editor_switcher {
        position: relative;
        top: 1px;
        border-bottom: 1px solid {BORDERCOLOR};
        background: {ALTBG1};
        margin-left: 10px;
        vertical-align: middle;
}
.editor_switcher_highlight {
        position: relative;
        top: 1px;
        border-bottom: 1px solid #FFFFFF;
        background: #FFFFFF;
        margin-left: 10px;
        vertical-align: middle;
        font-weight: {BOLD};
}
.editor_text {
        font: {MSGFONTSIZE} {FONT};
        border: 1px solid {BORDERCOLOR};
        border-top: 0px;
        background: #FFFFFF;
}
.editor_text textarea {
        border: 0px;
        background: #FFFFFF;
        overflow: auto;
        padding: 4px;
        word-break: break-all;
}
.editor_button {
        background: {ALTBG1};
        border: 1px solid {BGBORDER};
        border-top: 1px solid {BORDERCOLOR};
        position: relative;
        top: -1px;
        margin-bottom: 6px;
}
.editor_textexpand {
        float: left;
        position: relative;
        top: -3px;
        border-top: 0px;
}
.editor_buttonnormal {
        background: {ALTBG1};
        color: #000000;
        padding: 1px;
        border: none;
}
.editor_buttondown, .editor_buttonhover, .editor_buttonselected {
        background: {ALTBG1};
        color: #000000;
        padding: 0px;
        border: 1px solid {BORDERCOLOR};
}
.editor_menunormal, .editor_menuhover {
        font: 11px tahoma;
        height: 18px;
        padding: 0px 3px 0px 3px;
        white-space: nowrap;
        overflow: hidden;
        background: #FFFFFF;
        color: #000000;
}
.editor_menunormal {
        border-right: 1px solid #FFFFFF;
}
.editor_menuhover {
        border-right: 1px solid {BORDERCOLOR};
}
.editor_menuhover div, .editor_menunormal div {
        background: #FFFFFF;
        color: #000000;
}
.editor_colormenunormal {
        border-right: 1px solid #FFFFFF;
}
.editor_colormenuhover {
        border-right: 1px solid {BORDERCOLOR};
}
.editor_colornormal {
        padding: 2px;
        font-size: 1px;
}
.editor_colorhover {
        background: {BORDERCOLOR};
        white-space: nowrap;
        padding: 2px;
        font-size: 1px;
}
.editor_colornormal div {
        width: 10px;
        height: 10px;
        border: 1px solid {CATTEXT};
}
.editor_colorhover div {
        width: 10px;
        height: 10px;
        border: 1px solid {BORDERCOLOR};
}

.popupmenu_popup {
        color: {HEADERTEXT};
        border: 1px solid {BORDERCOLOR};
}
.popupmenu_option {
        background: {MENUBG};
        color: {MENUTEXT};
        font: {FONTSIZE} {FONT};
        white-space: nowrap;
        padding:3px 8px;
        cursor: pointer;
}
.popupmenu_option a {
        color: {MENUTEXT};
        padding:3px 8px;
        text-decoration: none;
}
.headermenu_popup {
        color: {MENUTEXT};
        border: 1px solid {BORDERCOLOR};
        border-top: 0px;
        margin-top: 8px;
}
.headermenu_popup a {
        color: {MENUTEXT};
        text-decoration: none;
}
.popupmenu_highlight {
        background: {MENUHLBG};
        color: {MENUHLTEXT};
        font: {FONTSIZE} {FONT};
        white-space: nowrap;
        padding:3px 8px;
        cursor: pointer;
}
.popupmenu_highlight a {
        color: {MENUHLTEXT};
        padding:3px 8px;
        text-decoration: none;
}

.expire, .expire a:link, .expire a:visited {
        color: {CALENDAREXPIRE};
}
.default, .default a:link, .default a:visited {
        color: {CALENDARTEXT};
}
.checked, .checked a:link, .checked a:visited {
        color: {CALENDARCHECKED};
}
.today, .today a:link, .today a:visited {
        color: {CALENDARTODAY};
}
#calendar_year {
        display: none;
        line-height: 130%;
        background: {MAINTABLECOLOR};
        position: absolute;
        z-index: 10;
}
#calendar_year .col {
        float: left;
        background: {MAINTABLECOLOR};
        margin-left: 1px;
        border: 1px solid {BORDERCOLOR};
        padding: 4px;
}
#calendar_month {
        display: none;
        background: {MAINTABLECOLOR};
        line-height: 130%;
        border: 1px solid {BORDERCOLOR};
        padding: 4px;
        position: absolute;
        z-index: 11;
}

[ 本帖最后由 wushuang8433 于 2006-12-19 10:48 编辑 ]
回复

使用道具 举报

wushuang8433 发表于 2006-12-19 11:27:13 | 显示全部楼层
顶上去

我真的很急的~~
回复

使用道具 举报

wushuang8433 发表于 2006-12-19 13:21:00 | 显示全部楼层
为什么就没有人来关心偶一下呢?

哎....
回复

使用道具 举报

疯子拿大刀 发表于 2006-12-19 16:38:29 | 显示全部楼层
原帖由 wushuang8433 于 2006-12-19 11:27 发表
顶上去

我真的很急的~~


加到结尾就行
回复

使用道具 举报

疯子拿大刀 发表于 2006-12-19 16:43:17 | 显示全部楼层
原帖由 lele1626 于 2006-11-13 13:49 发表
谢谢楼大,已经用上了,我家还是4.1版本的就缺这个呢~~

不过,貌似这个在开启了干扰码的论坛使用会有一点点问题,表格内会随机产生可见的(而不是原先隐藏的)怪字符串,表格的框架有时候也会出问题。
...




以下为D4干扰码修正部分
discuzcode.func.php
查找:
#位于function discuzcode( 函数声明下一行

  1. global $discuzcodes, $credits, $tid, $discuz_uid, $highlight, $maxsmilies, $db, $tablepre;
复制代码

改成:

  1. global $discuzcodes, $credits, $tid, $discuz_uid, $highlight, $maxsmilies, $db, $tablepre,$jammerarray;
复制代码

查找:

  1.         if(!$htmlon && !$allowhtml) {
  2.                 $message = $jammer ? preg_replace("/\r\n|\n|\r/e", "jammer()", dhtmlspecialchars($message)) : dhtmlspecialchars($message);
  3.         }
复制代码

改成:

  1.         if(!$htmlon && !$allowhtml) {
  2.                 $message = $jammer ? preg_replace("/(\r\n|\n|\r)/e", "jammer('\\1')", dhtmlspecialchars($message)) : dhtmlspecialchars($message);
  3.         }
复制代码


在上面修改的

  1.                 //06-01-19-tbl
  2.                         if(strstr($message,'[/tbl]')){
  3.                                         $message = parse_tbl($message);
  4.                         }
  5.                 //06-01-19-tbl-end
  6.                 //06-01-19-emule
  7.                         if(strstr($message,'[/emule]')){
  8.                                         $message = parse_emule($message);
  9.                         }
  10.                 //06-01-19-emule-end
复制代码

下面加上

  1. if (is_array($jammerarray)){
  2.                 $message = $jammer ? @str_replace(array_keys($jammerarray),array_values($jammerarray),$message) : $message;
  3. }
复制代码


文件最下方的jammer函数改成下面这个:

  1. function jammer($char='') {
  2.         global $jammerarray;
  3.         $randomstr = '';
  4.         for($i = 0; $i < mt_rand(5, 15); $i++) {
  5.                 $randomstr .= chr(mt_rand(0, 59)).chr(mt_rand(63, 126));
  6.         }
  7.         if($GLOBALS['thisbg'] == 'altbg1') {
  8.                 $thisbg = ALTBG1;
  9.         } elseif($GLOBALS['thisbg'] == 'altbg2') {
  10.                 $thisbg = ALTBG2;
  11.         } else {
  12.                 $thisbg = $GLOBALS['thisbg'];
  13.         }
  14.         $rand = random(3);
  15.         $jammerarray['DisCuzJammer'.$rand] = mt_rand(0, 1) ? '<font style="font-size:0px;color:'.$thisbg.'">'.$GLOBALS['discuzcodes']['seoarray'][mt_rand(0, 5)].$randomstr.'</font>' :
  16.                 '<span style="display:none">'.$randomstr.$GLOBALS['discuzcodes']['seoarray'][mt_rand(0, 5)].'</span>';
  17.         return 'DisCuzJammer'.$rand.$char;
  18.         }
复制代码
回复

使用道具 举报

wushuang8433 发表于 2006-12-19 21:07:15 | 显示全部楼层
原帖由 疯子拿大刀 于 2006-12-19 16:38 发表


加到结尾就行


加了还是不行呀.....

麻烦您告诉我准确的方法可以吗?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-11-22 08:17 , Processed in 0.090114 second(s), 13 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表