vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Chat Modifications - Cyb - ChatBox (https://vborg.vbsupport.ru/showthread.php?t=177552)

ComputerVitals 06-07-2008 08:06 PM

I'm getting a database error.

I'm not sure where it coming from but it is reproduceable.

Here's the error

Code:

Database error in vBulletin 3.7.1:

Invalid SQL:
SELECT * FROM vb_chatbox ORDER BY dateline ASC LIMIT 0,;

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Error Number  : 1064
Request Date  : Saturday, June 7th 2008 @ 03:38:41 PM
Error Date    : Saturday, June 7th 2008 @ 03:38:41 PM
Script        : http://www.computervitals.com/forum/chatbox.php?nofocus=1
Referrer      :
IP Address    : 88.131.106.13
Username      : Unregistered
Classname    : vB_Database
MySQL Version :

Any ideas?

Valter 06-07-2008 09:12 PM

"vb_chatbox" table is not part of this hack.

dodgechargerfan 06-07-2008 09:14 PM

Quote:

Originally Posted by dodgechargerfan (Post 1542715)
Installed and working fine but I have my host set up to send me e-mails of any database errors. With the chatbox enabled, I get this error over and over again:

mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
/home/BOARDNAME/public_html/forums/includes/class_core.php on line 311

The script that is being called is always different and the user IP address is always different.

The e-mails stop as soon as I disable the product in ACP.

Any ideas?

Not sure what it was, but I went through and worked on all of the errors in my error log and this problem is now gone... :confused:

ComputerVitals 06-07-2008 09:28 PM

Quote:

Originally Posted by Cybernetec (Post 1543521)
"vb_chatbox" table is not part of this hack.


Interesting...

Must have been Dreams chatbox.... I know I had that install long long time ago..
Now I'm thinking it could be a bot looking at old urls?

H o p e Z 06-10-2008 06:31 AM

just to let you know works with 3.7.1 perfect nice mod

Animecraving 06-10-2008 11:27 PM

it would be nice if you can add a submit button for this one
cuz since some of my friend suggested it that they're using like phone/psp to get online

Darkfire122333 06-11-2008 03:30 AM

I changed the XML to meet my needs... (screenshot of what this does attached) THIS INCLUDES a submit button...

Changed this:

PHP Code:

                <tbody id="collapseobj_cybcb_boxswitch" style="<if condition="$vboptions[cybchatbox_collapsed_always]"><if condition="(THIS_SCRIPT!='misc')">display:none</if><else />$vbcollapse[collapseobj_cybcb_boxswitch]</if>">
                    <
tr valign="top">
                        <
td class="alt2" width="1%">
                            <
div style="white-space:nowrap;width:100%;height:25px;display:block;">
                                <
input id="ccb_m_bold" type="button" class="button" style="width:30px;font-weight:bold;" value="B" onclick='Ccb_updateSButton(this, "fontWeight")' <if condition="$cybcb_cantpost">disabled="disabled"</if> />
                                <
input id="ccb_m_italic" type="button" class="button" style="width:30px;font-style:italic;" value="I" onclick='Ccb_updateSButton(this, "fontStyle")' <if condition="$cybcb_cantpost">disabled="disabled"</if> />
                                <
input id="ccb_m_underline" type="button" class="button" style="width:30px;text-decoration:underline;" value="U" onclick='Ccb_updateSButton(this, "textDecoration")' <if condition="$cybcb_cantpost">disabled="disabled"</if> />
                                <
select id="ccb_m_color" name="ccb_m_color" style="width:50px;background-color:black;" onchange='Ccb_updateColor(this, "color");Ccb_Init();' <if condition="$cybcb_cantpost">disabled="disabled"</if>>
                                    <
option style="background-color:$stylevar[alt1_fgcolor];color:$stylevar[alt1_fgcolor];" value="$stylevar[alt1_fgcolor]selected="selected">&nbsp;</option>
                                    
$cybcb_colors
                                
</select>
                                <if 
condition="(($vboptions[cybchatbox_smiliestotal]!=0) AND !$cybcb_cantpost AND $cybcb_smilies_init)">
                                    <
span id="cybchatmenusmilies">$vbphrase[smilies] <script language="Javascript" type="text/javascript"vbmenu_register("cybchatmenusmilies"); </script></span>
                                    <
span class="vbmenu_popup" id="cybchatmenusmilies_menu" style="display:none;">
                                        <
table cellpadding="0" cellspacing="0" border="0">
                                            <
tr>
                                                <
td class="thead">$vbphrase[smilies]</td>
                                            </
tr>
                                            <
tr>
                                                <
td class="alt2">
                                                    <
div id="cybcb_smiliesarea" style="max-height:200px;overflow:auto;background-color:$stylevar[alt1_bgcolor];border-top:0px;border-bottom:1px;border-left:0px;border-right:0px;border-color:$stylevar[time_fgcolor];border-style:dashed;">
                                                        <
div id="cybcb_smiliesarea_init" style="overflow:auto;background-color:$stylevar[alt1_bgcolor];border-top:0px;border-bottom:1px;border-left:0px;border-right:0px;border-color:$stylevar[time_fgcolor];border-style:dashed;">
                                                            
$cybcb_smilies_init
                                                        
</div>
                                                        <
div id="cybcb_smiliesarea_full" style="background-color:$stylevar[alt1_bgcolor];margin:1px;">
                                                            <
span id="cybcb_smilies_more" class="smallfont" style="display:inline;">
                                                                <
a href="javascript:void(0);" onclick="Ccb_getSmilies();" style="text-decoration:none;">$vbphrase[more]</a>
                                                            </
span>
                                                            <
span id="cybcb_smilies_loading" class="smallfont" style="display:none;">
                                                                
$vbphrase[cybcb_loading]
                                                            </
span>
                                                        </
div>
                                                    </
div>
                                                    <
div align="center" style="margin:4px;">
                                                        <
img id="cybcb_smiliepreview" src="$cybcb_smilie_firstborder="0" alt="" />
                                                    </
div>
                                                </
td>
                                            </
tr>
                                        </
table>
                                    </
span>
                                </if>
                            </
div>
                            <
textarea name="ccb_entermessage" id="ccb_entermessage" class="smallfont" style="width:99%;height:$cybcb_height_input;overflow:auto;color:$stylevar[alt1_fgcolor];background-color:$stylevar[alt1_bgcolor];border:0px;" onkeydown="if (event.keyCode == 13) {return Ccb_postMessage(cybcb_post_form);}"  onfocus="if(!this._haschanged){this.value=''};this._haschanged=true;" <if condition="$cybcb_cantpost">disabled="disabled"</if> rows="1" cols="1">$vbphrase[message]...</textarea>
                        </
td>
                        <
td class="alt2">
                            <
div id="cybcb_messagearea" style="overflow:auto;height:$cybcb_height_messarea;width:100%;border:0px;background-color:$stylevar[alt2_bgcolor]">
                                
$vbphrase[cybcb_loading]
                            </
div>
                        </
td>
                    </
tr>
                    <if 
condition="$vboptions[cybchatbox_belownote]">
                    <
tr>
                        <
td class="alt2" align="$stylevar[left]colspan="3">
                            <
div class="smallfont" style="float:$stylevar[right];">$vbphrase[cybcb_chatbox_note]</div>
                        </
td>
                    </
tr>
                    </if>
                </
tbody

To this:


PHP Code:

                <tbody id="collapseobj_cybcb_boxswitch" style="<if condition="$vboptions[cybchatbox_collapsed_always]"><if condition="(THIS_SCRIPT!='misc')">display:none</if><else />$vbcollapse[collapseobj_cybcb_boxswitch]</if>">
                    <
tr valign="top">
                        <
td class="alt2">
                            <
textarea name="ccb_entermessage" id="ccb_entermessage" class="smallfont" style="width:92%;height:15px;overflow:auto;color:$stylevar[alt1_fgcolor];background-color:$stylevar[alt1_bgcolor];border:0px;" onkeydown="if (event.keyCode == 13) {return Ccb_postMessage(cybcb_post_form);}"  onfocus="if(!this._haschanged){this.value=''};this._haschanged=true;" <if condition="$cybcb_cantpost">disabled="disabled"</if> rows="1" cols="1">$vbphrase[message]...</textarea>&nbsp;<input type="submit" value="Submit" id="submit" />
                        </
td>
                    </
tr>
                    <
tr valign="top">
                        <
td class="alt2">
                            <
div id="cybcb_messagearea" style="overflow:auto;height:$cybcb_height_messarea;width:100%;border:0px;background-color:$stylevar[alt2_bgcolor]">
                                
$vbphrase[cybcb_loading]
                            </
div>
                        </
td>
                    </
tr>
                    <if 
condition="$vboptions[cybchatbox_belownote]">
                    <
tr>
                        <
td class="alt2" align="$stylevar[left]colspan="3">
                            <
div class="smallfont" style="float:$stylevar[right];">$vbphrase[cybcb_chatbox_note]</div>
                        </
td>
                    </
tr>
                    </if>
                </
tbody

Edit: added new screenshot, old one did not have submit button

Animecraving 06-11-2008 05:05 AM

oh i see all you need is put the <input type="submit" value="Submit" id="submit" /> in

Darkfire122333 06-11-2008 05:29 AM

Yes, but make sure it stays inside the <form> </form> tags.

PHP Code:

        <form name="cybcb_post_form" action="misc.php?$session[sessionurl]&securitytoken=$cybcb_sectokmethod="post" onsubmit="return Ccb_postMessage(this)">
            <
input type="hidden" name="do" value="cb_postnew" />
            <
input type="hidden" name="color" />
            <
input type="hidden" name="fontWeight" />
            <
input type="hidden" name="fontStyle" />
            <
input type="hidden" name="textDecoration" />

            <
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
                <
thead>
                    <
tr>
                        <
td class="<if condition="($vboptions[cybchatbox_box_style]==1)">tcat<else />thead</if>" colspan="3">
                            <
a style="float:$stylevar[right]href="#top" onclick="return toggle_collapse('cybcb_boxswitch')"><img id="collapseimg_cybcb_boxswitch" src="$stylevar[imgdir_button]/collapse_<if condition="($vboptions[cybchatbox_box_style]==1)">tcat<else />thead</if>$vbcollapse[collapseimg_cybcb_boxswitch].gif" alt="" border="0" /></a>
                            <
span id="cybchatmenuccbox"><if condition="($_REQUEST['do']!='cchatbox')">$vbphrase[cybcb_chatbox]<else />$vbphrase[cybcb_chatbox_full]</if> <script language="Javascript" type="text/javascript"vbmenu_register("cybchatmenuccbox"); </script></span> <span class="smallfont" id="cybcb_newinfoarea" style="display:inline;">($cybcb_newstat)</span>
                        </
td>
                    </
tr>
                </
thead>
                <
tbody id="collapseobj_cybcb_boxswitch" style="<if condition="$vboptions[cybchatbox_collapsed_always]"><if condition="(THIS_SCRIPT!='misc')">display:none</if><else />$vbcollapse[collapseobj_cybcb_boxswitch]</if>">
                    <
tr valign="top">
                        <
td class="alt2">
                            <
textarea name="ccb_entermessage" id="ccb_entermessage" class="smallfont" style="width:92%;height:15px;overflow:auto;color:$stylevar[alt1_fgcolor];background-color:$stylevar[alt1_bgcolor];border:0px;" onkeydown="if (event.keyCode == 13) {return Ccb_postMessage(cybcb_post_form);}"  onfocus="if(!this._haschanged){this.value=''};this._haschanged=true;" <if condition="$cybcb_cantpost">disabled="disabled"</if> rows="1" cols="1">$vbphrase[message]...</textarea>&nbsp;<input type="submit" value="Submit" id="submit" />
                        </
td>
                    </
tr>
                    <
tr valign="top">
                        <
td class="alt2">
                            <
div id="cybcb_messagearea" style="overflow:auto;height:$cybcb_height_messarea;width:100%;border:0px;background-color:$stylevar[alt2_bgcolor]">
                                
$vbphrase[cybcb_loading]
                            </
div>
                        </
td>
                    </
tr>
                    <if 
condition="$vboptions[cybchatbox_belownote]">
                    <
tr>
                        <
td class="alt2" align="$stylevar[left]colspan="3">
                            <
div class="smallfont" style="float:$stylevar[right];">$vbphrase[cybcb_chatbox_note]</div>
                        </
td>
                    </
tr>
                    </if>
                </
tbody>
            </
table>
        </
form

that is mine, all i edited was the part that you see above.. the form tag is there from the cyb chatbox. just want you to understand completely :)

by the way.. don't forget to re-install the xml after the edits :D

Animecraving 06-11-2008 06:09 AM

well but i added it in different way i added this
Code:

<input type="submit" class="button" value="&#x21B5;" style="height:19px;" id="submit" />
before all the other bb code buttons

slipkot 06-11-2008 07:11 AM

nice! thanks...

The_Dan 06-11-2008 10:39 AM

Im having a problem on one of my skins, i think its more of a skin problem but i thought id ask to see if you guys could ghelp anyway.

Basically the entry box is too big. Does anyone know if i can make it smaller or do i need to consult the skins designer ?

Thanks.

frightie 06-11-2008 02:20 PM

I'm having trouble banning users in my chat from posting images. I've banned the 'img' tag in admincp, which works, but some still post images if they capitalize it to IMG. Is there a way to fix that?

Smell 06-11-2008 03:26 PM

Hello how can give permissions in SMod-Mod to prune chatbox like admin
http://img365.imageshack.us/img365/8413/prunevq1.jpg




PS i have on for all Mod Groups able to delete/edit all messages, and ban/unban users

Darkfire122333 06-11-2008 05:31 PM

Quote:

Originally Posted by The_Dan (Post 1546563)
Im having a problem on one of my skins, i think its more of a skin problem but i thought id ask to see if you guys could ghelp anyway.

Basically the entry box is too big. Does anyone know if i can make it smaller or do i need to consult the skins designer ?

Thanks.

The reason the entry box is so big is because of the options above it. There really is no way to change that. Sorry.

I am working on having the options above entry box (like I have edited above) and having the options above the entry line.

Darkfire122333 06-11-2008 05:50 PM

Quote:

Originally Posted by frightie (Post 1546714)
I'm having trouble banning users in my chat from posting images. I've banned the 'img' tag in admincp, which works, but some still post images if they capitalize it to IMG. Is there a way to fix that?

For now, all that I can think of is add all these tags:

img,Img,IMG,IMg,ImG,iMG,iMg


(ADD THESE WITHOUT SPACES! If you add spaces then it will not work.)

SBlueman 06-11-2008 05:55 PM

Great mod....however I have a question....I want the chatbox to ONLY show up when people go to the full chat at "http://xxxxxxxx.com/forums/misc.php?do=cchatbox". How can this be accomplished?

frightie 06-11-2008 05:59 PM

Quote:

Originally Posted by Darkfire122333 (Post 1546871)
For now, all that I can think of is add all these tags:

img,Img,IMG,IMg,ImG,iMG,iMg


(ADD THESE WITHOUT SPACES! If you add spaces then it will not work.)

Ah, I see. I had'em in there with spaces between'em, which would explain why it didn't work. Thanks a lot! :up:

Darkfire122333 06-11-2008 06:00 PM

Quote:

Originally Posted by SBlueman (Post 1546875)
Great mod....however I have a question....I want the chatbox to ONLY show up when people go to the full chat at "http://xxxxxxxx.com/forums/misc.php?do=cchatbox". How can this be accomplished?

Go to AdminCp, vBulletin Options, vBulletin Options

Click Cyb - ChatBox

Find:
Position on page (Disable if you add ChatBox manually in templates)

In the dropdown, change it to "Disabled"

Darkfire122333 06-11-2008 06:02 PM

Quote:

Originally Posted by frightie (Post 1546879)
Ah, I see. I had'em in there with spaces between'em, which would explain why it didn't work. Thanks a lot! :up:

Your Welcome. :)

Bacon Butty 06-11-2008 06:53 PM

Whats the bandwidth usage like compared with the normal vbshout?

SBlueman 06-11-2008 06:54 PM

Thank you Darkfire! Now....just a question on the template edit.....how can I make it so when you are on the Full page the chat is on top, with the text field underneath with the controls to the right?

Darkfire122333 06-12-2008 01:19 AM

Quote:

Originally Posted by SBlueman (Post 1546918)
Thank you Darkfire! Now....just a question on the template edit.....how can I make it so when you are on the Full page the chat is on top, with the text field underneath with the controls to the right?

In the XML Change:

Code:

            <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
                <thead>
                    <tr>
                        <td class="<if condition="($vboptions[cybchatbox_box_style]==1)">tcat<else />thead</if>" colspan="3">
                            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('cybcb_boxswitch')"><img id="collapseimg_cybcb_boxswitch" src="$stylevar[imgdir_button]/collapse_<if condition="($vboptions[cybchatbox_box_style]==1)">tcat<else />thead</if>$vbcollapse[collapseimg_cybcb_boxswitch].gif" alt="" border="0" /></a>
                            <span id="cybchatmenuccbox"><if condition="($_REQUEST['do']!='cchatbox')">$vbphrase[cybcb_chatbox]<else />$vbphrase[cybcb_chatbox_full]</if> <script language="Javascript" type="text/javascript"> vbmenu_register("cybchatmenuccbox"); </script></span> <span class="smallfont" id="cybcb_newinfoarea" style="display:inline;">($cybcb_newstat)</span>
                        </td>
                    </tr>
                </thead>
                <tbody id="collapseobj_cybcb_boxswitch" style="<if condition="$vboptions[cybchatbox_collapsed_always]"><if condition="(THIS_SCRIPT!='misc')">display:none</if><else />$vbcollapse[collapseobj_cybcb_boxswitch]</if>">
                    <tr valign="top">
                        <td class="alt2" width="1%">
                            <div style="white-space:nowrap;width:100%;height:25px;display:block;">
                                <input id="ccb_m_bold" type="button" class="button" style="width:30px;font-weight:bold;" value="B" onclick='Ccb_updateSButton(this, "fontWeight")' <if condition="$cybcb_cantpost">disabled="disabled"</if> />
                                <input id="ccb_m_italic" type="button" class="button" style="width:30px;font-style:italic;" value="I" onclick='Ccb_updateSButton(this, "fontStyle")' <if condition="$cybcb_cantpost">disabled="disabled"</if> />
                                <input id="ccb_m_underline" type="button" class="button" style="width:30px;text-decoration:underline;" value="U" onclick='Ccb_updateSButton(this, "textDecoration")' <if condition="$cybcb_cantpost">disabled="disabled"</if> />
                                <select id="ccb_m_color" name="ccb_m_color" style="width:50px;background-color:black;" onchange='Ccb_updateColor(this, "color");Ccb_Init();' <if condition="$cybcb_cantpost">disabled="disabled"</if>>
                                    <option style="background-color:$stylevar[alt1_fgcolor];color:$stylevar[alt1_fgcolor];" value="$stylevar[alt1_fgcolor]" selected="selected">&nbsp;</option>
                                    $cybcb_colors
                                </select>
                                <if condition="(($vboptions[cybchatbox_smiliestotal]!=0) AND !$cybcb_cantpost AND $cybcb_smilies_init)">
                                    <span id="cybchatmenusmilies">$vbphrase[smilies] <script language="Javascript" type="text/javascript"> vbmenu_register("cybchatmenusmilies"); </script></span>
                                    <span class="vbmenu_popup" id="cybchatmenusmilies_menu" style="display:none;">
                                        <table cellpadding="0" cellspacing="0" border="0">
                                            <tr>
                                                <td class="thead">$vbphrase[smilies]</td>
                                            </tr>
                                            <tr>
                                                <td class="alt2">
                                                    <div id="cybcb_smiliesarea" style="max-height:200px;overflow:auto;background-color:$stylevar[alt1_bgcolor];border-top:0px;border-bottom:1px;border-left:0px;border-right:0px;border-color:$stylevar[time_fgcolor];border-style:dashed;">
                                                        <div id="cybcb_smiliesarea_init" style="overflow:auto;background-color:$stylevar[alt1_bgcolor];border-top:0px;border-bottom:1px;border-left:0px;border-right:0px;border-color:$stylevar[time_fgcolor];border-style:dashed;">
                                                            $cybcb_smilies_init
                                                        </div>
                                                        <div id="cybcb_smiliesarea_full" style="background-color:$stylevar[alt1_bgcolor];margin:1px;">
                                                            <span id="cybcb_smilies_more" class="smallfont" style="display:inline;">
                                                                <a href="javascript:void(0);" onclick="Ccb_getSmilies();" style="text-decoration:none;">$vbphrase[more]</a>
                                                            </span>
                                                            <span id="cybcb_smilies_loading" class="smallfont" style="display:none;">
                                                                $vbphrase[cybcb_loading]
                                                            </span>
                                                        </div>
                                                    </div>
                                                    <div align="center" style="margin:4px;">
                                                        <img id="cybcb_smiliepreview" src="$cybcb_smilie_first" border="0" alt="" />
                                                    </div>
                                                </td>
                                            </tr>
                                        </table>
                                    </span>
                                </if>
                            </div>
                            <textarea name="ccb_entermessage" id="ccb_entermessage" class="smallfont" style="width:99%;height:$cybcb_height_input;overflow:auto;color:$stylevar[alt1_fgcolor];background-color:$stylevar[alt1_bgcolor];border:0px;" onkeydown="if (event.keyCode == 13) {return Ccb_postMessage(cybcb_post_form);}"  onfocus="if(!this._haschanged){this.value=''};this._haschanged=true;" <if condition="$cybcb_cantpost">disabled="disabled"</if> rows="1" cols="1">$vbphrase[message]...</textarea>
                        </td>
                        <td class="alt2">
                            <div id="cybcb_messagearea" style="overflow:auto;height:$cybcb_height_messarea;width:100%;border:0px;background-color:$stylevar[alt2_bgcolor]">
                                $vbphrase[cybcb_loading]
                            </div>
                        </td>
                    </tr>
                    <if condition="$vboptions[cybchatbox_belownote]">
                    <tr>
                        <td class="alt2" align="$stylevar[left]" colspan="3">
                            <div class="smallfont" style="float:$stylevar[right];">$vbphrase[cybcb_chatbox_note]</div>
                        </td>
                    </tr>
                    </if>
                </tbody>
            </table>

To:

Code:

            <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
                <thead>
                    <tr>
                        <td class="<if condition="($vboptions[cybchatbox_box_style]==1)">tcat<else />thead</if>" colspan="3">
                            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('cybcb_boxswitch')"><img id="collapseimg_cybcb_boxswitch" src="$stylevar[imgdir_button]/collapse_<if condition="($vboptions[cybchatbox_box_style]==1)">tcat<else />thead</if>$vbcollapse[collapseimg_cybcb_boxswitch].gif" alt="" border="0" /></a>
                            <span id="cybchatmenuccbox"><if condition="($_REQUEST['do']!='cchatbox')">$vbphrase[cybcb_chatbox]<else />$vbphrase[cybcb_chatbox_full]</if> <script language="Javascript" type="text/javascript"> vbmenu_register("cybchatmenuccbox"); </script></span> <span class="smallfont" id="cybcb_newinfoarea" style="display:inline;">($cybcb_newstat)</span>
                        </td>
                    </tr>
                </thead>
                <tbody id="collapseobj_cybcb_boxswitch" style="<if condition="$vboptions[cybchatbox_collapsed_always]"><if condition="(THIS_SCRIPT!='misc')">display:none</if><else />$vbcollapse[collapseobj_cybcb_boxswitch]</if>">
                    <tr valign="top">
                        <td class="alt2">
                            <div id="cybcb_messagearea" style="overflow:auto;height:$cybcb_height_messarea;width:100%;border:0px;background-color:$stylevar[alt2_bgcolor]">
                                $vbphrase[cybcb_loading]
                            </div>
                        </td>
                    </tr>
                    <tr valign="top">
                        <td class="alt2">
                            <textarea name="ccb_entermessage" id="ccb_entermessage" class="smallfont" style="width:75%;height:15px;overflow:auto;color:$stylevar[alt1_fgcolor];background-color:$stylevar[alt1_bgcolor];border:0px;" onkeydown="if (event.keyCode == 13) {return Ccb_postMessage(cybcb_post_form);}"  onfocus="if(!this._haschanged){this.value=''};this._haschanged=true;" <if condition="$cybcb_cantpost">disabled="disabled"</if> rows="1" cols="1">$vbphrase[message]...</textarea>
                                <input id="ccb_m_bold" type="button" class="button" style="width:30px;font-weight:bold;" value="B" onclick='Ccb_updateSButton(this, "fontWeight")' <if condition="$cybcb_cantpost">disabled="disabled"</if> />
                                <input id="ccb_m_italic" type="button" class="button" style="width:30px;font-style:italic;" value="I" onclick='Ccb_updateSButton(this, "fontStyle")' <if condition="$cybcb_cantpost">disabled="disabled"</if> />
                                <input id="ccb_m_underline" type="button" class="button" style="width:30px;text-decoration:underline;" value="U" onclick='Ccb_updateSButton(this, "textDecoration")' <if condition="$cybcb_cantpost">disabled="disabled"</if> />
                                <select id="ccb_m_color" name="ccb_m_color" style="width:50px;background-color:black;" onchange='Ccb_updateColor(this, "color");Ccb_Init();' <if condition="$cybcb_cantpost">disabled="disabled"</if>>
                                    <option style="background-color:$stylevar[alt1_fgcolor];color:$stylevar[alt1_fgcolor];" value="$stylevar[alt1_fgcolor]" selected="selected">&nbsp;</option>
                                    $cybcb_colors
                                </select>
                                <if condition="(($vboptions[cybchatbox_smiliestotal]!=0) AND !$cybcb_cantpost AND $cybcb_smilies_init)">
                                    <span id="cybchatmenusmilies">$vbphrase[smilies] <script language="Javascript" type="text/javascript"> vbmenu_register("cybchatmenusmilies"); </script></span>
                                    <span class="vbmenu_popup" id="cybchatmenusmilies_menu" style="display:none;">
                                        <table cellpadding="0" cellspacing="0" border="0">
                                            <tr>
                                                <td class="thead">$vbphrase[smilies]</td>
                                            </tr>
                                            <tr>
                                                <td class="alt2">
                                                    <div id="cybcb_smiliesarea" style="max-height:200px;overflow:auto;background-color:$stylevar[alt1_bgcolor];border-top:0px;border-bottom:1px;border-left:0px;border-right:0px;border-color:$stylevar[time_fgcolor];border-style:dashed;">
                                                        <div id="cybcb_smiliesarea_init" style="overflow:auto;background-color:$stylevar[alt1_bgcolor];border-top:0px;border-bottom:1px;border-left:0px;border-right:0px;border-color:$stylevar[time_fgcolor];border-style:dashed;">
                                                            $cybcb_smilies_init
                                                        </div>
                                                        <div id="cybcb_smiliesarea_full" style="background-color:$stylevar[alt1_bgcolor];margin:1px;">
                                                            <span id="cybcb_smilies_more" class="smallfont" style="display:inline;">
                                                                <a href="javascript:void(0);" onclick="Ccb_getSmilies();" style="text-decoration:none;">$vbphrase[more]</a>
                                                            </span>
                                                            <span id="cybcb_smilies_loading" class="smallfont" style="display:none;">
                                                                $vbphrase[cybcb_loading]
                                                            </span>
                                                        </div>
                                                    </div>
                                                    <div align="center" style="margin:4px;">
                                                        <img id="cybcb_smiliepreview" src="$cybcb_smilie_first" border="0" alt="" />
                                                    </div>
                                                </td>
                                            </tr>
                                        </table>
                                    </span>
                                </if>
                        </td>
                    </tr>
                    <if condition="$vboptions[cybchatbox_belownote]">
                    <tr>
                        <td class="alt2" align="$stylevar[left]" colspan="3">
                            <div class="smallfont" style="float:$stylevar[right];">$vbphrase[cybcb_chatbox_note]</div>
                        </td>
                    </tr>
                    </if>
                </tbody>
            </table>

Screenshots attached.

Hope this is what you wanted.

Note: Re-uploading the XML will NOT reset the shoutbox, all settings will stay the same.

SBlueman 06-12-2008 04:00 AM

Darkfire? You RULE! Thank you so much, I have it running exactly how I want it now thanks to you.

Darkfire122333 06-12-2008 04:57 AM

Quote:

Originally Posted by SBlueman (Post 1547264)
Darkfire? You RULE! Thank you so much, I have it running exactly how I want it now thanks to you.

My pleasure! Glad to hear that was exactly how you wanted it. I was hoping I did not make a mistake in how you wanted it, now I know I did it good. Hope you enjoy it! I just thought that maybe Cyb would like a break from requests so I am just trying to help him out.

Glad I am doing a satisfactory job.

elmati 06-12-2008 05:25 AM

Quote:

Originally Posted by elmati (Post 1527573)
Hi, i am having issues. As admin I see H:i for time format and my users see 02:38 (ex)...
what can be the problem?

Thanks in advance!

LOL, im still having this issue... i don't know how to fix it! :(

Darkfire122333 06-12-2008 05:56 AM

Quote:

Originally Posted by elmati (Post 1547304)
LOL, im still having this issue... i don't know how to fix it! :(

Please post the following:

Cyb - ChatBox version
vBulletin Version

That way we can help you out a little more in depth. Thank you.

RvG2 06-12-2008 02:56 PM

works super perfect with 3.7.1 :)

elmati 06-12-2008 06:49 PM

Quote:

Originally Posted by Darkfire122333 (Post 1547334)
Please post the following:

Cyb - ChatBox version
vBulletin Version

That way we can help you out a little more in depth. Thank you.

Hi,

i'm using CyB chatbox v2.0 and vb 3.7.1 pl1...

in my chat as an admin i see:
[H:i] containers I read it! :)
[H:i] Matias Hi, read my message!

And my users see:
[16:45] containers I read it! :)
[16:44] Matias Hi, read my message!

i dont know what happening...

Darkfire122333 06-12-2008 10:03 PM

Cybernetec, could I ask you a favor? Could you possibly make a way to port the archive posts from vbshout (for vbulletin 3.5.. it still works on vb 3.7.1) to be able to port to this? it would be nice to have, since i got an archive of over 15k posts, and i like to keep records.

Terri 06-14-2008 09:41 AM

Installed.

Thanks!

Valter 06-14-2008 10:52 AM

Quote:

Originally Posted by Darkfire122333 (Post 1547996)
Cybernetec, could I ask you a favor? Could you possibly make a way to port the archive posts from vbshout (for vbulletin 3.5.. it still works on vb 3.7.1) to be able to port to this? it would be nice to have, since i got an archive of over 15k posts, and i like to keep records.

You can export old table, then edit it to adjust column names for the new table, then import messages.

I can do this for you if you wish.

joopster 06-14-2008 12:37 PM

Just a bit of info for anyone using this chatbox. With the refresh set to 10 seconds, this EATS CPU.

I went from using a 12% CPU load down to 6% after removing the chatbox. I got a email from my host telling me that it was the misc.php?=cbbmessages causing such a high load.

Just a heads up, if you are going to use it, maybe set the refresh to something like 30 seconds or more.

pewa 06-14-2008 11:06 PM

When I tried this on my other server you could see the time and date for every message.. on my current server all I see is: "[d-m, h:i A] test" -same thing for every user

Is it at bug in the ChatBox or a server issue?

manuel.ho 06-15-2008 07:09 AM

Quote:

Originally Posted by pewa (Post 1549526)
When I tried this on my other server you could see the time and date for every message.. on my current server all I see is: "[d-m, h:i A] test" -same thing for every user

Is it at bug in the ChatBox or a server issue?

yep, i have the same problem.

Pcoders 06-15-2008 09:54 AM

just a couple of suggestions, for future releases maybe.

1)
i would like to see an option to add custom usergroups to this setting below.
as i have a few custom staff usergroups i would like to add. maybe change this area so we can add the permissions by usergroup #, instead of the admin/supermod/mod thing.
Code:

Groups able to delete/edit all messages, and ban/unban users
just a thought.:)

2)
anyway we could get an auto idle or timeout feature setting with the ability to set how much time before cutoff maybe.
or someway way we could have the box only reload chat data when there is a new shout maybe?

just would be cool if we had a way to shut down some resources to cpu, if needed during busy times.

thanks for this great chatbox of yours by the way:up::D

SaltyOnionBalls 06-15-2008 06:31 PM

Got it working!

Whats the best refresh rate to set so it doesnt cause a high server load, yet doesnt lag too much?

pewa 06-15-2008 08:24 PM

Darkfire or Cyb, any idea why a few of us only get the "[d-m, h:i A]" instead of date and time?

Would be great to have that fixed!

gooey 06-15-2008 09:33 PM

Firstly, excellent mod; I love it.

I've just installed, but I'm a newbie at this kind of thing so would appreciate a little help.

I really want to move this to the bottom of my index page right under the board but before the 'whats going on' section etc. I understand I need to use the '$cybchatbox' but am not sure exactly what to do/where to edit.

Any chance someone wouldn't mind pointing me in the right direction?

Trip 06-16-2008 12:09 PM

Works fantastic. Thank you. Installed!


All times are GMT. The time now is 05:48 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01971 seconds
  • Memory Usage 2,094KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (3)bbcode_php_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete