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 03-22-2007 03:47 PM

10,000 views! WOOHOO \o/

:)

Mark.B 03-25-2007 11:27 AM

Just to say, this is really good and is much less resource-intensive than other shoutboxes.

For pruning, I created a scheduled task cron file to delete all shouts over 48 hours old, this runs every hour via the admin CP and keeps things manageable. I also disabled autorefresh to keep resources down.

The only thing I think would be useful would be a smilie popup window or dropdown, with clickable smilies.

rnmcd 03-26-2007 12:46 PM

Quote:

Originally Posted by evotion (Post 1207237)
Great mod.. Thanks vm.

by the way, did anybody find a way to have the chat JUST show up in a forum of one's choice....

I'd like it to just show up only in forum ID 6, for example, and NOT the forum home.

Where do I got to make the required change.

I'd like to know the answer to this too.

lard007 03-26-2007 01:41 PM

thanks again - just put the updated version in

We use vbshout but as you can't have more than one shoutbox, and also because flashchat is to intensive for just admin chat I have once again put this great little chat client in place

One query that I have is whether you can restrict who can view chats - I have it so that only admins can see the CMPS module that I put this in but if you browse to the chat.php page anyone can view it - any ideas how to restrict this?

Thanks again!

Larry

solinarius 03-26-2007 08:23 PM

Hello, how can i change order of display- eg. last shout on the bottom, first on top?
and ofcourse, form on bottom?
thanks in advice.

Dream 03-26-2007 08:46 PM

You would need to get someone to change the code for you solinarius.

I'll be making a major update to this mod to address most if not all of you guys concerns, but it will take me some time.

Fungsten 03-26-2007 08:46 PM

This is interesting!

solinarius 03-26-2007 08:49 PM

awsome :) i can't wait ;)

Fungsten 03-26-2007 09:43 PM

This is what's in the Chatbox.php:

Quote:

$cantshout = array(1,3,8,12); //usergroup ids that are not allowed to send messages
Also, do all members who have access to the chatbox see everything that has been posted? In other words, this chatbox is not for a one-on-one member to chat with?

solinarius 03-29-2007 05:38 PM

No, is something like shoutbox, small thing to talk online about nothing :)

GnG_ShoOk 03-30-2007 05:12 AM

it said, the my 404 page cannot be found. I noticed in the install guide that is says find:

<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>

^^ My Vbulletin didn't have this, so what should i do?

MelH 03-30-2007 05:21 AM

Can someone please tell me how to change the height of the chatbox?

Thanks...

Dream 03-30-2007 05:32 AM

Quote:

Originally Posted by GnG_ShoOk (Post 1215881)
it said, the my 404 page cannot be found. I noticed in the install guide that is says find:

<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>

^^ My Vbulletin didn't have this, so what should i do?

You must have a custom style, you have to choose somewhere to put the Chatbox link in the style, or not use one at all. The box Chatbox goes has a link.

Quote:

Originally Posted by MelH (Post 1215883)
Can someone please tell me how to change the height of the chatbox?

Thanks...

Find this in FORUMHOME template

<div class="smallfont" align="center"><iframe src="chatbox.php?nofocus=1" width="100%" style="border: 0px" frameborder="0"></iframe>

And replace with this

<div class="smallfont" align="center"><iframe src="chatbox.php?nofocus=1" width="100%" style="border: 0px, height: XX" frameborder="0"></iframe>

Where XX is the height you want. That should do it, *I think*. If not let me know and I'll look into it again.

MelH 03-30-2007 05:47 AM

Thanks for your quick reply... but I'm afraid it didnt work.

To change the height I did as you said. Changed to this:

<div class="smallfont" align="center"><iframe src="chatbox.php?nofocus=1" width="100%" style="border: 0px, height: 500px" frameborder="0"></iframe>

also tried just 500

But there is no difference..

Dream 03-30-2007 05:57 AM

Sorry, do

style="border: 0px; height: 500px"

use ; instead of ,

MelH 03-30-2007 06:03 AM

Thanks so much, that did it.
But obviously 500px is too big. :)

Thanks for a great mod

mawby 03-30-2007 11:53 AM

Would it be possible to repost the contents of the send message box during arefresh so that its contents is not lost when an automatic refresh occurs?

rnmcd 03-30-2007 03:26 PM

What changes were made in the Last Update: 16. Mar 2007?

Can this be installed to work in an forum other than forumhome?

MelH 03-31-2007 04:02 AM

I have this Chatbox in a vBadvanced CMPS side module and its working great.

When I am on the forumhome pages the pop up works fine but when I am on the CMPS portal pages I get a page not found error in the pop up window.

The link in the Navbar has the full url to chatbox.php so I don’t understand why it doesn’t work all the time. Anyone have any ideas??

Also while I’m here - anyone know how to make the pop up chatbox always stay on top when other programs are accessed?

Any help would be gratefully appreciated - thanks…

rnmcd 03-31-2007 10:13 PM

I installed this on two different vb 3.6.4, with different results:

1) On one installation I have a working Chatbox link in the Navbar but the Chatbox doesn't appear in the "What's Going On?" area. Any idea what I did wrong? By the way, I didn't do the "chatbox below navbar.txt" instructions.

2) (fixed)

Thanks.

Dream 04-01-2007 04:25 AM

If you want me to take a look, send me your forum link through PM rnmcd

MelH 04-01-2007 10:55 PM

I'm trying to get the pop up to stay on top when pages are changed etc.

I found this code by searching google.
<body onblur="self.focus();">

In chatbox.php I changed this:
echo '</head><body class="alt1">';

to this:
echo '</head><body onBlur="self.focus();" class="alt1">';

The change made the pop up stay on top but you cant change pages or open or close other programs on your desktop.

The idea of having the pop up stay on top is so that you can use other programs whilst still always having the chatbox visible. Just move it if it gets in the way of what you are doing.

Any ideas anyone??

LBmtb 04-02-2007 01:31 AM

Found a small bug today. I got this email about a db error from chatbox:
Quote:

Database error in vBulletin 3.6.4:

Invalid SQL:
INSERT INTO vb_chatbox (userid, username, shout, dateline, ipaddress)
VALUES (1030, '26'er Zen Master', 'Sart Kicked ASS Today', 1175478886, '66.74.144.57');
It was due to the single quote in the user's name. Here's the fix:

FIND: (was on line 47 for me)
Code:

        $db->query_write("INSERT INTO ".TABLE_PREFIX.$chatbox_table." (userid, username, shout, dateline, ipaddress)
VALUES (".$vbulletin->userinfo['userid'].", '".$db->escape_string($vbulletin->userinfo['username'])."', '".$db->escape_string($_POST['shout'])."', ".TIMENOW.", '".$db->escape_string(IPADDRESS)."')");

REPLACE WITH:
Code:

        $db->query_write(htmlentities("INSERT INTO ".TABLE_PREFIX.$shoutstable." (userid, username, shout, dateline, ipaddress)
VALUES (".$vbulletin->userinfo['userid'].", '".$vbulletin->userinfo['username']."', '".$db->escape_string($_POST['shout'])."', ".TIMENOW.", '".$db->escape_string(IPADDRESS)."')"));

This will sanitize the query a bit more before it gets run on the database.

Emre Goren 04-02-2007 02:39 AM

great stuff thanks..but how can I change send and refresh buttons? and I need to know how change text color written on these buttons..thanks again

rnmcd 04-02-2007 03:36 PM

Quote:

Originally Posted by Dream (Post 1217252)
If you want me to take a look, send me your forum link through PM rnmcd

I will PM it to you.

Also,
Do a lot more server 'resources' get used if I change the refresh time to 1 second versus 300 seconds?

Dream 04-02-2007 05:25 PM

Yep.

mawby 04-02-2007 05:53 PM

Quote:

Originally Posted by rnmcd (Post 1218416)
Also,
Do a lot more server 'resources' get used if I change the refresh time to 1 second versus 300 seconds?

It also becomes unusable (as I found out) because every time the page refreshes you lose the contents of the new/send message box and so you wont have a chance to type something and press send before it refreshes and is gone. :)

Would it be possible to only refresh the message history and have the new message box on a separate frame which isn't refreshed?

Dream 04-02-2007 07:18 PM

Nope sorry. Would make stuff too complex.

You can get someone to do that for you though.

monasa 04-03-2007 04:53 PM

I have installed vbShout 2.0 on the main page of my forum and it works fine. I'm planning to install another shoutbox in the same forum but in different page or subforum. Is this possible, having 2 shoutbox in one forum? Appreciate your feedback and guide.

VB Version : 3.6.5

porscheman170 04-05-2007 12:22 AM

Hi I just want to install chatbox in the center module of my vbadvanced home page is this possible and if so how do I do it? I tried to add a module using chatbox.php but it crashed the whole site lol... I am a total noob when it comes to this stuff.

Thanks for all your help!

Dream 04-07-2007 02:49 AM

Updated, added settings to AdminCP, under vBulletin Options.

When a user can't send messages, the text input and send button will appear disabled.

New option for usergroup IDs that are not allowed to view the chatbox content.

Fixed the user name apostrophe bug.

Added option to show text input field and latest messages at the bottom.

Also added option for size of the text input field.

Let me know how this works out for you.

rnmcd 04-07-2007 02:55 AM

If we are running your previous version of Chatbox, do we need to completely uninstall and then reinstall this product?

Thanks Dream.

Dream 04-07-2007 02:57 AM

No, just import the product file again with Allow Overwrite on and upload chatbox.php

jkwasn01 04-07-2007 06:31 PM

Update works great, Thanks!

Dream 04-07-2007 09:08 PM

Sorry guys, had to do a quick update, fixed an issue with the new option "Text Input on Top?", the page wasn't scrolling to the bottom (javascript issue).

Also fixed the font for the Can't View Chatbox error message, should be pretty.

To update just upload chatbox.php again.

Let me know if you have issues with this version.

NaughtyStud 04-07-2007 10:43 PM

Like someone posted earlier, I never could get the other chat boxes to work on my forum.This one works perfect, Thanks. ;)

Dream 04-10-2007 07:16 AM

You are welcome NaughtyStud :)

Quote:

Originally Posted by monasa (Post 1219157)
I have installed vbShout 2.0 on the main page of my forum and it works fine. I'm planning to install another shoutbox in the same forum but in different page or subforum. Is this possible, having 2 shoutbox in one forum? Appreciate your feedback and guide.

VB Version : 3.6.5

Yes you can have vBShout and Chatbox running separately on the same forum.

Dream 04-10-2007 07:22 AM

Quote:

Originally Posted by MelH (Post 1216600)
I have this Chatbox in a vBadvanced CMPS side module and its working great.

When I am on the forumhome pages the pop up works fine but when I am on the CMPS portal pages I get a page not found error in the pop up window.

The link in the Navbar has the full url to chatbox.php so I don?t understand why it doesn?t work all the time. Anyone have any ideas??

Also while I?m here - anyone know how to make the pop up chatbox always stay on top when other programs are accessed?

Any help would be gratefully appreciated - thanks?

The vBAdvanced portal pages must not be loading the javascript to open the popup for some reason. Send me your forum link via PM and I can have a look for you.

As for the Chatbox popup to always stay on top, I don't think thats possible, the popup is a browser window, and I don't think there's an option for a browser window to stay on top all times, but I could be mistaken. Page authors could abuse that kind of option I think.

MelH 04-10-2007 08:59 AM

Thanks but I sorted the first question. I needed to put the full url in both bits of code in the navbar template.

BadgerDog 04-11-2007 04:49 PM

Thanks..... :)

Installed on 3.6.4 and seems good so far....

Can't make up my mind as to whether to out the chatbox at the top of the forum, or at the bottom. Looking forward to other code development on this very simple, yet effective system..... :)

Regards,
Badger


All times are GMT. The time now is 02:25 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.02949 seconds
  • Memory Usage 1,827KB
  • 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
  • (2)bbcode_code_printable
  • (9)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