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)

supadave 03-08-2010 03:45 AM

Valter, this product is not working with IE8. I have no issues with Fire Fox. What i have done;
Reverted all your templates.
Removed Product, and reinstalled most current .xml file.
Dissabled all mods (was getting the error before and after mod disableing) but chatbox.
Pruned through 50+ pages here to find the problem.

What error does;
does not allow type input in the message text field i.e. I cannot chat. Also the area where you type in the message txt is exploded, compared to Fire Fox, no problems with Fire Fox.

I noticed you said it works on IE8 on win 7 x64, what about IE8 32 bit (most users still run these older version) on Vista & XP?

Server info:
Apache server running php5x and mysql5x , new forum so forum size is small. Running VB4.0.1 about to update to latest patch fix. Side note: VB style is default, only color changes.

Webbstre 03-09-2010 06:04 AM

This is an excellent product, but I have one request: I would like to insert the chatbox as a forum block or cms widget. I haven't read through the 56 pages before this post, so it might have come up before, but is there a way to manage that?

eBola75 03-09-2010 08:24 AM

Hallo,

I have strange problem.

When you go to forum page. "Smilies list" are displayed inside chat. When I refresh everything is OK.


See picture


https://vborg.vbsupport.ru/

bigjosh359 03-09-2010 09:21 AM

Quote:

Originally Posted by eBola75 (Post 2000307)
Hallo,

I have strange problem.

When you go to forum page. "Smilies list" are displayed inside chat. When I refresh everything is OK.


See picture


https://vborg.vbsupport.ru/

I had this happen a couple times and mentioned it in a previous post, no answer but I havent had it happen since either.

eBola75 03-09-2010 09:57 AM

Quote:

Originally Posted by bigjosh359 (Post 2000326)
I had this happen a couple times and mentioned it in a previous post, no answer but I havent had it happen since either.

it happens only first time loading page. Than never again.

But clear browser cache,cookies.
Reload...

and again

nyunyu 03-09-2010 10:38 AM

Is there an option to ban users?

Ozymandyus 03-09-2010 01:14 PM

Quote:

Originally Posted by Webbstre (Post 2000266)
This is an excellent product, but I have one request: I would like to insert the chatbox as a forum block or cms widget. I haven't read through the 56 pages before this post, so it might have come up before, but is there a way to manage that?

Valter indicated a few pages back that he was finding it very difficult to make it work as a widget, due to Jelsoft changing the way the code worked, so he was not going to make a CMS widget a priority. Whether this means he will get it working eventually or not I don't know, but given that he seems a skilled coder, I would imagine that it will happen eventually.

I believe it's possible to do yourself by pasting all of Valter's chatbox code into a custom PHP widget. It would still require tweaking though. Hopefully we get an official version soon, I'm planning on donating at that point myself, as it's the last functionality I need to seamlessly integrate this into my board.

Webbstre 03-09-2010 10:46 PM

Quote:

Originally Posted by Ozymandyus (Post 2000429)
Valter indicated a few pages back that he was finding it very difficult to make it work as a widget, due to Jelsoft changing the way the code worked, so he was not going to make a CMS widget a priority. Whether this means he will get it working eventually or not I don't know, but given that he seems a skilled coder, I would imagine that it will happen eventually.

I believe it's possible to do yourself by pasting all of Valter's chatbox code into a custom PHP widget. It would still require tweaking though. Hopefully we get an official version soon, I'm planning on donating at that point myself, as it's the last functionality I need to seamlessly integrate this into my board.

Ok, it's not an essentially vital thing right now, I just thought I would ask.

Does anyone know how much of a load an active chatbox causes on their server?

mobe00 03-10-2010 06:34 AM

Quote:

Originally Posted by madotds (Post 1999337)
Ok the easiest way to do this is to go to the plugin we need to edit in this case
?VSa - ChatBox ? MN?
How? Admincp>>> Plugin and products>>>>Plugin manager Scroll down and find the VSa-Chatbox-MN plugin and next to that click edit.

Select everything in the php code box and copy it to a text editor of your choice ( I use notepad++ )

Once there you can use the find function and look for

Code:

$vbulletin->db->show_errors();
And add on the line above it (copy and paste)

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);


Then use the search function again to find

Code:

$vsacb_box_totalmessages>0
And on the line above that add (copy and paste) the next bit of code

Code:

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

Once you have done that you can copy the whole lot back from your text editor into the plugin phpcode box replacing the original code and click save.

You then need to find a good wav file. you can TRY HERE and upload it to your images/misc folder ( make sure and name it "chat.wav )

Hope this helps
Mark


i did all of this..but still no sound playing ???

kiwi1342 03-10-2010 08:14 AM

Hi,

I don't know if anyone asked this already, but it would be cool if (like an other chat posted in this forum but not as good as this one ;) ) there would be the possibility to create a link in chat when a new post is made.

what do you think?
thx

kiwi1342 03-10-2010 08:33 AM

Quote:

Originally Posted by Inflikted (Post 1994272)
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 :)

I will try this now but I dont' understand why it says 2 plugins but I see only one xml file :confused:

kiwi1342 03-10-2010 08:55 AM

OK I figured it out. Here are the steps:

1. Download the replypost-notification.xml which you'll find here https://vborg.vbsupport.ru/showpost....&postcount=765

2. open the file just downloaded and edit it as explained in the post. Be carefull that there are two plugin in this single xml file which means that you have to edit the text for both plugin ( search for 'forumid'], array(105,83,121,110,82,112,109,101,102,72)) inside the document and you'll find two results)

3. once you edited it save the file and go to your admincp page

4. scroll down to the end and go to Plugins & Products --> Download / Upload Plugins

5. scroll to the botton and upload the previous xml file. You should see now the "VSA New Reply" and "VSA New Thread" plugin in the list.


Job Done :D

mobe00 03-10-2010 09:24 AM

Quote:

Originally Posted by kiwi1342 (Post 2000777)
OK I figured it out. Here are the steps:

1. Download the replypost-notification.xml which you'll find here https://vborg.vbsupport.ru/showpost....&postcount=765

2. open the file just downloaded and edit it as explained in the post. Be carefull that there are two plugin in this single xml file which means that you have to edit the text for both plugin ( search for 'forumid'], array(105,83,121,110,82,112,109,101,102,72)) inside the document and you'll find two results)

3. once you edited it save the file and go to your admincp page

4. scroll down to the end and go to Plugins & Products --> Download / Upload Plugins

5. scroll to the botton and upload the previous xml file. You should see now the "VSA New Reply" and "VSA New Thread" plugin in the list.


Job Done :D

what shall we edit you mean, the numbers (marked in red) with the forum id you dont want to show ?? in my forum its id 57 that i dont want to show there

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

kiwi1342 03-10-2010 09:31 AM

Quote:

Originally Posted by mobe00 (Post 2000785)
what shall we edit you mean, the numbers (marked in red) with the forum id you dont want to show ?? in my forum its id 57 that i dont want to show there

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

yes :) as xplained in the original post you should change only the number insidde the bracket. If you want to NOT show notification for your forum id 57 you should remove all those numbers and write only 57 :)

eBola75 03-10-2010 10:21 AM

Excellent kiwi!
Love that

Also change text color if you use white background as me or it will be white text on white background.

Nobody will help me with that "Smilies list" problem mentioned above?

kiwi1342 03-10-2010 10:30 AM

Quote:

Originally Posted by eBola75 (Post 2000798)
Excellent kiwi!
Love that

Also change text color if you use white background as me or it will be white text on white background.


Nobody will help me with that "Smilies list" problem mentioned above?

oh well I have black background ;)

What's the problem with smilies?

eBola75 03-10-2010 11:29 AM

Quote:

Originally Posted by kiwi1342 (Post 2000802)
oh well I have black background ;)

What's the problem with smilies?

I have this problem - https://vborg.vbsupport.ru/showpost....&postcount=848

kiwi1342 03-10-2010 11:35 AM

I don't understand your problem sorry. I visited your forum and I don't have the option to select smilies (maybe because I am not registered) and in the screenshot I don't understand what's going on :(

eBola75 03-10-2010 12:12 PM

Quote:

Originally Posted by kiwi1342 (Post 2000777)
OK I figured it out. Here are the steps:

1. Download the replypost-notification.xml which you'll find here https://vborg.vbsupport.ru/showpost....&postcount=765

2. open the file just downloaded and edit it as explained in the post. Be carefull that there are two plugin in this single xml file which means that you have to edit the text for both plugin ( search for 'forumid'], array(105,83,121,110,82,112,109,101,102,72)) inside the document and you'll find two results)

3. once you edited it save the file and go to your admincp page

4. scroll down to the end and go to Plugins & Products --> Download / Upload Plugins

5. scroll to the botton and upload the previous xml file. You should see now the "VSA New Reply" and "VSA New Thread" plugin in the list.


Job Done :D


I'm using it and like it. But problem I see is when somebody edit message it make new chat post also. is it possible to make it work only for new messages?

kiwi1342 03-10-2010 12:21 PM

Quote:

Originally Posted by eBola75 (Post 2000855)
I'm using it and like it. But problem I see is when somebody edit message it make new chat post also. is it possible to make it work only for new messages?

I think it is because the coder uses the postsave hookname. I am not a vb coder so we should wait his answer.

Anyway what was the exact problem that you had with smiles?

eBola75 03-10-2010 12:33 PM

Quote:

Originally Posted by kiwi1342 (Post 2000863)
I think it is because the coder uses the postsave hookname. I am not a vb coder so we should wait his answer.

Anyway what was the exact problem that you had with smiles?

When somebody cames to forum for first time ever. (no cashe, cookies...) "Smilies list" is displayed in chat body. Refreshing page solve this and after that everything works fine.

kiwi1342 03-10-2010 12:43 PM

well on that screenshot that you posted I don't see the smilies menu. I see the entire forum loaded inside the chat but I tried before and your chat looks fine (there is no smilies menu, and it was my first time that I connected to your forum).

I notice that you changed the layout from what was in that screenshot... maybe that fixed the issue

eBola75 03-10-2010 01:13 PM

Quote:

Originally Posted by kiwi1342 (Post 2000872)
well on that screenshot that you posted I don't see the smilies menu. I see the entire forum loaded inside the chat but I tried before and your chat looks fine (there is no smilies menu, and it was my first time that I connected to your forum).

I notice that you changed the layout from what was in that screenshot... maybe that fixed the issue

You have to come directely to forum site. Not from main site link. It happening even when I changed style. if you visit this link - http://www.soccervista.com/forum/ from browser you have not used before you will se what I mean.

Sorry for link posting and my English

dangerin 03-11-2010 07:43 AM

Good morning at alls..
I need ( if possible ) to have a sound , how i hear in a lot of chat, when there's a new post.. because it happen very often that the admins or moderators are reading articles on cms or in forum and some users post a question on chat and no one answer because we do not see the new message except when we scrool up the screen and is ever later to cath the user and i think that it's not good for a chat ( maybe i wrong but i only ask that for me coukd be very usefull )

Thanks

dangerin 03-11-2010 08:50 AM

Or if sound is impossible some thing that can see that someone has written in the chat box..
so .. if someone do not see on chat is really difficult to know that's a message in ..

Hi

tiga2 03-11-2010 12:20 PM

I was trying to remove the Icons : Underline, Bold, Italic and remove text formatting.
I cant find which template to remove it from. Anyone has a solution?

princeedward 03-11-2010 01:31 PM

Quote:

Originally Posted by tiga2 (Post 2001514)
I was trying to remove the Icons : Underline, Bold, Italic and remove text formatting.
I cant find which template to remove it from. Anyone has a solution?

hi...go vsa_chatbox_input template and find this code...delete or just add the red one

Code:

<!---

<input id="vsacb_m_bold" type="button" class="button" style="width:30px;font-weight:bold;" value="B" onclick='VSacb_updateSButton(this, "fontWeight")' <vb:if condition="$vsacb_cantpost">disabled="disabled"</vb:if> />
                                <input id="vsacb_m_italic" type="button" class="button" style="width:30px;font-style:italic;" value="I" onclick='VSacb_updateSButton(this, "fontStyle")' <vb:if condition="$vsacb_cantpost">disabled="disabled"</vb:if> />
                                <input id="vsacb_m_underline" type="button" class="button" style="width:30px;text-decoration:underline;" value="U" onclick='VSacb_updateSButton(this, "textDecoration")' <vb:if condition="$vsacb_cantpost">disabled="disabled"</vb:if> />
                                <img src="{vb:stylevar imgdir_editor}/separator.gif" border="0" alt="" /><img class="inlineimg" style="cursor:pointer" src="{vb:stylevar imgdir_editor}/removeformat.png" border="0" alt="{vb:rawphrase vsacb_remove_formatting}" onclick="VSacb_delCookies();" />

--->


hope it help you and goodluck

best regards

:p

tiga2 03-11-2010 02:09 PM

1 Attachment(s)
wOW U made my day princeedward, would love to buy u a beer hehe! Worked...

SoltanWorld 03-11-2010 04:12 PM

No one wanna answer me ? How can i use this as widget ?huh?

Markos 03-11-2010 04:27 PM

is there anyway to set the users font colour the same colour as there user group colour ?

Ozymandyus 03-11-2010 04:39 PM

Quote:

Originally Posted by SoltanWorld (Post 2001617)
No one wanna answer me ? How can i use this as widget ?huh?

The short answer is you can't unless you want to write your own custom widget for it. Valter's aware of the requests but said that due to changes in the vBulletin code it was difficult for him to create one.

GamerPerfection 03-11-2010 07:09 PM

Not sure if this has been mentioned in the 51 page thread, but is it possible to change the default colour? At the moment it's black, and my forum background is black.

i removed black from the colour options, but that doesn't have an effect on the default colour being black?

Any ideas?


EDIT: Ignore that, after removing black from the colour list it did actually move the default to the next colour I think. :)

EDIT EDIT: Ah ok I see what happened, it remember the last colour i used the next time I logged in so the last colour i used becomes my default next login. Ok that's not a big issue. :)

dangerin 03-12-2010 07:13 AM

No one answer to my question about the sound for a new post?
How do you use this chat without sound? is possible that must be a person every present to see if someone write something?
Ok when the chat is very very used but when is used to ask something and no one answer because do not know that's written on is a problem.
Thanks

domi681 03-12-2010 07:37 AM

Hello, you may write in the forum when you receive a notice posted on the chat?

dangerin 03-12-2010 07:59 AM

mmhh i do not understand!
If someone write in chat must go also on forum to write that has written on chat to reciev an answer?
Chat is a simply and fast mode to comunicate if there are to do other operations except to write in chat i lost the useful of this mod do not think?
Think if when i write on a chat on a site i must go also on forum to advise.. i have never found a chat without sound or advise .. ( except when thers is only a full page in a site that is dedicate ONLY to the chat ).
I hope to have said all correctly because i'm italian and my english is not the best

kiwi1342 03-12-2010 08:59 AM

Has anyone noticed that in the smilies menu, if you click on the More nothing happens?

kiwi1342 03-12-2010 09:21 AM

is there a way to get older versions? I have some issue with latest 3.1.6

LouisB 03-12-2010 11:42 AM

Anyone getting an error similar to this: Invalid Page Specified

I've tried reinstalling but no luck.

princeedward 03-12-2010 11:46 AM

1 Attachment(s)
Quote:

Originally Posted by kiwi1342 (Post 2002076)
is there a way to get older versions? I have some issue with latest 3.1.6

try the attachment below mate...hope it solve your problem...

goodluck and best regards...

:p

gamershell 03-12-2010 02:50 PM

I finally got it installed however, I have a question. The chatbox shows up on the top of the forums and then again on the bottom. I can get it so it just shows up on the bottom but, not just the top.

Is there a way to fix this? I am sure there is a way, however, I don't want to search through 60 pages to find it. If someone could tell me how or point me to a thread that tells me, I would be greatly appreciative. :D

On another note, I would like to apologize to Videx (I think that's the name) for being a bit of ++++ the other day. I was just frustrated with the whole situation. Not that is an excuse. My apologies again.


All times are GMT. The time now is 06:14 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.03430 seconds
  • Memory Usage 1,873KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_php_printable
  • (17)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