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)

Flow Fusion 05-28-2007 01:16 PM

Quote:

Originally Posted by Dream (Post 1255898)
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?

Just the message imo.

What would be nice is if you could have usergroups shown in the color that the group is assigned. See, on our board, the mods are yellow, supermods are light blue, and admins are bold--that would be spectacular!

Mark.B 05-28-2007 02:11 PM

Quote:

Originally Posted by Dream (Post 1255898)
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?

Well I think just the message.

I have already amneded things slightly to show the time using <span class="time"> so that it matches the rest of vB.

Dream 05-28-2007 04:12 PM

Quote:

Originally Posted by Flow Fusion (Post 1256182)
Just the message imo.

What would be nice is if you could have usergroups shown in the color that the group is assigned. See, on our board, the mods are yellow, supermods are light blue, and admins are bold--that would be spectacular!

You mean messages in the color of the user group?

agsguar 05-28-2007 07:13 PM

Hi, dream!!

Thank you for the chatbox!!

I have a question! jeje..

Who can I limit the number of smiles, We have more than 150 smiles, and this spend too time to show all smiles?

Could you help me with this issue?

Thank you in advance!

Dream 05-28-2007 07:23 PM

Hi agsguar,

You need to edit your chatbox.php to limit the number of smilies

In chatbox.php, find

$i = 0;
while( $smilie = $db->fetch_array( $result ) ) {

and change it for

$i = 0; $i2 = 0;
while( $smilie = $db->fetch_array( $result ) AND $i2 < XXX ) {
$i2++;

Where XXX is the number of smilies to show

Let me know if this works for you

Euda 05-28-2007 11:43 PM

Dream,

I haven't marked installed yet, because I'm having an alignment problem. I've been all over the code in the templates and php files and can not resolve this. I've tried everything.

Everything inside the chat box is aligned to the center. Could you assist me by telling me how and where to place the code to force it to align to the left?

I am using the default style, so it's not a style issue, well, as far as I can see. The title of the chatbox is aligned to the left, but the input box and all shouts are centered.

Thank you,

Damion

Dream 05-28-2007 11:47 PM

One user had this problem and posted his fix

https://vborg.vbsupport.ru/showpost....&postcount=403

I'm not sure why this is happening with you guys

agsguar 05-29-2007 12:03 AM

Is working perfect..

thank you.. one more... (sorry)

In my case I have a many forders in smiles folder. example.

/images/smilies/animal
/images/smilies/default
/images/smilies/special
/images/smilies/fresas
/images/smilies/general
/images/smilies/grandes
/images/smilies/nuevas

and the hack take this directory /images/smilies/nuevas.

this images are too large, I preffer to use /images/smilies/general how can change this option.

i dont have problem to make this change manually.

Thank you in advance.!!

Dream 05-29-2007 12:37 AM

So, just show smilies in /images/smilies/general ? Or other folders as well?

nureeves 05-29-2007 08:37 AM

hello,
do this mod takes more bandwith?

agsguar 05-29-2007 12:44 PM

Quote:

Originally Posted by Dream (Post 1256558)
So, just show smilies in /images/smilies/general ? Or other folders as well?

I preffer only show the general folder. or could be show in random mode with all folders?? jeje

Thank you!

Euda 05-30-2007 02:28 AM

Quote:

Originally Posted by Dream (Post 1256536)
One user had this problem and posted his fix

https://vborg.vbsupport.ru/showpost....&postcount=403

I'm not sure why this is happening with you guys

There we go, thank you so much!!!!!

MARKED AS INSTALLED!!!!

:D:cool:

Dream 05-31-2007 11:06 PM

Updated, version 1.8

- Forced align="left" on main <div>s because people were having problems with the chatbox content being centered.

- Changed javascript function name from deleteShout() to deleteMessage(), because this is a chatbox not a shoutbox :P and the name was visible to users on mouseover

- Added time CSS class to times so it matches the rest of the forum (btw Mark I always loved your forum ;) since I made games for v3arcade)

- Added javascript isRefreshing check, so the chatbox won't have two parallel refresh instances and show duplicate messages, to fix problem on slower connections.

- When showing latest messages at the bottom, the chatbox now will only scroll to the bottom when there are new messages. (only works if you are not updating all messages on each refresh)

- Fixed javascript warning, was getting shoutsDiv <div> by it's name, wasn't defining shoutsDiv variable. (wonder how it worked in the first place)

- Added option to update all messages on refresh. This will fix deleted messages not being removed from users chatboxes, but can highly increase resource usage. The default method is getting only the new messages.

- Added message colors. You must enable it in the Chatbox options. You can change the available colors in the options.

Message editing won't be added because the user can easily delete his message and resend it. Also because the code level of complexity would highly increase because of the way things are done.

Also I wasn't able to remove the chatbox from the Who's Online list when the user is viewing the forum home, sorry.

arco 06-01-2007 01:15 AM

Thanks for the update. There's an issue with the mouseover time though. Check my webpage...

arco 06-01-2007 01:47 AM

Reverted the time code in chatbox.php to that of v1.7, and all is well.

arco 06-01-2007 01:53 AM

Getting a funny number on top of the input box when not logged in. The color selection box should be locked for not logged in users too. Think I'll just go back to v1.7 for now.

agsguar 06-01-2007 03:03 AM

Hi dream...

Houston, We have a problem!!

Hi, i have a problem with the 1.8 version..

this is the message:

Quote:

Invalid SQL:
SELECT c.shoutid, c.userid, c.username, c.shout, c.dateline,
c.ipaddress, c.color, u.usergroupid FROM chatbox AS c LEFT JOIN user AS u ON
(c.userid = u.userid) ORDER BY dateline DESC LIMIT 0, 50;

MySQL Error : Unknown column 'c.color' in 'field list'
Error Number : 1054
Date : Thursday, May 31st 2007 @ 05:32:09 PM
Script : http://www.xxxxxx.com/foro/chatbox.php?nofocus=1
Referrer : http://www.xxxxxx.com/foro/index.php
IP Address : xxx.xxx.xxx.xxx
Username : THORNE
Classname : vB_Database

Please help us!! thank you!!

under_takers 06-01-2007 03:02 PM

Database error in vBulletin 3.6.7:

Invalid SQL:
DELETE FROM vb_productdependency WHERE productid = 'chatbox_lite';

MySQL Error : Lock wait timeout exceeded; try restarting transaction
Error Number : 1205
Date : Friday, June 1st 2007 @ 08:55:08 AM
Script : http://www.xxxxx-xxxx.com/vb/admincp...=productimport
Referrer : http://www.xxxx-xxx.com/vb/admincp/p...?do=productadd
IP Address : 125.209.xx.xx
Username : xxxx-xxxx
Classname : vb_database


well is there any solution ?

Dream 06-01-2007 07:46 PM

Quote:

Originally Posted by arco (Post 1258694)
Thanks for the update. There's an issue with the mouseover time though. Check my webpage...

Quote:

Originally Posted by arco (Post 1258705)
Reverted the time code in chatbox.php to that of v1.7, and all is well.

Quote:

Originally Posted by arco (Post 1258707)
Getting a funny number on top of the input box when not logged in. The color selection box should be locked for not logged in users too. Think I'll just go back to v1.7 for now.

I updated the zip file, update your chatbox.php. I couldn't replicate the funny number on top of the input box.

Dream 06-01-2007 07:47 PM

Quote:

Originally Posted by agsguar (Post 1258745)
Hi dream...

Houston, We have a problem!!

Hi, i have a problem with the 1.8 version..

this is the message:




Please help us!! thank you!!

Did you import the new product file?

Dream 06-01-2007 07:47 PM

Quote:

Originally Posted by under_takers (Post 1259146)
Database error in vBulletin 3.6.7:

Invalid SQL:
DELETE FROM vb_productdependency WHERE productid = 'chatbox_lite';

MySQL Error : Lock wait timeout exceeded; try restarting transaction
Error Number : 1205
Date : Friday, June 1st 2007 @ 08:55:08 AM
Script : http://www.xxxxx-xxxx.com/vb/admincp...=productimport
Referrer : http://www.xxxx-xxx.com/vb/admincp/p...?do=productadd
IP Address : 125.209.xx.xx
Username : xxxx-xxxx
Classname : vb_database


well is there any solution ?

What are you trying to do?

Dream 06-01-2007 10:45 PM

Arco let me know if the update solves the problems you were having.

arco 06-01-2007 11:01 PM

I got this when loading the product.

Code:

Database error in vBulletin 3.6.7:

Invalid SQL:
ALTER TABLE `vb_chatbox` ADD `color` VARCHAR( 20 ) NULL ;;

MySQL Error  : Duplicate column name 'color'
Error Number : 1060
Date        : Friday, June 1st 2007 @ 04:59:47 PM
Script      : http://www.fusion-racing.net/forums/...=productimport
Referrer    : http://www.fusion-racing.net/forums/...?do=productadd
IP Address  : 88.88.151.40
Username    : arco
Classname    : vB_Database

I'll try to bypass it.

Dream 06-01-2007 11:10 PM

Did you install the product file before? Have you reinstalled 1.7 product file after installing the 1.8 file? Try to remove the code that creates the color field in the table if you did.

arco 06-01-2007 11:11 PM

Ok, installed and the time issue is fixed now.

About the numbers, here's a clip from viewing the selected source.

HTML Code:

<div class="smallfont" align="left"><span id="timeNow">1180742664</span><form action="javascript:postShout()" name="chatboxForm"><input name="nofocus" type="hidden"><input name="isrefresh" type="hidden">
Notice the:
<span id="timeNow">1180742664</span>

arco 06-01-2007 11:13 PM

Quote:

Originally Posted by Dream (Post 1259465)
Did you install the product file before? Have you reinstalled 1.7 product file after installing the 1.8 file? Try to remove the code that creates the color field in the table if you did.

Yep, I reinstalled v1.7 product after having installed v1.8. Did exactly what you suggests and all went fine. :)

Dream 06-01-2007 11:17 PM

There must be something with vBa setting the $time variable to a non Null value. Update your chatbox.php, I updated the zip file. All should work now.

arco 06-01-2007 11:28 PM

Yeah perfect!! Everything as it should be now. Thanks for fixing it so soon. Simply excellent! :up: :)

If I can just make one last suggestion... :)
When you hover the mouse over the X, it shows the time as when hovering over the username. Could that be changed to perhaps "Delete"?

Dream 06-01-2007 11:32 PM

Np :) cheers

Dream 06-02-2007 08:18 PM

Quote:

Originally Posted by Sir_Yaro (Post 1250253)
Hi!

Two questions.
  • Is there any way to edit shout(s)?

Sorry Sir Yaro, I won't be adding message editing on this mod. Check out MCG Chatbox, it's a good chatbox that has message editing. Ask the guy if he can make a product file compatible with vB 3.5.

Dream 06-03-2007 02:37 AM

Updated, version 1.9

- Added option to disable auto refreshing for guests. This can save resources if you have a low refresh rate.

Dream 06-03-2007 03:04 AM

Quote:

Originally Posted by arco (Post 1259476)
Yeah perfect!! Everything as it should be now. Thanks for fixing it so soon. Simply excellent! :up: :)

If I can just make one last suggestion... :)
When you hover the mouse over the X, it shows the time as when hovering over the username. Could that be changed to perhaps "Delete"?

I made so the mouse over just shows over the user name, the Delete mouse over could be easily done editing chatbox.php, adding a title="" or an alt="" not sure which now.

I don't plan on updating this mod anymore, it now has all the features I think it should have.

Dream 06-03-2007 03:08 AM

Quote:

Originally Posted by agsguar (Post 1256859)
I preffer only show the general folder. or could be show in random mode with all folders?? jeje

Thank you!

Change this code

while( $smilie = $db->fetch_array( $result ) ) {
echo '<td class="alt1" align="center">' . chatbox_make_smilie_link($smilie) . "</td>\n";
$i++;
if ($i >= $smiliecolumns) {
echo "</tr><tr>\n";
$i = 0;
}
}

for

while( $smilie = $db->fetch_array( $result ) ) {
if ($smilie[smiliepath] == '/images/smilies/general') {
echo '<td class="alt1" align="center">' . chatbox_make_smilie_link($smilie) . "</td>\n";
$i++;
if ($i >= $smiliecolumns) {
echo "</tr><tr>\n";
$i = 0;
}
}
}

If that doesnt work, try using '/images/smilies/general/' or 'images/smilies/general' or 'images/smilies/general/'

Also don't forget to redo the code change I told you about before.

Sofia 06-03-2007 09:47 AM

Thank you for the Dream's Chatbox :) There are many interesting options.

arco 06-03-2007 01:29 PM

Quote:

Originally Posted by Dream (Post 1260096)
I made so the mouse over just shows over the user name, the Delete mouse over could be easily done editing chatbox.php, adding a title="" or an alt="" not sure which now.

I don't plan on updating this mod anymore, it now has all the features I think it should have.

Thanks again. :)

Mupetz 06-03-2007 08:24 PM

Thanks for the update Dream ;)

Dream 06-03-2007 09:59 PM

No problem :)

Quote:

Originally Posted by Sofia (Post 1260231)
Thank you for the Dream's Chatbox :) There are many interesting options.

You are welcome. The version you guys have at vbulletin resources is an old one, be sure to update it for I think some people might want to use a more simple chatbox than one too full of stuff (some people might). This chatbox is aimed to be simple for people that don't need too many stuff.

Sofia 06-03-2007 10:20 PM

Quote:

Originally Posted by Dream (Post 1260626)
No problem :)



You are welcome. The version you guys have at vbulletin resources is an old one, be sure to update it for I think some people might want to use a more simple chatbox than one too full of stuff (some people might). This chatbox is aimed to be simple for people that don't need too many stuff.

Hi Dream. Yes, i will update your Chatbox on vbulletin-ressources because it's your first version. Yes, there are many interesting options and the Chatbox is simple. It's a good thing. Your Chatbox is one of Chatbox which I prefer for vBulletin. :) If a coder of vb-r had not created a chatbox, I shall have voted for you ;) (you're my second vote).

I tested it, and it works perfectly ;) I will translate it soon. If you want, i can post here the french language of the chatbox.

Regards, Sofia.

Dream 06-03-2007 10:25 PM

Sure, if you post it I'll put it in the downloads. Also if VBDev wants to use any option in this chatbox in MGC Chatbox he has my permission.

Sofia 06-03-2007 10:32 PM

Quote:

Originally Posted by Dream (Post 1260633)
Sure, if you post it I'll put it in the downloads. Also if VBDev wants to use any option in this chatbox in MGC Chatbox he has my permission.

Thank a lot for all. And ok for the translation. I'll post it tomorrow ;) I love your hacks :)

I'm going to go to bed. Good night :D


All times are GMT. The time now is 01:42 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.03211 seconds
  • Memory Usage 1,847KB
  • 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_html_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

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

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