vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Chat Modifications - VSa - ChatBox (AJAX) (https://vborg.vbsupport.ru/showthread.php?t=235271)

enoobz 02-25-2010 09:39 AM

Quote:

Originally Posted by cory_booth (Post 1990561)
Try changing Plugin: VSa - ChatBox - IL from "Global_Start" to "Process_Templates_Complete"

Quote:

Originally Posted by Trek (Post 1990572)
Doing this, completely breaks my chatbox and makes it display the default "smilies" page. vb 4.02

Almost working.. Chatbox appears in CMS but chat window showing header and smilies page.

Hope someone can find the solution.

Michael Tsai 02-25-2010 11:07 AM

Quote:

Originally Posted by enoobz (Post 1991093)
Almost working.. Chatbox appears in CMS but chat window showing header and smilies page.
Hope someone can find the solution.

That's because you're not loged in.:up::up::up::up::up:

MattZ DSLR 02-25-2010 01:33 PM

Question
my site is dark grey and my default font colour is white
how can I change default white box for chat input to black or dark grey
Thank you

ComoEstaEso-com 02-25-2010 03:39 PM

Hello =)
1st, Thank you for the GREAT work Valter! :)
Much appreciated!

My question: Is there a way to place your Chatbox in all the pages?
In Blogs, CMS articles, and as present, in the forums?
I read the entire thread, yet I'm not sure if this was addressed already (saw it asked, and saw what I *think* is an answer of 'not now'... yet not sure).

Thank you!

Valter 02-25-2010 06:43 PM

I haven't worked much on integration into non-forum areas, as they made it complicated. Currently I have no time to waste, so this will wait a bit.

Input boxes are "primary textbox", over "blockrow", so it's where colors and other parameters can be changed.

discontained 02-25-2010 07:46 PM

Quote:

Originally Posted by Valter (Post 1991436)
I haven't worked much on integration into non-forum areas, as they made it complicated. Currently I have no time to waste, so this will wait a bit.

Input boxes are "primary textbox", over "blockrow", so it's where colors and other parameters can be changed.


im running vb4 default style w/ color tune (dark backgrounds, white/light text) I tried to change the input box with no luck. I do not have a primary textbox in the stylevars. Is there a way I can edit it into the template (chatbox_input). I would like to make the defualt text to white and the input backround (box) black.

Thanks! Other than that IT works flawlessly! :up:

Trek 02-25-2010 08:38 PM

Quote:

Originally Posted by Michael Tsai (Post 1991165)
That's because you're not loged in.:up::up::up::up::up:

Not true, it just doesn't work for me. I'm not saying it doesn't work for everyone, but this change, doesn't work for me specifically.

SteveV 02-25-2010 08:47 PM

I also have an issue with the time being displayed in the chat.
Registered users see the correct time like "25-02 23:46"
Admins, Supermoderators and Guests see %d-%m %R

i use %d-%m and %R (also tried %r) but it doesnt make a difference.

Michael Tsai 02-25-2010 10:55 PM

Quote:

Originally Posted by Trek (Post 1991539)
Not true, it just doesn't work for me. I'm not saying it doesn't work for everyone, but this change, doesn't work for me specifically.

It should work for everyone.:D:D:D:D:D

Bouncer222 02-25-2010 11:10 PM

THIS SHOULD BE ADDED TO FIRST OR SECOND POST

https://vborg.vbsupport.ru/showpost....postcount=5516

What is it?
Makes a bot in your VSA Chatbox create shouts when someone plays the Arcade and gets a score, it will then post it in the chatbox, Good way to attract people to the arcade!!

Inflikted 02-26-2010 01:34 AM

is it possible to add some sort of Post/New Reply notification like the other chatboxes availables?

cory_booth 02-26-2010 10:45 AM

Quote:

Originally Posted by Bouncer222 (Post 1991627)
THIS SHOULD BE ADDED TO FIRST OR SECOND POST

https://vborg.vbsupport.ru/showpost....postcount=5516

What is it?
Makes a bot in your VSA Chatbox create shouts when someone plays the Arcade and gets a score, it will then post it in the chatbox, Good way to attract people to the arcade!!

THANKS FOR THIS AND I AGREE....

woffie 02-26-2010 01:37 PM

The color selector does not work on the new version

Kaosvf 02-26-2010 02:59 PM

hi,
is there the antiflood? Then you could put it that would be perfect as a shoutbox?
I propose also to give the possibility to change the formatting of the written only to certain groups.
There is a bug: http://i45.tinypic.com/rh98pl.png
Thanks

gsmph 02-26-2010 04:23 PM

Quote:

Originally Posted by woffie (Post 1992000)
The color selector does not work on the new version

yup same here color selector not working.. i used opera,firefox,ie8, and safari all fail on color selector..

br
gsmph:)

Ozymandyus 02-26-2010 05:09 PM

For you fellows with color selector issues, you should really read back through the rest of the thread, these things have been brought up many times and addressed by Valter. The two big things are:
  • Revert all custom templates BEFORE you import the product
  • He's working on a way to remove the black as the default first color.

Have a little patience with the guy, he has a full time job like the rest of us too.

cory_booth 02-26-2010 06:41 PM

Add an alert sound to new chats....

OK folks, this is not for the faint of heart and I know there must be a much easier way to do this, but until something better comes along....

BEFORE YOU BEGIN.

You'll need a wav file and access to your database.

STEP 1: UPDATE USER TABLE
Add new column of type "INT"
Name Column = "countvsachats"

STEP 2: MODIFY PLUGINS - (VSa - ChatBox - MN)

Find the following function "ccbmessages"
Add above: $vbulletin->db->show_errors();
PHP Code:

$tvsacurrent $vbulletin->db->query_read("SELECT COUNT(ID) AS VSACURRENT FROM ".TABLE_PREFIX."vsa_chatbox AS vsa_chatbox");
                while (
$tvsacurrent $vbulletin->db->fetch_array($tvsacurrent))
                {
                
$vsacurrent $tvsacurrent[VSACURRENT];
                }
                
$tvsauser $vbulletin->db->query_read("SELECT countvsachats AS VSAUSER FROM ".TABLE_PREFIX."user WHERE userid = " $vbulletin->userinfo['userid'] ."");
                while (
$tvsauser $vbulletin->db->fetch_array($tvsauser))
                {
                
$vsauser $tvsauser[VSAUSER];
                }
                if (
$vsacurrent $vsauser)
                {
                
$vbulletin->db->query_write("UPDATE " TABLE_PREFIX "user SET countvsachats = ".$vsacurrent." WHERE userid = " $vbulletin->userinfo['userid'] . "");
                }
                if (
$vsacurrent $vsauser)
                {
                
$vbulletin->db->query_write("UPDATE " TABLE_PREFIX "user SET countvsachats = ".$vsacurrent." WHERE userid = " $vbulletin->userinfo['userid'] . "");
                }
                
$vsacb_box_totalmessages $vbulletin->db->num_rows($vsacb_get_msg_box); 


STEP 3: Scroll down and find .... if ($vsacb_box_totalmessages>0)
Add above (notice here I am loading a chat.wav from images\misc - you'll need to upload a wav and change accordingly):

PHP Code:

              if ($vsacurrent $vsauser)
                {
                echo (
'<div><table><tr><td><EMBED SRC="images\misc\chat.wav" HIDDEN="TRUE" AUTOSTART="TRUE"></EMBED></td></tr></div>');
                } 


I have yet to try with FireFox but the idea is simple. Have a coulm in the user tabe keep track of the current amount of chats. When the chatbox refreshes, run a quick query to count the number of chats. If the chats in the query are larger than the entry in the user table - update the user table to match and fire off a sound.



I hope that there will be a good response to this and Valter might provide a similar solution?

2Shea 02-27-2010 12:51 AM

I love this modification, I just have a few requests (sorry if they've already been asked):

Spam Protection
- Limit # of posts in a row by a member

Chat Text - If someone posts with a long name, the chat text gets moved over. Please make it so the persons text sticks next to their name.

I will be happy with using this mod forever if these issues are addressed. Thank you!

enoobz 02-27-2010 06:57 AM

Quote:

Originally Posted by Trek (Post 1991539)
Not true, it just doesn't work for me. I'm not saying it doesn't work for everyone, but this change, doesn't work for me specifically.

Quote:

Originally Posted by Michael Tsai (Post 1991613)
It should work for everyone.:D:D:D:D:D

Nope.. NOT working for me also. Logged in but still NOT working.

dianna 02-27-2010 01:17 PM

Love this mod just one question how can I remove the chatbox full from my navbar?

Videx 02-27-2010 02:32 PM

Quote:

Originally Posted by dianna (Post 1992832)
Love this mod just one question how can I remove the chatbox full from my navbar?

Maybe use this in options? It's the very last option.
Quote:

Automatically add link to ChatBox Full to NavBar
Yes No

Diablotic 02-27-2010 03:17 PM

Is it possible to be logged on to chat at all time? Everytime I reload my main page I have to log-in to chat which is a little bit annoying.

RustyDogma 02-27-2010 04:30 PM

Quote:

Originally Posted by dianna (Post 1992832)
Love this mod just one question how can I remove the chatbox full from my navbar?

The last option on the options screen:

Automatically add link to ChatBox Full to NavBar:

switch to 'no'

Diablotic 02-27-2010 04:57 PM

Do you have to log in to chat every time you refresh the page?

COL NIL SATIS 02-27-2010 04:58 PM

Awesome awesome Valter..simply Awesome!!!

shadowla05 02-27-2010 04:58 PM

Quote:

Originally Posted by cory_booth (Post 1992214)
Add an alert sound to new chats....

OK folks, this is not for the faint of heart and I know there must be a much easier way to do this, but until something better comes along....

BEFORE YOU BEGIN.

You'll need a wav file and access to your database.

STEP 1: UPDATE USER TABLE
Add new column of type "INT"
Name Column = "countvsachats"

STEP 2: MODIFY PLUGINS - (VSa - ChatBox - MN)

Find the following function "ccbmessages"
Add above: $vbulletin->db->show_errors();
PHP Code:

$tvsacurrent $vbulletin->db->query_read("SELECT COUNT(ID) AS VSACURRENT FROM ".TABLE_PREFIX."vsa_chatbox AS vsa_chatbox");
                while (
$tvsacurrent $vbulletin->db->fetch_array($tvsacurrent))
                {
                
$vsacurrent $tvsacurrent[VSACURRENT];
                }
                
$tvsauser $vbulletin->db->query_read("SELECT countvsachats AS VSAUSER FROM ".TABLE_PREFIX."user WHERE userid = " $vbulletin->userinfo['userid'] ."");
                while (
$tvsauser $vbulletin->db->fetch_array($tvsauser))
                {
                
$vsauser $tvsauser[VSAUSER];
                }
                if (
$vsacurrent $vsauser)
                {
                
$vbulletin->db->query_write("UPDATE " TABLE_PREFIX "user SET countvsachats = ".$vsacurrent." WHERE userid = " $vbulletin->userinfo['userid'] . "");
                }
                if (
$vsacurrent $vsauser)
                {
                
$vbulletin->db->query_write("UPDATE " TABLE_PREFIX "user SET countvsachats = ".$vsacurrent." WHERE userid = " $vbulletin->userinfo['userid'] . "");
                }
                
$vsacb_box_totalmessages $vbulletin->db->num_rows($vsacb_get_msg_box); 


STEP 3: Scroll down and find .... if ($vsacb_box_totalmessages>0)
Add above (notice here I am loading a chat.wav from images\misc - you'll need to upload a wav and change accordingly):

PHP Code:

              if ($vsacurrent $vsauser)
                {
                echo (
'<div><table><tr><td><EMBED SRC="images\misc\chat.wav" HIDDEN="TRUE" AUTOSTART="TRUE"></EMBED></td></tr></div>');
                } 


I have yet to try with FireFox but the idea is simple. Have a coulm in the user tabe keep track of the current amount of chats. When the chatbox refreshes, run a quick query to count the number of chats. If the chats in the query are larger than the entry in the user table - update the user table to match and fire off a sound.



I hope that there will be a good response to this and Valter might provide a similar solution?

Can u give a little more details on hot to this like where are the files i have to edit and where is UPDATE USER TABLE?

Valter 02-27-2010 08:25 PM

Quote:

Originally Posted by Diablotic (Post 1993033)
Do you have to log in to chat every time you refresh the page?

Never, unless you enable option to be logged out by default.

Diablotic 02-27-2010 09:27 PM

Quote:

Originally Posted by Valter (Post 1993193)
Never, unless you enable option to be logged out by default.

It was happening to me because I had "time after log-out" set to '0' as I thought it would disable that function.
It is good now but it would be nice to have an option to be always logged in.

Boko577 02-27-2010 10:05 PM

Please add things like /prune commands, /ban or /silence and so on. Include these in the next update and I won't use Inferno on mine anymore.

cloferba 02-27-2010 11:44 PM

does this mod have commands to delete chatbox or ban a member?

how can i bann any user?

Valter 02-28-2010 12:55 AM

Delete/Prune/Ban/UnBan, and more, are all found in Archive menus.

pilotxx 02-28-2010 10:14 AM

On 4.0.2 vb i have problem. since i upgrade my system i can't add the chat to other templates but FORUMHOME... on 4.0.1 i add the chat as widget to my site...
any solution?

ZuFett 02-28-2010 02:28 PM

it is possible to include a pn-system?

cory_booth 02-28-2010 03:17 PM

Quote:

Originally Posted by shadowla05 (Post 1993035)
Can u give a little more details on hot to this like where are the files i have to edit and where is UPDATE USER TABLE?

That is difficult because I do not know your website service. You'll need to access your vbulletin database and add a column to the vbulletin user table. Granted this could be done using a plugin, but I am not skilled enough to do that - yet... Sorry this isn't easier, but its the best I can do....

literatestylish 02-28-2010 05:34 PM

Anyone figure out a way to speed up the "loading" process for the Chatbox yet? It says "loading" for a while before the actual chat comes up.

Blooded 02-28-2010 05:50 PM

Quote:

Originally Posted by Boko577 (Post 1993262)
Please add things like /prune commands, /ban or /silence and so on. Include these in the next update and I won't use Inferno on mine anymore.

+1 to this, /prune, /ban and /edit mesagge commands are very usefull and will make this chatbox the best chatbox for vb 4.0.x

Valter 02-28-2010 06:24 PM

Quote:

Originally Posted by literatestylish (Post 1993861)
Anyone figure out a way to speed up the "loading" process for the Chatbox yet? It says "loading" for a while before the actual chat comes up.

Slow database host or not original code.

Basboss 03-01-2010 02:57 AM

Thank you, this works great.

aouni_tahech 03-01-2010 03:30 AM

Hello Valter, I'd like to thank you for this fabulous hack. One thing I'm not being able to do is to make this hack show up below the navbar in the VBA CMPS homepage, as in other pages.

I tried to add the "adv_portal" template to the list of templates I need the hack to appear in, but nothing is showing up.

P.S. I'm not asking for a module, but for the hack to show up just like other pages.

Inflikted 03-01-2010 06:03 AM

1 Attachment(s)
just made a two small plugin for New Topic and Reply Notification in your chatbox, im still new to vbulletin scripting so i apologize if there is any mistakes :) But I have been using it for a couple days fine

you must make a couple changes to it though once you install it, in BOTH plugins

alter line 2 or 3

that reads...

PHP Code:

if (!in_array($this->info['forum']['forumid'], array(105,83,121,110,82,112,109,101,102,72))) { 

this will filter out private forums you don't want the public to see when a post is made, so add/remove the forumid's you wish to hide.

one last edit is the SQL insert in BOTH plugins, change the '2' to whatever userid you would like to show the posts as. I would setup a postbot and link it to that userid.

PHP Code:

$vbulletin->db->query_write("INSERT INTO `" TABLE_PREFIX "vsa_chatbox` (`userid`, `userip`, `message`, `dateline`, `textprop`) VALUES ('2', '".$_SERVER['REMOTE_ADDR']."', '" $vbulletin->db->escape_string($message) ."', ".TIMENOW.", '');"); 

Thats all :)


All times are GMT. The time now is 05:41 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.03817 seconds
  • Memory Usage 1,887KB
  • 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
  • (6)bbcode_php_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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