vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 5.x Products & Extensions (https://vborg.vbsupport.ru/forumdisplay.php?f=258)
-   -   Chat Modifications - [DBTech] vBShout v6 (vB5) [AJAX] (https://vborg.vbsupport.ru/showthread.php?t=288915)

DragonByte Tech 06-15-2014 04:49 PM

Quote:

Originally Posted by ageurtse (Post 2501497)
tryed it on my test website, but i can't shout or prune or somthing.
The side pannel says there are no active users.

What could it be, a compatible problem vb 5.1.1 or somthing else ?

This version is compatible with vB 5.1.1, if you have any error messages you should post them :)


Fillip

brainafk 06-15-2014 08:24 PM

Anybody got idea how can I hide the shotbox for guests?

DragonByte Tech 06-15-2014 08:40 PM

You can do this by editing the Instance Permissions in the AdminCP :)


Fillip

brainafk 06-16-2014 12:59 PM

Thanks for your answer :)

Another question: is there any plan to make this shoutbox responsive?
It really doesnt look good in mobile version.

pjclas 06-29-2014 12:28 PM

I've noticed a few issues with the shoutbox that others have also mentioned, but they seem to have had no responses so far.

First, I am also running into the issue where shouts seem to stop sending at some point for no apparent reason. Sometimes a page reload fixes it, sometimes logging out and back in fixes it, and sometimes nothing seems to immediately fix it. My users are getting frustrated with this so any help would be appreciated. Next time I see this I will be sure to look at the ajax response and add more info.

EDIT: I just hit the issue again and had a look at the ajax. The request going through contains the correct shout I'm sending, and the response comes back without error, but fails to include the new shout (it contains the prior 50 shouts only). I should point out that the shoutbox has 50 shouts and that is what I have the max displayable set to, so perhaps it's a limit issue? In this instance I had to logout and log back in to get new shouts to appear.

Second, I have created a few custom chat tabs and after a while when you click on them they just disappear... If I reload the page they come back. I think this has something to do with being set to idle, but I'm not certain. And by the way, I have set it to not flag admins as idle, but that option doesn't seem to work either.

EDIT: So I did some further debugging and found that the tabs are disappearing due to this block of code in core/packages/dbtechvbshout/api/vbshout/shoutbox.php in the callNamed() function:

Code:

else
{
  if (!count(array_intersect(vB::getUserContext()->fetchUserGroups(), explode(',', self::$chatroom['membergroupids']))))
  {
      // Usergroup no longer a member
      self::$fetched['error'] = 'disband_' . $args['chatroomid'] ;
  }
}

I added some debug and verified that the userid being queried here is 0, but it should be a valid user id like 1. So it appears the user information is being lost which I assume is due to some session data expiring perhaps. I'm also guessing this is probably the same thing leading to messages not being sent after a while. So I need to figure out what it is that causes the user data cache to seemingly disappear and require the user to logout and back in to get it back. I'm getting closer... lol

EDIT 2: I have confirmed it is definitely the session expiration that is causing BOTH of the problems I listed. So my question now becomes how do I fix this? Even if you click Remember Me when logging in the session expires if you are idle. The vBulletin software will check the userid and password cookies and renew the session and everything is fine, but the chat requires you to log out and back in after every session expiration... :( The second problem is that interacting with the vbshout window like sending shouts or clicking tabs doesn't update the vbulletin lastactivity, so this causes the session to expire when in reality there is activity... I think the vbshout should be updating the lastactivity to prevent the session from expiring.

I'd also like to vote for a responsive design at some point because vb shrinks and makes the chatbox look terrible.

Let me summarize what I believe needs to be fixed:
  1. Any activity in the shoutbox should update the vb session activity by calling doLastVisitUpdate() followed by save().
  2. The session data needs to be refreshed for the cases where it should never expire (e.g., user clicks Remember Me).
  3. The option to never set a usergroup to idle needs to be fixed, it doesn't work.
  4. When a session does expire, the chatbox should be updated to reflect this (e.g., the text entry window should disappear, custom tabs a guest doesn't have access to should disappear, etc.) Otherwise users have no idea why it appears they can shout, but they really can't. You could easily do this by receiving a custom response from an ajax query. You already do something similar by setting a user to idle and removing their name from the chat.

I plan to buy the pro version for some of the additional features, but I won't buy it if I'm going to continue to have all these issues... :-/

EDIT: Well I seem to be talking to myself, but I've made another discovery... If I set the session timeout to something large like 2 hours, then this problem completely goes away... So now I'm utterly confused. If the session timeout is 15 minutes and click remember me, then users are logged out after 15 minutes no matter how much they are chatting. If I set it to 2 hours and log in with remember me checked and walk away for 3 hours, I can come back and chat with no problem... I'm sure I'm just missing something basic here... can anyone fill me in please???

EDIT2: I figured out that every 60 minutes the security token is replaced which updates the lastactivity so as long as the session timeout is greater than one hour it will never time out. However, I don't think we should have to rely on this and keep the session timeout over an hour...

pjclas 06-29-2014 06:13 PM

Quote:

Originally Posted by mbozio (Post 2459898)
I found the problem. Indeed it's on vB5 side, the BB code parsong is causing some HTML error to be send back Inside the JSON return... here is a workaround :

In /include/vb5/template/bbcode.php

line 349, replace :
PHP Code:

            case 'socialmessage':
                
$dohtml $this->defaultOptions[$forumid]['dohtml'];
                
$dobbcode $this->defaultOptions[$forumid]['dobbcode'];
                
$dobbimagecode $this->defaultOptions[$forumid]['dobbimagecode'];
                
$dosmilies $this->defaultOptions[$forumid]['dosmilies'];
                break; 

with
PHP Code:

            case 'socialmessage':
                
$dohtml self::$defaultOptions[$forumid]['dohtml'];
                
$dobbcode self::$defaultOptions[$forumid]['dobbcode'];
                
$dobbimagecode self::$defaultOptions[$forumid]['dobbimagecode'];
                
$dosmilies self::$defaultOptions[$forumid]['dosmilies'];
                break; 

line 369, replace :
PHP Code:

            case 'nonforum':
                
$dohtml $this->defaultOptions['nonforum']['dohtml'];
                
$dobbcode $this->defaultOptions['nonforum']['dobbcode'];
                
$dobbimagecode $this->defaultOptions['nonforum']['dobbimagecode'];
                
$dosmilies $this->defaultOptions['nonforum']['dosmilies'];
                break; 

with
PHP Code:

            case 'nonforum':
                
$dohtml self::$defaultOptions['nonforum']['dohtml'];
                
$dobbcode self::$defaultOptions['nonforum']['dobbcode'];
                
$dobbimagecode self::$defaultOptions['nonforum']['dobbimagecode'];
                
$dosmilies self::$defaultOptions['nonforum']['dosmilies'];
                break; 

That's it, 200 parser error will be gone.

This code is fixed in vB5 5.1.1, but I still get that parse error a lot... :-/

kehindelawal 07-06-2014 01:33 AM

is there any reason why my vbshuout pro would suddenly disappear?

ozzy47 07-06-2014 01:46 AM

Quote:

Originally Posted by kehindelawal (Post 2505433)
is there any reason why my vbshuout pro would suddenly disappear?

Questions regarding the pro version need to be addressed on the developers site.

Sierus 07-18-2014 12:21 PM

Anyone try this in 5.1.2? I seem to have issues adding the widget.....it shows that it adds but then when I save it, it (the widget) disappears and the shout box doesn't display on the page.

pjclas 07-18-2014 01:10 PM

Quote:

Originally Posted by Sierus (Post 2507311)
Anyone try this in 5.1.2? I seem to have issues adding the widget.....it shows that it adds but then when I save it, it (the widget) disappears and the shout box doesn't display on the page.

I have it displaying in 5.1.1, but there are all sorts of problems with the functionality itself. Good luck getting any support though, they don't think vb5 is yet worth fixing becuase it's not popular enough. You can see their thoughts here. I may end up just writing my own chat plugin at this point. I'm certainly not paying for something with zero support.


All times are GMT. The time now is 06:37 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.01713 seconds
  • Memory Usage 1,781KB
  • 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
  • (4)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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