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 - Dream's Chatbox (https://vborg.vbsupport.ru/showthread.php?t=167569)

AlexanderT 05-03-2008 03:21 PM

Check my post #36.

ssandgirls 05-09-2008 09:21 AM

Thankyou Dream....... Ive been using your 3.6 chatbox for a while... and just upgraded to this one , its working perfectly:)

bornoffire 05-09-2008 09:37 AM

Quote:

Originally Posted by AlexanderT (Post 1488112)
OK, I replaced

with

in getNewShouts(), and the error popup seems to be gone.

Where is getNewShouts()?

AlexanderT 05-09-2008 12:02 PM

In the main php file. It's a function there.

GateKeper 05-16-2008 05:18 PM

Tried what you suggest in the above post 36, still getting the Ajax error.

bornoffire 05-16-2008 07:16 PM

I tried and error went away for me, make sure you are doing correctly.

Stubbed 05-20-2008 05:26 AM

Quote:

Originally Posted by Dream (Post 1475382)
There are many different chatboxes to choose from too if you need more features. I don't think chatboxes should do and be so complicated as some are today though.

Exactly why I prefer to use your one..

One question though, I want to have it on a completely seperate page? I don't want it on the front page at all.

Dream 05-20-2008 05:57 AM

Just link to chatbox.php.

Stubbed 05-20-2008 08:25 AM

orly?

It appears that that doesn't put it in a skin however...

How much of a major would it be to do that? Just a basic page with this.

GateKeper 05-29-2008 12:20 AM

ok no more error message, but we are finding a big time lag, even though the refresh rate was set to 0 and or 3 , and or 5 seconds, members are telling us it take up to a minute to get the message, any ideas, and no our server is not the issue, but I have noticed that this really started once we went to 3.7.0, prior to that release, no lag at all

Any thoughts ?

Ryan Ashbrook 05-30-2008 02:22 AM

Hi Dream,

First off, I think your plugin is amazing. It works wonders and I especially love the use of AJAX.

However, my question is, what are your plans concerning the use of Ignore Lists?

My users have been complaining lately because the Chatbox does not honor the Ignore List.

I have plans to implement this myself, however I was wondering if you also had plans to add this in.

Thanks!

Dream 05-30-2008 04:18 PM

Hello Ryan, I don't plan on improving this mod anymore. But anyone is welcome to do so, and re-release it if they so wish.

Ryan Ashbrook 05-30-2008 07:45 PM

Thanks for clarifying. :)

I may yet take you up on that (improving and re-releasing) if time permits. :)

GateKeper 06-02-2008 01:38 AM

Any thoughts or suggestions ?

Quote:

Originally Posted by GateKeper (Post 1534584)
ok no more error message, but we are finding a big time lag, even though the refresh rate was set to 0 and or 3 , and or 5 seconds, members are telling us it take up to a minute to get the message, any ideas, and no our server is not the issue, but I have noticed that this really started once we went to 3.7.0, prior to that release, no lag at all

Any thoughts ?


F0xy 06-04-2008 01:25 PM

is there no way to completely remove the chatbox for groups not allow to view it. at the minte guests see a big box with 'You don't have permission to see the Chatbox.' wrote on it which isn't exactly pleasing on the eye.

LCN2007 06-16-2008 01:58 AM

1st off great mod im a fan of alot of your code Dream.
Is there a way to display on all pages? Also how do i change the font size its so tiny.
Is their a way to add the date and or users in chat?

Sorry for all the questions

LCN2007 06-16-2008 10:14 PM

Anyone?

nick-harper 06-18-2008 09:22 PM

Quote:

Originally Posted by F0xy (Post 1540599)
is there no way to completely remove the chatbox for groups not allow to view it. at the minte guests see a big box with 'You don't have permission to see the Chatbox.' wrote on it which isn't exactly pleasing on the eye.


Code:

<if condition="is_member_of($bbuserinfo, x, c)">
<!-- Chatbox -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
        <thead>
        <tr>
                <td class="tcat"><a style="float:right" href="#top" onclick="return toggle_collapse('forumhome_chatbox')"><img id="collapseimg_forumhome_chatbox" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_chatbox].gif" alt="" border="0" /></a><a href="javascript:openChatbox()">$vbphrase[chatbox_chatbox]</a></td>
        </tr>
        </thead>
        <tbody id="collapseobj_forumhome_chatbox" style="$vbcollapse[collapseobj_forumhome_chatbox]">
        <tr>
                <td class="alt1" width="100%" colspan="2"><div class="smallfont" align="center"><iframe src="chatbox.php?nofocus=1" width="100%"$chatboxheight style="border: 0px" frameborder="0"></iframe></div></td>
        </tr>
        </tbody>
</table>
<br />
<!-- / Chatbox -->
<else />

   
</if>

That does the trick, change the Red letters to the numbers of the usergroups you want to see it :)

nureeves 06-22-2008 11:14 AM

Thanks so much for your hardwork Dreams :)

Warm regard from Jakarta :):)

sdsvtdriver 06-24-2008 01:51 AM

Thanks for the simple chatbox.

We received some concerns after we upgraded from the 1.x version from users who use mobile devices as they do not support AJAX.

Is there a simple way to display the Chatbox 1.3 code if AJAX is not supported? Will the Chatbox 1.3 code work with 2.1 as far as the DB is concerned? I saw 2.0 and 1.3 were available for 3.6, but only 2.1 for 3.7.

Thanks :)

wickedstangs 07-03-2008 01:42 PM

On the top left were it says ChatBox how do you link it to open in a new window?

Helmut71 07-17-2008 09:21 AM

I just noticed a js error when clicking on the chatbox-link. Anyone who can reproduce this??

Biya 07-18-2008 06:33 PM

why is it opening up as a home page and not giving any access to main page users can't log in at all.

when someone type my url my login page appears and in 4 second this chat box comes on and log in page goes away.

any suggestion what should I do to prevent it.

Dream 07-19-2008 02:50 PM

do you have multiple domains?

Biya 07-19-2008 10:49 PM

NO but I did not put my files in any directory,it is directly placed in public_html . and I don't have any homepage yet it is directing to index.php.

Alfa1 08-10-2008 06:44 PM

Is there a 'members in chatbox' function. Similar to the 'members in flashchat' modification? (Displays members in chat in 'What's going on').

siggen 08-17-2008 07:56 AM

It doesn't allow my users to write the scandinavian letters, ?, ? and ?. Using other letters that those in the english language causes an Ajax error...

Quote:

Ajax error, please try again. (HTTP status 503 / Service Temporarily Unavailable)
How can I fix this?

I really need som help here

pedroenf 09-05-2008 07:04 PM

Does anyone knows how to align the chats and how to change the input field background color?

pedroenf 09-07-2008 08:55 AM

Hello. Anyone?

scott_gersforum 09-08-2008 11:44 AM

Quote:

Originally Posted by siggen (Post 1600563)
It doesn't allow my users to write the scandinavian letters, ?, ? and ?. Using other letters that those in the english language causes an Ajax error...



How can I fix this?

I really need som help here

I am getting this Ajaz error at random from my English forum - it's coming from the chatbox.
Anyone know what is causing it?

pedroenf 09-13-2008 05:47 PM

Quote:

Originally Posted by pedroenf (Post 1615333)
Does anyone knows how to align the chats and how to change the input field background color?



Anyone?

K-Lex 09-15-2008 05:02 PM

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


trinkaespinhas 09-19-2008 05:22 AM

hi

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

any help?

Thanks in advanced

pedroenf 09-19-2008 12:53 PM

Quote:

Originally Posted by pedroenf (Post 1621365)
Anyone?Does anyone knows how to align the chats and how to change the input field background color?


Anyone?

Dream 10-10-2008 08:46 PM

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

Dream 10-10-2008 08:48 PM

sorry not choosed, chosen, you got it :p

Dream 10-10-2008 08:57 PM

updated the zip with updated install etc instructions

the mod version on the admincp will still show 2.1, not 2.1.1

Pipo123 10-15-2008 04:37 PM

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

SirFlash 10-16-2008 02:55 PM

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.

HTMMinion 10-22-2008 04:31 AM

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?


All times are GMT. The time now is 01:34 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.01854 seconds
  • Memory Usage 1,982KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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