1 頁 (共 2 頁)

[問題][外掛]BBCODEs

發表於 : 2004-01-23 09:09
朱朱
我裝的BBCODE外掛如下,請問剛剛發表的BBCODEs外掛可以選擇性安裝嗎?
另外以下的外掛因為是別人幫忙裝的,所以誰可以幫我翻成中文,感激不盡\r
Streaming audio BBcode Mod
Glow BBcode
Shadow BBcode
BBcode Fix for nbsp
Center BBcode
Flash BBcode
Blur BBcode
PHP Syntax Highlighter BBCode
eDonKeY BBcode
pubdl BBcode

發表於 : 2004-01-23 14:03
GeniusKiKi
沒丟一個參考連結出來
誰知道剛剛發表是指哪一個
竹貓關於 BBCode 的文章那麼多
另外你裝的 BBCode 翻譯如下

影音\r
光暈
陰影
 修正 nbsp
置中
Flash
模糊
PHP
eDonkey
Pubdl

Re: [問題][外掛]BBCODEs

發表於 : 2004-01-23 14:44
shihchieh
朱朱 寫:我裝的BBCODE外掛如下,請問剛剛發表的BBCODEs外掛可以選擇性安裝嗎?
如果要選擇性安裝可能你要花些時間把不要的拆掉
不知道你不要的是那幾個?
在那個裡面,只有hide、mod這二個會動到viewtopic.php search.php printview.php news.php 等其他地方,如果不是這二個的話,只要比對一下
lang_main.php posting.php bbcode.php posting_body.tpl bbcode.tpl將你不要的移掉應該是不太困難

發表於 : 2004-01-23 17:53
朱朱
我不裝以下的,也就是說只要比對一下
lang_main.php posting.php bbcode.php posting_body.tpl bbcode.tpl

就可以了嗎?
Hide Mod
影音
光暈
陰影
置中
Flash
模糊
PHP
eDonkey
Pubdl

發表於 : 2004-01-23 18:56
shihchieh
朱朱 寫:我不裝以下的,也就是說只要比對一下
lang_main.php posting.php bbcode.php posting_body.tpl bbcode.tpl

就可以了嗎?
Hide Mod
影音
光暈
陰影
置中
Flash
模糊
PHP
eDonkey
Pubdl
嗯,只有我說的hide隱藏、mod版管這二個bbcode會動到那五個檔案以外的地方,其他的就是只會修改到那五個檔,就把那五個檔要修改的部份,把你不要的去掉或是用//把它remark起來就好了

發表於 : 2004-02-22 12:16
SimonPig
mod 版管...有什麼用途 ?

發表於 : 2004-02-22 12:58
shihchieh
SimonPig 寫:mod 版管...有什麼用途 ?
鎖定該篇文章的某部份的文字,當鎖定後會員將無再修改該篇文章
可以作警告或證據的用途~

發表於 : 2004-02-25 23:36
Deedlit
借這個主題問一下^^

●架設主機作業系統:Windows2000 Pro
●快速架站程式:Appserv 2.3.0
●您的上網方式:學術網\
●您的 phpBB2 版本:phpBB 2.0.6
●您的 domain(網域名稱) :animad.twbbs.org
●您的 phpBB2 連結網址: http://animad.twbbs.org/phpbb/
●錯誤狀態:POST 文時會出現java錯誤...

推測可能是其中一段code

代碼: 選擇全部

# 
#------[ BEFORE, ADD ]------ 
# set file color.js
<SCRIPT language=JavaScript src="templates/subSilver/color.js"></SCRIPT>
<SCRIPT language=JavaScript>
中...那個set file color.js的問題?
那是指放上檔案後要弄什麼東西嗎@@...

發表於 : 2004-02-25 23:41
Mac
不知道 set file 在這裡面的意思
不過,在正確的地方加上以下那段就可以了(風格名稱如果有需要換要記得換)

代碼: 選擇全部

<SCRIPT language=JavaScript src="templates/[b]subSilver[/b]/color.js"></SCRIPT>
~Mac

發表於 : 2004-02-25 23:47
Deedlit
嗯...我這樣更改過還是有錯誤的產生@@...
附一下posting_body.tpl的code

代碼: 選擇全部

<script language="JavaScript" type="text/javascript">
<!--
// bbCode control by
// subBlue design
// www.subBlue.com

// Startup variables
var imageTag = false;
var theSelection = false;

// Check for Browser & Platform for PC & IE specific bits
// More details from: http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html
var clientPC = navigator.userAgent.toLowerCase(); // Get client info
var clientVer = parseInt(navigator.appVersion); // Get browser version

var is_ie = ((clientPC.indexOf("msie") != -1) && (clientPC.indexOf("opera") == -1));
var is_nav = ((clientPC.indexOf('mozilla')!=-1) && (clientPC.indexOf('spoofer')==-1)
                && (clientPC.indexOf('compatible') == -1) && (clientPC.indexOf('opera')==-1)
                && (clientPC.indexOf('webtv')==-1) && (clientPC.indexOf('hotjava')==-1));
var is_moz = 0;

var is_win = ((clientPC.indexOf("win")!=-1) || (clientPC.indexOf("16bit") != -1));
var is_mac = (clientPC.indexOf("mac")!=-1);

// Helpline messages
// Start BBCode-s
b_help = "{L_BBCODE_B_HELP}";
i_help = "{L_BBCODE_I_HELP}";
u_help = "{L_BBCODE_U_HELP}";
q_help = "{L_BBCODE_Q_HELP}";
c_help = "{L_BBCODE_C_HELP}";
l_help = "{L_BBCODE_L_HELP}";
o_help = "{L_BBCODE_O_HELP}";
p_help = "{L_BBCODE_P_HELP}";
w_help = "{L_BBCODE_W_HELP}";
a_help = "{L_BBCODE_A_HELP}";
t_help = "{L_BBCODE_T_HELP}";
s_help = "{L_BBCODE_S_HELP}";
f_help = "{L_BBCODE_F_HELP}";
e_help = "{L_BBCODE_E_HELP}";
k_help = "{L_BBCODE_K_HELP}";
m_help = "{L_BBCODE_M_HELP}";
g_help = "{L_BBCODE_G_HELP}";
s_help = "{L_BBCODE_S_HELP}";
h_help = "{L_BBCODE_H_HELP}";
r_help = "{L_BBCODE_R_HELP}";
d_help = "{L_BBCODE_D_HELP}";
j_help = "{L_BBCODE_J_HELP}";
v_help = "{L_BBCODE_V_HELP}";
n_help = "{L_BBCODE_N_HELP}";
x_help = "{L_BBCODE_X_HELP}";
y_help = "{L_BBCODE_Y_HELP}";
z_help = "{L_BBCODE_Z_HELP}";
mo_help = "{L_BBCODE_MO_HELP}";
wa_help = "{L_BBCODE_WA_HELP}";
st_help = "{L_BBCODE_ST_HELP}";
qt_help = "{L_BBCODE_QT_HELP}";
bl_help = "{L_BBCODE_BL_HELP}";
re_help = "{L_BBCODE_RE_HELP}";
ra_help = "{L_BBCODE_RA_HELP}";
if_help = "{L_BBCODE_IF_HELP}";
sc_help = "{L_BBCODE_SC_HELP}";
// End BBCode-s

// Define the bbCode tags
bbcode = new Array();
\n// Start BBCode-s
bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
','
  • ','
','
  • ','
','[img]','[/img]','','','[fade]','[/fade]','[scroll]','[/scroll]','[flash width=100 height=100]','[/flash]','[flipv]','[/flipv]','[fliph]','[/fliph]','[stream]','[/stream]','[left]','[/left]','[right]','[/right]','[php]','[/php]','[hide]','[/hide]','[iframe width=500 height=420]','[/iframe]','[rainbow]','[/rainbow]','[real]','[/real]','[blur]','[/blur]','[qt]','[/qt]','[strike]','[/strike]','[wave]','[/wave]','[mod]','[/mod]');
// End BBCode-s
imageTag = false;

// Shows the help messages in the helpline window
function helpline(help) {
document.post.helpbox.value = eval(help + "_help");
}


// Replacement for arrayname.length property
function getarraysize(thearray) {
for (i = 0; i < thearray.length; i++) {
if ((thearray == "undefined") || (thearray == "") || (thearray == null))
return i;
}
return thearray.length;
}

// Replacement for arrayname.push(value) not implemented in IE until version 5.5
// Appends element to the array
function arraypush(thearray,value) {
thearray[ getarraysize(thearray) ] = value;
}

// Replacement for arrayname.pop() not implemented in IE until version 5.5
// Removes and returns the last element of an array
function arraypop(thearray) {
thearraysize = getarraysize(thearray);
retval = thearray[thearraysize - 1];
delete thearray[thearraysize - 1];
return retval;
}


function checkForm() {

formErrors = false;

if (document.post.message.value.length < 2) {
formErrors = "{L_EMPTY_MESSAGE}";
}

if (formErrors) {
alert(formErrors);
return false;
} else {
bbstyle(-1);
//formObj.preview.disabled = true;
//formObj.submit.disabled = true;
return true;
}
}

function emoticon(text) {
var txtarea = document.post.message;
text = ' ' + text + ' ';
if (txtarea.createTextRange && txtarea.caretPos) {
var caretPos = txtarea.caretPos;
caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? caretPos.text + text + ' ' : caretPos.text + text;
txtarea.focus();
} else {
txtarea.value += text;
txtarea.focus();
}
}

function bbfontstyle(bbopen, bbclose) {
var txtarea = document.post.message;

if ((clientVer >= 4) && is_ie && is_win) {
theSelection = document.selection.createRange().text;
if (!theSelection) {
txtarea.value += bbopen + bbclose;
txtarea.focus();
return;
}
document.selection.createRange().text = bbopen + theSelection + bbclose;
txtarea.focus();
return;
}
else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0))
{
mozWrap(txtarea, bbopen, bbclose);
return;
}
else
{
txtarea.value += bbopen + bbclose;
txtarea.focus();
}
storeCaret(txtarea);
}


function bbstyle(bbnumber) {
var txtarea = document.post.message;

txtarea.focus();
donotinsert = false;
theSelection = false;
bblast = 0;

if (bbnumber == -1) { // Close all open tags & default button names
while (bbcode[0]) {
butnumber = arraypop(bbcode) - 1;
txtarea.value += bbtags[butnumber + 1];
buttext = eval('document.post.addbbcode' + butnumber + '.value');
eval('document.post.addbbcode' + butnumber + '.value ="' + buttext.substr(0,(buttext.length - 1)) + '"');
}
imageTag = false; // All tags are closed including image tags :D
txtarea.focus();
return;
}

if ((clientVer >= 4) && is_ie && is_win)
{
theSelection = document.selection.createRange().text; // Get text selection
if (theSelection) {
// Add tags around selection
document.selection.createRange().text = bbtags[bbnumber] + theSelection + bbtags[bbnumber+1];
txtarea.focus();
theSelection = '';
return;
}
}
else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0))
{
mozWrap(txtarea, bbtags[bbnumber], bbtags[bbnumber+1]);
return;
}

// Find last occurance of an open tag the same as the one just clicked
for (i = 0; i < bbcode.length; i++) {
if (bbcode == bbnumber+1) {
bblast = i;
donotinsert = true;
}
}

if (donotinsert) { // Close all open tags up to the one just clicked & default button names
while (bbcode[bblast]) {
butnumber = arraypop(bbcode) - 1;
txtarea.value += bbtags[butnumber + 1];
buttext = eval('document.post.addbbcode' + butnumber + '.value');\r
eval('document.post.addbbcode' + butnumber + '.value ="' + buttext.substr(0,(buttext.length - 1)) + '"');
imageTag = false;
}
txtarea.focus();
return;
} else { // Open tags

if (imageTag && (bbnumber != 14)) { // Close image tag before adding another
txtarea.value += bbtags[15];
lastValue = arraypop(bbcode) - 1; // Remove the close image tag from the list
document.post.addbbcode14.value = "Img"; // Return button back to normal state
imageTag = false;
}

// Open tag
txtarea.value += bbtags[bbnumber];
if ((bbnumber == 14) && (imageTag == false)) imageTag = 1; // Check to stop additional tags after an unclosed image tag
arraypush(bbcode,bbnumber+1);
eval('document.post.addbbcode'+bbnumber+'.value += "*"');
txtarea.focus();
return;
}
storeCaret(txtarea);
}

// From http://www.massless.org/mozedit/
function mozWrap(txtarea, open, close)
{
var selLength = txtarea.textLength;
var selStart = txtarea.selectionStart;
var selEnd = txtarea.selectionEnd;
if (selEnd == 1 || selEnd == 2)
selEnd = selLength;

var s1 = (txtarea.value).substring(0,selStart);
var s2 = (txtarea.value).substring(selStart, selEnd)
var s3 = (txtarea.value).substring(selEnd, selLength);
txtarea.value = s1 + open + s2 + close + s3;
return;
}

// Insert at Claret position. Code from
// http://www.faqts.com/knowledge_base/vie ... 52/fid/130
function storeCaret(textEl) {
if (textEl.createTextRange) textEl.caretPos = document.selection.createRange().duplicate();
}

//-->
</script>

<!-- BEGIN privmsg_extensions -->
<table border="0" cellspacing="0" cellpadding="0" align="center" width="100%">
<tr>
<td valign="top" align="center" width="100%">
<table height="40" cellspacing="2" cellpadding="2" border="0">
<tr valign="middle">
<td>{INBOX_IMG}</td>
<td><span class="cattitle">{INBOX_LINK} </span></td>
<td>{SENTBOX_IMG}</td>
<td><span class="cattitle">{SENTBOX_LINK} </span></td>
<td>{OUTBOX_IMG}</td>
<td><span class="cattitle">{OUTBOX_LINK} </span></td>
<td>{SAVEBOX_IMG}</td>
<td><span class="cattitle">{SAVEBOX_LINK} </span></td>
</tr>
</table>
</td>
</tr>
</table>

<br clear="all" />
<!-- END privmsg_extensions -->

<form action="{S_POST_ACTION}" method="post" name="post" onsubmit="return checkForm(this)" {S_FORM_ENCTYPE}>

{POST_PREVIEW_BOX}
{ERROR_BOX}

<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
<tr>
<td align="left"><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a>
<!-- BEGIN switch_not_privmsg -->
-> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>
<!-- END switch_not_privmsg -->
</tr>
</table>

<table border="0" cellpadding="3" cellspacing="1" width="100%" class="forumline">
<tr>
<th class="thHead" colspan="2" height="25"><b>{L_POST_A}</b></th>
</tr>
<!-- BEGIN switch_username_select -->
<tr>
<td class="row1"><span class="gen"><b>{L_USERNAME}</b></span></td>
<td class="row2"><span class="genmed"><input type="text" class="post" tabindex="1" name="username" size="25" maxlength="25" value="{USERNAME}" /></span></td>
</tr>
<!-- END switch_username_select -->
<!-- BEGIN switch_privmsg -->
<tr>
<td class="row1"><span class="gen"><b>{L_USERNAME}</b></span></td>
<td class="row2"><span class="genmed"><input type="text" class="post" name="username" maxlength="25" size="25" tabindex="1" value="{USERNAME}" /> <input type="submit" name="usersubmit" value="{L_FIND_USERNAME}" class="liteoption" onclick="window.open('{U_SEARCH_USER}', '_phpbbsearch', 'HEIGHT=250,resizable=yes,WIDTH=400');return false;" /></span></td>
</tr>
<!-- END switch_privmsg -->
<tr>
<td class="row1" width="22%"><span class="gen"><b>{L_SUBJECT}</b></span></td>
<td class="row2" width="78%"> <span class="gen">
<input type="text" name="subject" size="45" maxlength="60" style="width:450px" tabindex="2" class="post" value="{SUBJECT}" />
</span> </td>
</tr>
<tr>
<td class="row1" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="1">
<tr>
<td><span class="gen"><b>{L_MESSAGE_BODY}</b></span> </td>
</tr>
<tr>
<td valign="middle" align="center"> <br />
<table width="100" border="0" cellspacing="0" cellpadding="5">
<tr align="center">
<td colspan="{S_SMILIES_COLSPAN}" class="gensmall"><b>{L_EMOTICONS}</b></td>
</tr>
<!-- BEGIN smilies_row -->
<tr align="center" valign="middle">
<!-- BEGIN smilies_col -->
<td><a href="javascript:emoticon('{smilies_row.smilies_col.SMILEY_CODE}')"><img src="{smilies_row.smilies_col.SMILEY_IMG}" border="0" alt="{smilies_row.smilies_col.SMILEY_DESC}" title="{smilies_row.smilies_col.SMILEY_DESC}" /></a></td>
<!-- END smilies_col -->
</tr>
<!-- END smilies_row -->
<!-- BEGIN switch_smilies_extra -->
<tr align="center">
<td colspan="{S_SMILIES_COLSPAN}"><span class="nav"><a href="{U_MORE_SMILIES}" onclick="window.open('{U_MORE_SMILIES}', '_phpbbsmilies', 'HEIGHT=300,resizable=yes,scrollbars=yes,WIDTH=250');return false;" target="_phpbbsmilies" class="nav">{L_MORE_SMILIES}</a></span></td>
</tr>
<!-- END switch_smilies_extra -->
</table>
</td>
</tr>
</table>
</td>
<td class="row2" valign="top"><span class="gen"> <span class="genmed"> </span>
<table width="450" border="0" cellspacing="0" cellpadding="2">
<tr align="center" valign="middle">
<td>
<input type="button" class="button" accesskey="b" name="addbbcode0" value="粗體" style="font-weight:bold; width: 52px" onclick="bbstyle(0)" onmouseover="helpline('b')" />
</td>
<td>
<input type="button" class="button" accesskey="i" name="addbbcode2" value="斜體" style="font-style:italic; width: 52px" onclick="bbstyle(2)" onmouseover="helpline('i')" />
</td>
<td>
<input type="button" class="button" accesskey="u" name="addbbcode4" value="底線" style="text-decoration: underline; width: 52px" onclick="bbstyle(4)" onmouseover="helpline('u')" />
</td>
<td>
<input type="button" class="button" accesskey="q" name="addbbcode6" value="引言" style="width: 52px" onclick="bbstyle(6)" onmouseover="helpline('q')" />
</td>
<td>
<input type="button" class="button" accesskey="c" name="addbbcode8" value="代碼" style="width: 52px" onclick="bbstyle(8)" onmouseover="helpline('c')" />
</td>
<td>
<input type="button" class="button" accesskey="l" name="addbbcode10" value="列表" style="width: 52px" onclick="bbstyle(10)" onmouseover="helpline('l')" />
</td>
\n <td>
<input type="button" class="button" accesskey="o" name="addbbcode12" value="排序" style="width: 52px" onclick="bbstyle(12)" onmouseover="helpline('o')" />
</td>
<td>
<input type="button" class="button" accesskey="p" name="addbbcode14" value="圖片" style="width: 52px" onclick="bbstyle(14)" onmouseover="helpline('p')" />
</td>
<td>
<input type="button" class="button" accesskey="w" name="addbbcode16" value="網址" style="width: 52px" onclick="bbstyle(16)" onmouseover="helpline('w')" />
</td>
<td>
<input type="button" class="button" value="{L_SMILIE_CREATOR}" style="width: 100px" onclick="window.open('smilie_creator.php?mode=text2schild', '_phpbbcreatesmilies', 'HEIGHT=300,resizable=yes,scrollbars=yes,WIDTH=450');return false;" target="_phpbbcreatesmilies" onmouseover="helpline('sc')" />
</td>
</tr>

<tr align="center" valign="middle">
<td>
<input type="button" class="button" accesskey="e" name="addbbcode18" value="褪色" style="width: 52px" onclick="bbstyle(18)" onmouseover="helpline('e')" />
</td>
<td>
<input type="button" class="button" accesskey="k" name="addbbcode20" value="跑馬" style="width: 52px" onclick="bbstyle(20)" onmouseover="helpline('k')" />
</td>
<td>
<input type="button" class="button" accesskey="m" name="addbbcode22" value="動畫" style="width: 52px" onclick="bbstyle(22)" onmouseover="helpline('m')" />
</td>
<td>
<input type="button" class="button" accesskey="v" name="addbbcode24" value="上下倒反" style="width: 52px" onclick="bbstyle(24)" onmouseover="helpline('v')" />
</td>
<td>
<input type="button" class="button" accesskey="j" name="addbbcode26" value="左右倒反" style="width: 52px" onclick="bbstyle(26)" onmouseover="helpline('j')" />
</td>
<td>
<input type="button" class="button" accesskey="n" name="addbbcode28" value="影片" style="width: 52px" onclick="bbstyle(28)" onmouseover="helpline('n')" />
</td>
<td>
<input type="button" class="button" accesskey="x" name="addbbcode30" value="置左" style="width: 52px" onclick="bbstyle(30)" onmouseover="helpline('x')" />
</td>
<td>
<input type="button" class="button" accesskey="y" name="addbbcode32" value="置右" style="width: 52px" onclick="bbstyle(32)" onmouseover="helpline('y')" />
</td>
<td>
<input type="button" class="button" accesskey="z" name="addbbcode34" value="PHP" style="width: 52px" onclick="bbstyle(34)" onmouseover="helpline('z')" />
</td>
</tr>

<tr align="center" valign="middle">
<td>
<input type="button" class="button" accesskey="r" name="addbbcode36" value="隱藏" style="width: 52px" onclick="bbstyle(36)" onmouseover="helpline('r')" />
</td>
<td>
<input type="button" class="button" accesskey="if" name="addbbcode38" value="框架" style="width: 52px" onclick="bbstyle(38)" onmouseover="helpline('if')" />
</td>
<td>
<input type="button" class="button" accesskey="ra" name="addbbcode40" value="彩虹" style="width: 52px" onclick="bbstyle(40)" onmouseover="helpline('ra')" />
</td>
<td>
<input type="button" class="button" accesskey="re" name="addbbcode42" value="RM影片" style="width: 52px" onclick="bbstyle(42)" onmouseover="helpline('re')" />
</td>
<td>
<input type="button" class="button" accesskey="bl" name="addbbcode44" value="模糊" style="width: 52px" onclick="bbstyle(44)" onmouseover="helpline('bl')" />
</td>
<td>
<input type="button" class="button" accesskey="qt" name="addbbcode46" value="QT影片" style="width: 52px" onclick="bbstyle(46)" onmouseover="helpline('qt')" />
</td>
<td>
<input type="button" class="button" accesskey="st" name="addbbcode48" value="刪線" style="width: 52px" onclick="bbstyle(48)" onmouseover="helpline('st')" />
</td>
<td>
<input type="button" class="button" accesskey="wa" name="addbbcode50" value="波浪" style="width: 52px" onclick="bbstyle(50)" onmouseover="helpline('wa')" />
</td>
<td>
<input type="button" class="button" accesskey="mo" name="addbbcode52" value="版管" style="width: 52px" onclick="bbstyle(52)" onmouseover="helpline('mo')" />
</td>
</tr>
<tr>
<td colspan="9">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><span class="genmed"> {L_FONT_COLOR}:
<select name="addbbcode54" onchange="bbfontstyle('[color=' + this.form.addbbcode54.options[this.form.addbbcode54.selectedIndex].value + ']', '[/color]');this.selectedIndex=0;" onMouseOver="helpline('t')">
<option style="color:black; background-color: {T_TD_COLOR1}" value="{T_FONTCOLOR1}" class="genmed">{L_COLOR_DEFAULT}</option>
<option style="color:darkred; background-color: {T_TD_COLOR1}" value="darkred" class="genmed">{L_COLOR_DARK_RED}</option>
<option style="color:red; background-color: {T_TD_COLOR1}" value="red" class="genmed">{L_COLOR_RED}</option>
<option style="color:orange; background-color: {T_TD_COLOR1}" value="orange" class="genmed">{L_COLOR_ORANGE}</option>
<option style="color:brown; background-color: {T_TD_COLOR1}" value="brown" class="genmed">{L_COLOR_BROWN}</option>
<option style="color:yellow; background-color: {T_TD_COLOR1}" value="yellow" class="genmed">{L_COLOR_YELLOW}</option>
<option style="color:green; background-color: {T_TD_COLOR1}" value="green" class="genmed">{L_COLOR_GREEN}</option>
<option style="color:olive; background-color: {T_TD_COLOR1}" value="olive" class="genmed">{L_COLOR_OLIVE}</option>
<option style="color:cyan; background-color: {T_TD_COLOR1}" value="cyan" class="genmed">{L_COLOR_CYAN}</option>
<option style="color:blue; background-color: {T_TD_COLOR1}" value="blue" class="genmed">{L_COLOR_BLUE}</option>
<option style="color:darkblue; background-color: {T_TD_COLOR1}" value="darkblue" class="genmed">{L_COLOR_DARK_BLUE}</option>
<option style="color:indigo; background-color: {T_TD_COLOR1}" value="indigo" class="genmed">{L_COLOR_INDIGO}</option>
<option style="color:violet; background-color: {T_TD_COLOR1}" value="violet" class="genmed">{L_COLOR_VIOLET}</option>
<option style="color:white; background-color: {T_TD_COLOR1}" value="white" class="genmed">{L_COLOR_WHITE}</option>
<option style="color:black; background-color: {T_TD_COLOR1}" value="black" class="genmed">{L_COLOR_BLACK}</option>
</select> {L_FONT_SIZE}:<select name="addbbcode56" onchange="bbfontstyle('[size=' + this.form.addbbcode56.options[this.form.addbbcode56.selectedIndex].value + ']', '[/size]');this.selectedIndex=0;" onMouseOver="helpline('f')">
<option value="{T_BODY_TEXT}">{L_COLOR_DEFAULT}</option>
<option value="7" class="genmed">{L_FONT_TINY}</option>
<option value="9" class="genmed">{L_FONT_SMALL}</option>
<option value="12" selected class="genmed">{L_FONT_NORMAL}</option>
<option value="18" class="genmed">{L_FONT_LARGE}</option>
<option value="24" class="genmed">{L_FONT_HUGE}</option>
</select>
{L_ALIGN}:
<select name="addbbcode58" onchange="bbfontstyle('[align=' + this.form.addbbcode58.options[this.form.addbbcode58.selectedIndex].value + ']', '[/align]');this.selectedIndex=0;" onMouseOver="helpline('d')">
<option value="{T_BODY_TEXT}">{L_COLOR_DEFAULT}</option>
<option value="center" class="genmed">{L_ALIGN_CENTER}</option>
<option value="right" class="genmed">{L_ALIGN_RIGHT}</option>
<option value="left" class="genmed">{L_ALIGN_LEFT}</option>
</select>
</span></td>
<td nowrap="nowrap" align="right"><span class="gensmall"><a href="javascript:bbstyle(-1)" class="genmed" onmouseover="helpline('a')">{L_BBCODE_CLOSE_TAGS}</a></span></td>
</tr>
<tr>
<td><span class="genmed">
{L_GLOW_COLOR}:
<select name="addbbcode60" onchange="bbfontstyle('[glow=' + this.form.addbbcode60.options[this.form.addbbcode60.selectedIndex].value + ']', '[/glow]');this.selectedIndex=0;" onMouseOver="helpline('g')">
<option style="color:black; background-color: {T_TD_COLOR1}" value="{T_FONTCOLOR1}" class="genmed">{L_COLOR_DEFAULT}</option>
<option style="color:darkred; background-color: {T_TD_COLOR1}" value="darkred" class="genmed">{L_COLOR_DARK_RED}</option>
<option style="color:red; background-color: {T_TD_COLOR1}" value="red" class="genmed">{L_COLOR_RED}</option>
<option style="color:orange; background-color: {T_TD_COLOR1}" value="orange" class="genmed">{L_COLOR_ORANGE}</option>
<option style="color:brown; background-color: {T_TD_COLOR1}" value="brown" class="genmed">{L_COLOR_BROWN}</option>
<option style="color:yellow; background-color: {T_TD_COLOR1}" value="yellow" class="genmed">{L_COLOR_YELLOW}</option>
<option style="color:green; background-color: {T_TD_COLOR1}" value="green" class="genmed">{L_COLOR_GREEN}</option>
<option style="color:olive; background-color: {T_TD_COLOR1}" value="olive" class="genmed">{L_COLOR_OLIVE}</option>
<option style="color:cyan; background-color: {T_TD_COLOR1}" value="cyan" class="genmed">{L_COLOR_CYAN}</option>
<option style="color:blue; background-color: {T_TD_COLOR1}" value="blue" class="genmed">{L_COLOR_BLUE}</option>
<option style="color:darkblue; background-color: {T_TD_COLOR1}" value="darkblue" class="genmed">{L_COLOR_DARK_BLUE}</option>
<option style="color:indigo; background-color: {T_TD_COLOR1}" value="indigo" class="genmed">{L_COLOR_INDIGO}</option>
<option style="color:violet; background-color: {T_TD_COLOR1}" value="violet" class="genmed">{L_COLOR_VIOLET}</option>
<option style="color:white; background-color: {T_TD_COLOR1}" value="white" class="genmed">{L_COLOR_WHITE}</option>
<option style="color:black; background-color: {T_TD_COLOR1}" value="black" class="genmed">{L_COLOR_BLACK}</option>
</select>
{L_SHADOW_COLOR}:
<select name="addbbcode62" onchange="bbfontstyle('[shadow=' + this.form.addbbcode62.options[this.form.addbbcode62.selectedIndex].value + ']', '[/shadow]');this.selectedIndex=0;" onMouseOver="helpline('s')">
<option style="color:black; background-color: {T_TD_COLOR1}" value="{T_FONTCOLOR1}" class="genmed">{L_COLOR_DEFAULT}</option>
<option style="color:darkred; background-color: {T_TD_COLOR1}" value="darkred" class="genmed">{L_COLOR_DARK_RED}</option>
<option style="color:red; background-color: {T_TD_COLOR1}" value="red" class="genmed">{L_COLOR_RED}</option>
<option style="color:orange; background-color: {T_TD_COLOR1}" value="orange" class="genmed">{L_COLOR_ORANGE}</option>
<option style="color:brown; background-color: {T_TD_COLOR1}" value="brown" class="genmed">{L_COLOR_BROWN}</option>
<option style="color:yellow; background-color: {T_TD_COLOR1}" value="yellow" class="genmed">{L_COLOR_YELLOW}</option>
<option style="color:green; background-color: {T_TD_COLOR1}" value="green" class="genmed">{L_COLOR_GREEN}</option>
<option style="color:olive; background-color: {T_TD_COLOR1}" value="olive" class="genmed">{L_COLOR_OLIVE}</option>
<option style="color:cyan; background-color: {T_TD_COLOR1}" value="cyan" class="genmed">{L_COLOR_CYAN}</option>
<option style="color:blue; background-color: {T_TD_COLOR1}" value="blue" class="genmed">{L_COLOR_BLUE}</option>
<option style="color:darkblue; background-color: {T_TD_COLOR1}" value="darkblue" class="genmed">{L_COLOR_DARK_BLUE}</option>
<option style="color:indigo; background-color: {T_TD_COLOR1}" value="indigo" class="genmed">{L_COLOR_INDIGO}</option>
<option style="color:violet; background-color: {T_TD_COLOR1}" value="violet" class="genmed">{L_COLOR_VIOLET}</option>
<option style="color:white; background-color: {T_TD_COLOR1}" value="white" class="genmed">{L_COLOR_WHITE}</option>
<option style="color:black; background-color: {T_TD_COLOR1}" value="black" class="genmed">{L_COLOR_BLACK}</option>
</select>
{L_HIGHLIGHT_COLOR}:
<select name="addbbcode64" onchange="bbfontstyle('[highlight=' + this.form.addbbcode64.options[this.form.addbbcode64.selectedIndex].value + ']', '[/highlight]');this.selectedIndex=0;" onMouseOver="helpline('h')">
<option style="color:black; background-color: {T_TD_COLOR1}" value="{T_FONTCOLOR1}" class="genmed">{L_COLOR_DEFAULT}</option>
<option style="color:darkred; background-color: {T_TD_COLOR1}" value="darkred" class="genmed">{L_COLOR_DARK_RED}</option>
<option style="color:red; background-color: {T_TD_COLOR1}" value="red" class="genmed">{L_COLOR_RED}</option>
<option style="color:orange; background-color: {T_TD_COLOR1}" value="orange" class="genmed">{L_COLOR_ORANGE}</option>
<option style="color:brown; background-color: {T_TD_COLOR1}" value="brown" class="genmed">{L_COLOR_BROWN}</option>
<option style="color:yellow; background-color: {T_TD_COLOR1}" value="yellow" class="genmed">{L_COLOR_YELLOW}</option>
<option style="color:green; background-color: {T_TD_COLOR1}" value="green" class="genmed">{L_COLOR_GREEN}</option>
<option style="color:olive; background-color: {T_TD_COLOR1}" value="olive" class="genmed">{L_COLOR_OLIVE}</option>
<option style="color:cyan; background-color: {T_TD_COLOR1}" value="cyan" class="genmed">{L_COLOR_CYAN}</option>
<option style="color:blue; background-color: {T_TD_COLOR1}" value="blue" class="genmed">{L_COLOR_BLUE}</option>
<option style="color:darkblue; background-color: {T_TD_COLOR1}" value="darkblue" class="genmed">{L_COLOR_DARK_BLUE}</option>
<option style="color:indigo; background-color: {T_TD_COLOR1}" value="indigo" class="genmed">{L_COLOR_INDIGO}</option>
<option style="color:violet; background-color: {T_TD_COLOR1}" value="violet" class="genmed">{L_COLOR_VIOLET}</option>
<option style="color:white; background-color: {T_TD_COLOR1}" value="white" class="genmed">{L_COLOR_WHITE}</option>
<option style="color:black; background-color: {T_TD_COLOR1}" value="black" class="genmed">{L_COLOR_BLACK}</option>
</select>
</span>
</td>
</tr>
</table>
</td>
</tr>
<SCRIPT language=JavaScript src="templates/subSilver/color.js"></SCRIPT>
<SCRIPT language=JavaScript>
var height1 = 10;//define the height of the color bar
var pas = 28;// define the number of color in the color bar
var width1=Math.floor(-2/15*pas+6);//define the width of the color bar here automatic ajust for subsilver template.
var text1=s_help.substring(0,search(s_help,"="));
var text2=s_help.substring(search(s_help,"]"),search(s_help,"/"));
</SCRIPT>

<TR>
<TD colSpan=12>
<TABLE id=ColorPanel cellSpacing=0 cellPadding=0 align=left
border=0>
<TBODY>
<TR>
<TD id=ColorUsed onmouseover="helpline('s')"
onclick="if(this.bgColor.length > 0) insertTag(this.bgColor)"
vAlign=center align=middle BORDER-RIGHT: BORDER-TOP:
BORDER-LEFT: ridge; CURSOR: default; BORDER-BOTTOM: 2px
ridge?>
<SCRIPT language=JavaScript>
document.write('<IMG height='+height1+' src="templates/subSilver/images/spacer.gif" width=10 border=1></TD>');</SCRIPT>
<TD width=5>
<SCRIPT language=JavaScript>
document.write('<IMG height='+height1+' src="templates/subSilver/images/spacer.gif" width=5 border=0></TD>');</SCRIPT>

<TD id=ColorUsed1 onmouseover="helpline('s')"
onclick="if(this.bgColor.length > 0) insertTag(this.bgColor)"
vAlign=center align=middle BORDER-RIGHT: BORDER-TOP:
BORDER-LEFT: ridge; CURSOR: default; BORDER-BOTTOM: 2px
ridge?>
<SCRIPT language=JavaScript>
document.write('<IMG height='+height1+' src="templates/subSilver/images/spacer.gif" width=10 border=1></TD>');</SCRIPT>

\r
<TD width=5>
<SCRIPT language=JavaScript>
document.writ??e('<IMG height='+height1+' src="templates/subSilver/images/spacer.gif" width=5 border=0></TD>');</SCRIPT>

<SCRIPT language=JavaScript>
<!--
rgb(pas,width1,height1,text1,text2)
// -->
</SCRIPT>
</TR></TBODY></TABLE></TD></TR>
<tr>
<td colspan="9"> <span class="gensmall">
<input type="text" name="helpbox" size="45" maxlength="100" style="width:450px; font-size:10px" class="helpline" value="{L_STYLES_TIP}" />
</span></td>
</tr>
<tr>
<td colspan="9"><span class="gen">
<textarea name="message" rows="15" cols="35" wrap="virtual" style="width:450px" tabindex="3" class="post" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">{MESSAGE}</textarea>
</span></td>
</tr>
</table>
</span></td>
</tr>
<tr>
<td class="row1" valign="top"><span class="gen"><b>{L_OPTIONS}</b></span><br /><span class="gensmall">{HTML_STATUS}<br />{BBCODE_STATUS}<br />{SMILIES_STATUS}</span></td>
<td class="row2"><span class="gen"> </span>
<table cellspacing="0" cellpadding="1" border="0">
<!-- BEGIN switch_html_checkbox -->
<tr>
<td>
<input type="checkbox" name="disable_html" {S_HTML_CHECKED} />
</td>
<td><span class="gen">{L_DISABLE_HTML}</span></td>
</tr>
<!-- END switch_html_checkbox -->
<!-- BEGIN switch_bbcode_checkbox -->
<tr>
<td>
<input type="checkbox" name="disable_bbcode" {S_BBCODE_CHECKED} />
</td>
<td><span class="gen">{L_DISABLE_BBCODE}</span></td>
</tr>
<!-- END switch_bbcode_checkbox -->
<!-- BEGIN switch_smilies_checkbox -->
<tr>
<td>
<input type="checkbox" name="disable_smilies" {S_SMILIES_CHECKED} />
</td>
<td><span class="gen">{L_DISABLE_SMILIES}</span></td>
</tr>
<!-- END switch_smilies_checkbox -->
<!-- BEGIN switch_signature_checkbox -->
<tr>
<td>
<input type="checkbox" name="attach_sig" {S_SIGNATURE_CHECKED} />
</td>
<td><span class="gen">{L_ATTACH_SIGNATURE}</span></td>
</tr>
<!-- END switch_signature_checkbox -->
<!-- BEGIN switch_notify_checkbox -->
<tr>
<td>
<input type="checkbox" name="notify" {S_NOTIFY_CHECKED} />
</td>
<td><span class="gen">{L_NOTIFY_ON_REPLY}</span></td>
</tr>
<!-- END switch_notify_checkbox -->
<!-- BEGIN switch_delete_checkbox -->
<tr>
<td>
<input type="checkbox" name="delete" />
</td>
<td><span class="gen">{L_DELETE_POST}</span></td>
</tr>
<!-- END switch_delete_checkbox -->
<!-- BEGIN switch_type_toggle -->
<tr>
<td></td>
<td><span class="gen">{S_TYPE_TOGGLE}</span></td>
</tr>
<!-- END switch_type_toggle -->
</table>
</td>
</tr>
{ATTACHBOX} {POLLBOX}
<tr>
<td class="catBottom" colspan="2" align="center" height="28"> {S_HIDDEN_FORM_FIELDS}<input type="submit" tabindex="5" name="preview" class="mainoption" value="{L_PREVIEW}" /> <input type="submit" accesskey="s" tabindex="6" name="post" class="mainoption" value="{L_SUBMIT}" /></td>
</tr>
</table>

<table width="100%" cellspacing="2" border="0" align="center" cellpadding="2">
<tr>
<td align="right" valign="top"><span class="gensmall">{S_TIMEZONE}</span></td>
</tr>
</table>
</form>

<table width="100%" cellspacing="2" border="0" align="center">
<tr>
<td valign="top" align="right">{JUMPBOX}</td>
</tr>
</table>

{TOPIC_REVIEW_BOX}
[/code]

發表於 : 2004-02-25 23:58
Mac
color.js 有放到正確的地方嗎?

代碼: 選擇全部

templates/subSilver/color.js
~Mac

發表於 : 2004-02-26 00:08
Deedlit
嗯..
我有照著他的分類傳過

剛剛檢查這個檔的確是有在^^

發表於 : 2004-02-26 00:25
Mac
這我就不清楚了,以前我有另外裝過這個外掛(color font bar)
使用上沒有問題
看看 yuan 知不知道為什麼你不能用吧\r

~Mac

發表於 : 2004-02-26 00:35
shihchieh
是只有發表文章才發生嗎?還是在其他頁面也有
如果是後者,通常是你在overall_header或是floor.tpl加了java造成
如果只有發表文章,那請問你的color font bar 是否正常\r
如果正常的話可能不是那邊的錯誤,你在仔細比對看看
那個set file 的意思是叫你設定好color.js 在java語法中的路徑

發表於 : 2004-02-26 00:44
Mac
java 跟 javascript 是完全不同的東西喔 ^^
yuan 這裡指的是 javascript :)

~Mac