适合版本:D4
安装方法:复杂
图片演示:有
结合:播放器+FLASH+歌词秀+全按扭(HIDE) For 4.0.0 by oytktk
eMule 发布插件 for Discuz!4.0.0正式版
功能介绍:飞行文字/QQ号码/光晕文字/midi 音乐/rm/mp3音乐/wmv,wma媒体/阴影字/文字底色/
动感字/阴影字(二)/倒转字/彩虹字体/打字机字体/文字加上刪除线/ 隐藏内容/调转字/eMule 发布插件
================================================================================
1.打开include/bbcode.js
ps.先查看这个文件内是否已有以下某函数,若有,请删除后再加.
查找:
在上面添加:
- function typewriter() {
- if (helpmode){
- alert(typewriter_help);
- } else if (advmode) {
- AddTxt="[typewriter] [/typewriter]";
- AddText(AddTxt);
- } else {
- txt=prompt(typewriter_normal,text_input);
- if(txt!=null) {
- AddTxt="\r[typewriter]"+txt;
- AddText(AddTxt);
- AddText("[/typewriter]");
- }
- }
- }
- function mid() {
- if (helpmode){
- alert(mid_help);
- } else if (advmode) {
- AddTxt="[mid] [/mid]";
- AddText(AddTxt);
- } else {
- txt=prompt(mid_normal,"http://");
- if(txt!=null) {
- AddTxt="\r[mid]"+txt;
- AddText(AddTxt);
- AddText("[/mid]");
- }
- }
- }
- function wmv() {
- if (helpmode){
- alert(wmv_help);
- } else if (getSelectedText()) {
- var range = document.selection.createRange();
- range.text = "[wmv=360,300,1]" + range.text + "[/wmv]";
- } else if (advmode) {
- AddTxt="[wmv=360,300,1]http://[/wmv]";
- AddText(AddTxt);
- } else {
- txt=prompt(wmv_normal,"http://");
- if (txt!=null){
- txt2=prompt(media_input1,"360");
- txt3=prompt(media_input2,"300");
- txt4=prompt(media_input3,"1");
- txt2=txt2==null?'360':txt2;
- txt3=txt3==null?'300':txt3;
- txt4=txt4==null?'0':txt4;
- if (txt2!="" && txt3!="" && txt4!=""){
- AddTxt="[wmv="+txt2+","+txt3+","+txt4+"]"+txt;
- AddText(AddTxt);
- AddText("[/wmv]");
- }else{
- AddTxt="[wmv=360,300,1]"+txt;
- AddText(AddTxt);
- AddText("[/wmv]");
- }
- }
- }
- }
- function rm() {
- if (helpmode){
- alert(rm_help);
- } else if (getSelectedText()) {
- var range = document.selection.createRange();
- range.text = "[rm=360,300,1]" + range.text + "[/rm]";
- } else if (advmode) {
- AddTxt="[rm=360,300,1]http://[/rm]";
- AddText(AddTxt);
- } else {
- txt=prompt(wmv_normal,"http://");
- if (txt!=null){
- txt2=prompt(media_input1,"360");
- txt3=prompt(media_input2,"300");
- txt4=prompt(media_input3,"1");
- txt2=txt2==null?'360':txt2;
- txt3=txt3==null?'300':txt3;
- txt4=txt4==null?'0':txt4;
- if (txt2!="" && txt3!="" && txt4!=""){
- AddTxt="[rm="+txt2+","+txt3+","+txt4+"]"+txt;
- AddText(AddTxt);
- AddText("[/rm]");
- }else{
- AddTxt="[rm=360,300,1]"+txt;
- AddText(AddTxt);
- AddText("[/rm]");
- }
- }
- }
- }
- function gcx_mp3() {
- if (helpmode) {
- alert(gcx_help);
- } else if (getSelectedText()) {
- var range = document.selection.createRange();
- range.text = "[gcx]" + range.text + "[/gcx][mp3]http://[/mp3]";
- } else if (advmode) {
- AddTxt="\r[gcx]"+gcx_help+"[/gcx][mp3]http://[/mp3]";
- AddText(AddTxt);
- } else {
- txt=prompt(wmv_normal,"http://");
- if (txt!=null) {
- AddTxt="\r[gcx]"+gcx_help;
- AddText(AddTxt);
- AddText("[/gcx][mp3]"+txt+"[/mp3]");
- }
- }
- }
- function gcx_ron() {
- if (helpmode) {
- alert(gcx_help);
- } else if (getSelectedText()) {
- var range = document.selection.createRange();
- range.text = "[gcx]" + range.text + "[/gcx][ron]http://[/ron]";
- } else if (advmode) {
- AddTxt="\r[gcx]"+gcx_help+"[/gcx][ron]http://[/ron]";
- AddText(AddTxt);
- } else {
- txt=prompt(wmv_normal,"http://");
- if (txt!=null) {
- AddTxt="\r[gcx]"+gcx_help;
- AddText(AddTxt);
- AddText("[/gcx][ron]"+txt+"[/ron]");
- }
- }
- }
- function hide() {
- if (helpmode) {
- alert(hide_help);
- } else if (getSelectedText()) {
- var range = document.selection.createRange();
- range.text = "[hide]" + range.text + "[/hide]";
- } else if (advmode) {
- AddTxt="[hide]"+hide_normal+"[/hide]";
- AddText(AddTxt);
- } else {
- txt1=prompt(hide_credit,0);
- txt=prompt(hide_help,hide_normal);
- txt1=txt1==0 || !txt1?'':"="+txt1;
- if (txt!=null) {
- AddTxt="[hide"+txt1+"]"+txt;
- AddText(AddTxt);
- AddText("[/hide]");
- }
- }
- }
- function glow() {
- if (helpmode) {
- alert(glow_help);
- } else if (advmode) {
- AddTxt="[glow=255,red,2] [/glow]";
- AddText(AddTxt);
- } else {
- txt2=prompt(glow_normal,"");
- if (txt2!=null) {
- txt=prompt(glow_normal_input,"255,red,2");
- if (txt!=null) {
- if (txt2=="") {
- AddTxt="[glow=255,red,2]"+txt;
- AddText(AddTxt);
- AddText("[/glow]");
- } else {
- AddTxt="[glow="+txt+"]"+txt2;
- AddText(AddTxt);
- AddText("[/glow]");
- }
- }
- }
- }
- }
- function crfont() {
- if (helpmode){
- alert(crfont_help);
- } else if (advmode) {
- AddTxt="[crfont] [/crfont]";
- AddText(AddTxt);
- } else {
- txt=prompt(crfont_normal,text_input);
- if(txt!=null) {
- AddTxt="\r[crfont]"+txt;
- AddText(AddTxt);
- AddText("[/crfont]");
- }
- }
- }
- function fly() {
- if (helpmode) {
- alert(fly_help);
- } else if (document.selection && document.selection.type == "Text") {
- var range = document.selection.createRange();
- range.text = "[fly]" + range.text + "[/fly]";
- } else if (advmode) {
- AddTxt="[fly] [/fly]";
- AddText(AddTxt);
- } else {
- txt=prompt(fly_normal,"");
- if (txt!=null) {
- AddTxt="[fly]"+txt;
- AddText(AddTxt);
- AddText("[/fly]");
- }
- }
- }
- function blur() {
- if (document.selection && document.selection.type == "Text") {
- var range = document.selection.createRange();
- range.text = "[blur]" + range.text + "[/blur]";
- } else if (advmode) {
- AddTxt="\r[blur]\r[/blur]";
- AddText(AddTxt);
- } else {
- txt=prompt("请输入需加动感效果的文字。",text_input);
- if (txt!=null) {
- AddTxt="\r[blur]"+txt;
- AddText(AddTxt);
- AddText("[/blur]");
- }
- }
- }
- function shadow() {
- if (document.selection && document.selection.type == "Text") {
- var range = document.selection.createRange();
- range.text = "[shadow]" + range.text + "[/shadow]";
- } else if (advmode) {
- AddTxt="\r[shadow]\r[/shadow]";
- AddText(AddTxt);
- } else {
- txt=prompt("请输入需加阴影效果的文字。",text_input);
- if (txt!=null) {
- AddTxt="\r[shadow]"+txt;
- AddText(AddTxt);
- AddText("[/shadow]");
- }
- }
- }
- function dshadow() {
- if (document.selection && document.selection.type == "Text") {
- var range = document.selection.createRange();
- range.text = "[dshadow]" + range.text + "[/dshadow]";
- } else if (advmode) {
- AddTxt="\r[dshadow]\r[/dshadow]";
- AddText(AddTxt);
- } else {
- txt=prompt("请输入需加阴影效果的文字。",text_input);
- if (txt!=null) {
- AddTxt="\r[dshadow]"+txt;
- AddText(AddTxt);
- AddText("[/dshadow]");
- }
- }
- }
- function dao() {
- if (document.selection && document.selection.type == "Text") {
- var range = document.selection.createRange();
- range.text = "[dao]" + range.text + "[/dao]";
- } else if (advmode) {
- AddTxt="\r[dao]\r[/dao]";
- AddText(AddTxt);
- } else {
- txt=prompt("请输入需加倒转效果的文字。",text_input);
- if (txt!=null) {
- AddTxt="\r[dao]"+txt;
- AddText(AddTxt);
- AddText("[/dao]");
- }
- }
- }
- function diao() {
- if (document.selection && document.selection.type == "Text") {
- var range = document.selection.createRange();
- range.text = "[diao]" + range.text + "[/diao]";
- } else if (advmode) {
- AddTxt="\r[diao]\r[/diao]";
- AddText(AddTxt);
- } else {
- txt=prompt("请输入需加调转效果的文字。",text_input);
- if (txt!=null) {
- AddTxt="\r[diao]"+txt;
- AddText(AddTxt);
- AddText("[/diao]");
- }
- }
- }
- function strike() {
- if (helpmode) {
- alert(strike_help);
- } else if (document.selection && document.selection.type == "Text") {
- var range = document.selection.createRange();
- range.text = "[strike]" + range.text + "[/strike]";
- } else if (advmode) {
- AddTxt="[strike] [/strike]";
- AddText(AddTxt);
- } else {
- txt=prompt(strike_normal,text_input);
- if (txt!=null) {
- AddTxt="[strike]"+txt;
- AddText(AddTxt);
- AddText("[/strike]");
- }
- }
- }
- function qq() {
- if (helpmode) {
- alert(qq_help);
- } else if (document.selection && document.selection.type == "Text") {
- var range = document.selection.createRange();
- range.text = "[qq]" + range.text + "[/qq]";
- } else if (advmode) {
- AddTxt="\r[qq]\r[/qq]";
- AddText(AddTxt);
- } else {
- txt=prompt(code_normal,"");
- if (txt!=null) {
- AddTxt="\r[qq]"+txt;
- AddText(AddTxt);
- AddText("[/qq]");
- }
- }
- }
- function addbox(color) {
- if (helpmode) {
- alert(box_help);
- } else if (document.selection && document.selection.type == "Text") {
- var range = document.selection.createRange();
- range.text = "[box=" + color + "]" + range.text + "[/box]";
- } else if (advmode) {
- AddTxt="[box="+color+"] [/box]";
- AddText(AddTxt);
- } else {
- txt=prompt(color_normal,text_input);
- if(txt!=null) {
- AddTxt="[box="+color+"]"+txt;
- AddText(AddTxt);
- AddText("[/box]");
- }
- }
- }
- function emulelink() {
- if (helpmode){
- alert('ed2k标记\\n使用ed2k标记,可以使输入的ed2k地址以超链接的形式在帖子中显示.\\n使用方法:\\n [ed2k]ed2k下载地址[/ed2k]');
- } else if (document.selection && document.selection.type == "Text") {
- var range = document.selection.createRange();
- range.text = "[emule]" + range.text + "[/emule]";
- } else if (advmode) {
- AddTxt="[emule] [/emule]";
- AddText(AddTxt);
- } else {
- txt=prompt('ed2k链接',"ed2k://");
- if (txt!=null) {
- AddTxt="\r[emule]"+txt;
- AddText(AddTxt);
- AddText("[/emule]");
- }
- }
- }
复制代码
=================================================================================
2.打开templates/post_bbinsert.htm
查找:
- var underline_normal = "{lang post_discuzcode_underline_normal}";
复制代码
在下面加入:
- //--BB CODE 按钮-----------------------------------------------------------------------------------------------------------------------
- var glow_help = "{lang post_discuzcode_glow}\n\n{lang post_discuzcode_glow_comment}";
- var glow_normal = "{lang post_discuzcode_glow_normal}";
- var glow_normal_input = "{lang post_discuzcode_glow_normal_input}";
- var crfont_help = "{lang post_discuzcode_crfont}\n\n{lang post_discuzcode_crfont_comment}";
- var crfont_normal = "{lang post_discuzcode_crfont_normal}";
- var typewriter_help = "{lang post_discuzcode_typewriter}\n\n{lang post_discuzcode_typewriter_comment}";
- var typewriter_normal = "{lang post_discuzcode_typewriter_normal}";
- var mid_normal = "{lang post_midi}";
- var mid_help = "{lang post_discuzcode_mid}\n\n{lang post_discuzcode_mid_comment}";
- var wmv_help = "{lang post_discuzcode_wmv}\n\n{lang post_discuzcode_wmv_comment}";
- var rm_help = "{lang post_discuzcode_rm}\n\n{lang post_discuzcode_rm_comment}";
- var mp3_help = "{lang post_discuzcode_mp3}";
- var ron_help = "{lang post_discuzcode_ron}";
- var gcx_help = "{lang post_discuzcode_gcx}";
- var hide_help = "{lang post_discuzcode_hide}";
- var hide_normal = "{lang post_discuzcode_hide_normal}";
- var hide_credit = "{lang post_discuzcode_hide_credit}";
- var wmv_normal = "{lang post_discuzcode_wmv_normal}";
- var media_input1 = "{lang post_discuzcode_media_input1}";
- var media_input2 = "{lang post_discuzcode_media_input2}";
- var media_input3 = "{lang post_discuzcode_media_input3}";
- var fly_normal = "{lang post_fly}";
- var fly_help = "{lang post_discuzcode_fly}\n\n{lang post_discuzcode_fly_comment}";
- var flya_normal = "{lang post_fly}";
- var flya_help = "{lang post_discuzcode_fly}\n\n{lang post_discuzcode_fly_comment}";
- var iframe_normal = "{lang post_kjwy}";
- var iframe_help = "{lang post_discuzcode_iframe}\n\n{lang post_discuzcode_iframe_comment}"
- var ra_normal = "{lang post_mp3}";
- var ra_help = "{lang post_discuzcode_ra}\n\n{lang post_discuzcode_ra_comment}";
- var bgs_normal = "{lang post_bjyy}";
- var bgs_help = "{lang post_discuzcode_bgs}\n\n{lang post_discuzcode_bgs_comment}";
- var qq_help = "{lang post_discuzcode_qq}\n\n{lang post_discuzcode_qq_comment}";
- var strike_normal = "{lang post_discuzcode_list_strike_normal}";
- //--BB CODE 按钮-----------------------------------------------------------------------------------------------------------------------
复制代码
再查找:
- <option value="LimeGreen" style="color:limegreen;">LimeGreen</option></select>
复制代码
在下面加入:
- <select name="box" onFocus="this.selectedIndex=0" onChange="addbox(this.options[this.selectedIndex].value)" size="1">
- <option value="" selected>{lang post_discuzcode_insert_background}</option>
- <option value='#FF0000' style='color:#FF0000;BACKGROUND-COLOR:#FF0000'>紅色</option>
- <option value='#00FF00' style='color:#00FF00;BACKGROUND-COLOR:#00FF00'>綠色</option>
- <option value='#0000FF' style='color:#0000FF;BACKGROUND-COLOR:#0000FF'>藍色</option>
- <option value='#FF00FF' style='color:#FF00FF;BACKGROUND-COLOR:#FF00FF'>牡丹紅</option>
- <option value='#00FFFF' style='color:#00FFFF;BACKGROUND-COLOR:#00FFFF'>青色</option>
- <option value='#FFFF00' style='color:#FFFF00;BACKGROUND-COLOR:#FFFF00'>黃色</option>
- <option value='#70DB93' style='color:#70DB93;BACKGROUND-COLOR:#70DB93'>海藍</option>
- <option value='#FFFFFF' style='color:#FFFFFF;BACKGROUND-COLOR:#FFFFFF'>白色</option>
- <option value='#5C3317' style='color:#5C3317;BACKGROUND-COLOR:#5C3317'>巧克力色</option>
- <option value='#9F5F9F' style='color:#9F5F9F;BACKGROUND-COLOR:#9F5F9F'>藍紫色</option>
- <option value='#B5A642' style='color:#B5A642;BACKGROUND-COLOR:#B5A642'>黃銅色</option>
- <option value='#D9D919' style='color:#D9D919;BACKGROUND-COLOR:#D9D919'>亮金色</option>
- <option value='#A67D3D' style='color:#A67D3D;BACKGROUND-COLOR:#A67D3D'>棕色</option>
- <option value='#8C7853' style='color:#8C7853;BACKGROUND-COLOR:#8C7853'>青銅色</option>
- <option value='#A67D3D' style='color:#A67D3D;BACKGROUND-COLOR:#A67D3D'>青銅色二</option>
- <option value='#5F9F9F' style='color:#5F9F9F;BACKGROUND-COLOR:#5F9F9F'>士官服藍色</option>
- <option value='#D98719' style='color:#D98719;BACKGROUND-COLOR:#D98719'>冷銅色</option>
- <option value='#B87333' style='color:#B87333;BACKGROUND-COLOR:#B87333'>銅色</option>
- <option value='#FF7F00' style='color:#FF7F00;BACKGROUND-COLOR:#FF7F00'>珊瑚紅</option>
- <option value='#42426F' style='color:#42426F;BACKGROUND-COLOR:#42426F'>紫藍色</option>
- <option value='#5C4033' style='color:#5C4033;BACKGROUND-COLOR:#5C4033'>深棕</option>
- <option value='#2F4F2F' style='color:#2F4F2F;BACKGROUND-COLOR:#2F4F2F'>深綠</option>
- <option value='#4A766E' style='color:#4A766E;BACKGROUND-COLOR:#4A766E'>深銅綠色</option>
- <option value='#4F4F2F' style='color:#4F4F2F;BACKGROUND-COLOR:#4F4F2F'>深橄欖綠</option>
- <option value='#9932CD' style='color:#9932CD;BACKGROUND-COLOR:#9932CD'>深蘭花色</option>
- <option value='#871F78' style='color:#871F78;BACKGROUND-COLOR:#871F78'>深紫色</option>
- <option value='#6B238E' style='color:#6B238E;BACKGROUND-COLOR:#6B238E'>深石板藍</option>
- <option value='#2F4F4F' style='color:#2F4F4F;BACKGROUND-COLOR:#2F4F4F'>深鉛灰色</option>
- <option value='#97694F' style='color:#97694F;BACKGROUND-COLOR:#97694F'>深棕褐色</option>
- <option value='#7093DB' style='color:#7093DB;BACKGROUND-COLOR:#7093DB'>深綠松石色</option>
- <option value='#855E42' style='color:#855E42;BACKGROUND-COLOR:#855E42'>暗木色</option>
- <option value='#545454' style='color:#545454;BACKGROUND-COLOR:#545454'>淡灰色</option>
- <option value='#856363' style='color:#856363;BACKGROUND-COLOR:#856363'>土灰玫瑰紅色</option>
- <option value='#D19275' style='color:#D19275;BACKGROUND-COLOR:#D19275'>長石色</option>
- <option value='#8E2323' style='color:#8E2323;BACKGROUND-COLOR:#8E2323'>火磚色</option>
- <option value='#238E23' style='color:#238E23;BACKGROUND-COLOR:#238E23'>森林綠</option>
- <option value='#CD7F32' style='color:#CD7F32;BACKGROUND-COLOR:#CD7F32'>金色</option>
- <option value='#DBDB70' style='color:#DBDB70;BACKGROUND-COLOR:#DBDB70'>鮮黃色</option>
- <option value='#C0C0C0' style='color:#C0C0C0;BACKGROUND-COLOR:#C0C0C0'>灰色</option>
- <option value='#527F76' style='color:#527F76;BACKGROUND-COLOR:#527F76'>銅綠色</option>
- <option value='#93DB70' style='color:#93DB70;BACKGROUND-COLOR:#93DB70'>青黃色</option>
- <option value='#215E21' style='color:#215E21;BACKGROUND-COLOR:#215E21'>獵人綠</option>
- <option value='#4E2F2F' style='color:#4E2F2F;BACKGROUND-COLOR:#4E2F2F'>印度紅</option>
- <option value='#9F9F5F' style='color:#9F9F5F;BACKGROUND-COLOR:#9F9F5F'>土黃色</option>
- <option value='#C0D9D9' style='color:#C0D9D9;BACKGROUND-COLOR:#C0D9D9'>淺藍色</option>
- <option value='#A8A8A8' style='color:#A8A8A8;BACKGROUND-COLOR:#A8A8A8'>淺灰色</option>
- <option value='#8F8FBD' style='color:#8F8FBD;BACKGROUND-COLOR:#8F8FBD'>淺鋼藍色</option>
- <option value='#E9C2A6' style='color:#E9C2A6;BACKGROUND-COLOR:#E9C2A6'>淺木色</option>
- <option value='#32CD32' style='color:#32CD32;BACKGROUND-COLOR:#32CD32'>石灰綠色</option>
- <option value='#E47833' style='color:#E47833;BACKGROUND-COLOR:#E47833'>桔黃色</option>
- <option value='#8E236B' style='color:#8E236B;BACKGROUND-COLOR:#8E236B'>褐紅色</option>
- <option value='#32CD99' style='color:#32CD99;BACKGROUND-COLOR:#32CD99'>中海藍色</option>
- <option value='#3232CD' style='color:#3232CD;BACKGROUND-COLOR:#3232CD'>中藍色</option>
- <option value='#6B8E23' style='color:#6B8E23;BACKGROUND-COLOR:#6B8E23'>中森林綠</option>
- <option value='#EAEAAE' style='color:#EAEAAE;BACKGROUND-COLOR:#EAEAAE'>中鮮黃色</option>
- <option value='#9370DB' style='color:#9370DB;BACKGROUND-COLOR:#9370DB'>中蘭花色</option>
- <option value='#426F42' style='color:#426F42;BACKGROUND-COLOR:#426F42'>中海綠色</option>
- <option value='#7F00FF' style='color:#7F00FF;BACKGROUND-COLOR:#7F00FF'>中石板藍色</option>
- <option value='#7FFF00' style='color:#7FFF00;BACKGROUND-COLOR:#7FFF00'>中春綠色</option>
- <option value='#70DBDB' style='color:#70DBDB;BACKGROUND-COLOR:#70DBDB'>中綠松石色</option>
- <option value='#DB7093' style='color:#DB7093;BACKGROUND-COLOR:#DB7093'>中紫紅色</option>
- <option value='#A68064' style='color:#A68064;BACKGROUND-COLOR:#A68064'>中木色</option>
- <option value='#2F2F4F' style='color:#2F2F4F;BACKGROUND-COLOR:#2F2F4F'>深藏青色</option>
- <option value='#23238E' style='color:#23238E;BACKGROUND-COLOR:#23238E'>海軍藍</option>
- <option value='#4D4DFF' style='color:#4D4DFF;BACKGROUND-COLOR:#4D4DFF'>霓虹籃</option>
- <option value='#FF6EC7' style='color:#FF6EC7;BACKGROUND-COLOR:#FF6EC7'>霓虹粉紅</option>
- <option value='#00009C' style='color:#00009C;BACKGROUND-COLOR:#00009C'>新深藏青色</option>
- <option value='#EBC79E' style='color:#EBC79E;BACKGROUND-COLOR:#EBC79E'>新棕褐色</option>
- <option value='#CFB53B' style='color:#CFB53B;BACKGROUND-COLOR:#CFB53B'>暗金黃色</option>
- <option value='#FF7F00' style='color:#FF7F00;BACKGROUND-COLOR:#FF7F00'>橙色</option>
- <option value='#FF2400' style='color:#FF2400;BACKGROUND-COLOR:#FF2400'>橙紅色</option>
- <option value='#DB70DB' style='color:#DB70DB;BACKGROUND-COLOR:#DB70DB'>淡紫色</option>
- <option value='#8FBC8F' style='color:#8FBC8F;BACKGROUND-COLOR:#8FBC8F'>淺綠色</option>
- <option value='#BC8F8F' style='color:#BC8F8F;BACKGROUND-COLOR:#BC8F8F'>粉紅色</option>
- <option value='#EAADEA' style='color:#EAADEA;BACKGROUND-COLOR:#EAADEA'>李子色</option>
- <option value='#D9D9F3' style='color:#D9D9F3;BACKGROUND-COLOR:#D9D9F3'>石英色</option>
- <option value='#5959AB' style='color:#5959AB;BACKGROUND-COLOR:#5959AB'>艷藍色</option>
- <option value='#6F4242' style='color:#6F4242;BACKGROUND-COLOR:#6F4242'>鮭魚色</option>
- <option value='#BC1717' style='color:#BC1717;BACKGROUND-COLOR:#BC1717'>猩紅色</option>
- <option value='#238E68' style='color:#238E68;BACKGROUND-COLOR:#238E68'>海綠色</option>
- <option value='#6B4226' style='color:#6B4226;BACKGROUND-COLOR:#6B4226'>半甜巧克力色</option>
- <option value='#8E6B23' style='color:#8E6B23;BACKGROUND-COLOR:#8E6B23'>赭色</option>
- <option value='#E6E8FA' style='color:#E6E8FA;BACKGROUND-COLOR:#E6E8FA'>銀色</option>
- <option value='#3299CC' style='color:#3299CC;BACKGROUND-COLOR:#3299CC'>天藍</option>
- <option value='#007FFF' style='color:#007FFF;BACKGROUND-COLOR:#007FFF'>石板藍</option>
- <option value='#FF1CAE' style='color:#FF1CAE;BACKGROUND-COLOR:#FF1CAE'>艷粉紅色</option>
- <option value='#00FF7F' style='color:#00FF7F;BACKGROUND-COLOR:#00FF7F'>春綠色</option>
- <option value='#236B8E' style='color:#236B8E;BACKGROUND-COLOR:#236B8E'>鋼藍色</option>
- <option value='#38B0DE' style='color:#38B0DE;BACKGROUND-COLOR:#38B0DE'>亮天藍色</option>
- </select>
复制代码
再查找:
- <a href="javascript:list()"><img src="{IMGDIR}/bb_list.gif" border="0" alt="{lang post_discuzcode_list}"></a>
复制代码
在下面加入:
- <a href="javascript:qq()"><img src="{IMGDIR}/bb_qq.gif" border="0" alt="{lang post_discuzcode_qq}"></a>
- <a href="javascript:crfont()"><img src="{IMGDIR}/bb_crfont.gif" border="0" alt="{lang post_discuzcode_crfont}"></a>
- <a href="javascript:typewriter()"><img src="{IMGDIR}/bb_tt.gif" border="0" alt="{lang post_discuzcode_typewriter}"></a>
- <a href="javascript:emulelink()"><img src="{IMGDIR}/bb_emule.gif" border="0" alt="发布 ed2k 连接"></a>
- <br>
- <a href="javascript:hide()"><img src="{IMGDIR}/bb_hide.gif" border="0" alt="{lang post_discuzcode_hide}"></a>
- <a hidefocus=true href="javascript:mid()"><img src="{IMGDIR}/bb_mid.gif" border="0" alt="{lang post_discuzcode_midi}"></a>
- <a href="javascript:wmv()"><img src="{IMGDIR}/bb_vod.gif" border="0" alt="{lang post_discuzcode_wmv}"></a>
- <a href="javascript:rm()"><img src="{IMGDIR}/bb_rm.gif" border="0" alt="{lang post_discuzcode_rm}"></a>
- <a href="javascript:gcx_mp3()"><img src="{IMGDIR}/bb_mp3.gif" border="0" alt="{lang post_discuzcode_mp3}"></a>
- <a href="javascript:gcx_ron()"><img src="{IMGDIR}/bb_ron.gif" border="0" alt="{lang post_discuzcode_ron}"></a>
- <a hidefocus=true href="javascript:fly()"><img src="{IMGDIR}/bb_fly.gif" border="0" alt="{lang post_discuzcode_fxwz}"></a>
- <a hidefocus=true href="javascript:strike()"><img src="{IMGDIR}/bb_strike.gif" border="0" alt="{lang post_discuzcode_strike}"></a>
- <a href="javascript:glow()"><img src="{IMGDIR}/bb_glow.gif" border="0" alt="{lang post_discuzcode_glow}"></a>
- <a hidefocus=true href="javascript:blur()"><img src="{IMGDIR}/bb_blur.gif" border="0" alt="{lang post_discuzcode_dgz}"></a>
- <a hidefocus=true href="javascript:shadow()"><img src="{IMGDIR}/bb_shadow.gif" border="0" alt="{lang post_discuzcode_yyz}"></a>
- <a hidefocus=true href="javascript:dshadow()"><img src="{IMGDIR}/bb_dshadow.gif" border="0" alt="{lang post_discuzcode_yyz2}"></a>
- <a hidefocus=true href="javascript:dao()"><img src="{IMGDIR}/bb_dao.gif" border="0" alt="{lang post_discuzcode_dzz}"></a>
- <a hidefocus=true href="javascript:diao()"><img src="{IMGDIR}/bb_diao.gif" border="0" alt="{lang post_discuzcode_dzhaz}"></a>
复制代码
=================================================================================
3.打开include/discuzcode.func.php
查找:
- if(!$bbcodeoff && $allowimgcode) {
- if(empty($discuzcodes['searcharray']['imgcode'])) {
- $discuzcodes['searcharray']['imgcode'] = array(
- "/\[swf\]\s*([^\[]+?)\s*\[\/swf\]/ies",
- "/\[img\]\s*([^\[]+?)\s*\[\/img\]/ies",
- "/\[img=(\d{1,3})[x|\,](\d{1,3})\]\s*([^\[]+?)\s*\[\/img\]/ies"
- );
- $discuzcodes['replacearray']['imgcode'] = array(
- "bbcodeurl('\\1', ' <img src="images/attachicons/flash.gif" align="absmiddle"> <a href="%s" target="_blank">Flash: %s</a> ')",
- "bbcodeurl('\\1', '<img src="%s" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt=\'Click here to open new window\\nCTRL+Mouse wheel to zoom in/out\';}" onmouseover="if(this.resized) this.style.cursor=\'hand\';" onclick="if(!this.resized) {return true;} else {window.open(\'%s\');}" onmousewheel="return imgzoom(this);">')",
- "bbcodeurl('\\3', '<img width="\\1" height="\\2" src="%s" border="0">')"
- );
- }
- $message = preg_replace($discuzcodes['searcharray']['imgcode'], $discuzcodes['replacearray']['imgcode'], $message);
- }
复制代码
整段替换为:
- if(!$bbcodeoff && $allowimgcode) {
- if(empty($discuzcodes['searcharray']['imgcode'])) {
- $discuzcodes['searcharray']['imgcode'] = array(
- "/\[swf\]\s*([^\[]+?)\s*\[\/swf\]/ies",
- "/\[img\]\s*([^\[]+?)\s*\[\/img\]/ies",
- "/\[swf=(\d+?)[x|\,](\d+?)\]\s*(.+?)\s*\[\/swf\]/ies",
- "/\[wmv\]\s*(.+?)\s*\[\/wmv\]/ies",
- "/\[mp3\]\s*(.+?)\s*\[\/mp3\]/ies",
- "/\[ron\]\s*(.+?)\s*\[\/ron\]/ies",
- "/\[rm\]\s*(.+?)\s*\[\/rm\]/ies",
- "/\[wmv=(\d+?)[x|\,](\d+?)[x|\,](\d+?)\]\s*(.+?)\s*\[\/wmv\]/ies",
- "/\[rm=(\d+?)[x|\,](\d+?)[x|\,](\d+?)\]\s*(.+?)\s*\[\/rm\]/ies",
- "/\[img=(\d{1,3})[x|\,](\d{1,3})\]\s*([^\[]+?)\s*\[\/img\]/ies"
- );
- $discuzcodes['replacearray']['imgcode'] = array(
- "bbcodeurl('\\1', '<a href="%s" target="_blank"><u>※单击鼠标在新窗口中打开※</u></a><br><br><embed width="360" height="300" src="%s" type="application/x-shockwave-flash"></embed>')",
- "bbcodeurl('\\1', '<br><img src="%s" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt=\'单击这里开新视窗查看\\n按住CTRL,并滚动鼠标滚轮缩放图片大小\';}" onmouseover="if(this.resized) this.style.cursor=\'hand\';" onclick="if(!this.resized) {return true;} else {window.open(\'%s\');}" onmousewheel="return imgzoom(this);">')",
- "bbcodeurl('\\3', '<a href="%s" target="_blank"><u>※单击鼠标在新窗口中打开※</u></a><br><br><embed width="\\1" height="\\2" src="%s" type="application/x-shockwave-flash"></embed>')",
- "bbcodeurl('\\1', '<br><input type="button" name="mplayer" onclick="document.MediaPlayer.DisplaySize=3" value="全屏播放"> [ 双击退出全屏播放状态 ] <br><br><object align="middle" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" class="OBJECT" id="MediaPlayer" width="360" height="300" ><PARAM NAME="AutoStart" VALUE="0" ><param name="enableContextMenu" value="0"><param name="ShowStatusBar" value="-1"><param name="Filename" value="%s"><embed type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" flename="mp" src="%s" width="360" height="300"></embed></object>')",
- "bbcodeurl('\\1', '<object align="middle" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" class="OBJECT" id="MediaPlayer" width="480" height="68" ><PARAM NAME="AutoStart" VALUE="-1" ><param name="enableContextMenu" value="0"><param name="ShowStatusBar" value="-1"><param name="Filename" value="%s"><embed type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" flename="mp" src="%s" width="480" height="68"></embed></object>')",
- "bbcodeurl('\\1', '<object classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" id="Player" width="480" height="0" viewastext><param name="Autostart" value="-1"><param name="CONTROLS" value="ImageWindow"><param name="enableContextMenu" value="0"><param name="CONSOLE" value="_master"><param name="LOOP" value="-1"><param name="CENTER" value="0"></object><br><object classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA height=64 id=Player width=480 VIEWASTEXT><param name="_ExtentX" value="18256"><param name="_ExtentY" value="794"><param name="Autostart" value="-1"><param name="LOOP" value="-1"><param name="CENTER" value="0"><param name="BACKGROUNDCOLOR" value="#000000"><param name="SRC" value="%s"></object>')",
- "bbcodeurl('\\1', '<br><input type="button" name="rmplayer" onclick="document.rmplayer.SetFullScreen()" value="全屏播放"> [ 按ESC退出全屏播放状态 ] <br><br><object classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" id="rmplayer" width="360" height="300" viewastext><param name="Autostart" value="0"><param name="CONTROLS" value="ImageWindow"><param name="enableContextMenu" value="0"><param name="CONSOLE" value="_master"><param name="LOOP" value="-1"><param name="CENTER" value="0"></object><br><object classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA height=64 id=Player width=360 VIEWASTEXT><param name="_ExtentX" value="18256"><param name="_ExtentY" value="794"><param name="Autostart" value="0"><param name="LOOP" value="0"><param name="CENTER" value="0"><param name="BACKGROUNDCOLOR" value="#000000"><param name="SRC" value="%s"></object>')",
- "bbcodeurl('\\4', '<br><input type="button" name="mplayer" onclick="document.MediaPlayer.DisplaySize=3" value="全屏播放"> [ 双击退出全屏播放状态 ] <br><br><object align="middle" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" class="OBJECT" id="MediaPlayer" width="\\1" height="\\2" ><PARAM NAME="AutoStart" VALUE="\\3" ><param name="ShowStatusBar" value="-1"><param name="enableContextMenu" value="0"><param name="Filename" value="%s"><embed type="application/x-oleobject" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" width="\\1" height="\\2"></embed></object>')",
- "bbcodeurl('\\4', '<br><input type="button" name="rmplayer" onclick="document.rmplayer.SetFullScreen()" value="全屏播放"> [ 按ESC退出全屏播放状态 ] <br><br><object width="\\1" height="\\2" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" id="rmplayer" viewastext><param name="Autostart" value="\\3"><param name="CONTROLS" value="ImageWindow"><param name="enableContextMenu" value="0"><param name="CONSOLE" value="_master"><param name="LOOP" value="-1"><param name="CENTER" value="0"></object><br><object classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA height=64 id=Player width="\\1" VIEWASTEXT><param name="_ExtentX" value="18256"><param name="_ExtentY" value="794"><param name="Autostart" value="\\3"><param name="LOOP" value="-1"><param name="CENTER" value="0"><param name="SRC" value="%s"></object>')",
- "bbcodeurl('\\3', '<img width="\\1" height="\\2" src="%s" border="0">')"
- );
- }
- $message = preg_replace($discuzcodes['searcharray']['imgcode'], $discuzcodes['replacearray']['imgcode'], $message);
- }
复制代码
查找:
- function karmaimg($rate, $ratetimes) {
复制代码
上面加:
- function gcxdisp($code) {
- global $discuzcodes;
- $discuzcodes['pcodecount']++;
- $code = htmlspecialchars(str_replace('\"', '"', preg_replace("/^[\n\r]*(.+?)[\n\r]*$/is", "\\1", $code)));
- $discuzcodes['codehtml'][$discuzcodes['pcodecount']] = "<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="480" bgcolor="#000000"><tr><td rowspan="2"><marquee id="scrolltext" onmouseover=this.stop() onmouseout=this.start() TrueSpeed scrollamount=1 scrolldelay=200 width="455" height="280" direction="up"><font style="font-size: 14pt" color=#FFFFFF><center>$code</center></FONT></marquee></td><td width="30" onmouseover="list3()" onmouseout="list4()" style="Cursor:hand"><font color=#FFFFFF><center>↑</center></font></td></tr><tr><td width="30" onmouseover="list1()" onmouseout="list2()" style="Cursor:hand"><font color=#FFFFFF><center>↓</center></font></td></tr></table>";
- $discuzcodes['codecount']++;
- return "[\tDISCUZ_CODE_$discuzcodes[pcodecount]\t]";
- }
复制代码
查找:
- $message = preg_replace("/\s*\[code\](.+?)\[\/code\]\s*/ies", "codedisp('\\1')", $message);
复制代码
下面加:
- $message = preg_replace("/\s*\[gcx\](.+?)\[\/gcx\]\s*/ies", "gcxdisp('\\1')", $message);
- $message = preg_replace("/\s*\[emule\](.+?)\[\/emule\]\s*/ies", "emu('\\1')", $message);
复制代码
查找:
- return $htmlon || $allowhtml ? $message : nl2br(str_replace(array("\t", ' ', ' '), array(' ', ' ', ' '), $message));
复制代码
修改为
- $message = $htmlon || $allowhtml ? $message : nl2br(str_replace(array("\t", ' ', ' '), array(' ', ' ', ' '), $message));
- return str_replace("/<br />","/\n",$message);
复制代码
查找:
- "/\[url=(https?|ftp|gopher|news|telnet|rtsp|mms|callto|ed2k){1}:\/\/([^\["']+?)\](.+?)\[\/url\]/is",
复制代码
改成
- "/\[url=(https?|ftp|gopher|news|telnet|rtsp|mms|callto){1}:\/\/([^\["']+?)\](.+?)\[\/url\]/is",
复制代码
查找:
- "/\[align=([^\[\<]+?)\]/i"
复制代码
替换为:
- "/\[align=([^\[\<]+?)\]/i",
- "/(\[glow=)(\S+?)(\,)(.+?)(\,)(.+?)(\])(.+?)(\[\/glow\])/is"
复制代码
再查找:
替换为:
- "<p align="\\1">",
- "<span style='WIDTH:\\2;filter:glow(color=\\4, strength=\\6)'> <font color=white>\\8</font></span>"
复制代码
在?>上面添加
- function emu($code){
- global $discuzcodes;
- $searcharray = explode("\n",$code);
- $view = "<br><br><table width=80% align=center cellspacing=1 cellpadding=5 class=tableborder><tr><td colspan=2 align=center class=header>下面是eMule专用的下载链接,您必须安装eMule才能点击下载</td></tr>";
- foreach($searcharray as $emule) {
- if($emule!=''){
- $emule = dhtmlspecialchars($emule);
- $emule_array=explode("|",$emule);
- $total+=$emule_array[3];
- $totalper=$emule_array[3];
-
- if($totalper>(1024*1024*1024*1024)){
- $totalper=round($totalper/1024/1024/1024/1024,2);
- $totalper.="TB";
- }elseif($totalper>(1024*1024*1024)){
- $totalper=round($totalper/1024/1024/1024,2);
- $totalper.="GB";
- }elseif($totalper>(1024*1024)){
- $totalper=round($totalper/1024/1024,2);
- $totalper.="MB";
- }else{
- $totalper=round($totalper/1024,2);
- $totalper.="KB";
- }
- $view.="<tr class=category><td class=smalltxt width=88%><input type="checkbox" name="EM42a795bb4b7d5$codecount" value="$emule" onclick="em_size('EM42a795bb4b7d5$codecount');" checked="checked"><a href="$emule">$emule_array[2]</a></td><td class=smalltxt align=center>$totalper</td></tr>";
- }
- }
- if($total>(1024*1024*1024*1024)){
- $total=round($total/1024/1024/1024/1024,2);
- $total.="TB";
- }elseif($total>(1024*1024*1024)){
- $total=round($total/1024/1024/1024,2);
- $total.="GB";
- }elseif($total>(1024*1024)){
- $total=round($total/1024/1024,2);
- $total.="MB";
- }else{
- $total=round($total/1024,2);
- $total.="KB";
- }
-
- $view.="<tr><td align=left><input type="checkbox" id="checkall_EM42a795bb4b7d5$codecount" onclick="checkAll('EM42a795bb4b7d5$codecount',this.checked)" checked="checked"/> <label for="checkall_EM42a795bb4b7d5$codecount">全选</label> <input type="button" value="下载选中的文件" onclick="download('EM42a795bb4b7d5$codecount',0,1)"> <input type="button" value="复制选中的链接" onclick="copy('EM42a795bb4b7d5$codecount')"><div id="ed2kcopy_EM42a795bb4b7d5$codecount" style="position:absolute;height:0px;width:0px;overflow:hidden;"></div></td><td class=smalltxt align=center id="size_EM42a795bb4b7d5$codecount">$total</td></tr></table><br>";
- $discuzcodes['pcodecount']++;
- $discuzcodes['codehtml'][$discuzcodes['pcodecount']] = $view;
- $codecount++;
- return "[\tDISCUZ_CODE_$discuzcodes[pcodecount]\t]";
- }
复制代码
============================================================================
接下楼
[ 本帖最后由 xmzyy 于 2005-12-15 11:27 编辑 ] |