標題: [軟件] QC ... 我搵到啦 ... [打印本頁]
作者: XT 時間: 2005-11-25 22:22 標題: QC ... 我搵到啦 ...
http://www.alan888.com/Discuz/viewthread.php?tid=19841&fpage=1&highlight=Smilies
Smilies PopUp 顯示 Discuz 2.5
适用版本:Discuz 2.5
修改档案:siuyau_popup_showsmilies.htm(new), post_sminsert.htm,misc.php,include/common.js
技术支援:@FreeDiscuz
修改程序:十分簡易
插件作者:小优格格
完成日期:2004/1/14
插件说明:可以减少载入smilies的時間,版面會靚d,
加入模版 siuyau_popup_showsmilies.htm,post_sminsert.htm (在附件中)
include/common.js
在最底部分加上:複製內容到剪貼板
代碼:
function popUp(URL,WIDTH,HEIGHT,SCROLL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, \'" + id + "\', \'toolbar=0,scrollbars="+SCROLL+",location=0,statusbar=0,menubar=0,resizable=0,width="+WIDTH+",height="+HEIGHT+",left = 262,top = 169\');");
}
misc.php
寻找:複製內容到剪貼板
代碼:
} else {
showmessage(\'undefined_action\', NULL, \'HALTED\');
在上面增加:複製內容到剪貼板
代碼:
}elseif($action == \'smilies\') {
$navigation = "表情符號-對應圖像";
$smilies = array();
$query = $db->query("SELECT code, url FROM $table_smilies WHERE type=\'smiley\'");
while($smiley = $db->fetch_array($query)) {
$smilies[] = $smiley;
}
include template(\'siuyau_popup_showsmilies\');
post.php
查找複製內容到剪貼板
代碼:
//Smilies PopUp 顯示 Discuz 2.5 by 格格 <繁化by max> 2004/1/14
if($smileyinsert && is_array($_DCACHE[\'smilies\'])) {
$smileyinsert = 1;
$simlieslist = 20; //預設顯示數目
$smcols = $smcols ? $smcols : 3;
$smilies .= \'<tr>\';
foreach(array_reverse($_DCACHE[\'smilies\']) as $key => $smiley) {
if ($key < $simlieslist){
$smilies .= \'<td align="center" valign="top"><img src="\'.SMDIR.\'/\'.$smiley[\'url\'].\'" border="0" onmouseover="this.style.cursor=\\'hand\\';" onclick="AddText(\\'\'.htmlspecialchars(addcslashes($smiley[\'code\'], \'\\\\'\')).\'\\');"></td>\'."\n";
$smilies .= !(++$key % $smcols) ? \'</tr><tr>\' : NULL;
}
$smiliesextra= "<tr><td align=center colspan=$smcols>總數 $key 個圖象 [<a href=\"javascript:popUp(\'misc.php?action=smilies\',\'230\',\'430\',\'1\')\"> 顯示更多</a>]</td></tr>";
$smilies_overstep = 0;
$smilies_overstep = $simlieslist / $smcols;
$smilies_overstep = ($smilies_overstep > 5) ? 1 : 0; // 如果圖標行數大過5,就會出現滾動條
}
} else {
$smileyinsert = 0;
}
//Smilies PopUp 顯示 Discuz 2.5 by 格格 2004/1/14
作者: qcmadness 時間: 2005-11-25 22:23
thx
作者: XT 時間: 2005-11-25 22:24
引用:
Originally posted by qcmadness at 2005-11-25 22:23:
thx
full back up 及 你最好看 al8 個網果個 ...
作者: qcmadness 時間: 2005-11-25 22:26
引用:
Originally posted by 真.飛鳥 at 2005-11-25 22:24:
full back up 及 你最好看 al8 個網果個 ...
thx
作者: XT 時間: 2005-11-25 22:30
引用:
Originally posted by qcmadness at 2005-11-25 22:26:
thx
唔使 ... 我 copy 絛 link 加 d 字就得
歡迎光臨 HKSpot (https://bbs.hk-spot.com/) |
Powered by Discuz! 6.0 Lite |