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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

哎,不等了...帖子的副标题 For 6.1.0 080606 GBK V2.0

[复制链接]
 楼主| barracuda 发表于 2008-7-25 10:19:07 | 显示全部楼层
原帖由 猪猪霸主2.0 于 2008-7-25 07:18 发表
这样不能发帖

287749

287750

这样能

287751

还有怎样更改 副标题 3个字呢???


在第六步当中的

6.打开./templates/default/post_newthread.htm
找到
  1.                 <tr>
  2.                         <th style="border-bottom: 0"><label for="subject">{lang subject}</label></th>
  3.                         <td style="border-bottom: 0">
  4.                                 $typeselect
  5.                                 <input type="text" name="subject" id="subject" size="45" value="$subject" tabindex="3" />

  6.                         </td>
  7.                 </tr>
复制代码
下面添加改成这样
  1.                 <tr>
  2.                         <th style="border-bottom: 0"><label for="exsubject">{lang exsubject}</label></th>
  3.                         <td style="border-bottom: 0"><input type="text" name="exsubject" id="exsubject" size="56" value="$exsubject" tabindex="3" />

  4.                         </td>
  5.                 </tr>
复制代码
7.打开./templates/default/post_editpost.htm
找到
  1. <input type="hidden" name="origsubject" value="$postinfo[subject]" />
  2. <!--{if $special == 6}-->
  3.         <input type="hidden" name="subjectu8" value="" />
  4.         <input type="hidden" name="tagsu8" value="" />
  5.         <input type="hidden" name="vid" value="1" />
  6. <!--{/if}-->
  7. </td></tr>
复制代码
下面加上
  1. <!--{if $isfirstpost}-->
  2. <tr>
  3. <td class="altbg1" width="20%">{lang exsubject}:</td>
  4. <td class="altbg2">
  5. <input type="text" name="exsubject" size="56" value="$postinfo[exsubject]" tabindex="3">
  6. <input type="hidden" name="origexsubject" value="$postinfo[exsubject]">
  7. </td>
  8. </tr>
  9. <!--{/if}-->
复制代码
应该就可以了,成功了的话就回帖下,谢谢

自己看下在./templates/default/templates.lang.php里加的副标题...想改啥就改啥

[ 本帖最后由 barracuda 于 2008-7-25 11:13 编辑 ]
回复

使用道具 举报

 楼主| barracuda 发表于 2008-7-26 08:55:07 | 显示全部楼层

我是先回的你的帖子,然后觉得是一个问题才修改的主题贴.算是给你定制了下吧.嘿嘿
回复

使用道具 举报

sexin 发表于 2008-7-26 12:45:08 | 显示全部楼层
升级数据库提示

升级错误,MySQL 提示: Unknown column 'exsubject' in 'field list' ,请返回。


怎么解决?!
回复

使用道具 举报

 楼主| barracuda 发表于 2008-7-26 13:04:31 | 显示全部楼层
原帖由 sexin 于 2008-7-26 12:45 发表
升级数据库提示



怎么解决?!



请仔细看清楚帖子内容,谢谢
回复

使用道具 举报

sexin 发表于 2008-7-26 13:10:58 | 显示全部楼层
呵呵,不好意思,问了弱智问题~
回复

使用道具 举报

dingxinzheng 发表于 2008-7-26 16:18:29 | 显示全部楼层
再来顶顶,感谢楼主帮忙,热心解决问题
回复

使用道具 举报

tyiser 发表于 2008-7-29 12:27:34 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

 楼主| barracuda 发表于 2008-7-30 00:23:38 | 显示全部楼层
原帖由 tyiser 于 2008-7-29 12:27 发表
我已经到你的站上测试了
你也可以上去测试下 发一个帖子 然后回复几下
你再去编辑你回复的帖子 二楼一下 在 所见所得模式下 编辑不了!!!!

所见所得模式! 因为post_editor.js 这个js里加的那段代码 导致的不能编 ...



给你个暂时的解决方法吧.最近实在是没空.见谅
打开./templates/default/post_editpost.htm
找到
  1. <!--{if $isfirstpost}-->
  2. <tr>
  3. <td class="altbg1" width="20%">{lang exsubject}:</td>
  4. <td class="altbg2">
  5. <input type="text" name="exsubject" size="56" value="$postinfo[exsubject]" tabindex="3">
  6. <input type="hidden" name="origexsubject" value="$postinfo[exsubject]">
  7. </td>
  8. </tr>
  9. <!--{/if}-->
复制代码
替换成
  1. <tr>
  2. <td class="altbg1" width="20%">{lang exsubject}:</td>
  3. <td class="altbg2">
  4. <input type="text" name="exsubject" size="56" value="$postinfo[exsubject]" tabindex="3">
  5. <input type="hidden" name="origexsubject" value="$postinfo[exsubject]">
  6. </td>
  7. </tr>
复制代码
有个缺点就是编辑不是主题帖会有副标题的显示,不过无伤大雅就是.

.include/javascript/post_editor.js里的东西就不要去动了.

不过其实你只要所见即所得模式修改的话过一次Discuz!代码模式修改也可以.代码的不完善了.
回复

使用道具 举报

horseluke 发表于 2008-8-24 22:43:23 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

xiaozhu12310 发表于 2008-8-25 12:13:47 | 显示全部楼层
改的 好多 迷糊
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-22 01:29 , Processed in 0.334711 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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