Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

Reply
 
Thread Tools
Dream's Chatbox Details »»
Dream's Chatbox
Version: 2.1.1, by Dream Dream is offline
Developer Last Online: Sep 2010 Show Printable Version Email this Page

Category: Chat Modifications - Version: 3.7.x Rating:
Released: 01-11-2008 Last Update: 10-09-2008 Installs: 142
DB Changes Uses Plugins Template Edits
Re-useable Code Additional Files Translations  
No support by the author.

This adds a Chatbox in your forum home page.

Here's how it works: every 5 minutes the chatbox asks the server if there are new messages. You can change this 5 minutes to any number of seconds you want, but the lower you go the more server resources the chatbox uses.

Features:
- AJAX
- Pages
- Change refresh rate
- Hide chatbox content from chosen usergroups
- Set usergroups that can't send messages
- Set moderator usergroups that can delete messages
- Can disable auto refresh for guests
- Prune messages by user ID, user name, days old or all messages
- Enable smilies, bbcode and/or [ img ]
- Automatic URL parsing
- Option for users to delete own messages
- Smilies popup with all smilies you can use
- Who's Online Support
- User names uses usergroup colors
- Ban Users
- /me code
- Message colors
- and more

This mod is final, no new features will be added.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
ahmadatom

Comments
  #72  
Old 09-13-2008, 05:47 PM
pedroenf pedroenf is offline
 
Join Date: Jun 2006
Location: Portugal
Posts: 308
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by pedroenf View Post
Does anyone knows how to align the chats and how to change the input field background color?


Anyone?
Reply With Quote
  #73  
Old 09-15-2008, 05:02 PM
K-Lex K-Lex is offline
 
Join Date: Jul 2008
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey guys ive installed the chatbox and if i write something and press enter or klick send

I see this error in a new dialog window -.-

Hope somone can help me ^^

PHP Code:
Errorundefined <html><head><title>Chatbox</title><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

<
meta name="generator" content="vBulletin 3.7.3" />



<
meta name="keywords" content="" />

<
meta name="description" content="" />





<!-- 
CSS Stylesheet -->

<
style type="text/css" id="vbulletin_css">

/**

* vBulletin 3.7.3 CSS

* Style: 'vBlueize'; Style ID: 5

*/

body

{

    
background#006fcd url(images/vblue/misc/bg.jpg) no-repeat top center;

    
color#000000;

    
font10pt verdanagenevalucida'lucida grande'arialhelveticasans-serif;

    
margin5px 10px 10px 10px;

    
padding0px;

}

a:linkbody_alink

{

    
color#0066FF;

}

a:visitedbody_avisited

{

    
color#0066FF;

}

a:hovera:activebody_ahover

{

    
color#006699;

}

.
page

{

    
background#FFFFFF;

    
color#000000;

}

tdthpli

{

    
font10pt verdanagenevalucida'lucida grande'arialhelveticasans-serif;

}

.
tborder

{

    
background#CCCCCC;

    
color#000000;

    
border1px solid #0066FF;

}

.
tcat

{

    
background#869BBF url(images/vblue/gradients/gradient_tcat.gif) repeat-x top left;

    
color#FFFFFF;

    
fontbold 10pt verdanagenevalucida'lucida grande'arialhelveticasans-serif;

}

.
tcat a:link, .tcat_alink

{

    
color#ffffff;

    
text-decorationnone;

}

.
tcat a:visited, .tcat_avisited

{

    
color#ffffff;

    
text-decorationnone;

}

.
tcat a:hover, .tcat a:active, .tcat_ahover

{

    
color#FFFF66;

    
text-decorationunderline;

}

.
thead

{

    
background#5C7099 url(images/vblue/gradients/gradient_thead.gif) repeat-x top left;

    
color#FFFFFF;

    
fontbold 11px tahomaverdanagenevalucida'lucida grande'arialhelveticasans-serif;

}

.
thead a:link, .thead_alink

{

    
color#FFFFFF;

}

.
thead a:visited, .thead_avisited

{

    
color#FFFFFF;

}

.
thead a:hover, .thead a:active, .thead_ahover

{

    
color#FFFF00;

}

.
tfoot

{

    
background#5C7099 url(images/vblue/gradients/gradient_thead.gif) repeat-x top left;

    
color#E0E0F6;

}

.
tfoot a:link, .tfoot_alink

{

    
color#E0E0F6;

}

.
tfoot a:visited, .tfoot_avisited

{

    
color#E0E0F6;

}

.
tfoot a:hover, .tfoot a:active, .tfoot_ahover

{

    
color#FFFF66;

}

.
alt1, .alt1Active

{

    
background#F5F5FF;

    
color#000000;

}

.
alt2, .alt2Active

{

    
background#E1E4F2;

    
color#000000;

}

.
inlinemod

{

    
background#FFFFCC;

    
color#000000;

}

.
wysiwyg

{

    
background#F5F5FF;

    
color#000000;

    
font10pt verdanagenevalucida'lucida grande'arialhelveticasans-serif;

    
margin5px 10px 10px 10px;

    
padding0px;

}

.
wysiwyg a:link, .wysiwyg_alink

{

    
color#22229C;

}

.
wysiwyg a:visited, .wysiwyg_avisited

{

    
color#22229C;

}

.
wysiwyg a:hover, .wysiwyg a:active, .wysiwyg_ahover

{

    
color#FF4400;

}

textarea, .bginput

{

    
font10pt verdanagenevalucida'lucida grande'arialhelveticasans-serif;

}

.
bginput option, .bginput optgroup

{

    
font-size10pt;

    
font-familyverdanagenevalucida'lucida grande'arialhelveticasans-serif;

}

.
button

{

    
font11px verdanagenevalucida'lucida grande'arialhelveticasans-serif;

}

select

{

    
font11px verdanagenevalucida'lucida grande'arialhelveticasans-serif;

}

optionoptgroup

{

    
font-size11px;

    
font-familyverdanagenevalucida'lucida grande'arialhelveticasans-serif;

}

.
smallfont

{

    
font11px verdanagenevalucida'lucida grande'arialhelveticasans-serif;

}

.
time

{

    
color#666686;

}

.
navbar

{

    
font11px verdanagenevalucida'lucida grande'arialhelveticasans-serif;

}

.
highlight

{

    
color#FF0000;

    
font-weightbold;

}

.
fjsel

{

    
background#3E5C92;

    
color#E0E0F6;

}

.
fjdpth0

{

    
background#F7F7F7;

    
color#000000;

}

.
panel

{

    
background#E4E7F5 url(images/vblue/gradients/gradient_panel.gif) repeat-x top left;

    
color#000000;

    
padding10px;

    
border2px outset;

}

.
panelsurround

{

    
background#D1D4E0 url(images/vblue/gradients/gradient_panelsurround.gif) repeat-x top left;

    
color#000000;

}

legend

{

    
color#22229C;

    
font11px tahomaverdanagenevalucida'lucida grande'arialhelveticasans-serif;

}

.
vbmenu_control

{

    
background#5C7099 url(images/vblue/gradients/gradient_thead.gif) repeat-x top left;

    
color#FFFFFF;

    
fontbold 11px tahomaverdanagenevalucida'lucida grande'arialhelveticasans-serif;

    
padding3px 6px 3px 6px;

    
white-spacenowrap;

}

.
vbmenu_control a:link, .vbmenu_control_alink

{

    
color#FFFFFF;

    
text-decorationnone;

}

.
vbmenu_control a:visited, .vbmenu_control_avisited

{

    
color#FFFFFF;

    
text-decorationnone;

}

.
vbmenu_control a:hover, .vbmenu_control a:active, .vbmenu_control_ahover

{

    
color#FFFFFF;

    
text-decorationunderline;

}

.
vbmenu_popup

{

    
background#FFFFFF;

    
color#000000;

    
border1px solid #0B198C;

}

.
vbmenu_option

{

    
background#BBC7CE;

    
color#000000;

    
font11px verdanagenevalucida'lucida grande'arialhelveticasans-serif;

    
white-spacenowrap;

    
cursorpointer;

}

.
vbmenu_option a:link, .vbmenu_option_alink

{

    
color#22229C;

    
text-decorationnone;

}

.
vbmenu_option a:visited, .vbmenu_option_avisited

{

    
color#22229C;

    
text-decorationnone;

}

.
vbmenu_option a:hover, .vbmenu_option a:active, .vbmenu_option_ahover

{

    
color#FFFFFF;

    
text-decorationnone;

}

.
vbmenu_hilite

{

    
background#8A949E;

    
color#FFFFFF;

    
font11px verdanagenevalucida'lucida grande'arialhelveticasans-serif;

    
white-spacenowrap;

    
cursorpointer;

}

.
vbmenu_hilite a:link, .vbmenu_hilite_alink

{

    
color#FFFFFF;

    
text-decorationnone;

}

.
vbmenu_hilite a:visited, .vbmenu_hilite_avisited

{

    
color#FFFFFF;

    
text-decorationnone;

}

.
vbmenu_hilite a:hover, .vbmenu_hilite a:active, .vbmenu_hilite_ahover

{

    
color#FFFFFF;

    
text-decorationnone;

}

/* ***** styling for 'big' usernames on postbit etc. ***** */

.bigusername font-size14pt; }



/* ***** small padding on 'thead' elements ***** */

td.theadth.theaddiv.thead padding4px; }



/* ***** basic styles for multi-page nav elements */

.pagenav a text-decorationnone; }

.
pagenav td padding2px 4px 2px 4px; }



/* ***** de-emphasized text */

.shadea.shade:linka.shade:visited color#777777; text-decoration: none; }

a.shade:activea.shade:hover color#FF4400; text-decoration: underline; }

.tcat .shade, .thead .shade, .tfoot .shade color#DDDDDD; }



/* ***** define margin and font-size for elements inside panels ***** */

.fieldset margin-bottom6px; }

.
fieldset, .fieldset td, .fieldset p, .fieldset li font-size11px; }

</
style>

<
link rel="stylesheet" type="text/css" href="clientscript/vbulletin_important.css?v=373" />





<!-- / 
CSS Stylesheet -->



<
script type="text/javascript" src="clientscript/yui/yahoo-dom-event/yahoo-dom-event.js?v=373"></script>

<
script type="text/javascript" src="clientscript/yui/connection/connection-min.js?v=373"></script>

<
script type="text/javascript">

<!--

var 
SESSIONURL "";

var 
SECURITYTOKEN "1221492691-6b69ab60436e73274949217dd4e2fe435269f799";

var 
IMGDIR_MISC "images/vblue/misc";

var 
vb_disable_ajax parseInt("0"10);

// -->

</script>

<
script type="text/javascript" src="clientscript/vbulletin_global.js?v=373"></script>

<
script type="text/javascript" src="clientscript/vbulletin_menu.js?v=373"></script>



    <
script type="text/javascript">

    <!--

    var 
limitfrom "";    

    function 
createAjaxObject() {//not used anymore, using vB Ajax Handler

        
var xmlHttp;

        try {

            
// Firefox, Opera 8.0+, Safari

            
xmlHttp = new XMLHttpRequest();

        }

        catch (
e) {

            
// Internet Explorer

            
try {

                
xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");

            }

            catch (
e) {

                try {

                    
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");

                }

                catch (
e) {

                    
alert("Your browser does not support AJAX!");

                    return 
false;

                }

            }

        }

        return 
xmlHttp;

    }

    

    function 
getNewShouts() {

        if (
actualpage == 1) {

            if (
isRefreshing == 0) {

                
isRefreshing 1;

                
disableRefreshButton();

                
hermes = new vB_AJAX_Handler(true);

                
hermes.onreadystatechange(processNewShouts);

                
hermes.send('chatbox.php''ajax=getshouts&lastshoutid=' lastshoutid);

            }

        } else {

            
refreshChatbox(011);

        }

    }

    

    function 
chatboxCheckRequest() {

        if (
hermes.handler.readyState == && hermes.handler.status == 200 && hermes.handler.responseText) {

            return 
true;

        }

        return 
false;

    }

    

    function 
processNewShouts() {

        if (
chatboxCheckRequest()) {

            
//try { eval(hermes.handler.responseText); }

            //catch (e) { window.alert(e.description); window.alert(hermes.handler.responseText); }

            
eval(hermes.handler.responseText);

            
updateChatbox(newshouts);

            
enableRefreshButton();

            
isRefreshing 0;

        }

    }

    

    function 
postShout() {

        
isRefreshing 1;

        
document.chatboxForm.elements['shout'].disabled true;

        
document.chatboxForm.elements['submit'].disabled true;

        var 
newshout document.chatboxForm.elements['shout'].value;

        
newshout PHP.urlencode(newshout);

        var 
shoutcolor PHP.urlencode(document.chatboxForm.elements['color'].value);

        
hermes = new vB_AJAX_Handler(true);

        
hermes.onreadystatechange(processPostShout);

        
hermes.send('chatbox.php''ajax=newshout&lastshoutid=' lastshoutid '&shout=' newshout '&color=' shoutcolor);

    }

    

    function 
processPostShout() {

        if (
chatboxCheckRequest()) {

            try {

                eval(
hermes.handler.responseText);

            } catch (
e) {

                
window.alert('Error: ' e.description ' ' hermes.handler.responseText);

                return;

            }

            
updateChatbox(newshouts);

            
isRefreshing 0;

            
document.chatboxForm.elements['shout'].value '';

            
document.chatboxForm.elements['shout'].disabled false;

            
document.chatboxForm.elements['submit'].disabled false;

            
document.chatboxForm.shout.focus();

        }

    }

    

    function 
updateChatbox(newshouts
Reply With Quote
  #74  
Old 09-19-2008, 05:22 AM
trinkaespinhas trinkaespinhas is offline
 
Join Date: Dec 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi

cant type on chatbox, the msg i sthee but nothing apperars below the shout messege square.

any help?

Thanks in advanced
Reply With Quote
  #75  
Old 09-19-2008, 12:53 PM
pedroenf pedroenf is offline
 
Join Date: Jun 2006
Location: Portugal
Posts: 308
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by pedroenf View Post
Anyone?Does anyone knows how to align the chats and how to change the input field background color?

Anyone?
Reply With Quote
  #76  
Old 10-10-2008, 08:46 PM
Dream's Avatar
Dream Dream is offline
 
Join Date: Oct 2001
Posts: 2,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

minor update, enjoy

version 2.1.1
- color choosed by user now gets saved in a cookie. to update mod, just upload chatbox.php and chatbox_ajax_color.php
Reply With Quote
  #77  
Old 10-10-2008, 08:48 PM
Dream's Avatar
Dream Dream is offline
 
Join Date: Oct 2001
Posts: 2,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry not choosed, chosen, you got it
Reply With Quote
  #78  
Old 10-10-2008, 08:57 PM
Dream's Avatar
Dream Dream is offline
 
Join Date: Oct 2001
Posts: 2,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

updated the zip with updated install etc instructions

the mod version on the admincp will still show 2.1, not 2.1.1
Reply With Quote
  #79  
Old 10-15-2008, 04:37 PM
Pipo123 Pipo123 is offline
 
Join Date: Feb 2006
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could there be a bug:
- if url is posted it gets parsed, just like permissions say
- after a refresh the parsing is gone and plain ubb is showed
Reply With Quote
  #80  
Old 10-16-2008, 02:55 PM
SirFlash's Avatar
SirFlash SirFlash is offline
 
Join Date: Feb 2007
Location: Canada
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know this is not released for vb8 yet, but just so others know, I have this installed on vb3.8.0 BETA and it's working great! No problems.
Reply With Quote
  #81  
Old 10-22-2008, 04:31 AM
HTMMinion HTMMinion is offline
 
Join Date: May 2006
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not sure what happened, but suddenly I cannot post links in the chatbox anymore, it worked fine 2 days ago and i have not updated anything. I'm using version 2.1 with vBulletin Version 3.7.2. When I attempt to post a link I get the error "AJAX error, please try again. (HTTP status: 403 / Forbidden)".

I tried overwriting all the files for version 2.1 and overwriting the product xml import as well and I have the same issue.

Any ideas?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:57 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04711 seconds
  • Memory Usage 2,458KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete