Thipsena โพสต์ 2009-12-14 05:39:54

ทำไมของผมมันไม่โผล่หว่า

ตอนแรกผมก็เป็นเหมือนคุณเลยครับ ตอนแรกก็ งงๆ ก็ว่าทำทุกอย่างแล้วทำไมไม่เห็น มั่วไปมั่วมาก็เลยรู้ว่า 7.2 ต้องให้เราติ๊กด้วยว่าต้องการให้ปลั๊กอินแสดงรึป่าวครับ ดูตามภาพด้านล่างเลยนะครับ

theerawut โพสต์ 2009-12-14 07:45:41

ตอนแรกผมก็เป็นเหมือนคุณเลยครับ ตอนแรกก็ งงๆ ก็ว่าท ...
ต้นฉบับโพสต์โดย Thipsena เมื่อ 2009-12-14 05:39 http://www.discuzthai.com/images/common/back.gif


    ใช่ครับ

shazaba โพสต์ 2009-12-18 15:05:57

ตอบกลับ 1# theerawut


    ลงแล้วติดตั้ง ทำมไม่เห็นมีให้ยอมรับเลยอ่ะ ทำไงอ่ะคับ

yo_sct โพสต์ 2009-12-21 14:54:05

ช่วยแก้ตรงนี้หน่อยครับ เมื่อโพสต์ข้อความยาวๆแล้วมันไม่ขึ้นบันทัดใหม่ตามรูปเลยครับ
หน้าแรก

หน้าปลักอิน Shoutbox

MonkeyDoll โพสต์ 2009-12-24 12:34:28

แสดงว่าโดยปกติ Discuz 7.2 ไม่มี Shoutbox มาให้ใช่ป่ะครับ

งั้นผมขอเอาไปลองหน่อยล่ะกันครับ:lol

เมเจอ โพสต์ 2009-12-24 15:56:15

ขอบคุณมากครับผม

mike_mch โพสต์ 2009-12-26 05:16:42

Thank you very much.

I have modified a little so that I can achieve:
- each user can select one's own color on entries
- any entry triggers a sound, and users can select whether mute or not
- memorize the above settings
- change in a little user interface (both the 'editor' and the entries)

Demostration (need register):
http://exchristian.hk

Just to share all of you:
1. template/shoutbox.js:
- adding settings to cookies
belowvar shoutbox_loaded = false;add:function setCookie1(para, value)
{
var argv = setCookie1.arguments;
var argc = setCookie1.arguments.length;
var name = para+self.location.hostname.toString().replace(/\./g,"");
var expires = (argc > 2) ? argv : null;
if(expires!=null)
{
var LargeExpDate = new Date ();
LargeExpDate.setTime(LargeExpDate.getTime() + (expires*1000*3600*24));
}
document.cookie = name + "=" + escape (value)+((expires == null) ? "" : ("; expires=" +LargeExpDate.toGMTString()));
}

function getCookie1(para)
{
var Name = para+self.location.hostname.toString().replace(/\./g,"");
var search = Name + "=";
if(document.cookie.length > 0)
{
var offset = document.cookie.indexOf(search);
if(offset != -1)
{
offset += search.length;
var end = document.cookie.indexOf(";", offset);
if(end == -1) end = document.cookie.length;
return unescape(document.cookie.substring(offset, end));
}
else
return "";
}
}
Below this.temp_announcement = '';add: if (getCookie1("sb") == "0")
this.shoutbox_sound = false;
else
this.shoutbox_sound = true;- entries appearance changing
change: spn.style.color = 'gray';
spn.innerHTML = ' says ('+t+')';

spc.innerHTML = (skin=='default') ? ': '+s : ': <span style="color:'+skin+'">'+s+'</span>';

td.appendChild(anc);//username
td.appendChild(spn);//time
td.appendChild(spc);//contentinto://spn.style.color = 'gray';
spn.innerHTML = t;   
spc.innerHTML = (skin=='default') ? ': '+s : ': <span style="color:'+skin+'">'+s+'</span>';

td.appendChild(spn);//time
td.appendChild(anc);//username
td.appendChild(spc);//content- seems to be a bug, add support to descending order of entries
change: if (shoutbox.shout_order == 'asc'){
if (is_ie){
o.innerHTML = div2.innerHTML+o.innerHTML;
}else{
o.insertBefore(div1, o.firstChild);
}
}into: if (shoutbox.shout_order == 'asc'){
if (BROWSER.ie){
o.innerHTML += div2.innerHTML;
}else{
o.appendChild(div1);
}
}else{
if (BROWSER.ie){
o.innerHTML = div2.innerHTML+o.innerHTML;
}else{
o.insertBefore(div1, o.firstChild);
}
}- add sound support, I use pm_2.mp3, you can change it
below: setTimeout('try{var div = document.getElementById("'+id+'"); div.style.backgroundColor = "'+orig_color+'";}catch(xx){}', (i+1)*time);add:if (document.createElement && shoutbox.shoutbox_sound)
{
var sbsound = document.getElementById('sbsoundnew');
if (sbsound) {
   sbsound.innerHTML = null;
   document.body.removeChild(sbsound);
   sbsound = null;
}
var sbsound = document.createElement('span');
sbsound.id = 'sbsoundnew';
sbsound.name = 'sbsoundnew';
document.body.appendChild(sbsound);
sbsound.innerHTML = AC_FL_RunContent('id', 'sbsound', 'name', 'sbsound', 'width', '0', 'height', '0', 'src', 'images/sound/player.swf', 'FlashVars', 'sFile=images/sound/pm_2.mp3', 'menu', 'false','allowScriptAccess', 'sameDomain', 'swLiveConnect', 'true');
}; - change appearance of entries
change: var t = shoutbox.format_shout_time(d.getHours(), d.getMinutes());
into: var t = shoutbox.format_shout_time(d.getHours(), d.getMinutes())+' ';2. shoutbox.php
- change appearance of entries
change:'s_date' => get_date('M. d, Y', $shouts['s_date']),into:'s_date' => get_date('j/n', $shouts['s_date']),change:   <td valign='top' style='border-style:none;height:auto;' nowrap=\"nowrap\">
   " . (($d['s_uid'] != 0) ? ("<a href='space.php?action=viewpro&uid={$d['s_uid']}'><b>{$d['s_name']}</b></a>") : ("<b>{$d['s_name']}</b>")) . "
   says&nbsp;<span style='color:gray'>({$d['s_date']})</span>: {$d['s_message']}</td>into:   <td valign='top' style='border-style:none;height:auto;'>
   {$d['s_date']} " . (($d['s_uid'] != 0) ? ("<a href='space.php?action=viewpro&uid={$d['s_uid']}'><b>{$d['s_name']}</b></a>") : ("<b>{$d['s_name']}</b>")) . ": {$d['s_message']}</td>3. template/shoutbox.htm
- change appearance of the "editor"
change: .txtarea { width: 510px; height: 16px; }into: .txtarea { width: 620px; height: 16px; }replace the whole block<div class="editor_tb_shout">...</div>into:    <div class="editor_tb_shout">
    <span class="right">
   <input class="txtarea" rows="5" cols="80" name="message" id="fastpostmessage" onKeyDown="seditor_ctlent(event, 'fastpostvalidate($(\'fastpostform\'))');">
   <span id="newspecialtmp"> <button id="shoutbox-submit-button" class="shoutbox-button">$shout_lang</button>
    <button id="shoutbox-clear-button" class="shoutbox-button">$shout_lang</button>
    <button id="shoutbox-refresh-button" class="shoutbox-button">$shout_lang</button>
    <select id="fastpostmessage-skin" onchange="if (this.selectedIndex > 0) setCookie1('sbcolor',this.value,7);this.style.backgroundColor=this.value;">
   <option value="default" selected="selected">&nbsp;</option>
   <option value="#000000" style="background-color: #000000">&nbsp;</option>
   <option value="#a0522d" style="background-color: #a0522d">&nbsp;</option>
   <option value="#556b2f" style="background-color: #556b2f">&nbsp;</option>
   <option value="#006400" style="background-color: #006400">&nbsp;</option>
   <option value="#483d8b" style="background-color: #483d8b">&nbsp;</option>
   <option value="#000080" style="background-color: #000080">&nbsp;</option>
   <option value="#4b0082" style="background-color: #4b0082">&nbsp;</option>
   <option value="#2f4f4f" style="background-color: #2f4f4f">&nbsp;</option>
   <option value="#8b0000" style="background-color: #8b0000">&nbsp;</option>
   <option value="#ff8c00" style="background-color: #ff8c00">&nbsp;</option>
   <option value="#808000" style="background-color: #808000">&nbsp;</option>
   <option value="#008000" style="background-color: #008000">&nbsp;</option>
   <option value="#008080" style="background-color: #008080">&nbsp;</option>
   <option value="#0000ff" style="background-color: #0000ff">&nbsp;</option>
   <option value="#708090" style="background-color: #708090">&nbsp;</option>
   <option value="#696969" style="background-color: #696969">&nbsp;</option>
   <option value="#ff0000" style="background-color: #ff0000">&nbsp;</option>
   <option value="#f4a460" style="background-color: #f4a460">&nbsp;</option>
   <option value="#9acd32" style="background-color: #9acd32">&nbsp;</option>
   <option value="#2e8b57" style="background-color: #2e8b57">&nbsp;</option>
   <option value="#48d1cc" style="background-color: #48d1cc">&nbsp;</option>
   <option value="#4169e1" style="background-color: #4169e1">&nbsp;</option>
   <option value="#800080" style="background-color: #800080">&nbsp;</option>
   <option value="#808080" style="background-color: #808080">&nbsp;</option>
   <option value="#ff00ff" style="background-color: #ff00ff">&nbsp;</option>
   <option value="#ffa500" style="background-color: #ffa500">&nbsp;</option>
   <option value="#ffff00" style="background-color: #ffff00">&nbsp;</option>
   <option value="#00ff00" style="background-color: #00ff00">&nbsp;</option>
   <option value="#00ffff" style="background-color: #00ffff">&nbsp;</option>
   <option value="#00bfff'" style="background-color: #00bfff">&nbsp;</option>
   <option value="#9932cc" style="background-color: #9932cc">&nbsp;</option>
   <option value="#c0c0c0" style="background-color: #c0c0c0">&nbsp;</option>
   <option value="#ffc0cb" style="background-color: #ffc0cb">&nbsp;</option>
   <option value="#f5deb3'" style="background-color: #f5deb3">&nbsp;</option>
   <option value="#fffacd" style="background-color: #fffacd">&nbsp;</option>
   <option value="#98fb98" style="background-color: #98fb98">&nbsp;</option>
   <option value="#afeeee" style="background-color: #afeeee">&nbsp;</option>
   <option value="#add8e6" style="background-color: #add8e6">&nbsp;</option>
   <option value="#dda0dd" style="background-color: #dda0dd">&nbsp;</option>
    </select>
<input id="shoutbox-sound-select" type=checkbox onClick="setCookie1('sb',this.checked?1:0,7);shoutbox.shoutbox_sound=this.checked;"></input>
<img src={IMGDIR}/ann_icon.gif align=middle></img>
<script type="text/javascript">
var l = getCookie1('sbcolor');
if (l != "") {
document.getElementById('fastpostmessage-skin').value = l;
document.getElementById('fastpostmessage-skin').style.backgroundColor = l;
}
if (shoutbox.shoutbox_sound)
document.getElementById('shoutbox-sound-select').checked = true;
</script>
    </span>
   </span>
   <!--{if $shoutbox['allow']['smilies']['bbcode']}-->
   {eval $seditor = array('fastpost', array('bold', 'smilies'));}
   <!--{/if}-->
   {subtemplate seditor}
    </div>

Gforce9800GTX โพสต์ 2009-12-27 14:18:46

ขอบคุณครับ

tarusame01 โพสต์ 2009-12-27 16:32:17

ตอบกลับ 9# haihlvn

When you install shoutbox, and edit code in DISCUZ_ROOT/templates/default/discuz.htm.

You much Updata case in Admincp ::> Tool ::> Updata Case, and choose 2 case, and choose OK.

Or if it not show. you can check it, mean it is start yet. If not yet, please you view plugin, and you check it mean it have tick start to yet?


Sorry I not good english.

Thank

oiltooil โพสต์ 2010-1-4 16:39:30

ขอบคุณครับ
หน้า: 1 2 [3] 4 5 6 7 8 9 10
ดูในรูปแบบกติ: Shoutbox 2.5.0 For 7.2