Status
Not open for further replies.

kamrul

Active Member
726
2009
6
0
Plugin install---
Code:
http://hotfile.com/dl/21849478/862f62f/vbulletin-plugins.xml.html
add this code --FORUMHOME-->navbar--> below

Code:
<table cellpadding="0" cellspacing="0" width="100%">
<tr><td valign="top">
<!--{%SHOUTBOX%}-->
</td>
<if condition="$bbuserinfo['field6'] == 'Yes'"><else />
<td width="10">&nbsp;</td><td valign="top" width="300">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
    <td class="tcat" align="center">
        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_latestposts')"><img id="collapseimg_forumhome_latestposts" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_latestposts].gif" alt="" border="0" /></a>
        Latest Posts
    </td>
</tr>
</thead>
<tbody id="collapseobj_forumhome_latestposts" style="$vbcollapse[collapseobj_forumhome_latestposts]">
    <tr>
        <td class="alt1" align="left" width="100%">
<div style="padding: 2px; margin-top: 3px; margin-left: 2px; width: 100%;">
<div style="border: 0pt none; height: 218px; width: 98%; overflow: auto;">
<div id="tabContent"></div>$latest_posts

</div>
</div>
</if>
<script type="text/javascript">
var tabVar=new ajaxtabs("tabs", "tabContent")
tabVar.setpersist(true)
tabVar.setselectedClassTarget("link") //"link" or "linkparent"
tabVar.init()
</script>





        
        </td>

    </tr>
</tbody>
</table></td></tr></table>
This is for infernoshot not others.
 
Last edited:
95 comments
After installing the plugin, change the template cyb_chatbox to this:

Code:
    <if condition="(($_REQUEST['do']=='cchatbox') OR ($_REQUEST['do']=='ccarc'))">
        $stylevar[htmldoctype]
        <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
            <head>
            <title>$vboptions[bbtitle] - $vbphrase[cybcb_chatbox]</title>
            $headinclude
            </head>
        <body onload="Ccb_getUsers();">
        $header
        $navbar
    </if>

    <if condition="((($_REQUEST['do']=='cchatbox') OR in_array(THIS_SCRIPT, array($cybcb_locs))) AND ($_REQUEST['do']!='ccarc'))">
        <form name="cybcb_post_form" action="misc.php?$session[sessionurl]&securitytoken=$cybcb_sectok" method="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">

<span style="float:right">

<span class="smallfont">$vbphrase[cybcb_chatbox_note]</span>

<a 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>

                            <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>

                        </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:170px;width:100%;background-color:$stylevar[alt2_bgcolor];font-size:11;">
                                $vbphrase[cybcb_loading]
                            </div>
                        </td>
                        
                    </tr>

                    <tr>
                        <td class="alt2">                        

                            <textarea name="ccb_entermessage" id="ccb_entermessage" class="smallfont" style="width:99%;height=25%;x_overflow:hidden;y_overflow:hidden;color:$stylevar[alt1_fgcolor];background-color:$stylevar[alt1_bgcolor];border:0;font-size:$cybcb_textsize;"onkeydown="if (event.keyCode == 13) {return Ccb_postMessage(cybcb_post_form);}" onkeyup="Ccb_LimitChars('ccb_entermessage','cybcb_counter','$vboptions[cybchatbox_charlimit]');" onfocus="if(!this._haschanged){this.value=''};this._haschanged=true;cybcb_submitbutton.disabled=false;" cols="1" rows="1" <if condition="$cybcb_cantpost">disabled="disabled"</if>>$vbphrase[message]...</textarea>

                            <textarea name="cybcb_infoarea" id="cybcb_infoarea" class="smallfont" style="float:right;text-align:right;white-space:nowrap;width:99%;height:<if condition="is_browser('ie')">12px<else />14px</if>;overflow:hidden;color:$stylevar[time_fgcolor];background-color:$stylevar[alt1_bgcolor];border:0px;" cols="1" rows="1" disabled="disabled">

$vbphrase[cybcb_loading]                                
                            </textarea>
                            
                            <div style="white-space:nowrap;width:100%;height:20px;display:block;">
                                <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>
                                <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> />
                                <if condition="(($vboptions[cybchatbox_smiliestotal]!=0) AND !$cybcb_cantpost AND $cybcb_smilies_init)">
                                    <span id="cybchatmenusmilies"><img class="inlineimg" src="$stylevar[imgdir_editor]/smilie.gif" alt="$vbphrase[smilies]" border="0" onclick="document.getElementById('ccb_entermessage').focus();" /><script language="Javascript" type="text/javascript">vbmenu_register("cybchatmenusmilies", true); </script></span>
                                </if>
                                <if condition="!$cybcb_cantpost">
                                <span class="smallfont"><img class="inlineimg" src="$stylevar[imgdir_editor]/separator.gif" alt="" border="0" /> <span class="time" id="cybcb_counter">$vboptions[cybchatbox_charlimit]</span> <input type="submit" id="cybcb_submitbutton" style="width:30px;font-family:Arial;" value="?" disabled="disabled" /></span>
                                </if>
                                <if condition="(($vboptions[cybchatbox_smiliestotal]!=0) AND !$cybcb_cantpost AND $cybcb_smilies_init)">
                                    <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>    
                            
                        </td>
                    </tr>

                </tbody>
            </table>
        </form>
        &nbsp;
    </if>

    <script language="JavaScript" type="text/javascript">
    <!--
        Ccb_nowPosting = false;
        Ccb_nowLoading = true;
        setTimeout("Ccb_nowLoading = false;Ccb_getMessages();", $vboptions[cybchatbox_newmess_dur] * 1000);
        Ccb_nowRefreshing = null;

        function Ccb_getMessages()
        {
            if (!Ccb_nowPosting)
            {
                clearTimeout(Ccb_nowRefreshing);
                if (Ccb_nowLoading)
                {
                    fetch_object('cybcb_infoarea').innerHTML = ':: $cybcb_newstat';
                    fetch_object('cybcb_infoarea').style.display = 'inline';
                    fetch_object('ccb_entermessage').style.height = '$cybcb_height_input_wstatus';
                }
                else
                {
                    fetch_object('cybcb_infoarea').innerHTML = ':: $vbphrase[cybcb_status_refreshing]';
                    fetch_object('cybcb_infoarea').style.display = 'inline';
                    fetch_object('ccb_entermessage').style.height = '$cybcb_height_input_wstatus';    
                }
                ccb_Messages = new vB_AJAX_Handler(true);
                ccb_Messages.onreadystatechange(Ccb_updateMessages);
                ccb_Messages.send('misc.php?show=ccbmessages');
            }
        }

        function Ccb_updateMessages()
        {
            if (ccb_Messages)
            {
                if (ccb_Messages.handler.readyState == 4 && ccb_Messages.handler.status == 200 && ccb_Messages.handler.responseText)
                {
                    ccb_MessagesDiv = fetch_object('cybcb_messagearea');
                    ccb_MessagesDiv.innerHTML = '<table cellpadding="1" cellspacing="1" border="0" width="97%" align="left">' + ccb_Messages.handler.responseText + '</table>';
                    <if condition="(!$cybcb_cantpost OR ($cybcb_cantpost AND $vboptions[cybchatbox_auto_refresh_guests]))">
                    Ccb_nowRefreshing = setTimeout('Ccb_getMessages()', ($vboptions[cybchatbox_auto_refresh_messages] * 1000));
                    </if>
                    <if condition="$vboptions[cybchatbox_reverse_messages]">
                    ccb_MessagesDiv.scrollTop = ccb_MessagesDiv.scrollHeight;
                    </if>
                }
            }
            if (!Ccb_nowLoading)
            {
                fetch_object('cybcb_infoarea').style.display = 'none';
                fetch_object('ccb_entermessage').style.height = '$cybcb_height_input_wstatus';
            }
        }

        function Ccb_getUsers()
        {
            ccb_Users = new vB_AJAX_Handler(true);
            ccb_Users.onreadystatechange(Ccb_updateUsers);
            ccb_Users.send('misc.php?show=ccbusers');
        }

        function Ccb_updateUsers()
        {
            if (ccb_Users)
            {
                if (ccb_Users.handler.readyState == 4 && ccb_Users.handler.status == 200 && ccb_Users.handler.responseText)
                {
                    ccb_UsersDiv = fetch_object('cybcb_actusersarea');
                    ccb_UsersDiv.innerHTML = '<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">' + ccb_Users.handler.responseText + '</table>';
                    <if condition="(!$cybcb_cantpost OR ($cybcb_cantpost AND $vboptions[cybchatbox_auto_refresh_guests]))">
                    setTimeout('Ccb_getUsers()', ($vboptions[cybchatbox_auto_refresh_users] * 1000));
                    </if>
                }
            }
        }

        function Ccb_getSmilies()
        {
            document.getElementById("cybcb_smilies_more").style.display = "none";
            document.getElementById("cybcb_smilies_loading").style.display = "inline";
            ccb_Smilies = new vB_AJAX_Handler(true);
            ccb_Smilies.onreadystatechange(Ccb_updateSmilies);
            ccb_Smilies.send('misc.php?show=ccbsmilies');
        }

        function Ccb_updateSmilies()
        {
            if (ccb_Smilies)
            {
                if (ccb_Smilies.handler.readyState == 4 && ccb_Smilies.handler.status == 200 && ccb_Smilies.handler.responseText)
                {
                    ccb_SmiliesDiv = fetch_object('cybcb_smiliesarea_full');
                    ccb_SmiliesDiv.innerHTML = '<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">' + ccb_Smilies.handler.responseText + '</table>';
                }
            }
            ccb_SmiliesInitDiv = fetch_object('cybcb_smiliesarea_init');
            ccb_SmiliesInitDiv.style.borderBottom = '0px';
        }

        function Ccb_LimitChars(textbox, counter, climit) {
            var cybcb_textbox = textbox ? textbox : "ccb_entermessage";
            var cybcb_counter = counter ? counter : "cybcb_counter";
            var cybcb_charlimit = climit ? climit : 1024;
            var field = document.getElementById(cybcb_textbox);
            if (field && field.value.length >= cybcb_charlimit) {
                field.value = field.value.substring(0, cybcb_charlimit);
            }
            var txtField = document.getElementById(cybcb_counter);
            if (txtField)
            {
                cybcb_lengthinfo = cybcb_charlimit - field.value.length;
                if (cybcb_lengthinfo<100 && cybcb_lengthinfo>9)
                {
                    informik = "0"+cybcb_lengthinfo;
                }
                else if (cybcb_lengthinfo<10)
                {
                    informik = "00"+cybcb_lengthinfo;
                }
                else
                {
                    informik = cybcb_lengthinfo;
                }
                txtField.innerHTML = informik;
            }
        }

        function Ccb_postMessage(formObj)
        {
            fetch_object('cybcb_infoarea').innerHTML = ':: $vbphrase[cybcb_status_posting]';
            fetch_object('cybcb_infoarea').style.display = 'inline';
            fetch_object('ccb_entermessage').style.height = '50px';
            ccb_Message = new vB_AJAX_Handler(true);
            ccb_Message.onreadystatechange(Ccb_postedMessage);
            if (Ccb_nowPosting)
            {
                Ccb_nowPosting = false;
                Ccb_getMessages();
                return false;
            }
            ccb_NewMessage = formObj.ccb_entermessage.value;
            if (ccb_NewMessage.replace(/ /g, '') == '')
            {
                alert('$vbphrase[cybcb_must_enter]');
                return false;
            }
            ccb_Message.send('misc.php', 'do=cb_postnew&ccb_newmessage=' + PHP.urlencode(ccb_NewMessage) + Ccb_getMValues(document.forms['cybcb_post_form']));
            fetch_object('ccb_entermessage').value = '';
            fetch_object('ccb_entermessage').focus();
            fetch_object('cybcb_counter').innerHTML = '$vboptions[cybchatbox_charlimit]';
            Ccb_nowPosting = true;
            return false;
        }

        function Ccb_postedMessage()
        {
            if (ccb_Message.handler.readyState == 4 && ccb_Message.handler.status == 200)
            {
                Ccb_nowPosting = false;
                Ccb_getMessages();
            }
        }

        function Ccb_getMValues(sbForm)
        {
            rString = '';
            inputObjs = sbForm.getElementsByTagName('input');
            for (i = 0; i < inputObjs.length; i++)
            {
                if (inputObjs[i].type == 'hidden' && inputObjs[i].value != '')
                {
                    rString += '&' + inputObjs[i].name + '=' + PHP.urlencode(inputObjs[i].value);
                }
            }
            return rString;
        }

        function Ccb_updateInput(sProperty, setting)
        {
            Ccb_saveCookie('cybchatbox_' + sProperty, setting);
            eval('document.forms["cybcb_post_form"].ccb_entermessage.style.' + sProperty + ' = "' + setting + '"');
            eval('document.forms["cybcb_post_form"].' + sProperty + '.value = "' + setting + '"');
        }

        function Ccb_updateColor(eSelector, sProperty)
        {
            Ccb_updateInput(sProperty, eSelector.options[eSelector.options.selectedIndex].value)
        }

        function Ccb_updateStyle(sProperty)
        {
            trueValue = ''
            switch (sProperty)
            {
                case 'fontWeight':
                falseValue = 'bold'
                break;
                case 'textDecoration':
                falseValue = 'underline'
                break;
                case 'fontStyle':
                falseValue = 'italic'
                break;
            }
            Ccb_saveCookie('cybchatbox_' + sProperty, ((eval('document.forms["cybcb_post_form"].' + sProperty + '.value'))? trueValue : falseValue));
            return (eval('document.forms["cybcb_post_form"].' + sProperty + '.value'))? trueValue : falseValue;
        }

        function Ccb_updateSButton(cButton, sProperty)
        {
            if (cButton.value.match(/\+/))
            {
                cButton.value = cButton.value.replace('+', '')
            }
            else
            {
                cButton.value = '+' + cButton.value 
            }
            Ccb_updateInput(sProperty, Ccb_updateStyle(sProperty))
        }

        function Ccb_insertSmilie(smcode)
        {
            document.forms["cybcb_post_form"].ccb_entermessage.value += ' ' + smcode;
            return false;
        }

        function Ccb_saveCookie(name, value)
        {
            expires = new Date();
            expires.setTime(expires.getTime() + (1000 * 86400 * 365));
            if (value != '')
            {
                set_cookie(name, value, expires);
            }
            else
            {
                delete_cookie(name);
            }
            if (name=="ccb_m_size")
            {
                document.getElementById('ccb_entermessage').style.fontSize = value +"px";
                Ccb_getMessages();
            }
        }

        function Ccb_readCookies()
        {
            memory_color = fetch_cookie('cybchatbox_color');
            memory_bold = fetch_cookie('cybchatbox_fontWeight');
            memory_underline = fetch_cookie('cybchatbox_textDecoration');
            memory_italic = fetch_cookie('cybchatbox_fontStyle');
            if (memory_color != null && memory_color != '')
            {
                obj = fetch_object('ccb_m_color');
                for (i = 0; i < obj.options.length; i++)
                {
                    if (obj.options[i].value == memory_color)
                    {
                        obj.options[i].selected = true;
                        Ccb_updateColor(obj, 'color');
                    }
                }
            }
            if (memory_bold != null && memory_bold != '')
            {
                Ccb_updateSButton(fetch_object('ccb_m_bold'), "fontWeight");
            }
            if (memory_underline != null && memory_underline != '')
            {
                Ccb_updateSButton(fetch_object('ccb_m_underline'), "textDecoration");
            }
            if (memory_italic != null && memory_italic != '')
            {
                Ccb_updateSButton(fetch_object('ccb_m_italic'), "fontStyle");
            }
        }

        function Ccb_selectAll(obj)
        {
            var arrInput = document.getElementsByTagName("input");
            for (i=0; i<arrInput.length; i++) {
                if (arrInput[i].type == 'checkbox') {
                    arrInput[i].checked = obj.checked;
                }
            }
        }

        function Ccb_Confirm(what,who,name)
        {
            if (what=='delsel')
            {
                if (confirm('$vbphrase[cybcb_confirm_delete_all]'))
                {
                    if (confirm('$vbphrase[cybcb_confirm_delete_all_again]'))
                    {
                        location.href = "misc.php?do=cybcb_delall";
                    }
                }
            }

            if (what=='deluser')
            {
                if (confirm('<phrase 1="'+name+'">$vbphrase[cybcb_delete_user]</phrase>?'))
                {
                    location.href = 'misc.php?do=ccb_deluser&u='+who;
                }
            }

            if (what=='delmess')
            {
                if (confirm('$vbphrase[cybcb_delete_mess]?'))
                {
                    location.href = 'misc.php?do=ccb_delmess&m='+who;
                }
            }

            if (what=='banuser')
            {
                if (confirm('<phrase 1="'+name+'">$vbphrase[cybcb_ban_user]</phrase>?'))
                {
                    location.href = 'misc.php?do=ccb_banuser&u='+who;
                }
            }

            if (what=='unbanuser')
            {
                if (confirm('<phrase 1="'+name+'">$vbphrase[cybcb_unban_user]</phrase>?'))
                {
                    location.href = 'misc.php?do=ccb_unbanuser&u='+who;
                }
            }
        }

        function Ccb_controlArcMessage()
        {
            this.cybcb_msgid = -1
            this.active = false
        }

        Ccb_nowEditing = false;
        Ccb_controlArcMessage.prototype.Edit = function (cybcb_msgid)
        {
            if (cybcb_msgid != this.cybcb_msgid)
            {
                if (this.active)
                {
                    this.cancelActive(this.cybcb_msgid)
                }
                this.active = true;
                this.cybcb_msgid = cybcb_msgid;
                fetch_object('cybcb_message_edit_' + this.cybcb_msgid).style.display = '';
                fetch_object('cybcb_message_' + this.cybcb_msgid).style.display = 'none';
                fetch_object('cybcb_editlink_' + this.cybcb_msgid).style.display = 'none';
                fetch_object('cybcb_editbutton_' + this.cybcb_msgid).style.display = '';
                fetch_object('cybcb_message_editor_' + this.cybcb_msgid).focus();
            }
            return false;
        }

        Ccb_controlArcMessage.prototype.cancelActive = function (cybcb_msgid)
        {
            fetch_object('cybcb_message_edit_' + this.cybcb_msgid).style.display = 'none';
            fetch_object('cybcb_message_' + this.cybcb_msgid).style.display = '';
            fetch_object('cybcb_editlink_' + this.cybcb_msgid).style.display = '';
            fetch_object('cybcb_editbutton_' + this.cybcb_msgid).style.display = 'none';
            return false;
        }

        Ccb_controlArcMessage.prototype.Save = function ()
        {
            if (this.active)
            {
                ccb_Message = new vB_AJAX_Handler(true);
                ccb_Message.onreadystatechange(Ccb_savedMessage);
                if (Ccb_nowEditing)
                {
                    alert('$vbphrase[cybcb_busy]');
                    return false;
                }
                ShoutMsg = fetch_object('cybcb_message_editor_' + this.cybcb_msgid).value;
                if (ShoutMsg.replace(/ /g, '') == '')
                {
                    alert('$vbphrase[cybcb_must_enter]');
                    return false;
                }
                ccb_Message.send('misc.php', 'do=cybcb_editmessage&id=' + this.cybcb_msgid + '&ccb_editmessage=' + PHP.urlencode(ShoutMsg));
                Ccb_nowEditing = true;
            }
            return false;
        }

        ccb_MessageID = new Ccb_controlArcMessage;

        function Ccb_savedMessage()
        {
            if (ccb_Message.handler.readyState == 4 && ccb_Message.handler.status == 200)
            {
                Ccb_nowEditing = false;
                ccb_MessageID.active = false;
                ccb_MessageID.cancelActive(ccb_MessageID.cybcb_msgid);
                fetch_object('cybcb_message_' + ccb_MessageID.cybcb_msgid).innerHTML = ccb_Message.handler.responseText;
                ccb_MessageID.cybcb_msgid = -1;
            }
        }

        function Ccb_updateSmiliePreview(smiliesource)
        {
            smiliearea = fetch_object("cybcb_smiliepreview");
            smiliearea.src=smiliesource;
        }

        function Ccb_Init()
        {
            document.getElementById('ccb_m_color').style.backgroundColor = document.getElementById('ccb_m_color').value;
        }

        <if condition="($_REQUEST['do']!='ccarc')">
        Ccb_readCookies();
        Ccb_getMessages();
        Ccb_Init();
        </if>
    -->
    </script>

    <if condition="($_REQUEST['do']=='ccarc')">
        <form id="cybcb_search" name="cybcb_search" action="misc.php?do=ccarc" method="post">
        <input type="hidden" name="securitytoken" value="$cybcb_sectok" />
        <table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
            <tr valign="bottom">
                <td align="$stylevar[left]"><input type="text" class="bginput" name="cbt" style="font-size:11px;" size="25" onfocus="if(!this._haschanged){this.value=''};this._haschanged=true;" value="$cybcb_search_value" /> <input type="submit" class="button" value="$vbphrase[go]" /></td>
                <if condition="($pagenav AND !$_REQUEST['ccbnomess'])"><td align="$stylevar[right]">$pagenav</td></if>
            </tr>
        </table>
        </form>

        <form id="cybcb_muldel" name="cybcb_muldel" action="misc.php?do=cybcb_multidel" method="post" onsubmit="return confirm('$vbphrase[cybcb_confirm_delete]')">
        <input type="hidden" name="securitytoken" value="$cybcb_sectok" />
        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
            <tr>
                <td class="tcat" $cybcb_archivecolspan >
                    <span id="cybchatmenuccarc">$vbphrase[cybcb_archive] <script language="Javascript" type="text/javascript"> vbmenu_register("cybchatmenuccarc"); </script></span>
                </td>
            </tr>
            <if condition="($vboptions[cybchatbox_auto_prune]!='')">
            <tr>
                <td class="alt1" $cybcb_archivecolspan ><span class="smallfont"><phrase 1="$vboptions[cybchatbox_auto_prune]">$vbphrase[cybcb_autoprune_note]</phrase></span></td>
            </tr>
            </if>
            <if condition="($cybcb_targettext!='')">
            <tr>
                <td class="alt2" $cybcb_archivecolspan ><span class="smallfont" style="float:$stylevar[right]">$vbphrase[cybcb_switchtoall]</span><span class="smallfont"><phrase 1="$cybcb_targettext">$vbphrase[cybcb_showingsearch]</phrase></span></td>
            </tr>
            </if>
            <if condition="($cybcb_targetuser!='')">
            <tr>
                <td class="alt2" $cybcb_archivecolspan ><span class="smallfont" style="float:$stylevar[right]">$vbphrase[cybcb_switchtoall]</span><span class="smallfont">$vbphrase[cybcb_showinguser]</span></td>
            </tr>
            </if>
            <if condition="(($cybcb_totalentries>0) AND $cybcb_msgs_arc AND !$_REQUEST['ccbnomess'])">
            <tr>
                <td class="thead" width="1%">$vbphrase[time]</td>
                <td class="thead" width="1%" align="center">$vbphrase[user]</td>
                <td class="thead" colspan="2">$vbphrase[message]</td>
                <if condition="($cybcb_canmod AND ($cybcb_totalentries>0))"><td class="thead"><input type="checkbox" name="cybcb_checkall" id="cybcb_checkall" value="" onclick="Ccb_selectAll(this);" /></td></if>
            <tr>
            $cybcb_msgs_arc
            <else />
                <tr>
                    <td class="alt1" width="100%" align="center">$vbphrase[cybcb_no_messages]</td>
                <tr>
            </if>
            <if condition="($cybcb_canmod AND ($cybcb_totalentries>0) AND $cybcb_msgs_arc AND !$_REQUEST['ccbnomess'])">
            <tr align="right">
                <td class="tcat" $cybcb_archivecolspan><input type="submit" name="cybcb_muldel_submit" class="smallfont" value="&nbsp;$vbphrase[cybcb_delete_selected]&nbsp;" onclick="confirmation();" /></td>
            </tr>
            </if>
        </table>
        </form>
        <if condition="($pagenav AND !$_REQUEST['ccbnomess'])">
            <table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-top:3px">
                <tr>
                    <td align="$stylevar[right]">$pagenav</td>
                </tr>
            </table>
        </if>
    </if>

    <div class="vbmenu_popup" <if condition="($_REQUEST['do']=='ccarc')">id="cybchatmenuccarc_menu"<else />id="cybchatmenuccbox_menu"</if> style="display:none;">
        <table cellpadding="4" cellspacing="1" border="0">
            <tr>
                <td class="thead">$vbphrase[options]</td>
            </tr>
            <if condition="($_REQUEST['do']!='cchatbox')">
                <tr>
                    <td class="vbmenu_option"><a href="misc.php?do=cchatbox">$vbphrase[cybcb_go_separate]</a></td>
                </tr>
            </if>
            <if condition="($_REQUEST['do']!='ccarc')">
                <tr>
                    <td class="vbmenu_option"><a href="misc.php?do=ccarc">$vbphrase[cybcb_go_archive]</a></td>
                </tr>
            </if>
            <if condition="($cybcb_totalmessages AND (($_REQUEST['do']=='cchatbox') OR ($_REQUEST['do']=='ccarc')))">
                <tr>
                    <td class="thead">$vbphrase[cybcb_statistics]</td>
                </tr>
                <tr>
                    <td class="vbmenu_option" title="nohilite">
                        $vbphrase[cybcb_total_messages]: $cybcb_totalmessages
                    </td>
                </tr>
                <tr>
                    <td class="vbmenu_option" title="nohilite">
                        <phrase 1="$vboptions[cybchatbox_stats_lastxhours]">$vbphrase[cybcb_last_x_hours_messages]</phrase>: $cybcb_xhoursmessages
                    </td>
                </tr>
                <if condition="$cybcb_mymessages">
                    <tr>
                        <td class="vbmenu_option" title="nohilite">
                            $vbphrase[cybcb_my_messages]: <a href="misc.php?do=ccarc&cbu=$bbuserinfo[userid]">$cybcb_mymessages</a>
                        </td>
                    </tr>
                </if>
                <if condition="($cybcb_topx_res > 1)">
                    <tr>
                        <td class="thead">$vbphrase[cybcb_top_x_chatters]</td>
                    </tr>
                    <tr>
                        <td class="vbmenu_option" title="nohilite">$cybcb_topchatters</td>
                    </tr>
                </if>
            </if>
            <if condition="($cybcb_candelall AND (($_REQUEST['do']=='cchatbox') OR ($_REQUEST['do']=='ccarc')))">
                <tr>
                    <td class="thead">$vbphrase[cybcb_mod_options]</td>
                </tr>
                <tr>
                    <td class="vbmenu_option">
                        <a href="javascript:Ccb_Confirm('delsel');">$vbphrase[cybcb_delete_all]</a>
                    </td>
                </tr>
            </if>
            <if condition="($cybcb_banlist)">
                <tr>
                    <td class="thead">$vbphrase[cybcb_banned_list]</td>
                </tr>
                <tr>
                <td style="background-color:$stylevar[vbmenu_option_bgcolor];">
                    <div id="cybcb_bannedarea" style="max-height:150px;overflow:auto;background-color:$stylevar[alt1_bgcolor];">
                        <table cellpadding="1" cellspacing="0" border="0" width="100%">
                            $cybcb_banlist
                        </table>
                    </div>
                </td>
            </tr>
            </if>
            <tr>
                <td class="thead">$vbphrase[cybcb_search_chatbox]</td>
            </tr>
            <tr>
                <td class="vbmenu_option"><a href="misc.php?ccbfind=unread">$vbphrase[cybcb_find_first_unread]</a></td>
            </tr>
            <if condition="($bbuserinfo[userid])">
            <tr>
                <td class="vbmenu_option"><a href="misc.php?ccbfind=$bbuserinfo[userid]">$vbphrase[cybcb_find_your_last]</a></td>
            </tr>
            </if>
            <if condition="($_REQUEST['do']!='ccarc')">
                <tr>
                    <td class="vbmenu_option" title="nohilite">
                        <form id="cybcb_search" name="cybcb_search" action="misc.php?do=ccarc" method="post">
                            <input type="hidden" name="securitytoken" value="$cybcb_sectok" />
                            <input type="text" class="bginput" style="font-size:11px;" name="cbt" size="10" onfocus="if(!this._haschanged){this.value=''};this._haschanged=true;" value="$vbphrase[cybcb_search_chatbox]" /> <input type="submit" class="button" value="$vbphrase[go]" />
                        </form>
                    </td>
                </tr>
            </if>
        </table>
    </div>

    <if condition="(($_REQUEST['do']=='cchatbox') OR ($_REQUEST['do']=='ccarc'))">
        <br />
        <div id="cybcb_actusersarea">&nbsp;</div>
        <br />
        <div style="float:$stylevar[right]">$forumjump</div>
        <br />

        $footer
        </body>
        </html>
    </if>


and use excel code for the FORUMHOME template
 
Hi AmN i cant believe i found you here also but however i just want to let you know that i have made this for vBulletin 4, not only for VSa - ChatBox (AJAX) v. 3.0 but also for v2bShout - (no refreshing) vB4 and [DBTech] vBShout Pro & Lite v5.1.0!
 
I dont love vb4, i need this plugin for vb3.xx, so i dont have much time in the last few days but i will create this, this is CYB Chatbox + CYB advanced Stats. !
 
try

PHP:
<if condition="!in_array($forumid, array(125,126,127,128,129))">latest posts code here</if>

change the numbers to the forums you want to exclude
 
ive installed it latest post working well thnaks for the info.

just 1 problem when i go to make a new post etc doesnt matter what page i open the latest posts is appearing as well any way just to have it show next to shout box ?

and not on every page ?
 
you probably added the "include" for the latest posts on more than one page m8.

Make sure its only on "index_body.html" - or w/e the vBulletin alternative is.
 
sorry to ask again jay were should i be looking to change to what u said ?

and i set the hook location to cache_templates is that correct ?
 
Status
Not open for further replies.
Back
Top