此修改参照<<为快速发贴/回贴/PM页加Smilies和Discuzcode[CACHE版] For 4.0 by oytktk>>
快速发贴和回帖Smilies表情的修改
打开forumdisplay.php
查找
- $smcols = $smcols ? $smcols : 4;
- $smileyinsert = $smileyinsert && is_array($_DCACHE['smilies_display']) ? 1 : 0;
- $smilies = $smileyinsert ? smiliestable($_DCACHE['smilies_display'], $smcols, 4,
- $editorid) : '';
- $moresmilies = $smileyinsert && count($_DCACHE['smilies_display']) > $smcols * 4 ? 1
- : 0;
复制代码
替换
- //---sdywd--快速发贴和快速回复Smilies表情 for 5.0--start
- $smilies = '<div style="overflow:auto; height:170; width:250;">';
- $moresmilies = 0;
- if($smileyinsert && is_array($_DCACHE['smilies_display'])) {
- $smileyinsert = 1;
- $smcols = $smcols ? $smcols : 3;
- foreach($_DCACHE['smilies_display'] as $key => $cccsm) {
- $smilies .= '<img src="'.SMDIR.'/'.$cccsm['url'].'" border="0"
- height="40" width="40" onmouseover="this.style.cursor=\'hand\';" onclick="AddText
- (\''.htmlspecialchars(addcslashes($cccsm['code'], '\\\'')).'\');">'."\n";
- }
- $smilies .= "</div>";
- } else {
- $smileyinsert = 0;
- }
- //---sdywd--快速发贴和快速回复Smilies表情 for 5.0--end
复制代码
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
打开viewthread.php
查找
- $smcols = $smcols ? $smcols : 4;
- $smileyinsert = $smileyinsert && is_array($_DCACHE['smilies_display']) ? 1 :
- 0;
- $smilies = $smileyinsert ? smiliestable($_DCACHE['smilies_display'],
- $smcols, 4, $editorid) : '';
- $moresmilies = $smileyinsert && count($_DCACHE['smilies_display']) > $smcols
- * 4 ? 1 : 0;
复制代码
替换
- //---sdywd--快速发贴和快速回复Smilies表情 for 5.0--start
- $smilies = '<div style="overflow:auto; height:170; width:250;">';
- $moresmilies = 0;
- if($smileyinsert && is_array($_DCACHE['smilies_display'])) {
- $smileyinsert = 1;
- $smcols = $smcols ? $smcols : 3;
- foreach($_DCACHE['smilies_display'] as $key => $cccsm) {
- $smilies .= '<img src="'.SMDIR.'/'.$cccsm['url'].'" border="0"
- height="40" width="40" onmouseover="this.style.cursor=\'hand\';" onclick="AddText
- (\''.htmlspecialchars(addcslashes($cccsm['code'], '\\\'')).'\');">'."\n";
- }
- $smilies .= "</div>";
- } else {
- $smileyinsert = 0;
- }
- //---sdywd--快速发贴和快速回复Smilies表情 for 5.0--end
复制代码
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
打开forumdisplay.htm
查找
- <td width="6%" class="altbg2" align="center" valign="top"><span class="bold">{lang
- content}</span></td>
- <td width="59%" class="altbg2" valign="top">
- <div style="width: 97%" class="smalltxt" align="right">
- <textarea rows="7" cols="30" style="width: 100%; height: 120px; word-break: break-
- all" name="message" onKeyDown="ctlent(event);" tabindex="2"></textarea><br><br>
复制代码
替换
- <td width="10%" class="altbg2" align="center" valign="top"><span class="bold">{lang
- content}</span></td>
- <td width="55%" class="altbg2" valign="top">
- <div style="width: 97%" class="smalltxt" align="right">
- <textarea rows="7" cols="30" style="width: 100%; height: 140px; word-break: break-
- all" name="message" onKeyDown="ctlent(event);" tabindex="2"></textarea><br><br>
复制代码
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
打开viewthread.htm
查找
- <td width="6%" class="altbg2" align="center" valign="top"><span class="bold">{lang
- content}</span></td>
- <td width="59%" class="altbg2" valign="top">
- <div style="width: 97%" class="smalltxt" align="right">
- <textarea rows="7" cols="10" name="message" style="width: 100%; height: 120px; word
- -break: break-all" onKeyDown="ctlent(event);" tabindex="2"></textarea><br><br>
复制代码
替换
- <td width="10%" class="altbg2" align="center" valign="top"><span class="bold">{lang
- content}</span></td>
- <td width="55%" class="altbg2" valign="top">
- <div style="width: 97%" class="smalltxt" align="right">
- <textarea rows="7" cols="10" name="message" style="width: 100%; height: 140px; word
- -break: break-all" onKeyDown="ctlent(event);" tabindex="2"></textarea><br><br>
复制代码
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
发表新贴,发表回复,编辑帖子.....之类Smilies表情的修改
打开post.php
查找
- $smcols = $smcols ? $smcols : 4;
- $smileyinsert = $smileyinsert && is_array($_DCACHE['smilies_display']) ? 1 : 0;
- $smilies = $smileyinsert ? smiliestable($_DCACHE['smilies_display'], $smcols, 4,
- $editorid) : '';
- $moresmilies = $smileyinsert && count($_DCACHE['smilies_display']) > $smcols * 4 ? 1
- : 0;
复制代码
替换
- //---sdywd--快速发贴和快速回复Smilies表情 for 5.0--start
- $smilies = '<div style="overflow:auto; height:340; width:250;">';
- $moresmilies = 0;
- if($smileyinsert && is_array($_DCACHE['smilies_display'])) {
- $smileyinsert = 1;
- $smcols = $smcols ? $smcols : 3;
- foreach($_DCACHE['smilies_display'] as $key => $cccsm) {
- $smilies .= '<img src="'.SMDIR.'/'.$cccsm['url'].'" border="0"
- height="40" width="40" onmouseover="this.style.cursor=\'hand\';" onclick="AddText
- (\''.htmlspecialchars(addcslashes($cccsm['code'], '\\\'')).'\');">'."\n";
- }
- $smilies .= "</div>";
- } else {
- $smileyinsert = 0;
- }
- //---sdywd--快速发贴和快速回复Smilies表情 for 5.0--end
复制代码
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
发短信和回复短信Smilies表情的修改
打开pm.php
查找
- $smcols = $smcols ? $smcols : 4;
- $smileyinsert = $smileyinsert && is_array($_DCACHE['smilies_display']) ? 1 :
- 0;
- $smilies = $smileyinsert ? smiliestable($_DCACHE['smilies_display'],
- $smcols, 4, $editorid) : '';
- $moresmilies = $smileyinsert && count($_DCACHE['smilies_display']) > $smcols
- * 4 ? 1 : 0;
复制代码
替换
- //---sdywd--快速发贴和快速回复Smilies表情 for 5.0--start
- $smilies = '<div style="overflow:auto; height:170; width:250;">';
- $moresmilies = 0;
- if($smileyinsert && is_array($_DCACHE['smilies_display'])) {
- $smileyinsert = 1;
- $smcols = $smcols ? $smcols : 3;
- foreach($_DCACHE['smilies_display'] as $key => $cccsm) {
- $smilies .= '<img src="'.SMDIR.'/'.$cccsm['url'].'" border="0"
- height="40" width="40" onmouseover="this.style.cursor=\'hand\';" onclick="AddText
- (\''.htmlspecialchars(addcslashes($cccsm['code'], '\\\'')).'\');">'."\n";
- }
- $smilies .= "</div>";
- } else {
- $smileyinsert = 0;
- }
- //---sdywd--快速发贴和快速回复Smilies表情 for 5.0--end
复制代码
效果如下
[ 本帖最后由 sdywd 于 2006-9-3 00:23 编辑 ] |