vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Chat Modifications - Dream's Chatbox (https://vborg.vbsupport.ru/showthread.php?t=131002)

Dream 05-15-2007 02:05 AM

lol can you take a screenshot for me?

arco 05-15-2007 02:19 PM

Quote:

Originally Posted by Dream (Post 1247676)
And thanks a lot arco for helping me with support of this mod :)

No problem. :)

Amiga75 05-15-2007 07:35 PM

Quote:

I see you fixed that in your site, what did you do to fix it?
I changed the following
Code:

Line 524: echo '<div align="left"><div class="smallfont" id="shoutsDiv">';
Line 526: echo '</div></div>';
Line 596: echo "\n\n".'<div align="left"><div class="smallfont"><span id="timeNow">'.$date.'</span><form action="javascript:postShout()" name="chatboxForm"><input type="hidden" name="nofocus"><input type="hidden" name="isrefresh"><input type="hidden" name="repostshout"><input type="hidden" name="from"><input type="text" name="shout" size="'.$input_size.'" maxlength="255" class="smallfont"'.$disabled.' value="'.$message.'"> <input type="submit" name="submit" value="'.$text_send.'" class="button"'.$disabled.'>'.$refreshbutton.' '.$pagelinks.$smilieslink.'<br /></form></div></div>'."\n";


LockeAG 05-16-2007 05:03 AM

small bug, I can not leave the Chatbox collapsed.... They are users that doesn't want the Chatbox expanded...

Thnaks .!

see'a

SkippySkippy 05-16-2007 11:06 PM

I was so tired of the bulky and slow Java IRC chatroom... this was the perfect, easy solution (now my users that don't run Java can use this!). Installed... thanks!

Nominated for MotM.

-Skip

Tri@de 05-17-2007 06:17 AM

There's a way to put it only in a forum (ex: admin sub forum)?

nureeves 05-17-2007 03:58 PM

Some users that online via their mobile phone can't use this feature
any suggest?

TrIn@dOr 05-17-2007 07:17 PM

Soory, but can't delete shots, the usergroup of moderator must be primary?

TrIn@dOr 05-18-2007 11:21 AM

Quote:

Originally Posted by TrIn@dOr (Post 1249672)
Soory, but can't delete shots, the usergroup of moderator must be primary?

Is a fact, users can delete own messages, but Usergroups 5 and 6 can see X to delte others messages.

vB 3.6.7

fpattberg 05-18-2007 12:37 PM

Brilliant work Dream. It works like a charm and is exactly what I needed! :up:

Installed!

Fabian

Sir_Yaro 05-18-2007 02:53 PM

Quote:

Originally Posted by Dream (Post 1246637)
Download the zip file again and try product-chatbox-vB-3.5.xml please

It works!
Thank u very much!
That's what I call good support!! :)

Sir_Yaro 05-18-2007 03:54 PM

Hi!

Two questions.
  • Is there any way to edit shout(s)?
  • How to set different input field size on vBA than forum home ?
Generaly 50px input field is fine but vBA's columns are very narrow and 50px input field is way to long for vBA... :(


If u can show me how to detect current page (if it's vba page or forum home) I think I can do it by myself...


edit1
--------
firefox's error console says:
Quote:

Call to element via global ID/NAME. Insted of that
use document.getElementById() method from DOM W3C standard.

Line:380
and my friend additionally show me this:
Code:

shoutsDiv.innerHTML = newshouts + shoutsDiv.innerHTML;


function updateChatbox(newshouts) {
if (inputontop == 1) {
shoutsDiv.innerHTML = newshouts + shoutsDiv.innerHTML;
} else {
shoutsDiv.innerHTML = shoutsDiv.innerHTML + newshouts;
document.body.scrollTop = document.body.scrollHeight;
}
updateTimeNow();
}


Kahuna900 05-18-2007 11:58 PM

I have uninstalled this mod, but the links to it still remain in the admin menu. I can't seem to find where I can make those changes.

da420 05-19-2007 12:05 AM

Make sure you have deleted the files in /includes/xml/ and /admincp/...

arco 05-19-2007 03:03 AM

Quote:

Originally Posted by Sir_Yaro (Post 1250253)
  • Is there any way to edit shout(s)?
  • How to set different input field size on vBA than forum home ?
Generaly 50px input field is fine but vBA's columns are very narrow and 50px input field is way to long for vBA... :(

There's no way to edit the shouts. Only way at this moment is for example to use phpmyadmin to do it.

Input field size is set in the chatbox options in your admincp, and what you change it to should be visible in vBa just as it does in forum home. But maybe it works different in vB 3.5, all I know is that it works fine here.

Dem3ntedSn1per 05-19-2007 08:16 AM

Installed and working on 3.6.7 PL1. This is just what I needed! Thanks!

Somebody mentioned this a few pages ago (yes, I'm too lazy to go back and quote it). One of the styles I use wasn't showing text in the input area. The smallfont style for that theme has the text white, and the input box background unset (white) by default. Thought I'd share how I dealt with it.

In chatbox.php

Find
Code:

maxlength="255" class="smallfont"
Change to
Code:

maxlength="255" class="bginput"
For styles having problems
Edit Main CSS
Adjust the Input Fields section to appropriate background and/or text colors for you style.

The Input Fields section changes the style for all input fields in vBulletin. If you change the colors for them, you'll also want to edit the settings for <select> Menus to match. Otherwise your drop down lists will be a different style than input fields. This is very noticeable during registration or when editing a profile.

Zidane007nl 05-19-2007 11:30 AM

Reinstalled the mod (since I was using a kinda old version) and it works great now. Nice new features.

Sir_Yaro 05-19-2007 11:36 AM

Quote:

Originally Posted by arco (Post 1250585)
Input field size is set in the chatbox options in your admincp, and what you change it to should be visible in vBa just as it does in forum home.

I know this and that's why I ask how to change it. I want to get 2 different input field sizes. I can do it myself if someone show me how to check what page is currently browsed...

arco 05-19-2007 02:41 PM

Quote:

Originally Posted by Sir_Yaro (Post 1250759)
I know this and that's why I ask how to change it. I want to get 2 different input field sizes. I can do it myself if someone show me how to check what page is currently browsed...

Ok, now I understand. :) Different input field size in vBa and the forum home. I don't think thats doable. Dream please correct me if I'm wrong. :)

fpattberg 05-21-2007 09:48 AM

Hi.

I have instlled this and its works very nicely.

THere is just one thing. When you are going to "Whos is online" and a member/guest is on the main page it shows " Chatbox" instead of your index title of the main forum page.

Is there a way to fix this?

Thanks.

Fabian

Flow Fusion 05-21-2007 04:18 PM

I'm getting this error...

Database error in vBulletin 3.6.5:

Invalid SQL:
SELECT count(shoutid) AS total FROM chatbox;

MySQL Error : Table 'gifteds_lxp.chatbox' doesn't exist
Error Number : 1146
Date : Monday, May 21st 2007 @ 01:17:30 PM
Script : http://giftedsouls.net/gs/chatbox.php

Flow Fusion 05-21-2007 07:11 PM

How can I install the tables manually?

Fayden 05-22-2007 11:23 AM

Is there a possibility to auto-delete all the messages in the shoutbox after a few time?
Would be nice if someone could help me with this :)

arco 05-22-2007 01:48 PM

Quote:

Originally Posted by Fayden (Post 1252633)
Is there a possibility to auto-delete all the messages in the shoutbox after a few time?
Would be nice if someone could help me with this :)

Open the zip file and look in the cron directory for instructions on how to autoprune.

arco 05-22-2007 01:51 PM

Quote:

Originally Posted by Flow Fusion (Post 1252265)
How can I install the tables manually?

Try to drop the chatbox tables (if you have phpmyadmin) or uninstall the product, then reinstall it to see if that fixes it.

Flow Fusion 05-22-2007 08:52 PM

Quote:

Originally Posted by arco (Post 1252686)
Try to drop the chatbox tables (if you have phpmyadmin) or uninstall the product, then reinstall it to see if that fixes it.

I tried but to no avail.

santimariani 05-23-2007 01:39 PM

How does this compare to the inferno shoutbox in terms of resources used? thanks!

arco 05-23-2007 02:05 PM

Quote:

Originally Posted by Flow Fusion (Post 1252920)
I tried but to no avail.

Run this query:

Code:

CREATE TABLE ".TABLE_PREFIX."chatbox (
    `shoutid` INT( 10 ) NOT NULL AUTO_INCREMENT ,
    `userid` INT( 10 ) NOT NULL ,
    `username` VARCHAR( 100 ) NOT NULL ,
    `shout` VARCHAR( 255 ) NOT NULL ,
    `dateline` INT( 10 ) NOT NULL ,
    `ipaddress` VARCHAR( 16 ) DEFAULT '0' NOT NULL ,
    PRIMARY KEY ( `shoutid` )
    );


ComputerVitals 05-23-2007 04:07 PM

How can I add custom commands to this?
like the /me command..

TheBlackPoet 05-23-2007 07:05 PM

the more i look at it.... the more i like it... i was so used to shoutbox.., but my site kept crashing because of the amount of resources it stole..., but this will work just fine.... in conjunction with the big flashchat.....

and like everyone else... i'm trying to figure out why i cant paste the chat on the upper part of forumhome..

good job and thanks

Dream 05-25-2007 01:21 PM

Quote:

Originally Posted by ComputerVitals (Post 1253301)
How can I add custom commands to this?
like the /me command..

You would need to code it into chatbox.php

Quote:

Originally Posted by TheBlackPoet (Post 1253389)
the more i look at it.... the more i like it... i was so used to shoutbox.., but my site kept crashing because of the amount of resources it stole..., but this will work just fine.... in conjunction with the big flashchat.....

and like everyone else... i'm trying to figure out why i cant paste the chat on the upper part of forumhome..

good job and thanks

You should be able to do that just by following the instructions on chatbox below navbar.txt

Quote:

Originally Posted by santimariani (Post 1253247)
How does this compare to the inferno shoutbox in terms of resources used? thanks!

Depends what you put on your auto refresh interval. If you leave it 5 minutes, it would use a lot less server resources. But if you put like 10 seconds, I don't think it would be much different, maybe the Inferno one would use less because it should be optimized for that kind of refresh interval, but I don't know for sure because I don't know the Inferno one's code.

Flow Fusion 05-25-2007 01:41 PM

OK I see one of the other admin fixed it. Now can you tell me how do I slim it down?

http://giftedsouls.net/gs/index.php

Dream 05-25-2007 02:03 PM

I don't see anything there Flow Fusion, just another chat program.

What do you mean by slimming down?

Flow Fusion 05-25-2007 11:03 PM

Quote:

Originally Posted by Dream (Post 1254490)
I don't see anything there Flow Fusion, just another chat program.

What do you mean by slimming down?

I am the 'other admin' who 'fixed' it, LOL! What happened is that he had 2 different chat hacks running and they were conflicting---Try right now to straighten these things up as we speak!

Flow Fusion 05-25-2007 11:11 PM

Quote:

Originally Posted by arco (Post 1253252)
Run this query:

Code:

CREATE TABLE ".TABLE_PREFIX."chatbox (
    `shoutid` INT( 10 ) NOT NULL AUTO_INCREMENT ,
    `userid` INT( 10 ) NOT NULL ,
    `username` VARCHAR( 100 ) NOT NULL ,
    `shout` VARCHAR( 255 ) NOT NULL ,
    `dateline` INT( 10 ) NOT NULL ,
    `ipaddress` VARCHAR( 16 ) DEFAULT '0' NOT NULL ,
    PRIMARY KEY ( `shoutid` )
    );


This is what I get---

MySQL said: Documentation
#1064 - 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 '".TABLE_PREFIX."chatbox (
`shoutid` INT( 10 ) NOT NULL AUT

Flow Fusion 05-25-2007 11:34 PM

OK---I fixed it. The code you showed was right, but for some ungodly reason it would not query? What I did was over-write the ajax version with the non-ajax---then upgraded and viola'! It worked!!! Thanx!

Dream 05-27-2007 06:32 PM

Quote:

Originally Posted by Sir_Yaro (Post 1250253)
Hi!

Two questions.
  • Is there any way to edit shout(s)?
  • How to set different input field size on vBA than forum home ?
Generaly 50px input field is fine but vBA's columns are very narrow and 50px input field is way to long for vBA... :(


If u can show me how to detect current page (if it's vba page or forum home) I think I can do it by myself...


edit1
--------
firefox's error console says:

and my friend additionally show me this:
Code:

shoutsDiv.innerHTML = newshouts + shoutsDiv.innerHTML;


function updateChatbox(newshouts) {
if (inputontop == 1) {
shoutsDiv.innerHTML = newshouts + shoutsDiv.innerHTML;
} else {
shoutsDiv.innerHTML = shoutsDiv.innerHTML + newshouts;
document.body.scrollTop = document.body.scrollHeight;
}
updateTimeNow();
}


There's no way to edit shouts in the current version.

You can change the input size for both chatboxes (vBa and forum), but not for only the vBa one. That would require changing code but I'm afraid I wouldn't know how to do that.

I'll fix that firefox error (it's more of a warning than an error) in the next version.

Dream 05-28-2007 12:54 AM

200 installs gogogo ^_^

Dream 05-28-2007 01:37 AM

I have a question for people that use this mod.

If I were to add message colors (a select box that lets you select the color of your message), should just the message be colored or the whole line, including time and user name?

arco 05-28-2007 01:38 AM

Quote:

Originally Posted by Dream (Post 1255853)
200 installs gogogo ^_^

:up: :)

And get well soon. :)


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

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.02745 seconds
  • Memory Usage 1,839KB
  • 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
  • (7)bbcode_code_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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